diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 27f98a24d94e..843edf6ea6ac 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -293,10 +293,10 @@ /sdk/eventhub/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/ @pakrym @JoshLove-msft @jsquire # ServiceLabel: %Event Hubs %Service Attention -/sdk/eventhub/Microsoft.Azure.EventHubs/ @serkantkaraca @sjkwak +/sdk/eventhub/Microsoft.Azure.EventHubs/ @serkantkaraca @sjkwak @kasun04 # ServiceLabel: %Event Hubs %Service Attention -/sdk/eventhub/Microsoft.Azure.EventHubs.Processor/ @serkantkaraca @sjkwak +/sdk/eventhub/Microsoft.Azure.EventHubs.Processor/ @serkantkaraca @sjkwak @kasun04 # ServiceLabel: %Event Hubs %Service Attention /sdk/eventhub/Microsoft.Azure.EventHubs.ServiceFabricProcessor/ @JamesBirdsall @serkantkaraca @sjkwak @@ -401,7 +401,7 @@ sdk/monitor/Azure.Monitor.Query @pakrym # PRLabel: %Monitor - Exporter # ServiceLabel: %Monitor - Exporter %Service Attention -/sdk/monitor/Azure.Monitor.OpenTelemetry.*/ @cijothomas @reyang @rajkumar-rangaraj @TimothyMothra +/sdk/monitor/Azure.Monitor.OpenTelemetry.*/ @cijothomas @reyang @rajkumar-rangaraj @TimothyMothra @vishweshbankwar # ServiceLabel: %Monitor - Metrics %Service Attention #// @AzMonEssential diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 3fc6ab985e16..1f3990b31f0f 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -5,24 +5,24 @@ This checklist is used to make sure that common guidelines for a pull request ar - Work in progress or not intended to be merged. - Encountering multiple pipeline failures and working on fixes. - [ ] If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above. -- [ ] **I have read the [contribution guidelines](https://github.com/Azure/azure-sdk-for-net/blob/master/CONTRIBUTING.md).** +- [ ] **I have read the [contribution guidelines](https://github.com/Azure/azure-sdk-for-net/blob/main/CONTRIBUTING.md).** - [ ] **The pull request does not introduce [breaking changes](https://github.com/dotnet/corefx/blob/master/Documentation/coding-guidelines/breaking-change-rules.md).** -### [General Guidelines and Best Practices](https://github.com/Azure/azure-sdk-for-net/blob/master/CONTRIBUTING.md#general-guidelines) +### [General Guidelines and Best Practices](https://github.com/Azure/azure-sdk-for-net/blob/main/CONTRIBUTING.md#general-guidelines) - [ ] Title of the pull request is clear and informative. - [ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, [see this page](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/cleaning-up-commits.md). -### [Testing Guidelines](https://github.com/Azure/azure-sdk-for-net/blob/master/CONTRIBUTING.md#testing-guidelines) +### [Testing Guidelines](https://github.com/Azure/azure-sdk-for-net/blob/main/CONTRIBUTING.md#testing-guidelines) - [ ] Pull request includes test coverage for the included changes. -### [SDK Generation Guidelines](https://github.com/Azure/azure-sdk-for-net/blob/master/CONTRIBUTING.md#sdk-generation-guidelines) +### [SDK Generation Guidelines](https://github.com/Azure/azure-sdk-for-net/blob/main/CONTRIBUTING.md#sdk-generation-guidelines) - [ ] The generate.cmd file for the SDK has been updated with the version of AutoRest, as well as the commitid of your swagger spec or link to the swagger spec, used to generate the code. (Track 2 only) - [ ] The `*.csproj` and `AssemblyInfo.cs` files have been updated with the new version of the SDK. Please double check nuget.org current release version. ## Additional management plane SDK specific contribution checklist: Note: Only applies to `Microsoft.Azure.Management.[RP]` or `Azure.ResourceManager.[RP]` -- [ ] Include updated [management metadata](https://github.com/Azure/azure-sdk-for-net/tree/master/eng/mgmt/mgmtmetadata). +- [ ] Include updated [management metadata](https://github.com/Azure/azure-sdk-for-net/tree/main/eng/mgmt/mgmtmetadata). - [ ] Update AzureRP.props to add/remove version info to maintain up to date API versions. ### Management plane SDK Troubleshooting diff --git a/.github/PULL_REQUEST_TEMPLATE/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE/PULL_REQUEST_TEMPLATE.md index bc939a0afc4a..37a6c5108dca 100644 --- a/.github/PULL_REQUEST_TEMPLATE/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE/PULL_REQUEST_TEMPLATE.md @@ -11,17 +11,17 @@ If you are regenerating your SDK based off of a new swagger spec, please add the This checklist is used to make sure that common guidelines for a pull request are followed. - [ ] Please add REST spec PR link to the SDK PR -- [ ] **I have read the [contribution guidelines](https://github.com/Azure/azure-sdk-for-net/blob/master/CONTRIBUTING.md).** +- [ ] **I have read the [contribution guidelines](https://github.com/Azure/azure-sdk-for-net/blob/main/CONTRIBUTING.md).** - [ ] **The pull request does not introduce [breaking changes](https://github.com/dotnet/corefx/blob/master/Documentation/coding-guidelines/breaking-change-rules.md).** -### [General Guidelines](https://github.com/Azure/azure-sdk-for-net/blob/master/CONTRIBUTING.md#general-guidelines) +### [General Guidelines](https://github.com/Azure/azure-sdk-for-net/blob/main/CONTRIBUTING.md#general-guidelines) - [ ] Title of the pull request is clear and informative. - [ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, [see this page](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/cleaning-up-commits.md). -### [Testing Guidelines](https://github.com/Azure/azure-sdk-for-net/blob/master/CONTRIBUTING.md#testing-guidelines) +### [Testing Guidelines](https://github.com/Azure/azure-sdk-for-net/blob/main/CONTRIBUTING.md#testing-guidelines) - [ ] Pull request includes test coverage for the included changes. -### [SDK Generation Guidelines](https://github.com/Azure/azure-sdk-for-net/blob/master/CONTRIBUTING.md#sdk-generation-guidelines) +### [SDK Generation Guidelines](https://github.com/Azure/azure-sdk-for-net/blob/main/CONTRIBUTING.md#sdk-generation-guidelines) - [ ] If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above. - [ ] The generate.cmd file for the SDK has been updated with the version of AutoRest, as well as the commitid of your swagger spec or link to the swagger spec, used to generate the code. - [ ] The `*.csproj` and `AssemblyInfo.cs` files have been updated with the new version of the SDK. diff --git a/.vscode/cspell.json b/.vscode/cspell.json index 117b5722194e..9cc151b70806 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -37,6 +37,7 @@ "contoso", "deserializes", "diagnoser", + "dtmf", "epsg", "expando", "finalizer", @@ -50,6 +51,7 @@ "overridden", "parallelization", "pkcs", + "pstn", "pwsh", "referer", "renormalize", @@ -57,6 +59,7 @@ "structs", "uints", "unformattable", + "unhold", "uninstrumented", "westus", "xunit" diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6a6902f17d33..ee56f8a3ac34 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -9,7 +9,7 @@ - Install VS 2019 (Community or higher) and make sure you have the latest updates (https://www.visualstudio.com/). - Need at least .NET Framework 4.6.1 and 4.7 development tools - Install the **.NET Core cross-platform development** workloads in VisualStudio -- Install **.NET Core 5.0.200 SDK** for your specific platform. (or a higher version within the 5.0.*** band) (https://dotnet.microsoft.com/download/dotnet-core/5.0) +- Install **.NET Core 5.0.301 SDK** for your specific platform. (or a higher version within the 5.0.*** band) (https://dotnet.microsoft.com/download/dotnet-core/5.0) - Install the latest version of git (https://git-scm.com/downloads) - Install [PowerShell](https://docs.microsoft.com/powershell/scripting/install/installing-powershell), version 6 or higher, if you plan to make public API changes or are working with generated code snippets. - Install [NodeJS](https://nodejs.org/) (14.x.x) if you plan to use [C# code generation](https://github.com/Azure/autorest.csharp). @@ -96,7 +96,7 @@ If for any reason there is an update to the build tools, you will then need to f We have created a dotnet template to make creating new management SDK library easier than ever. -See (README file)[(https://github.com/Azure/azure-sdk-for-net/blob/master/eng/templates/README.md)]. +See (README file)[(https://github.com/Azure/azure-sdk-for-net/blob/main/eng/templates/README.md)]. # Client Libraries @@ -158,7 +158,7 @@ After a few moments of initial configuration Visual Studio Code will launch the ### Live testing Before running or recording live tests you need to create -[live test resources](https://github.com/Azure/azure-sdk-for-net/blob/master/eng/common/TestResources/README.md). Many of the client libraries make use of the Azure Core Test Framework to provide the basis for the live test infrastructure, including the ability to record Live tests so that they can be run without access to Azure resources. The [Test Framework documentation](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core.TestFramework/README.md) provides more context around test recordings and other features. +[live test resources](https://github.com/Azure/azure-sdk-for-net/blob/main/eng/common/TestResources/README.md). Many of the client libraries make use of the Azure Core Test Framework to provide the basis for the live test infrastructure, including the ability to record Live tests so that they can be run without access to Azure resources. The [Test Framework documentation](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core.TestFramework/README.md) provides more context around test recordings and other features. To run live tests after creating live resources: @@ -212,7 +212,7 @@ string ignored = "this code will not appear in the snippet markdown"; **\`\`\`** -See the following example of a [snippet C# file](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/search/Azure.Search.Documents/tests/Samples/Sample01_HelloWorld.cs) and a [snippet markdown file](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/search/Azure.Search.Documents/samples/Sample01a_HelloWorld.md). +See the following example of a [snippet C# file](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/search/Azure.Search.Documents/tests/Samples/Sample01_HelloWorld.cs) and a [snippet markdown file](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/search/Azure.Search.Documents/samples/Sample01a_HelloWorld.md). Note that snippet names need to be globally unique under a given service directory. Snippets also can be integrated into XML doc comments. For example: @@ -249,7 +249,7 @@ dotnet build eng\service.proj /p:ServiceDirectory=eventhub /p:UpdateSourceOnBuil Each library needs to provide a `ApiCompatVersion` property which is set to the last GA'ed version of the library that will be used to compare APIs with the current to ensure no breaks have been introduced. Projects with this property set will download the specified package and the ApiCompat (Microsoft.DotNet.ApiCompat) tools package as part of the restore step of the project. Then as a post build step of the project it will run ApiCompat to verify the current APIs are compatible with the last GA'ed version of the APIs. For libraries that wish to disable the APICompat check they can remove the `ApiCompatVersion` property from their project. Our version bump automation will automatically add or increment the `ApiCompatVersion` property to the project when it detects that the version it is changing was a GA version which usually indicates that we just shipped that GA version and so it should be the new baseline for API checks. ### Releasing a new version of a GA'ed libary -Since the [eng/Packages.Data.props](https://github.com/Azure/azure-sdk-for-net/blob/master/eng/Packages.Data.props) is currently maintained manually, you will need to update the version number for your library in this file when releasing a new version. +Since the [eng/Packages.Data.props](https://github.com/Azure/azure-sdk-for-net/blob/main/eng/Packages.Data.props) is currently maintained manually, you will need to update the version number for your library in this file when releasing a new version. ## NuGet Package Dev Feed @@ -342,7 +342,7 @@ To prepare a package for release you should make use of `.\eng\common\scripts\Pr In `sdk\< Service Name >`, you will find projects for services that have already been implemented 1. Client library projects needs to use the $(RequiredTargetFrameworks) *(defined in eng/Directory.Build.Data.props)* property in its TargetFramework while management library projects should use $(SdkTargetFx) _(defined in AzSdk.reference.props)_ -2. Projects of related packages are grouped together in a folder following the structure specified in [Repo Structure](https://github.com/Azure/azure-sdk/blob/master/docs/policies/repostructure.md) +2. Projects of related packages are grouped together in a folder following the structure specified in [Repo Structure](https://github.com/Azure/azure-sdk/blob/main/docs/policies/repostructure.md) - Client library packages are in a folder name like **_Microsoft.Azure.< ServiceName >_** - Management library packages are in a folder named like **_Microsoft.Azure.Management.< Resource Provider Name >_** 3. Each shipping package contains a project for their **generated** and /or **Customization** code @@ -520,7 +520,7 @@ Much of the management plane SDK code is generated from metadata specs about the ## Versioning -For more information on how we version see [Versioning](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/dev/Versioning.md) +For more information on how we version see [Versioning](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/dev/Versioning.md) ## Breaking Changes diff --git a/README.md b/README.md index 57c5c5a0c085..7799d73397b0 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Each service might have a number of libraries available from each of the followi ### Client: New Releases -New wave of packages that we are announcing as **GA** and several that are currently releasing in **preview**. These libraries follow the [Azure SDK Design Guidelines for .NET](https://azure.github.io/azure-sdk/dotnet/guidelines/) and share a number of core features such as HTTP retries, logging, transport protocols, authentication protocols, etc., so that once you learn how to use these features in one client library, you will know how to use them in other client libraries. You can learn about these shared features at [Azure.Core](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md). +New wave of packages that we are announcing as **GA** and several that are currently releasing in **preview**. These libraries follow the [Azure SDK Design Guidelines for .NET](https://azure.github.io/azure-sdk/dotnet/guidelines/) and share a number of core features such as HTTP retries, logging, transport protocols, authentication protocols, etc., so that once you learn how to use these features in one client library, you will know how to use them in other client libraries. You can learn about these shared features at [Azure.Core](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md). These new client libraries can be identified by the naming used for their folder, package, and namespace. Each will start with `Azure`, followed by the service category, and then the name of the service. For example `Azure.Storage.Blobs`. @@ -33,9 +33,9 @@ Last stable versions of packages that are production-ready. These libraries prov ### Management: New Releases -A new set of management libraries that follow the [Azure SDK Design Guidelines for .NET](https://azure.github.io/azure-sdk/dotnet_introduction.html) and based on [Azure.Core libraries](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core) are now in Public Preview. These new libraries provide a number of core capabilities that are shared amongst all Azure SDKs, including the intuitive Azure Identity library, an HTTP Pipeline with custom policies, error-handling, distributed tracing, and much more. You can find the list of new packages [on this page](https://azure.github.io/azure-sdk/releases/latest/dotnet.html). +A new set of management libraries that follow the [Azure SDK Design Guidelines for .NET](https://azure.github.io/azure-sdk/dotnet_introduction.html) and based on [Azure.Core libraries](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core) are now in Public Preview. These new libraries provide a number of core capabilities that are shared amongst all Azure SDKs, including the intuitive Azure Identity library, an HTTP Pipeline with custom policies, error-handling, distributed tracing, and much more. You can find the list of new packages [on this page](https://azure.github.io/azure-sdk/releases/latest/dotnet.html). -To get started with these new libraries, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md). These new libraries can be identified by namespaces that start with `Azure.ResourceManager`, e.g. `Azure.ResourceManager.Network` +To get started with these new libraries, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md). These new libraries can be identified by namespaces that start with `Azure.ResourceManager`, e.g. `Azure.ResourceManager.Network` > NOTE: If you need to ensure your code is ready for production use one of the stable, non-preview libraries. @@ -72,7 +72,7 @@ What features are important to you? You can let us know by looking at our open We would love to incorporate the community's input into our library design process. Here's a list of [design discussions](https://github.com/Azure/azure-sdk-for-net/labels/design-discussion) that we're currently having. Participate in the discussions by leaving your comments in the issue! ## Contributing -For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/master/CONTRIBUTING.md). +For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/main/CONTRIBUTING.md). This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com. diff --git a/doc/README.md b/doc/README.md index 2b52a504373f..fbf070de9477 100644 --- a/doc/README.md +++ b/doc/README.md @@ -2,7 +2,7 @@ This folder contains some documentations for this repository: The folder structure is the following -- [dev](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/dev) : contains advanced documentation for _developers_ of SDK (not _consumers_ of SDK) -- [ApiDocGeneration](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/ApiDocGeneration) : contains scripts and assets for generating API documentation +- [dev](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/dev) : contains advanced documentation for _developers_ of SDK (not _consumers_ of SDK) +- [ApiDocGeneration](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/ApiDocGeneration) : contains scripts and assets for generating API documentation ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fdoc%2FREADME.png) diff --git a/doc/dev/Track2TestFramework.md b/doc/dev/Track2TestFramework.md index b18bc7102c46..037f4de9e504 100644 --- a/doc/dev/Track2TestFramework.md +++ b/doc/dev/Track2TestFramework.md @@ -1 +1 @@ -See the project [readme](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core.TestFramework/README.md). +See the project [readme](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core.TestFramework/README.md). diff --git a/doc/dev/Versioning.md b/doc/dev/Versioning.md index c8606943dcb3..b5d2f3c8a64d 100644 --- a/doc/dev/Versioning.md +++ b/doc/dev/Versioning.md @@ -1,6 +1,6 @@ # Azure SDK .NET - Versioning -This document covers the basic versioning strategy and which properties to use. It is based on the rules outlined in our [Azure SDK Releases doc](https://github.com/Azure/azure-sdk/blob/master/docs/policies/releases.md#net) and it closely matches the [.NET versioning rules](https://github.com/dotnet/arcade/blob/master/Documentation/CorePackages/Versioning.md) but simplified to only include the parts necessary for our libraries. +This document covers the basic versioning strategy and which properties to use. It is based on the rules outlined in our [Azure SDK Releases doc](https://github.com/Azure/azure-sdk/blob/main/docs/policies/releases.md#net) and it closely matches the [.NET versioning rules](https://github.com/dotnet/arcade/blob/master/Documentation/CorePackages/Versioning.md) but simplified to only include the parts necessary for our libraries. ## Package Versioning @@ -23,7 +23,7 @@ be passed as `true` to the packaging command. ## Incrementing the version -See [Incrementing after release](https://github.com/Azure/azure-sdk/blob/master/docs/policies/releases.md#incrementing-after-release) for general guidance but at a +See [Incrementing after release](https://github.com/Azure/azure-sdk/blob/main/docs/policies/releases.md#incrementing-after-release) for general guidance but at a high level we will do the following versioning changes: - After a beta release we bump the number after the beta. `1.0.0-beta.1` -> `1.0.0-beta.2` diff --git a/eng/Directory.Build.Common.targets b/eng/Directory.Build.Common.targets index de34bbe5f6a2..9cabecdd78e6 100644 --- a/eng/Directory.Build.Common.targets +++ b/eng/Directory.Build.Common.targets @@ -1,4 +1,7 @@  + + + @@ -43,6 +46,32 @@ + + $([MSBuild]::NormalizeDirectory($(MSBuildProjectDirectory)/../))README.md + $(IntermediateOutputPath)README.md + true + README.md + + + + + + + + + + + <_ReadmeMdLines>$([System.IO.File]::ReadAllText($(OriginalReadmeMdPath))) + + + <_ReadmeMdLines>', ''))]]> + + <_ReadmeMdLines> + + + + + @@ -68,7 +97,6 @@ - @@ -103,8 +131,6 @@ - - diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index da4cf09f2b74..28e2ca042947 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -77,11 +77,11 @@ - + - + @@ -98,7 +98,7 @@ - + - + @@ -210,9 +210,9 @@ - - - + + + diff --git a/eng/common/README.md b/eng/common/README.md index b9867f0705e2..732688daadc0 100644 --- a/eng/common/README.md +++ b/eng/common/README.md @@ -1,3 +1,3 @@ # Common Engineering System -Updates under this directory should only be made in the `azure-sdk-tools` repo as any changes under this directory outside of that repo will end up getting overwritten with future updates. For information about making updates see [common engineering system docs](https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md) +Updates under this directory should only be made in the `azure-sdk-tools` repo as any changes under this directory outside of that repo will end up getting overwritten with future updates. For information about making updates see [common engineering system docs](https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md) diff --git a/eng/common/docgeneration/Generate-DocIndex.ps1 b/eng/common/docgeneration/Generate-DocIndex.ps1 index 82b3a75e4e53..cf9b5f06ff95 100644 --- a/eng/common/docgeneration/Generate-DocIndex.ps1 +++ b/eng/common/docgeneration/Generate-DocIndex.ps1 @@ -177,5 +177,5 @@ else { LogWarning "The function for 'GetGithubIoDocIndexFn' was not found.` Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.` - See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure" + See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure" } diff --git a/eng/common/pipelines/templates/steps/check-spelling.yml b/eng/common/pipelines/templates/steps/check-spelling.yml index 3865a3f26ece..986d729fc30c 100644 --- a/eng/common/pipelines/templates/steps/check-spelling.yml +++ b/eng/common/pipelines/templates/steps/check-spelling.yml @@ -2,7 +2,7 @@ # and some ref (branch, tag, etc.) or commit hash. Only runs on PRs. # ContinueOnError - true: Pipeline warns on spelling error # false: Pipeline fails on spelling error -# TargetBranch - Target ref (e.g. master) to compare to create file change +# TargetBranch - Target ref (e.g. main) to compare to create file change # list. # CspellConfigPath - Path to cspell.json config location diff --git a/eng/common/pipelines/templates/steps/docs-metadata-release.yml b/eng/common/pipelines/templates/steps/docs-metadata-release.yml index b3c844422585..2f58b90d4d10 100644 --- a/eng/common/pipelines/templates/steps/docs-metadata-release.yml +++ b/eng/common/pipelines/templates/steps/docs-metadata-release.yml @@ -26,7 +26,7 @@ parameters: default: '' - name: PRBranchName type: string - default: 'master-rdme' + default: 'main-rdme' - name: PRLabels type: string default: 'auto-merge' diff --git a/eng/common/pipelines/templates/steps/eng-common-workflow-enforcer.yml b/eng/common/pipelines/templates/steps/eng-common-workflow-enforcer.yml index 0125e6cbacee..b68e1cd0c27a 100644 --- a/eng/common/pipelines/templates/steps/eng-common-workflow-enforcer.yml +++ b/eng/common/pipelines/templates/steps/eng-common-workflow-enforcer.yml @@ -16,7 +16,7 @@ steps: if (($LASTEXITCODE -eq 0) -and ($filesInCommonDir.Count -gt 0)) { Write-Host "##vso[task.LogIssue type=error;]Changes to files under 'eng/common' directory should not be made in this Repo`n${filesInCommonDir}" - Write-Host "##vso[task.LogIssue type=error;]Please follow workflow at https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md" + Write-Host "##vso[task.LogIssue type=error;]Please follow workflow at https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md" exit 1 } } diff --git a/eng/common/pipelines/templates/steps/install-pipeline-generation.yml b/eng/common/pipelines/templates/steps/install-pipeline-generation.yml index d0da703285f3..d368d52595b3 100644 --- a/eng/common/pipelines/templates/steps/install-pipeline-generation.yml +++ b/eng/common/pipelines/templates/steps/install-pipeline-generation.yml @@ -9,7 +9,7 @@ steps: - script: > dotnet tool install Azure.Sdk.Tools.PipelineGenerator - --version 1.0.2-dev.20210309.1 + --version 1.0.2-dev.20210621.4 --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk/nuget/v3/index.json --tool-path ${{parameters.ToolPath}} workingDirectory: $(Pipeline.Workspace)/pipeline-generator diff --git a/eng/common/pipelines/templates/steps/set-default-branch.yml b/eng/common/pipelines/templates/steps/set-default-branch.yml index e3eed4512d97..491edaa8b68d 100644 --- a/eng/common/pipelines/templates/steps/set-default-branch.yml +++ b/eng/common/pipelines/templates/steps/set-default-branch.yml @@ -5,8 +5,8 @@ steps: - pwsh: | $setDefaultBranch = (git remote show ${{ parameters.RemoteRepo }} | Out-String) -replace "(?ms).*HEAD branch: (\w+).*", '$1' if ($LASTEXITCODE -ne 0) { - Write-Host "Not able to fetch the default branch from git command. Set to master." - $setDefaultBranch = 'master' + Write-Host "Not able to fetch the default branch from git command. Set to main." + $setDefaultBranch = 'main' } Write-Host "Setting DefaultBranch=$setDefaultBranch" Write-Host "##vso[task.setvariable variable=DefaultBranch]$setDefaultBranch" diff --git a/eng/common/scripts/Create-APIReview.ps1 b/eng/common/scripts/Create-APIReview.ps1 index 8b9007253274..0ef5e0ba6818 100644 --- a/eng/common/scripts/Create-APIReview.ps1 +++ b/eng/common/scripts/Create-APIReview.ps1 @@ -71,7 +71,7 @@ else { Write-Host "The function for 'FindArtifactForApiReviewFn' was not found.` Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.` - See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure" + See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure" exit(1) } @@ -104,7 +104,7 @@ if ($packages) Write-Host "Version: $($version)" Write-Host "SDK Type: $($pkgInfo.SdkType)" - # Run create review step only if build is triggered from master branch or if version is GA. + # Run create review step only if build is triggered from main branch or if version is GA. # This is to avoid invalidating review status by a build triggered from feature branch if ( ($SourceBranch -eq $DefaultBranch) -or (-not $version.IsPrerelease)) { diff --git a/eng/common/scripts/Package-Properties.ps1 b/eng/common/scripts/Package-Properties.ps1 index 3aadc8d58064..64698a181b7e 100644 --- a/eng/common/scripts/Package-Properties.ps1 +++ b/eng/common/scripts/Package-Properties.ps1 @@ -126,7 +126,7 @@ function Get-AllPkgProperties ([string]$ServiceDirectory = $null) return $pkgPropsResult } -# Given the metadata url under https://github.com/Azure/azure-sdk/tree/master/_data/releases/latest, +# Given the metadata url under https://github.com/Azure/azure-sdk/tree/main/_data/releases/latest, # the function will return the csv metadata back as part of response. function Get-CSVMetadata ([string]$MetadataUri=$MetadataUri) { @@ -143,7 +143,7 @@ function Get-PkgPropsForEntireService ($serviceDirectoryPath) { LogError "The function for '$GetPackageInfoFromRepoFn' was not found.` Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.` - See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure" + See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure" } foreach ($directory in (Get-ChildItem $serviceDirectoryPath -Directory)) diff --git a/eng/common/scripts/Prepare-Release.ps1 b/eng/common/scripts/Prepare-Release.ps1 index eed113299a2e..95f175d3fdaf 100644 --- a/eng/common/scripts/Prepare-Release.ps1 +++ b/eng/common/scripts/Prepare-Release.ps1 @@ -180,7 +180,7 @@ else { LogError "The function 'SetPackageVersion' was not found.` Make sure it is present in eng/scripts/Language-Settings.ps1.` - See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure" + See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure" exit 1 } diff --git a/eng/common/scripts/Update-DocsMsPackages.ps1 b/eng/common/scripts/Update-DocsMsPackages.ps1 index 2d43127b2b14..4292200f3b6f 100644 --- a/eng/common/scripts/Update-DocsMsPackages.ps1 +++ b/eng/common/scripts/Update-DocsMsPackages.ps1 @@ -31,6 +31,6 @@ if ($UpdateDocsMsPackagesFn -and (Test-Path "Function:$UpdateDocsMsPackagesFn")) } else { LogError "The function for '$UpdateFn' was not found.` Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.` - See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure" + See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure" exit 1 } diff --git a/eng/common/scripts/artifact-metadata-parsing.ps1 b/eng/common/scripts/artifact-metadata-parsing.ps1 index 2339155b359d..dc96ee917288 100644 --- a/eng/common/scripts/artifact-metadata-parsing.ps1 +++ b/eng/common/scripts/artifact-metadata-parsing.ps1 @@ -101,7 +101,7 @@ function RetrievePackages($artifactLocation) { { LogError "The function for '$GetPackageInfoFromPackageFileFn' was not found.` Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.` - See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure" + See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure" } } diff --git a/eng/common/scripts/copy-docs-to-blobstorage.ps1 b/eng/common/scripts/copy-docs-to-blobstorage.ps1 index 7864e9680f1f..f037dcf51e4f 100644 --- a/eng/common/scripts/copy-docs-to-blobstorage.ps1 +++ b/eng/common/scripts/copy-docs-to-blobstorage.ps1 @@ -240,6 +240,6 @@ else { LogWarning "The function for '$PublishGithubIODocsFn' was not found.` Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.` - See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure" + See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure" } diff --git a/eng/common/scripts/update-docs-metadata.ps1 b/eng/common/scripts/update-docs-metadata.ps1 index fc16fea9e552..6154afd51591 100644 --- a/eng/common/scripts/update-docs-metadata.ps1 +++ b/eng/common/scripts/update-docs-metadata.ps1 @@ -24,7 +24,7 @@ param ( . (Join-Path $PSScriptRoot common.ps1) -$releaseReplaceRegex = "(https://github.com/$RepoId/(?:blob|tree)/)master" +$releaseReplaceRegex = "(https://github.com/$RepoId/(?:blob|tree)/)main" function GetMetaData { if (Test-Path Variable:MetadataUri) { diff --git a/eng/containers/ci.yml b/eng/containers/ci.yml index bc85671ff5ac..1ae7ac990661 100644 --- a/eng/containers/ci.yml +++ b/eng/containers/ci.yml @@ -3,7 +3,6 @@ pr: none trigger: branches: include: - - master - main paths: include: diff --git a/eng/mgmt/mgmtmetadata/cosmos-db_resource-manager.txt b/eng/mgmt/mgmtmetadata/cosmos-db_resource-manager.txt index a169c744260d..10e8f7e4e681 100644 --- a/eng/mgmt/mgmtmetadata/cosmos-db_resource-manager.txt +++ b/eng/mgmt/mgmtmetadata/cosmos-db_resource-manager.txt @@ -3,12 +3,13 @@ AutoRest installed successfully. Commencing code generation Generating CSharp code Executing AutoRest command -cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cosmos-db/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\azure-sdk-for-net\sdk -2021-04-27 17:09:09 UTC +cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cosmos-db/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=E:\azure-sdk-for-net\sdk +Autorest CSharp Version: 2.3.82 +2021-06-15 23:57:32 UTC Azure-rest-api-specs repository information GitHub fork: Azure Branch: master -Commit: c1f66424b3b3636ec4cdb6c911dc75ca9abbe146 +Commit: b392b4e5d04c73acde2c02ed034247ac55b8892f AutoRest information Requested version: v2 -Bootstrapper version: autorest@3.1.4 +Bootstrapper version: autorest@2.0.4413 diff --git a/eng/mgmt/mgmtmetadata/sql_resource-manager.txt b/eng/mgmt/mgmtmetadata/sql_resource-manager.txt index 2133baad2d88..5a9a8a1f62fd 100644 --- a/eng/mgmt/mgmtmetadata/sql_resource-manager.txt +++ b/eng/mgmt/mgmtmetadata/sql_resource-manager.txt @@ -5,11 +5,11 @@ Generating CSharp code Executing AutoRest command cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\azure-sdk-for-net\sdk Autorest CSharp Version: 2.3.82 -2021-06-07 17:20:29 UTC +2021-06-22 17:21:35 UTC Azure-rest-api-specs repository information GitHub fork: Azure Branch: master -Commit: 10c93ad91d3f44f62f2568a5b480c538a7c15daf +Commit: 78c2a3fb24bfd4cd3372520bb9df203561c71487 AutoRest information Requested version: v2 Bootstrapper version: autorest@2.0.4413 diff --git a/eng/pipelines/aggregate-reports.yml b/eng/pipelines/aggregate-reports.yml index 4746a51e1f03..20dfef1641f1 100644 --- a/eng/pipelines/aggregate-reports.yml +++ b/eng/pipelines/aggregate-reports.yml @@ -3,7 +3,7 @@ resources: - pipeline: net-core project: internal source: net - core - branch: master + branch: main tags: - scheduled @@ -12,7 +12,7 @@ trigger: none pr: branches: include: - - master + - main paths: include: - eng/pipelines/aggregate-reports.yml diff --git a/eng/pipelines/mgmt.yml b/eng/pipelines/mgmt.yml index 6419664f1345..ebe205b7d181 100644 --- a/eng/pipelines/mgmt.yml +++ b/eng/pipelines/mgmt.yml @@ -2,7 +2,7 @@ trigger: none pr: branches: include: - - master + - main - '*-preview' - 'feature/cplat*' paths: diff --git a/eng/pipelines/templates/jobs/ci.yml b/eng/pipelines/templates/jobs/ci.yml index cf92d54bd4cc..678e5851e6ce 100644 --- a/eng/pipelines/templates/jobs/ci.yml +++ b/eng/pipelines/templates/jobs/ci.yml @@ -48,10 +48,11 @@ jobs: PackageName: "Azure.Template" ServiceDirectory: "template" TestPipeline: ${{ parameters.TestPipeline }} + - template: /eng/common/pipelines/templates/steps/set-default-branch.yml - pwsh: | echo "##vso[build.addbuildtag]Scheduled" displayName: "Tag scheduled builds" - condition: and(eq(variables['Build.SourceBranchName'],'master'),eq(variables['Build.Reason'],'Schedule')) + condition: and(eq(variables['Build.SourceBranchName'],variables['DefaultBranch']),eq(variables['Build.Reason'],'Schedule')) - template: /eng/common/pipelines/templates/steps/daily-dev-build-variable.yml parameters: ServiceDirectory: ${{ parameters.ServiceDirectory }} diff --git a/eng/scripts/Update-Mgmt-Yml.ps1 b/eng/scripts/Update-Mgmt-Yml.ps1 index d6fcf3d81ed0..e4503df207e5 100644 --- a/eng/scripts/Update-Mgmt-Yml.ps1 +++ b/eng/scripts/Update-Mgmt-Yml.ps1 @@ -57,6 +57,7 @@ foreach ($Item in $MgmtDirs) { # Ci and Pr section $PrIncludes.Add('master') +$PrIncludes.Add('main') $PrIncludes.Add('*-preview') $PrBranches.Add("include", $PrIncludes) $PrPaths.Add("include", $Includes) diff --git a/eng/templates/Azure.ResourceManager.Template/README.md b/eng/templates/Azure.ResourceManager.Template/README.md index ea53651aebaa..8c2956b5f071 100644 --- a/eng/templates/Azure.ResourceManager.Template/README.md +++ b/eng/templates/Azure.ResourceManager.Template/README.md @@ -18,7 +18,7 @@ Install-Package Azure.ResourceManager.Template -Version 1.0.0-preview.1 ### Authenticate the Client -To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) ## Key concepts @@ -28,9 +28,9 @@ Key concepts of the Azure .NET SDK can be found [here](https://azure.github.io/a Documentation is available to help you learn how to use this package -- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) - [API References](https://docs.microsoft.com/dotnet/api/?view=azure-dotnet) -- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md) +- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md) ## Examples diff --git a/eng/templates/Azure.ResourceManager.Template/content/ci.yml b/eng/templates/Azure.ResourceManager.Template/content/ci.yml index 9f091158a2a5..b603625002ad 100644 --- a/eng/templates/Azure.ResourceManager.Template/content/ci.yml +++ b/eng/templates/Azure.ResourceManager.Template/content/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/global.json b/global.json index 8ec079bafb63..3f72da14e86d 100644 --- a/global.json +++ b/global.json @@ -3,7 +3,7 @@ "Microsoft.Build.Traversal": "1.0.45" }, "sdk": { - "version": "5.0.200", + "version": "5.0.301", "rollForward": "feature" } } \ No newline at end of file diff --git a/samples/README.MD b/samples/README.MD index 177407ae8a4e..28f6eb4c75ff 100644 --- a/samples/README.MD +++ b/samples/README.MD @@ -16,7 +16,7 @@ The Azure SDK repository is organized in the following folder structure, with th             `/tests`
## Getting Started (a.k.a. `Hello World`) Samples -Each package folder contains a package-specific `README.md` file. Most of these `README` files contain `Hello World` code samples illustrating basic usage of the the APIs contained in the package. For example, you can find `Hello World` samples for the `Azure.Storage.Blobs` package [here](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/README.md#examples). +Each package folder contains a package-specific `README.md` file. Most of these `README` files contain `Hello World` code samples illustrating basic usage of the the APIs contained in the package. For example, you can find `Hello World` samples for the `Azure.Storage.Blobs` package [here](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/README.md#examples). ## Package Samples and How-To Guides Each package folder contains a subfolder called `samples` with additional code samples. These samples can be either short programs contained in `*.cs` files, or more complete how-to guides (code samples and some commentary) contained in `*.md` files. You can find shortcuts to main how-to guides in the [**How-To Guides List**](#how-to-guide-list) section below. @@ -29,17 +29,17 @@ Sometimes we want to illustrate how several APIs or even packages work together This section lists **main** how-to guides for the most commonly used APIs and most common scenarios, i.e. this section does not attempt to be a complete directory of guides contained in this repository. #### General How-To Guides -- [How to access **HTTP response details**](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Response.md) -- [How to **mock**](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Mocking.md) -- [How to configure **retries**](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Configuration.md) -- [How to configure **proxies**](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Configuration.md) +- [How to access **HTTP response details**](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Response.md) +- [How to **mock**](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Mocking.md) +- [How to configure **retries**](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Configuration.md) +- [How to configure **proxies**](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Configuration.md) - How to configure, access, and analyze **logging** information (TODO) #### Azure.Security.KeyVault -- [How to **create and delete keys**](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample1_HelloWorld.md) -- [How to **encrypt and decrypt keys**](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample4_EncryptDecrypt.md) -- [How to **backup and restore keys**](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample2_BackupAndRestore.md) -- [How to **backup and restore secrets**](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample2_BackupAndRestore.md) +- [How to **create and delete keys**](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample1_HelloWorld.md) +- [How to **encrypt and decrypt keys**](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample4_EncryptDecrypt.md) +- [How to **backup and restore keys**](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample2_BackupAndRestore.md) +- [How to **backup and restore secrets**](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample2_BackupAndRestore.md) #### Azure.Storage.Blobs -- [How to **upload and download** a blob](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/samples/Sample01a_HelloWorld.cs) +- [How to **upload and download** a blob](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/samples/Sample01a_HelloWorld.cs) diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/README.md b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/README.md index 89f5ea91ed74..9fdf2e4aa17b 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/README.md +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/README.md @@ -65,12 +65,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -121,14 +121,14 @@ When you submit a pull request, a CLA-bot will automatically determine whether y This project has adopted the [Microsoft Open Source Code of Conduct][code_of_conduct]. For more information see the [Code of Conduct FAQ][coc_faq] or contact [opencode@microsoft.com][coc_contact] with any additional questions or comments. -[source_code]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/agrifood/Azure.Verticals.AgriFood.Farming +[source_code]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/agrifood/Azure.Verticals.AgriFood.Farming [client_nuget_package]: https://www.nuget.org/packages?q=Azure.Verticals.AgriFood.Farming [product_documentation]: https://aka.ms/FarmBeatsProductDocumentationPaaS -[azure_identity]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity +[azure_identity]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity [protocol_client_quickstart]: https://aka.ms/azsdk/net/protocol/quickstart [default_cred_ref]: https://docs.microsoft.com/dotnet/api/azure.identity.defaultazurecredential?view=azure-dotnet [azure_subscription]: https://azure.microsoft.com/free/ -[azure_core_diagnostics]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md +[azure_core_diagnostics]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md [scenes]: https://aka.ms/FarmBeatsSatellitePaaSDocumentation [farm_operations_docs]: https://aka.ms/FarmBeatsFarmOperationsDocumentation [farm_hierarchy]: https://aka.ms/FarmBeatsFarmHierarchyDocs diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/api/Azure.Verticals.AgriFood.Farming.netstandard2.0.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/api/Azure.Verticals.AgriFood.Farming.netstandard2.0.cs index 15855c5320ea..f1af9740b6cd 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/api/Azure.Verticals.AgriFood.Farming.netstandard2.0.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/api/Azure.Verticals.AgriFood.Farming.netstandard2.0.cs @@ -5,88 +5,88 @@ public partial class ApplicationDataClient protected ApplicationDataClient() { } public ApplicationDataClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Verticals.AgriFood.Farming.FarmBeatsClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateOrUpdate(string farmerId, string applicationDataId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string farmerId, string applicationDataId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Delete(string farmerId, string applicationDataId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(string farmerId, string applicationDataId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Get(string farmerId, string applicationDataId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAsync(string farmerId, string applicationDataId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response List(double? minAvgMaterial = default(double?), double? maxAvgMaterial = default(double?), double? minTotalMaterial = default(double?), double? maxTotalMaterial = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListAsync(double? minAvgMaterial = default(double?), double? maxAvgMaterial = default(double?), double? minTotalMaterial = default(double?), double? maxTotalMaterial = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response ListByFarmerId(string farmerId, double? minAvgMaterial = default(double?), double? maxAvgMaterial = default(double?), double? minTotalMaterial = default(double?), double? maxTotalMaterial = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListByFarmerIdAsync(string farmerId, double? minAvgMaterial = default(double?), double? maxAvgMaterial = default(double?), double? minTotalMaterial = default(double?), double? maxTotalMaterial = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateOrUpdate(string farmerId, string applicationDataId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string farmerId, string applicationDataId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Delete(string farmerId, string applicationDataId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string farmerId, string applicationDataId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Get(string farmerId, string applicationDataId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(string farmerId, string applicationDataId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response List(double? minAvgMaterial = default(double?), double? maxAvgMaterial = default(double?), double? minTotalMaterial = default(double?), double? maxTotalMaterial = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListAsync(double? minAvgMaterial = default(double?), double? maxAvgMaterial = default(double?), double? minTotalMaterial = default(double?), double? maxTotalMaterial = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response ListByFarmerId(string farmerId, double? minAvgMaterial = default(double?), double? maxAvgMaterial = default(double?), double? minTotalMaterial = default(double?), double? maxTotalMaterial = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListByFarmerIdAsync(string farmerId, double? minAvgMaterial = default(double?), double? maxAvgMaterial = default(double?), double? minTotalMaterial = default(double?), double? maxTotalMaterial = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } } public partial class AttachmentsClient { protected AttachmentsClient() { } public AttachmentsClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Verticals.AgriFood.Farming.FarmBeatsClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateOrUpdate(string farmerId, string attachmentId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string farmerId, string attachmentId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Delete(string farmerId, string attachmentId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(string farmerId, string attachmentId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Download(string farmerId, string attachmentId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DownloadAsync(string farmerId, string attachmentId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Get(string farmerId, string attachmentId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAsync(string farmerId, string attachmentId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response ListByFarmerId(string farmerId, System.Collections.Generic.IEnumerable resourceIds = null, System.Collections.Generic.IEnumerable resourceTypes = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListByFarmerIdAsync(string farmerId, System.Collections.Generic.IEnumerable resourceIds = null, System.Collections.Generic.IEnumerable resourceTypes = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateOrUpdate(string farmerId, string attachmentId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string farmerId, string attachmentId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Delete(string farmerId, string attachmentId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string farmerId, string attachmentId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Download(string farmerId, string attachmentId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DownloadAsync(string farmerId, string attachmentId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Get(string farmerId, string attachmentId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(string farmerId, string attachmentId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response ListByFarmerId(string farmerId, System.Collections.Generic.IEnumerable resourceIds = null, System.Collections.Generic.IEnumerable resourceTypes = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListByFarmerIdAsync(string farmerId, System.Collections.Generic.IEnumerable resourceIds = null, System.Collections.Generic.IEnumerable resourceTypes = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } } public partial class BoundariesClient { protected BoundariesClient() { } public BoundariesClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Verticals.AgriFood.Farming.FarmBeatsClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateCascadeDeleteJob(string jobId, string farmerId, string boundaryId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateCascadeDeleteJobAsync(string jobId, string farmerId, string boundaryId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response CreateOrUpdate(string farmerId, string boundaryId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string farmerId, string boundaryId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Delete(string farmerId, string boundaryId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(string farmerId, string boundaryId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Get(string farmerId, string boundaryId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAsync(string farmerId, string boundaryId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetOverlap(string farmerId, string boundaryId, string otherFarmerId, string otherBoundaryId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetOverlapAsync(string farmerId, string boundaryId, string otherFarmerId, string otherBoundaryId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response List(bool? isPrimary = default(bool?), string parentType = null, System.Collections.Generic.IEnumerable parentIds = null, double? minAcreage = default(double?), double? maxAcreage = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListAsync(bool? isPrimary = default(bool?), string parentType = null, System.Collections.Generic.IEnumerable parentIds = null, double? minAcreage = default(double?), double? maxAcreage = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response ListByFarmerId(string farmerId, bool? isPrimary = default(bool?), string parentType = null, System.Collections.Generic.IEnumerable parentIds = null, double? minAcreage = default(double?), double? maxAcreage = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListByFarmerIdAsync(string farmerId, bool? isPrimary = default(bool?), string parentType = null, System.Collections.Generic.IEnumerable parentIds = null, double? minAcreage = default(double?), double? maxAcreage = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Search(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task SearchAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response SearchByFarmerId(string farmerId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task SearchByFarmerIdAsync(string farmerId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateCascadeDeleteJob(string jobId, string farmerId, string boundaryId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateCascadeDeleteJobAsync(string jobId, string farmerId, string boundaryId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response CreateOrUpdate(string farmerId, string boundaryId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string farmerId, string boundaryId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Delete(string farmerId, string boundaryId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string farmerId, string boundaryId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Get(string farmerId, string boundaryId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(string farmerId, string boundaryId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetOverlap(string farmerId, string boundaryId, string otherFarmerId, string otherBoundaryId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetOverlapAsync(string farmerId, string boundaryId, string otherFarmerId, string otherBoundaryId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response List(bool? isPrimary = default(bool?), string parentType = null, System.Collections.Generic.IEnumerable parentIds = null, double? minAcreage = default(double?), double? maxAcreage = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListAsync(bool? isPrimary = default(bool?), string parentType = null, System.Collections.Generic.IEnumerable parentIds = null, double? minAcreage = default(double?), double? maxAcreage = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response ListByFarmerId(string farmerId, bool? isPrimary = default(bool?), string parentType = null, System.Collections.Generic.IEnumerable parentIds = null, double? minAcreage = default(double?), double? maxAcreage = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListByFarmerIdAsync(string farmerId, bool? isPrimary = default(bool?), string parentType = null, System.Collections.Generic.IEnumerable parentIds = null, double? minAcreage = default(double?), double? maxAcreage = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Search(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task SearchAsync(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response SearchByFarmerId(string farmerId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task SearchByFarmerIdAsync(string farmerId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } } public partial class CropsClient { protected CropsClient() { } public CropsClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Verticals.AgriFood.Farming.FarmBeatsClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateOrUpdate(string cropId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string cropId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Delete(string cropId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(string cropId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Get(string cropId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAsync(string cropId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response List(System.Collections.Generic.IEnumerable phenotypes = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListAsync(System.Collections.Generic.IEnumerable phenotypes = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateOrUpdate(string cropId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string cropId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Delete(string cropId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string cropId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Get(string cropId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(string cropId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response List(System.Collections.Generic.IEnumerable phenotypes = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListAsync(System.Collections.Generic.IEnumerable phenotypes = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } } public partial class CropVarietiesClient { protected CropVarietiesClient() { } public CropVarietiesClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Verticals.AgriFood.Farming.FarmBeatsClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateOrUpdate(string cropId, string cropVarietyId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string cropId, string cropVarietyId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Delete(string cropId, string cropVarietyId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(string cropId, string cropVarietyId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Get(string cropId, string cropVarietyId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAsync(string cropId, string cropVarietyId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response List(System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable brands = null, System.Collections.Generic.IEnumerable products = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListAsync(System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable brands = null, System.Collections.Generic.IEnumerable products = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response ListByCropId(string cropId, System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable brands = null, System.Collections.Generic.IEnumerable products = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListByCropIdAsync(string cropId, System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable brands = null, System.Collections.Generic.IEnumerable products = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateOrUpdate(string cropId, string cropVarietyId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string cropId, string cropVarietyId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Delete(string cropId, string cropVarietyId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string cropId, string cropVarietyId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Get(string cropId, string cropVarietyId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(string cropId, string cropVarietyId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response List(System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable brands = null, System.Collections.Generic.IEnumerable products = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListAsync(System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable brands = null, System.Collections.Generic.IEnumerable products = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response ListByCropId(string cropId, System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable brands = null, System.Collections.Generic.IEnumerable products = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListByCropIdAsync(string cropId, System.Collections.Generic.IEnumerable cropIds = null, System.Collections.Generic.IEnumerable brands = null, System.Collections.Generic.IEnumerable products = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } } public partial class FarmBeatsClientOptions : Azure.Core.ClientOptions { @@ -101,217 +101,217 @@ public partial class FarmClient protected FarmClient() { } public FarmClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Verticals.AgriFood.Farming.FarmBeatsClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateDataIngestionJob(string jobId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateDataIngestionJobAsync(string jobId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetDataIngestionJobDetails(string jobId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetDataIngestionJobDetailsAsync(string jobId, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateDataIngestionJob(string jobId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateDataIngestionJobAsync(string jobId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetDataIngestionJobDetails(string jobId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetDataIngestionJobDetailsAsync(string jobId, Azure.RequestOptions options = null) { throw null; } } public partial class FarmersClient { protected FarmersClient() { } public FarmersClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Verticals.AgriFood.Farming.FarmBeatsClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateCascadeDeleteJob(string jobId, string farmerId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateCascadeDeleteJobAsync(string jobId, string farmerId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response CreateOrUpdate(string farmerId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string farmerId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Delete(string farmerId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(string farmerId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Get(string farmerId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAsync(string farmerId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response List(System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListAsync(System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateCascadeDeleteJob(string jobId, string farmerId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateCascadeDeleteJobAsync(string jobId, string farmerId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response CreateOrUpdate(string farmerId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string farmerId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Delete(string farmerId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string farmerId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Get(string farmerId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(string farmerId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response List(System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListAsync(System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } } public partial class FarmsClient { protected FarmsClient() { } public FarmsClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Verticals.AgriFood.Farming.FarmBeatsClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateCascadeDeleteJob(string jobId, string farmerId, string farmId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateCascadeDeleteJobAsync(string jobId, string farmerId, string farmId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response CreateOrUpdate(string farmerId, string farmId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string farmerId, string farmId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Delete(string farmerId, string farmId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(string farmerId, string farmId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Get(string farmerId, string farmId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAsync(string farmerId, string farmId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response List(System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListAsync(System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response ListByFarmerId(string farmerId, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListByFarmerIdAsync(string farmerId, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateCascadeDeleteJob(string jobId, string farmerId, string farmId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateCascadeDeleteJobAsync(string jobId, string farmerId, string farmId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response CreateOrUpdate(string farmerId, string farmId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string farmerId, string farmId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Delete(string farmerId, string farmId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string farmerId, string farmId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Get(string farmerId, string farmId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(string farmerId, string farmId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response List(System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListAsync(System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response ListByFarmerId(string farmerId, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListByFarmerIdAsync(string farmerId, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } } public partial class FieldsClient { protected FieldsClient() { } public FieldsClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Verticals.AgriFood.Farming.FarmBeatsClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateCascadeDeleteJob(string jobId, string farmerId, string fieldId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateCascadeDeleteJobAsync(string jobId, string farmerId, string fieldId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response CreateOrUpdate(string farmerId, string fieldId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string farmerId, string fieldId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Delete(string farmerId, string fieldId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(string farmerId, string fieldId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Get(string farmerId, string fieldId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAsync(string farmerId, string fieldId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response List(System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListAsync(System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response ListByFarmerId(string farmerId, System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListByFarmerIdAsync(string farmerId, System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateCascadeDeleteJob(string jobId, string farmerId, string fieldId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateCascadeDeleteJobAsync(string jobId, string farmerId, string fieldId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response CreateOrUpdate(string farmerId, string fieldId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string farmerId, string fieldId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Delete(string farmerId, string fieldId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string farmerId, string fieldId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Get(string farmerId, string fieldId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(string farmerId, string fieldId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response List(System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListAsync(System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response ListByFarmerId(string farmerId, System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListByFarmerIdAsync(string farmerId, System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } } public partial class HarvestDataClient { protected HarvestDataClient() { } public HarvestDataClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Verticals.AgriFood.Farming.FarmBeatsClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateOrUpdate(string farmerId, string harvestDataId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string farmerId, string harvestDataId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Delete(string farmerId, string harvestDataId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(string farmerId, string harvestDataId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Get(string farmerId, string harvestDataId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAsync(string farmerId, string harvestDataId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response List(double? minTotalYield = default(double?), double? maxTotalYield = default(double?), double? minAvgYield = default(double?), double? maxAvgYield = default(double?), double? minTotalWetMass = default(double?), double? maxTotalWetMass = default(double?), double? minAvgWetMass = default(double?), double? maxAvgWetMass = default(double?), double? minAvgMoisture = default(double?), double? maxAvgMoisture = default(double?), double? minAvgSpeed = default(double?), double? maxAvgSpeed = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListAsync(double? minTotalYield = default(double?), double? maxTotalYield = default(double?), double? minAvgYield = default(double?), double? maxAvgYield = default(double?), double? minTotalWetMass = default(double?), double? maxTotalWetMass = default(double?), double? minAvgWetMass = default(double?), double? maxAvgWetMass = default(double?), double? minAvgMoisture = default(double?), double? maxAvgMoisture = default(double?), double? minAvgSpeed = default(double?), double? maxAvgSpeed = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response ListByFarmerId(string farmerId, double? minTotalYield = default(double?), double? maxTotalYield = default(double?), double? minAvgYield = default(double?), double? maxAvgYield = default(double?), double? minTotalWetMass = default(double?), double? maxTotalWetMass = default(double?), double? minAvgWetMass = default(double?), double? maxAvgWetMass = default(double?), double? minAvgMoisture = default(double?), double? maxAvgMoisture = default(double?), double? minAvgSpeed = default(double?), double? maxAvgSpeed = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListByFarmerIdAsync(string farmerId, double? minTotalYield = default(double?), double? maxTotalYield = default(double?), double? minAvgYield = default(double?), double? maxAvgYield = default(double?), double? minTotalWetMass = default(double?), double? maxTotalWetMass = default(double?), double? minAvgWetMass = default(double?), double? maxAvgWetMass = default(double?), double? minAvgMoisture = default(double?), double? maxAvgMoisture = default(double?), double? minAvgSpeed = default(double?), double? maxAvgSpeed = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateOrUpdate(string farmerId, string harvestDataId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string farmerId, string harvestDataId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Delete(string farmerId, string harvestDataId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string farmerId, string harvestDataId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Get(string farmerId, string harvestDataId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(string farmerId, string harvestDataId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response List(double? minTotalYield = default(double?), double? maxTotalYield = default(double?), double? minAvgYield = default(double?), double? maxAvgYield = default(double?), double? minTotalWetMass = default(double?), double? maxTotalWetMass = default(double?), double? minAvgWetMass = default(double?), double? maxAvgWetMass = default(double?), double? minAvgMoisture = default(double?), double? maxAvgMoisture = default(double?), double? minAvgSpeed = default(double?), double? maxAvgSpeed = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListAsync(double? minTotalYield = default(double?), double? maxTotalYield = default(double?), double? minAvgYield = default(double?), double? maxAvgYield = default(double?), double? minTotalWetMass = default(double?), double? maxTotalWetMass = default(double?), double? minAvgWetMass = default(double?), double? maxAvgWetMass = default(double?), double? minAvgMoisture = default(double?), double? maxAvgMoisture = default(double?), double? minAvgSpeed = default(double?), double? maxAvgSpeed = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response ListByFarmerId(string farmerId, double? minTotalYield = default(double?), double? maxTotalYield = default(double?), double? minAvgYield = default(double?), double? maxAvgYield = default(double?), double? minTotalWetMass = default(double?), double? maxTotalWetMass = default(double?), double? minAvgWetMass = default(double?), double? maxAvgWetMass = default(double?), double? minAvgMoisture = default(double?), double? maxAvgMoisture = default(double?), double? minAvgSpeed = default(double?), double? maxAvgSpeed = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListByFarmerIdAsync(string farmerId, double? minTotalYield = default(double?), double? maxTotalYield = default(double?), double? minAvgYield = default(double?), double? maxAvgYield = default(double?), double? minTotalWetMass = default(double?), double? maxTotalWetMass = default(double?), double? minAvgWetMass = default(double?), double? maxAvgWetMass = default(double?), double? minAvgMoisture = default(double?), double? maxAvgMoisture = default(double?), double? minAvgSpeed = default(double?), double? maxAvgSpeed = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } } public partial class ImageProcessingClient { protected ImageProcessingClient() { } public ImageProcessingClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Verticals.AgriFood.Farming.FarmBeatsClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateRasterizeJob(string jobId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateRasterizeJobAsync(string jobId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetRasterizeJob(string jobId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetRasterizeJobAsync(string jobId, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateRasterizeJob(string jobId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateRasterizeJobAsync(string jobId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetRasterizeJob(string jobId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetRasterizeJobAsync(string jobId, Azure.RequestOptions options = null) { throw null; } } public partial class OAuthProvidersClient { protected OAuthProvidersClient() { } public OAuthProvidersClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Verticals.AgriFood.Farming.FarmBeatsClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateOrUpdate(string oauthProviderId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string oauthProviderId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Delete(string oauthProviderId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(string oauthProviderId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Get(string oauthProviderId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAsync(string oauthProviderId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response List(System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListAsync(System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateOrUpdate(string oauthProviderId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string oauthProviderId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Delete(string oauthProviderId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string oauthProviderId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Get(string oauthProviderId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(string oauthProviderId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response List(System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListAsync(System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } } public partial class OAuthTokensClient { protected OAuthTokensClient() { } public OAuthTokensClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Verticals.AgriFood.Farming.FarmBeatsClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateCascadeDeleteJob(string jobId, string farmerId, string oauthProviderId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateCascadeDeleteJobAsync(string jobId, string farmerId, string oauthProviderId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetOAuthConnectionLink(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetOAuthConnectionLinkAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response List(System.Collections.Generic.IEnumerable authProviderIds = null, System.Collections.Generic.IEnumerable farmerIds = null, bool? isValid = default(bool?), System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListAsync(System.Collections.Generic.IEnumerable authProviderIds = null, System.Collections.Generic.IEnumerable farmerIds = null, bool? isValid = default(bool?), System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateCascadeDeleteJob(string jobId, string farmerId, string oauthProviderId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateCascadeDeleteJobAsync(string jobId, string farmerId, string oauthProviderId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetOAuthConnectionLink(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetOAuthConnectionLinkAsync(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response List(System.Collections.Generic.IEnumerable authProviderIds = null, System.Collections.Generic.IEnumerable farmerIds = null, bool? isValid = default(bool?), System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListAsync(System.Collections.Generic.IEnumerable authProviderIds = null, System.Collections.Generic.IEnumerable farmerIds = null, bool? isValid = default(bool?), System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } } public partial class PlantingDataClient { protected PlantingDataClient() { } public PlantingDataClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Verticals.AgriFood.Farming.FarmBeatsClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateOrUpdate(string farmerId, string plantingDataId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string farmerId, string plantingDataId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Delete(string farmerId, string plantingDataId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(string farmerId, string plantingDataId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Get(string farmerId, string plantingDataId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAsync(string farmerId, string plantingDataId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response List(double? minAvgPlantingRate = default(double?), double? maxAvgPlantingRate = default(double?), double? minTotalMaterial = default(double?), double? maxTotalMaterial = default(double?), double? minAvgMaterial = default(double?), double? maxAvgMaterial = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListAsync(double? minAvgPlantingRate = default(double?), double? maxAvgPlantingRate = default(double?), double? minTotalMaterial = default(double?), double? maxTotalMaterial = default(double?), double? minAvgMaterial = default(double?), double? maxAvgMaterial = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response ListByFarmerId(string farmerId, double? minAvgPlantingRate = default(double?), double? maxAvgPlantingRate = default(double?), double? minTotalMaterial = default(double?), double? maxTotalMaterial = default(double?), double? minAvgMaterial = default(double?), double? maxAvgMaterial = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListByFarmerIdAsync(string farmerId, double? minAvgPlantingRate = default(double?), double? maxAvgPlantingRate = default(double?), double? minTotalMaterial = default(double?), double? maxTotalMaterial = default(double?), double? minAvgMaterial = default(double?), double? maxAvgMaterial = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateOrUpdate(string farmerId, string plantingDataId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string farmerId, string plantingDataId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Delete(string farmerId, string plantingDataId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string farmerId, string plantingDataId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Get(string farmerId, string plantingDataId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(string farmerId, string plantingDataId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response List(double? minAvgPlantingRate = default(double?), double? maxAvgPlantingRate = default(double?), double? minTotalMaterial = default(double?), double? maxTotalMaterial = default(double?), double? minAvgMaterial = default(double?), double? maxAvgMaterial = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListAsync(double? minAvgPlantingRate = default(double?), double? maxAvgPlantingRate = default(double?), double? minTotalMaterial = default(double?), double? maxTotalMaterial = default(double?), double? minAvgMaterial = default(double?), double? maxAvgMaterial = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response ListByFarmerId(string farmerId, double? minAvgPlantingRate = default(double?), double? maxAvgPlantingRate = default(double?), double? minTotalMaterial = default(double?), double? maxTotalMaterial = default(double?), double? minAvgMaterial = default(double?), double? maxAvgMaterial = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListByFarmerIdAsync(string farmerId, double? minAvgPlantingRate = default(double?), double? maxAvgPlantingRate = default(double?), double? minTotalMaterial = default(double?), double? maxTotalMaterial = default(double?), double? minAvgMaterial = default(double?), double? maxAvgMaterial = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } } public partial class ScenesClient { protected ScenesClient() { } public ScenesClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Verticals.AgriFood.Farming.FarmBeatsClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateSatelliteDataIngestionJob(string jobId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateSatelliteDataIngestionJobAsync(string jobId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Download(string filePath, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DownloadAsync(string filePath, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetSatelliteDataIngestionJobDetails(string jobId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetSatelliteDataIngestionJobDetailsAsync(string jobId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response List(string provider, string farmerId, string boundaryId, string source = null, System.DateTimeOffset? startDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? endDateTime = default(System.DateTimeOffset?), double? maxCloudCoveragePercentage = default(double?), double? maxDarkPixelCoveragePercentage = default(double?), System.Collections.Generic.IEnumerable imageNames = null, System.Collections.Generic.IEnumerable imageResolutions = null, System.Collections.Generic.IEnumerable imageFormats = null, int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListAsync(string provider, string farmerId, string boundaryId, string source = null, System.DateTimeOffset? startDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? endDateTime = default(System.DateTimeOffset?), double? maxCloudCoveragePercentage = default(double?), double? maxDarkPixelCoveragePercentage = default(double?), System.Collections.Generic.IEnumerable imageNames = null, System.Collections.Generic.IEnumerable imageResolutions = null, System.Collections.Generic.IEnumerable imageFormats = null, int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateSatelliteDataIngestionJob(string jobId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateSatelliteDataIngestionJobAsync(string jobId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Download(string filePath, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DownloadAsync(string filePath, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetSatelliteDataIngestionJobDetails(string jobId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetSatelliteDataIngestionJobDetailsAsync(string jobId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response List(string provider, string farmerId, string boundaryId, string source = null, System.DateTimeOffset? startDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? endDateTime = default(System.DateTimeOffset?), double? maxCloudCoveragePercentage = default(double?), double? maxDarkPixelCoveragePercentage = default(double?), System.Collections.Generic.IEnumerable imageNames = null, System.Collections.Generic.IEnumerable imageResolutions = null, System.Collections.Generic.IEnumerable imageFormats = null, int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListAsync(string provider, string farmerId, string boundaryId, string source = null, System.DateTimeOffset? startDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? endDateTime = default(System.DateTimeOffset?), double? maxCloudCoveragePercentage = default(double?), double? maxDarkPixelCoveragePercentage = default(double?), System.Collections.Generic.IEnumerable imageNames = null, System.Collections.Generic.IEnumerable imageResolutions = null, System.Collections.Generic.IEnumerable imageFormats = null, int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } } public partial class SeasonalFieldsClient { protected SeasonalFieldsClient() { } public SeasonalFieldsClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Verticals.AgriFood.Farming.FarmBeatsClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateCascadeDeleteJob(string jobId, string farmerId, string seasonalFieldId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateCascadeDeleteJobAsync(string jobId, string farmerId, string seasonalFieldId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response CreateOrUpdate(string farmerId, string seasonalFieldId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string farmerId, string seasonalFieldId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Delete(string farmerId, string seasonalFieldId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(string farmerId, string seasonalFieldId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Get(string farmerId, string seasonalFieldId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAsync(string farmerId, string seasonalFieldId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response List(System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable cropVarietyIds = null, System.Collections.Generic.IEnumerable cropIds = null, double? minAvgYieldValue = default(double?), double? maxAvgYieldValue = default(double?), string avgYieldUnit = null, double? minAvgSeedPopulationValue = default(double?), double? maxAvgSeedPopulationValue = default(double?), string avgSeedPopulationUnit = null, System.DateTimeOffset? minPlantingDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxPlantingDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListAsync(System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable cropVarietyIds = null, System.Collections.Generic.IEnumerable cropIds = null, double? minAvgYieldValue = default(double?), double? maxAvgYieldValue = default(double?), string avgYieldUnit = null, double? minAvgSeedPopulationValue = default(double?), double? maxAvgSeedPopulationValue = default(double?), string avgSeedPopulationUnit = null, System.DateTimeOffset? minPlantingDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxPlantingDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response ListByFarmerId(string farmerId, System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable cropVarietyIds = null, System.Collections.Generic.IEnumerable cropIds = null, double? minAvgYieldValue = default(double?), double? maxAvgYieldValue = default(double?), string avgYieldUnit = null, double? minAvgSeedPopulationValue = default(double?), double? maxAvgSeedPopulationValue = default(double?), string avgSeedPopulationUnit = null, System.DateTimeOffset? minPlantingDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxPlantingDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListByFarmerIdAsync(string farmerId, System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable cropVarietyIds = null, System.Collections.Generic.IEnumerable cropIds = null, double? minAvgYieldValue = default(double?), double? maxAvgYieldValue = default(double?), string avgYieldUnit = null, double? minAvgSeedPopulationValue = default(double?), double? maxAvgSeedPopulationValue = default(double?), string avgSeedPopulationUnit = null, System.DateTimeOffset? minPlantingDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxPlantingDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateCascadeDeleteJob(string jobId, string farmerId, string seasonalFieldId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateCascadeDeleteJobAsync(string jobId, string farmerId, string seasonalFieldId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response CreateOrUpdate(string farmerId, string seasonalFieldId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string farmerId, string seasonalFieldId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Delete(string farmerId, string seasonalFieldId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string farmerId, string seasonalFieldId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Get(string farmerId, string seasonalFieldId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(string farmerId, string seasonalFieldId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetCascadeDeleteJobDetails(string jobId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetCascadeDeleteJobDetailsAsync(string jobId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response List(System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable cropVarietyIds = null, System.Collections.Generic.IEnumerable cropIds = null, double? minAvgYieldValue = default(double?), double? maxAvgYieldValue = default(double?), string avgYieldUnit = null, double? minAvgSeedPopulationValue = default(double?), double? maxAvgSeedPopulationValue = default(double?), string avgSeedPopulationUnit = null, System.DateTimeOffset? minPlantingDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxPlantingDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListAsync(System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable cropVarietyIds = null, System.Collections.Generic.IEnumerable cropIds = null, double? minAvgYieldValue = default(double?), double? maxAvgYieldValue = default(double?), string avgYieldUnit = null, double? minAvgSeedPopulationValue = default(double?), double? maxAvgSeedPopulationValue = default(double?), string avgSeedPopulationUnit = null, System.DateTimeOffset? minPlantingDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxPlantingDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response ListByFarmerId(string farmerId, System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable cropVarietyIds = null, System.Collections.Generic.IEnumerable cropIds = null, double? minAvgYieldValue = default(double?), double? maxAvgYieldValue = default(double?), string avgYieldUnit = null, double? minAvgSeedPopulationValue = default(double?), double? maxAvgSeedPopulationValue = default(double?), string avgSeedPopulationUnit = null, System.DateTimeOffset? minPlantingDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxPlantingDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListByFarmerIdAsync(string farmerId, System.Collections.Generic.IEnumerable farmIds = null, System.Collections.Generic.IEnumerable fieldIds = null, System.Collections.Generic.IEnumerable seasonIds = null, System.Collections.Generic.IEnumerable cropVarietyIds = null, System.Collections.Generic.IEnumerable cropIds = null, double? minAvgYieldValue = default(double?), double? maxAvgYieldValue = default(double?), string avgYieldUnit = null, double? minAvgSeedPopulationValue = default(double?), double? maxAvgSeedPopulationValue = default(double?), string avgSeedPopulationUnit = null, System.DateTimeOffset? minPlantingDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxPlantingDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } } public partial class SeasonsClient { protected SeasonsClient() { } public SeasonsClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Verticals.AgriFood.Farming.FarmBeatsClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateOrUpdate(string seasonId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string seasonId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Delete(string seasonId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(string seasonId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Get(string seasonId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAsync(string seasonId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response List(System.DateTimeOffset? minStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxEndDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable years = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListAsync(System.DateTimeOffset? minStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxEndDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable years = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateOrUpdate(string seasonId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string seasonId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Delete(string seasonId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string seasonId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Get(string seasonId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(string seasonId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response List(System.DateTimeOffset? minStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxEndDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable years = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListAsync(System.DateTimeOffset? minStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxEndDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable years = null, System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } } public partial class TillageDataClient { protected TillageDataClient() { } public TillageDataClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Verticals.AgriFood.Farming.FarmBeatsClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateOrUpdate(string farmerId, string tillageDataId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string farmerId, string tillageDataId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Delete(string farmerId, string tillageDataId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(string farmerId, string tillageDataId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Get(string farmerId, string tillageDataId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAsync(string farmerId, string tillageDataId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response List(double? minTillageDepth = default(double?), double? maxTillageDepth = default(double?), double? minTillagePressure = default(double?), double? maxTillagePressure = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListAsync(double? minTillageDepth = default(double?), double? maxTillageDepth = default(double?), double? minTillagePressure = default(double?), double? maxTillagePressure = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response ListByFarmerId(string farmerId, double? minTillageDepth = default(double?), double? maxTillageDepth = default(double?), double? minTillagePressure = default(double?), double? maxTillagePressure = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListByFarmerIdAsync(string farmerId, double? minTillageDepth = default(double?), double? maxTillageDepth = default(double?), double? minTillagePressure = default(double?), double? maxTillagePressure = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateOrUpdate(string farmerId, string tillageDataId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(string farmerId, string tillageDataId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Delete(string farmerId, string tillageDataId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string farmerId, string tillageDataId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Get(string farmerId, string tillageDataId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(string farmerId, string tillageDataId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response List(double? minTillageDepth = default(double?), double? maxTillageDepth = default(double?), double? minTillagePressure = default(double?), double? maxTillagePressure = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListAsync(double? minTillageDepth = default(double?), double? maxTillageDepth = default(double?), double? minTillagePressure = default(double?), double? maxTillagePressure = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response ListByFarmerId(string farmerId, double? minTillageDepth = default(double?), double? maxTillageDepth = default(double?), double? minTillagePressure = default(double?), double? maxTillagePressure = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListByFarmerIdAsync(string farmerId, double? minTillageDepth = default(double?), double? maxTillageDepth = default(double?), double? minTillagePressure = default(double?), double? maxTillagePressure = default(double?), System.Collections.Generic.IEnumerable sources = null, System.Collections.Generic.IEnumerable associatedBoundaryIds = null, System.Collections.Generic.IEnumerable operationBoundaryIds = null, System.DateTimeOffset? minOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationStartDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationEndDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minOperationModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxOperationModifiedDateTime = default(System.DateTimeOffset?), double? minArea = default(double?), double? maxArea = default(double?), System.Collections.Generic.IEnumerable ids = null, System.Collections.Generic.IEnumerable names = null, System.Collections.Generic.IEnumerable propertyFilters = null, System.Collections.Generic.IEnumerable statuses = null, System.DateTimeOffset? minCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxCreatedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? minLastModifiedDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? maxLastModifiedDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } } public partial class WeatherClient { protected WeatherClient() { } public WeatherClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Verticals.AgriFood.Farming.FarmBeatsClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateDataDeleteJob(string jobId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateDataDeleteJobAsync(string jobId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response CreateDataIngestionJob(string jobId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateDataIngestionJobAsync(string jobId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetDataDeleteJobDetails(string jobId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetDataDeleteJobDetailsAsync(string jobId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetDataIngestionJobDetails(string jobId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetDataIngestionJobDetailsAsync(string jobId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response List(string farmerId, string boundaryId, string extensionId, string weatherDataType, string granularity, System.DateTimeOffset? startDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? endDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ListAsync(string farmerId, string boundaryId, string extensionId, string weatherDataType, string granularity, System.DateTimeOffset? startDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? endDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateDataDeleteJob(string jobId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateDataDeleteJobAsync(string jobId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response CreateDataIngestionJob(string jobId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateDataIngestionJobAsync(string jobId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetDataDeleteJobDetails(string jobId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetDataDeleteJobDetailsAsync(string jobId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetDataIngestionJobDetails(string jobId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetDataIngestionJobDetailsAsync(string jobId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response List(string farmerId, string boundaryId, string extensionId, string weatherDataType, string granularity, System.DateTimeOffset? startDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? endDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ListAsync(string farmerId, string boundaryId, string extensionId, string weatherDataType, string granularity, System.DateTimeOffset? startDateTime = default(System.DateTimeOffset?), System.DateTimeOffset? endDateTime = default(System.DateTimeOffset?), int? maxPageSize = default(int?), string skipToken = null, Azure.RequestOptions options = null) { throw null; } } } diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ApplicationDataClient.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ApplicationDataClient.cs index e4e5707caf2d..d7562e831e24 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ApplicationDataClient.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ApplicationDataClient.cs @@ -89,23 +89,23 @@ public ApplicationDataClient(Uri endpoint, TokenCredential credential, FarmBeats /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListByFarmerIdAsync(string farmerId, double? minAvgMaterial = null, double? maxAvgMaterial = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListByFarmerIdAsync(string farmerId, double? minAvgMaterial = null, double? maxAvgMaterial = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListByFarmerIdRequest(farmerId, minAvgMaterial, maxAvgMaterial, minTotalMaterial, maxTotalMaterial, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListByFarmerIdRequest(farmerId, minAvgMaterial, maxAvgMaterial, minTotalMaterial, maxTotalMaterial, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ApplicationDataClient.ListByFarmerId"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -162,23 +162,23 @@ public virtual async Task ListByFarmerIdAsync(string farmerId, double? /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response ListByFarmerId(string farmerId, double? minAvgMaterial = null, double? maxAvgMaterial = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response ListByFarmerId(string farmerId, double? minAvgMaterial = null, double? maxAvgMaterial = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListByFarmerIdRequest(farmerId, minAvgMaterial, maxAvgMaterial, minTotalMaterial, maxTotalMaterial, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListByFarmerIdRequest(farmerId, minAvgMaterial, maxAvgMaterial, minTotalMaterial, maxTotalMaterial, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ApplicationDataClient.ListByFarmerId"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -235,8 +235,8 @@ public virtual Response ListByFarmerId(string farmerId, double? minAvgMaterial = /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListByFarmerIdRequest(string farmerId, double? minAvgMaterial = null, double? maxAvgMaterial = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListByFarmerIdRequest(string farmerId, double? minAvgMaterial = null, double? maxAvgMaterial = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -386,23 +386,23 @@ private HttpMessage CreateListByFarmerIdRequest(string farmerId, double? minAvgM /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListAsync(double? minAvgMaterial = null, double? maxAvgMaterial = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListAsync(double? minAvgMaterial = null, double? maxAvgMaterial = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(minAvgMaterial, maxAvgMaterial, minTotalMaterial, maxTotalMaterial, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(minAvgMaterial, maxAvgMaterial, minTotalMaterial, maxTotalMaterial, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ApplicationDataClient.List"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -458,23 +458,23 @@ public virtual async Task ListAsync(double? minAvgMaterial = null, dou /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response List(double? minAvgMaterial = null, double? maxAvgMaterial = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response List(double? minAvgMaterial = null, double? maxAvgMaterial = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(minAvgMaterial, maxAvgMaterial, minTotalMaterial, maxTotalMaterial, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(minAvgMaterial, maxAvgMaterial, minTotalMaterial, maxTotalMaterial, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ApplicationDataClient.List"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -530,8 +530,8 @@ public virtual Response List(double? minAvgMaterial = null, double? maxAvgMateri /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListRequest(double? minAvgMaterial = null, double? maxAvgMaterial = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListRequest(double? minAvgMaterial = null, double? maxAvgMaterial = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -648,23 +648,23 @@ private HttpMessage CreateListRequest(double? minAvgMaterial = null, double? max /// Get a specified application data resource under a particular farmer. /// ID of the associated farmer resource. /// ID of the application data resource. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetAsync(string farmerId, string applicationDataId, RequestOptions requestOptions = null) + public virtual async Task GetAsync(string farmerId, string applicationDataId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(farmerId, applicationDataId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(farmerId, applicationDataId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ApplicationDataClient.Get"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -689,23 +689,23 @@ public virtual async Task GetAsync(string farmerId, string application /// Get a specified application data resource under a particular farmer. /// ID of the associated farmer resource. /// ID of the application data resource. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Get(string farmerId, string applicationDataId, RequestOptions requestOptions = null) + public virtual Response Get(string farmerId, string applicationDataId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(farmerId, applicationDataId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(farmerId, applicationDataId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ApplicationDataClient.Get"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -730,8 +730,8 @@ public virtual Response Get(string farmerId, string applicationDataId, RequestOp /// Create Request for and operations. /// ID of the associated farmer resource. /// ID of the application data resource. - /// The request options. - private HttpMessage CreateGetRequest(string farmerId, string applicationDataId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetRequest(string farmerId, string applicationDataId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -752,12 +752,12 @@ private HttpMessage CreateGetRequest(string farmerId, string applicationDataId, /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// applicationProductDetails /// ApplicationProductDetail[] @@ -893,12 +893,12 @@ private HttpMessage CreateGetRequest(string farmerId, string applicationDataId, /// /// Schema for Measure: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// unit /// string @@ -914,12 +914,12 @@ private HttpMessage CreateGetRequest(string farmerId, string applicationDataId, /// /// Schema for ApplicationProductDetail: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// productName /// string @@ -948,24 +948,24 @@ private HttpMessage CreateGetRequest(string farmerId, string applicationDataId, /// /// ID of the associated farmer. /// ID of the application data resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateOrUpdateAsync(string farmerId, string applicationDataId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateOrUpdateAsync(string farmerId, string applicationDataId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(farmerId, applicationDataId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(farmerId, applicationDataId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ApplicationDataClient.CreateOrUpdate"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -992,12 +992,12 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, string /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// applicationProductDetails /// ApplicationProductDetail[] @@ -1133,12 +1133,12 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, string /// /// Schema for Measure: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// unit /// string @@ -1154,12 +1154,12 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, string /// /// Schema for ApplicationProductDetail: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// productName /// string @@ -1188,24 +1188,24 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, string /// /// ID of the associated farmer. /// ID of the application data resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateOrUpdate(string farmerId, string applicationDataId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateOrUpdate(string farmerId, string applicationDataId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(farmerId, applicationDataId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(farmerId, applicationDataId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ApplicationDataClient.CreateOrUpdate"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1231,9 +1231,9 @@ public virtual Response CreateOrUpdate(string farmerId, string applicationDataId /// Create Request for and operations. /// ID of the associated farmer. /// ID of the application data resource. - /// The request body. - /// The request options. - private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string applicationDataId, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string applicationDataId, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1248,30 +1248,30 @@ private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string applicat request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/merge-patch+json"); - request.Content = requestBody; + request.Content = content; return message; } /// Deletes a specified application data resource under a particular farmer. /// ID of the associated farmer resource. /// ID of the application data. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteAsync(string farmerId, string applicationDataId, RequestOptions requestOptions = null) + public virtual async Task DeleteAsync(string farmerId, string applicationDataId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(farmerId, applicationDataId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(farmerId, applicationDataId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ApplicationDataClient.Delete"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1296,23 +1296,23 @@ public virtual async Task DeleteAsync(string farmerId, string applicat /// Deletes a specified application data resource under a particular farmer. /// ID of the associated farmer resource. /// ID of the application data. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Delete(string farmerId, string applicationDataId, RequestOptions requestOptions = null) + public virtual Response Delete(string farmerId, string applicationDataId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(farmerId, applicationDataId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(farmerId, applicationDataId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ApplicationDataClient.Delete"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1337,8 +1337,8 @@ public virtual Response Delete(string farmerId, string applicationDataId, Reques /// Create Request for and operations. /// ID of the associated farmer resource. /// ID of the application data. - /// The request options. - private HttpMessage CreateDeleteRequest(string farmerId, string applicationDataId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteRequest(string farmerId, string applicationDataId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/AttachmentsClient.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/AttachmentsClient.cs index f90a154d0d79..08b667ebcea7 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/AttachmentsClient.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/AttachmentsClient.cs @@ -76,23 +76,23 @@ public AttachmentsClient(Uri endpoint, TokenCredential credential, FarmBeatsClie /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListByFarmerIdAsync(string farmerId, IEnumerable resourceIds = null, IEnumerable resourceTypes = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListByFarmerIdAsync(string farmerId, IEnumerable resourceIds = null, IEnumerable resourceTypes = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListByFarmerIdRequest(farmerId, resourceIds, resourceTypes, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListByFarmerIdRequest(farmerId, resourceIds, resourceTypes, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("AttachmentsClient.ListByFarmerId"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -136,23 +136,23 @@ public virtual async Task ListByFarmerIdAsync(string farmerId, IEnumer /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response ListByFarmerId(string farmerId, IEnumerable resourceIds = null, IEnumerable resourceTypes = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response ListByFarmerId(string farmerId, IEnumerable resourceIds = null, IEnumerable resourceTypes = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListByFarmerIdRequest(farmerId, resourceIds, resourceTypes, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListByFarmerIdRequest(farmerId, resourceIds, resourceTypes, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("AttachmentsClient.ListByFarmerId"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -196,8 +196,8 @@ public virtual Response ListByFarmerId(string farmerId, IEnumerable reso /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListByFarmerIdRequest(string farmerId, IEnumerable resourceIds = null, IEnumerable resourceTypes = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListByFarmerIdRequest(string farmerId, IEnumerable resourceIds = null, IEnumerable resourceTypes = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -264,23 +264,23 @@ private HttpMessage CreateListByFarmerIdRequest(string farmerId, IEnumerable Gets a specified attachment resource under a particular farmer. /// ID of the associated farmer. /// ID of the attachment. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetAsync(string farmerId, string attachmentId, RequestOptions requestOptions = null) + public virtual async Task GetAsync(string farmerId, string attachmentId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(farmerId, attachmentId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(farmerId, attachmentId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("AttachmentsClient.Get"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -305,23 +305,23 @@ public virtual async Task GetAsync(string farmerId, string attachmentI /// Gets a specified attachment resource under a particular farmer. /// ID of the associated farmer. /// ID of the attachment. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Get(string farmerId, string attachmentId, RequestOptions requestOptions = null) + public virtual Response Get(string farmerId, string attachmentId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(farmerId, attachmentId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(farmerId, attachmentId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("AttachmentsClient.Get"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -346,8 +346,8 @@ public virtual Response Get(string farmerId, string attachmentId, RequestOptions /// Create Request for and operations. /// ID of the associated farmer. /// ID of the attachment. - /// The request options. - private HttpMessage CreateGetRequest(string farmerId, string attachmentId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetRequest(string farmerId, string attachmentId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -367,24 +367,24 @@ private HttpMessage CreateGetRequest(string farmerId, string attachmentId, Reque /// Creates or updates an attachment resource under a particular farmer. /// ID of the associated farmer resource. /// ID of the attachment resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateOrUpdateAsync(string farmerId, string attachmentId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateOrUpdateAsync(string farmerId, string attachmentId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(farmerId, attachmentId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(farmerId, attachmentId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("AttachmentsClient.CreateOrUpdate"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -410,24 +410,24 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, string /// Creates or updates an attachment resource under a particular farmer. /// ID of the associated farmer resource. /// ID of the attachment resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateOrUpdate(string farmerId, string attachmentId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateOrUpdate(string farmerId, string attachmentId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(farmerId, attachmentId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(farmerId, attachmentId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("AttachmentsClient.CreateOrUpdate"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -453,9 +453,9 @@ public virtual Response CreateOrUpdate(string farmerId, string attachmentId, Req /// Create Request for and operations. /// ID of the associated farmer resource. /// ID of the attachment resource. - /// The request body. - /// The request options. - private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string attachmentId, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string attachmentId, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -470,30 +470,30 @@ private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string attachme request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "multipart/form-data"); - request.Content = requestBody; + request.Content = content; return message; } /// Deletes a specified attachment resource under a particular farmer. /// ID of the farmer. /// ID of the attachment. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteAsync(string farmerId, string attachmentId, RequestOptions requestOptions = null) + public virtual async Task DeleteAsync(string farmerId, string attachmentId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(farmerId, attachmentId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(farmerId, attachmentId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("AttachmentsClient.Delete"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -518,23 +518,23 @@ public virtual async Task DeleteAsync(string farmerId, string attachme /// Deletes a specified attachment resource under a particular farmer. /// ID of the farmer. /// ID of the attachment. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Delete(string farmerId, string attachmentId, RequestOptions requestOptions = null) + public virtual Response Delete(string farmerId, string attachmentId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(farmerId, attachmentId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(farmerId, attachmentId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("AttachmentsClient.Delete"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -559,8 +559,8 @@ public virtual Response Delete(string farmerId, string attachmentId, RequestOpti /// Create Request for and operations. /// ID of the farmer. /// ID of the attachment. - /// The request options. - private HttpMessage CreateDeleteRequest(string farmerId, string attachmentId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteRequest(string farmerId, string attachmentId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -580,23 +580,23 @@ private HttpMessage CreateDeleteRequest(string farmerId, string attachmentId, Re /// Downloads and returns attachment as response for the given input filePath. /// ID of the associated farmer. /// ID of attachment to be downloaded. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DownloadAsync(string farmerId, string attachmentId, RequestOptions requestOptions = null) + public virtual async Task DownloadAsync(string farmerId, string attachmentId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDownloadRequest(farmerId, attachmentId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDownloadRequest(farmerId, attachmentId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("AttachmentsClient.Download"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -621,23 +621,23 @@ public virtual async Task DownloadAsync(string farmerId, string attach /// Downloads and returns attachment as response for the given input filePath. /// ID of the associated farmer. /// ID of attachment to be downloaded. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Download(string farmerId, string attachmentId, RequestOptions requestOptions = null) + public virtual Response Download(string farmerId, string attachmentId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDownloadRequest(farmerId, attachmentId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDownloadRequest(farmerId, attachmentId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("AttachmentsClient.Download"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -662,8 +662,8 @@ public virtual Response Download(string farmerId, string attachmentId, RequestOp /// Create Request for and operations. /// ID of the associated farmer. /// ID of attachment to be downloaded. - /// The request options. - private HttpMessage CreateDownloadRequest(string farmerId, string attachmentId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDownloadRequest(string farmerId, string attachmentId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/BoundariesClient.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/BoundariesClient.cs index 371f16436a7b..a457ec4a8b82 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/BoundariesClient.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/BoundariesClient.cs @@ -79,23 +79,23 @@ public BoundariesClient(Uri endpoint, TokenCredential credential, FarmBeatsClien /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListByFarmerIdAsync(string farmerId, bool? isPrimary = null, string parentType = null, IEnumerable parentIds = null, double? minAcreage = null, double? maxAcreage = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListByFarmerIdAsync(string farmerId, bool? isPrimary = null, string parentType = null, IEnumerable parentIds = null, double? minAcreage = null, double? maxAcreage = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListByFarmerIdRequest(farmerId, isPrimary, parentType, parentIds, minAcreage, maxAcreage, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListByFarmerIdRequest(farmerId, isPrimary, parentType, parentIds, minAcreage, maxAcreage, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("BoundariesClient.ListByFarmerId"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -142,23 +142,23 @@ public virtual async Task ListByFarmerIdAsync(string farmerId, bool? i /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response ListByFarmerId(string farmerId, bool? isPrimary = null, string parentType = null, IEnumerable parentIds = null, double? minAcreage = null, double? maxAcreage = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response ListByFarmerId(string farmerId, bool? isPrimary = null, string parentType = null, IEnumerable parentIds = null, double? minAcreage = null, double? maxAcreage = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListByFarmerIdRequest(farmerId, isPrimary, parentType, parentIds, minAcreage, maxAcreage, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListByFarmerIdRequest(farmerId, isPrimary, parentType, parentIds, minAcreage, maxAcreage, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("BoundariesClient.ListByFarmerId"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -205,8 +205,8 @@ public virtual Response ListByFarmerId(string farmerId, bool? isPrimary = null, /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListByFarmerIdRequest(string farmerId, bool? isPrimary = null, string parentType = null, IEnumerable parentIds = null, double? minAcreage = null, double? maxAcreage = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListByFarmerIdRequest(string farmerId, bool? isPrimary = null, string parentType = null, IEnumerable parentIds = null, double? minAcreage = null, double? maxAcreage = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -286,12 +286,12 @@ private HttpMessage CreateListByFarmerIdRequest(string farmerId, bool? isPrimary /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// ids /// string[] @@ -399,12 +399,12 @@ private HttpMessage CreateListByFarmerIdRequest(string farmerId, bool? isPrimary /// /// Schema for GeoJsonObject: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// type /// "Point" | "Polygon" | "MultiPolygon" @@ -414,24 +414,24 @@ private HttpMessage CreateListByFarmerIdRequest(string farmerId, bool? isPrimary /// /// /// ID of the farmer. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task SearchByFarmerIdAsync(string farmerId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task SearchByFarmerIdAsync(string farmerId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateSearchByFarmerIdRequest(farmerId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateSearchByFarmerIdRequest(farmerId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("BoundariesClient.SearchByFarmerId"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -457,12 +457,12 @@ public virtual async Task SearchByFarmerIdAsync(string farmerId, Reque /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// ids /// string[] @@ -570,12 +570,12 @@ public virtual async Task SearchByFarmerIdAsync(string farmerId, Reque /// /// Schema for GeoJsonObject: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// type /// "Point" | "Polygon" | "MultiPolygon" @@ -585,24 +585,24 @@ public virtual async Task SearchByFarmerIdAsync(string farmerId, Reque /// /// /// ID of the farmer. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response SearchByFarmerId(string farmerId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response SearchByFarmerId(string farmerId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateSearchByFarmerIdRequest(farmerId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateSearchByFarmerIdRequest(farmerId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("BoundariesClient.SearchByFarmerId"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -626,9 +626,9 @@ public virtual Response SearchByFarmerId(string farmerId, RequestContent request /// Create Request for and operations. /// ID of the farmer. - /// The request body. - /// The request options. - private HttpMessage CreateSearchByFarmerIdRequest(string farmerId, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateSearchByFarmerIdRequest(string farmerId, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -642,7 +642,7 @@ private HttpMessage CreateSearchByFarmerIdRequest(string farmerId, RequestConten request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -670,23 +670,23 @@ private HttpMessage CreateSearchByFarmerIdRequest(string farmerId, RequestConten /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListAsync(bool? isPrimary = null, string parentType = null, IEnumerable parentIds = null, double? minAcreage = null, double? maxAcreage = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListAsync(bool? isPrimary = null, string parentType = null, IEnumerable parentIds = null, double? minAcreage = null, double? maxAcreage = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(isPrimary, parentType, parentIds, minAcreage, maxAcreage, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(isPrimary, parentType, parentIds, minAcreage, maxAcreage, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("BoundariesClient.List"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -732,23 +732,23 @@ public virtual async Task ListAsync(bool? isPrimary = null, string par /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response List(bool? isPrimary = null, string parentType = null, IEnumerable parentIds = null, double? minAcreage = null, double? maxAcreage = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response List(bool? isPrimary = null, string parentType = null, IEnumerable parentIds = null, double? minAcreage = null, double? maxAcreage = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(isPrimary, parentType, parentIds, minAcreage, maxAcreage, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(isPrimary, parentType, parentIds, minAcreage, maxAcreage, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("BoundariesClient.List"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -794,8 +794,8 @@ public virtual Response List(bool? isPrimary = null, string parentType = null, I /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListRequest(bool? isPrimary = null, string parentType = null, IEnumerable parentIds = null, double? minAcreage = null, double? maxAcreage = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListRequest(bool? isPrimary = null, string parentType = null, IEnumerable parentIds = null, double? minAcreage = null, double? maxAcreage = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -873,12 +873,12 @@ private HttpMessage CreateListRequest(bool? isPrimary = null, string parentType /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// ids /// string[] @@ -986,12 +986,12 @@ private HttpMessage CreateListRequest(bool? isPrimary = null, string parentType /// /// Schema for GeoJsonObject: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// type /// "Point" | "Polygon" | "MultiPolygon" @@ -1000,24 +1000,24 @@ private HttpMessage CreateListRequest(bool? isPrimary = null, string parentType /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task SearchAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task SearchAsync(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateSearchRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateSearchRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("BoundariesClient.Search"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1043,12 +1043,12 @@ public virtual async Task SearchAsync(RequestContent requestBody, Requ /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// ids /// string[] @@ -1156,12 +1156,12 @@ public virtual async Task SearchAsync(RequestContent requestBody, Requ /// /// Schema for GeoJsonObject: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// type /// "Point" | "Polygon" | "MultiPolygon" @@ -1170,24 +1170,24 @@ public virtual async Task SearchAsync(RequestContent requestBody, Requ /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Search(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response Search(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateSearchRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateSearchRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("BoundariesClient.Search"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1210,9 +1210,9 @@ public virtual Response Search(RequestContent requestBody, RequestOptions reques } /// Create Request for and operations. - /// The request body. - /// The request options. - private HttpMessage CreateSearchRequest(RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateSearchRequest(RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1224,29 +1224,29 @@ private HttpMessage CreateSearchRequest(RequestContent requestBody, RequestOptio request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } /// Get cascade delete job for specified boundary. /// ID of the job. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestOptions requestOptions = null) + public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetCascadeDeleteJobDetailsRequest(jobId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetCascadeDeleteJobDetailsRequest(jobId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("BoundariesClient.GetCascadeDeleteJobDetails"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1270,23 +1270,23 @@ public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId /// Get cascade delete job for specified boundary. /// ID of the job. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestOptions requestOptions = null) + public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetCascadeDeleteJobDetailsRequest(jobId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetCascadeDeleteJobDetailsRequest(jobId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("BoundariesClient.GetCascadeDeleteJobDetails"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1310,8 +1310,8 @@ public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestOptions /// Create Request for and operations. /// ID of the job. - /// The request options. - private HttpMessage CreateGetCascadeDeleteJobDetailsRequest(string jobId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetCascadeDeleteJobDetailsRequest(string jobId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1330,23 +1330,23 @@ private HttpMessage CreateGetCascadeDeleteJobDetailsRequest(string jobId, Reques /// Job ID supplied by end user. /// ID of the associated farmer. /// ID of the boundary to be deleted. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateCascadeDeleteJobAsync(string jobId, string farmerId, string boundaryId, RequestOptions requestOptions = null) + public virtual async Task CreateCascadeDeleteJobAsync(string jobId, string farmerId, string boundaryId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateCascadeDeleteJobRequest(jobId, farmerId, boundaryId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateCascadeDeleteJobRequest(jobId, farmerId, boundaryId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("BoundariesClient.CreateCascadeDeleteJob"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1372,23 +1372,23 @@ public virtual async Task CreateCascadeDeleteJobAsync(string jobId, st /// Job ID supplied by end user. /// ID of the associated farmer. /// ID of the boundary to be deleted. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateCascadeDeleteJob(string jobId, string farmerId, string boundaryId, RequestOptions requestOptions = null) + public virtual Response CreateCascadeDeleteJob(string jobId, string farmerId, string boundaryId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateCascadeDeleteJobRequest(jobId, farmerId, boundaryId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateCascadeDeleteJobRequest(jobId, farmerId, boundaryId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("BoundariesClient.CreateCascadeDeleteJob"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1414,8 +1414,8 @@ public virtual Response CreateCascadeDeleteJob(string jobId, string farmerId, st /// Job ID supplied by end user. /// ID of the associated farmer. /// ID of the boundary to be deleted. - /// The request options. - private HttpMessage CreateCreateCascadeDeleteJobRequest(string jobId, string farmerId, string boundaryId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateCreateCascadeDeleteJobRequest(string jobId, string farmerId, string boundaryId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1435,23 +1435,23 @@ private HttpMessage CreateCreateCascadeDeleteJobRequest(string jobId, string far /// Gets a specified boundary resource under a particular farmer. /// ID of the associated farmer. /// ID of the boundary. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetAsync(string farmerId, string boundaryId, RequestOptions requestOptions = null) + public virtual async Task GetAsync(string farmerId, string boundaryId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(farmerId, boundaryId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(farmerId, boundaryId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("BoundariesClient.Get"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1476,23 +1476,23 @@ public virtual async Task GetAsync(string farmerId, string boundaryId, /// Gets a specified boundary resource under a particular farmer. /// ID of the associated farmer. /// ID of the boundary. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Get(string farmerId, string boundaryId, RequestOptions requestOptions = null) + public virtual Response Get(string farmerId, string boundaryId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(farmerId, boundaryId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(farmerId, boundaryId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("BoundariesClient.Get"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1517,8 +1517,8 @@ public virtual Response Get(string farmerId, string boundaryId, RequestOptions r /// Create Request for and operations. /// ID of the associated farmer. /// ID of the boundary. - /// The request options. - private HttpMessage CreateGetRequest(string farmerId, string boundaryId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetRequest(string farmerId, string boundaryId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1539,12 +1539,12 @@ private HttpMessage CreateGetRequest(string farmerId, string boundaryId, Request /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// farmerId /// string @@ -1640,12 +1640,12 @@ private HttpMessage CreateGetRequest(string farmerId, string boundaryId, Request /// /// Schema for GeoJsonObject: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// type /// "Point" | "Polygon" | "MultiPolygon" @@ -1656,24 +1656,24 @@ private HttpMessage CreateGetRequest(string farmerId, string boundaryId, Request /// /// ID of the farmer resource. /// ID of the boundary resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateOrUpdateAsync(string farmerId, string boundaryId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateOrUpdateAsync(string farmerId, string boundaryId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(farmerId, boundaryId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(farmerId, boundaryId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("BoundariesClient.CreateOrUpdate"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1700,12 +1700,12 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, string /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// farmerId /// string @@ -1801,12 +1801,12 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, string /// /// Schema for GeoJsonObject: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// type /// "Point" | "Polygon" | "MultiPolygon" @@ -1817,24 +1817,24 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, string /// /// ID of the farmer resource. /// ID of the boundary resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateOrUpdate(string farmerId, string boundaryId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateOrUpdate(string farmerId, string boundaryId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(farmerId, boundaryId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(farmerId, boundaryId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("BoundariesClient.CreateOrUpdate"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1860,9 +1860,9 @@ public virtual Response CreateOrUpdate(string farmerId, string boundaryId, Reque /// Create Request for and operations. /// ID of the farmer resource. /// ID of the boundary resource. - /// The request body. - /// The request options. - private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string boundaryId, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string boundaryId, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1877,30 +1877,30 @@ private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string boundary request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/merge-patch+json"); - request.Content = requestBody; + request.Content = content; return message; } /// Deletes a specified boundary resource under a particular farmer. /// ID of the farmer. /// ID of the boundary. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteAsync(string farmerId, string boundaryId, RequestOptions requestOptions = null) + public virtual async Task DeleteAsync(string farmerId, string boundaryId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(farmerId, boundaryId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(farmerId, boundaryId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("BoundariesClient.Delete"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1925,23 +1925,23 @@ public virtual async Task DeleteAsync(string farmerId, string boundary /// Deletes a specified boundary resource under a particular farmer. /// ID of the farmer. /// ID of the boundary. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Delete(string farmerId, string boundaryId, RequestOptions requestOptions = null) + public virtual Response Delete(string farmerId, string boundaryId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(farmerId, boundaryId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(farmerId, boundaryId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("BoundariesClient.Delete"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1966,8 +1966,8 @@ public virtual Response Delete(string farmerId, string boundaryId, RequestOption /// Create Request for and operations. /// ID of the farmer. /// ID of the boundary. - /// The request options. - private HttpMessage CreateDeleteRequest(string farmerId, string boundaryId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteRequest(string farmerId, string boundaryId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1989,23 +1989,23 @@ private HttpMessage CreateDeleteRequest(string farmerId, string boundaryId, Requ /// ID of the boundary. /// FarmerId of the other field. /// ID of the other boundary. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetOverlapAsync(string farmerId, string boundaryId, string otherFarmerId, string otherBoundaryId, RequestOptions requestOptions = null) + public virtual async Task GetOverlapAsync(string farmerId, string boundaryId, string otherFarmerId, string otherBoundaryId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetOverlapRequest(farmerId, boundaryId, otherFarmerId, otherBoundaryId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetOverlapRequest(farmerId, boundaryId, otherFarmerId, otherBoundaryId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("BoundariesClient.GetOverlap"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2032,23 +2032,23 @@ public virtual async Task GetOverlapAsync(string farmerId, string boun /// ID of the boundary. /// FarmerId of the other field. /// ID of the other boundary. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetOverlap(string farmerId, string boundaryId, string otherFarmerId, string otherBoundaryId, RequestOptions requestOptions = null) + public virtual Response GetOverlap(string farmerId, string boundaryId, string otherFarmerId, string otherBoundaryId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetOverlapRequest(farmerId, boundaryId, otherFarmerId, otherBoundaryId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetOverlapRequest(farmerId, boundaryId, otherFarmerId, otherBoundaryId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("BoundariesClient.GetOverlap"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2075,8 +2075,8 @@ public virtual Response GetOverlap(string farmerId, string boundaryId, string ot /// ID of the boundary. /// FarmerId of the other field. /// ID of the other boundary. - /// The request options. - private HttpMessage CreateGetOverlapRequest(string farmerId, string boundaryId, string otherFarmerId, string otherBoundaryId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetOverlapRequest(string farmerId, string boundaryId, string otherFarmerId, string otherBoundaryId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/CropVarietiesClient.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/CropVarietiesClient.cs index 2aa7fc4a46e4..6a762b73d727 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/CropVarietiesClient.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/CropVarietiesClient.cs @@ -77,23 +77,23 @@ public CropVarietiesClient(Uri endpoint, TokenCredential credential, FarmBeatsCl /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListByCropIdAsync(string cropId, IEnumerable cropIds = null, IEnumerable brands = null, IEnumerable products = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListByCropIdAsync(string cropId, IEnumerable cropIds = null, IEnumerable brands = null, IEnumerable products = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListByCropIdRequest(cropId, cropIds, brands, products, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListByCropIdRequest(cropId, cropIds, brands, products, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("CropVarietiesClient.ListByCropId"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -138,23 +138,23 @@ public virtual async Task ListByCropIdAsync(string cropId, IEnumerable /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response ListByCropId(string cropId, IEnumerable cropIds = null, IEnumerable brands = null, IEnumerable products = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response ListByCropId(string cropId, IEnumerable cropIds = null, IEnumerable brands = null, IEnumerable products = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListByCropIdRequest(cropId, cropIds, brands, products, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListByCropIdRequest(cropId, cropIds, brands, products, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("CropVarietiesClient.ListByCropId"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -199,8 +199,8 @@ public virtual Response ListByCropId(string cropId, IEnumerable cropIds /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListByCropIdRequest(string cropId, IEnumerable cropIds = null, IEnumerable brands = null, IEnumerable products = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListByCropIdRequest(string cropId, IEnumerable cropIds = null, IEnumerable brands = null, IEnumerable products = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -290,23 +290,23 @@ private HttpMessage CreateListByCropIdRequest(string cropId, IEnumerable /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListAsync(IEnumerable cropIds = null, IEnumerable brands = null, IEnumerable products = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListAsync(IEnumerable cropIds = null, IEnumerable brands = null, IEnumerable products = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(cropIds, brands, products, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(cropIds, brands, products, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("CropVarietiesClient.List"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -350,23 +350,23 @@ public virtual async Task ListAsync(IEnumerable cropIds = null /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response List(IEnumerable cropIds = null, IEnumerable brands = null, IEnumerable products = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response List(IEnumerable cropIds = null, IEnumerable brands = null, IEnumerable products = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(cropIds, brands, products, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(cropIds, brands, products, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("CropVarietiesClient.List"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -410,8 +410,8 @@ public virtual Response List(IEnumerable cropIds = null, IEnumerable /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListRequest(IEnumerable cropIds = null, IEnumerable brands = null, IEnumerable products = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListRequest(IEnumerable cropIds = null, IEnumerable brands = null, IEnumerable products = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -480,23 +480,23 @@ private HttpMessage CreateListRequest(IEnumerable cropIds = null, IEnume /// Gets a specified crop variety resource under a particular crop. /// ID of the associated crop. /// ID of the crop variety. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetAsync(string cropId, string cropVarietyId, RequestOptions requestOptions = null) + public virtual async Task GetAsync(string cropId, string cropVarietyId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(cropId, cropVarietyId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(cropId, cropVarietyId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("CropVarietiesClient.Get"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -521,23 +521,23 @@ public virtual async Task GetAsync(string cropId, string cropVarietyId /// Gets a specified crop variety resource under a particular crop. /// ID of the associated crop. /// ID of the crop variety. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Get(string cropId, string cropVarietyId, RequestOptions requestOptions = null) + public virtual Response Get(string cropId, string cropVarietyId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(cropId, cropVarietyId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(cropId, cropVarietyId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("CropVarietiesClient.Get"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -562,8 +562,8 @@ public virtual Response Get(string cropId, string cropVarietyId, RequestOptions /// Create Request for and operations. /// ID of the associated crop. /// ID of the crop variety. - /// The request options. - private HttpMessage CreateGetRequest(string cropId, string cropVarietyId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetRequest(string cropId, string cropVarietyId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -584,12 +584,12 @@ private HttpMessage CreateGetRequest(string cropId, string cropVarietyId, Reques /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// cropId /// string @@ -668,24 +668,24 @@ private HttpMessage CreateGetRequest(string cropId, string cropVarietyId, Reques /// /// ID of the crop resource. /// ID of the crop variety resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateOrUpdateAsync(string cropId, string cropVarietyId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateOrUpdateAsync(string cropId, string cropVarietyId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(cropId, cropVarietyId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(cropId, cropVarietyId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("CropVarietiesClient.CreateOrUpdate"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -712,12 +712,12 @@ public virtual async Task CreateOrUpdateAsync(string cropId, string cr /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// cropId /// string @@ -796,24 +796,24 @@ public virtual async Task CreateOrUpdateAsync(string cropId, string cr /// /// ID of the crop resource. /// ID of the crop variety resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateOrUpdate(string cropId, string cropVarietyId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateOrUpdate(string cropId, string cropVarietyId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(cropId, cropVarietyId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(cropId, cropVarietyId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("CropVarietiesClient.CreateOrUpdate"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -839,9 +839,9 @@ public virtual Response CreateOrUpdate(string cropId, string cropVarietyId, Requ /// Create Request for and operations. /// ID of the crop resource. /// ID of the crop variety resource. - /// The request body. - /// The request options. - private HttpMessage CreateCreateOrUpdateRequest(string cropId, string cropVarietyId, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateOrUpdateRequest(string cropId, string cropVarietyId, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -856,30 +856,30 @@ private HttpMessage CreateCreateOrUpdateRequest(string cropId, string cropVariet request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/merge-patch+json"); - request.Content = requestBody; + request.Content = content; return message; } /// Deletes a specified crop variety resource under a particular crop. /// ID of the crop. /// ID of the crop variety. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteAsync(string cropId, string cropVarietyId, RequestOptions requestOptions = null) + public virtual async Task DeleteAsync(string cropId, string cropVarietyId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(cropId, cropVarietyId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(cropId, cropVarietyId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("CropVarietiesClient.Delete"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -904,23 +904,23 @@ public virtual async Task DeleteAsync(string cropId, string cropVariet /// Deletes a specified crop variety resource under a particular crop. /// ID of the crop. /// ID of the crop variety. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Delete(string cropId, string cropVarietyId, RequestOptions requestOptions = null) + public virtual Response Delete(string cropId, string cropVarietyId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(cropId, cropVarietyId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(cropId, cropVarietyId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("CropVarietiesClient.Delete"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -945,8 +945,8 @@ public virtual Response Delete(string cropId, string cropVarietyId, RequestOptio /// Create Request for and operations. /// ID of the crop. /// ID of the crop variety. - /// The request options. - private HttpMessage CreateDeleteRequest(string cropId, string cropVarietyId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteRequest(string cropId, string cropVarietyId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/CropsClient.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/CropsClient.cs index d76e904e2eca..f1a6e133b734 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/CropsClient.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/CropsClient.cs @@ -74,23 +74,23 @@ public CropsClient(Uri endpoint, TokenCredential credential, FarmBeatsClientOpti /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListAsync(IEnumerable phenotypes = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListAsync(IEnumerable phenotypes = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(phenotypes, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(phenotypes, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("CropsClient.List"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -132,23 +132,23 @@ public virtual async Task ListAsync(IEnumerable phenotypes = n /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response List(IEnumerable phenotypes = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response List(IEnumerable phenotypes = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(phenotypes, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(phenotypes, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("CropsClient.List"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -190,8 +190,8 @@ public virtual Response List(IEnumerable phenotypes = null, IEnumerable< /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListRequest(IEnumerable phenotypes = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListRequest(IEnumerable phenotypes = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -251,23 +251,23 @@ private HttpMessage CreateListRequest(IEnumerable phenotypes = null, IEn /// Gets a specified crop resource. /// ID of the crop. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetAsync(string cropId, RequestOptions requestOptions = null) + public virtual async Task GetAsync(string cropId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(cropId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(cropId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("CropsClient.Get"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -291,23 +291,23 @@ public virtual async Task GetAsync(string cropId, RequestOptions reque /// Gets a specified crop resource. /// ID of the crop. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Get(string cropId, RequestOptions requestOptions = null) + public virtual Response Get(string cropId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(cropId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(cropId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("CropsClient.Get"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -331,8 +331,8 @@ public virtual Response Get(string cropId, RequestOptions requestOptions = null) /// Create Request for and operations. /// ID of the crop. - /// The request options. - private HttpMessage CreateGetRequest(string cropId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetRequest(string cropId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -351,12 +351,12 @@ private HttpMessage CreateGetRequest(string cropId, RequestOptions requestOption /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// phenotype /// string @@ -422,24 +422,24 @@ private HttpMessage CreateGetRequest(string cropId, RequestOptions requestOption /// /// /// ID of the crop resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateOrUpdateAsync(string cropId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateOrUpdateAsync(string cropId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(cropId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(cropId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("CropsClient.CreateOrUpdate"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -466,12 +466,12 @@ public virtual async Task CreateOrUpdateAsync(string cropId, RequestCo /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// phenotype /// string @@ -537,24 +537,24 @@ public virtual async Task CreateOrUpdateAsync(string cropId, RequestCo /// /// /// ID of the crop resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateOrUpdate(string cropId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateOrUpdate(string cropId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(cropId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(cropId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("CropsClient.CreateOrUpdate"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -579,9 +579,9 @@ public virtual Response CreateOrUpdate(string cropId, RequestContent requestBody /// Create Request for and operations. /// ID of the crop resource. - /// The request body. - /// The request options. - private HttpMessage CreateCreateOrUpdateRequest(string cropId, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateOrUpdateRequest(string cropId, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -594,29 +594,29 @@ private HttpMessage CreateCreateOrUpdateRequest(string cropId, RequestContent re request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/merge-patch+json"); - request.Content = requestBody; + request.Content = content; return message; } /// Deletes Crop for given crop id. /// ID of crop to be deleted. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteAsync(string cropId, RequestOptions requestOptions = null) + public virtual async Task DeleteAsync(string cropId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(cropId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(cropId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("CropsClient.Delete"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -640,23 +640,23 @@ public virtual async Task DeleteAsync(string cropId, RequestOptions re /// Deletes Crop for given crop id. /// ID of crop to be deleted. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Delete(string cropId, RequestOptions requestOptions = null) + public virtual Response Delete(string cropId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(cropId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(cropId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("CropsClient.Delete"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -680,8 +680,8 @@ public virtual Response Delete(string cropId, RequestOptions requestOptions = nu /// Create Request for and operations. /// ID of crop to be deleted. - /// The request options. - private HttpMessage CreateDeleteRequest(string cropId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteRequest(string cropId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FarmClient.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FarmClient.cs index cccd8271cddf..36646baf20f1 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FarmClient.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FarmClient.cs @@ -57,12 +57,12 @@ public FarmClient(Uri endpoint, TokenCredential credential, FarmBeatsClientOptio /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// farmerId /// string @@ -168,24 +168,24 @@ public FarmClient(Uri endpoint, TokenCredential credential, FarmBeatsClientOptio /// /// /// Job ID supplied by user. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateDataIngestionJobAsync(string jobId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateDataIngestionJobAsync(string jobId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateDataIngestionJobRequest(jobId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateDataIngestionJobRequest(jobId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmClient.CreateDataIngestionJob"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -211,12 +211,12 @@ public virtual async Task CreateDataIngestionJobAsync(string jobId, Re /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// farmerId /// string @@ -322,24 +322,24 @@ public virtual async Task CreateDataIngestionJobAsync(string jobId, Re /// /// /// Job ID supplied by user. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateDataIngestionJob(string jobId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateDataIngestionJob(string jobId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateDataIngestionJobRequest(jobId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateDataIngestionJobRequest(jobId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmClient.CreateDataIngestionJob"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -363,9 +363,9 @@ public virtual Response CreateDataIngestionJob(string jobId, RequestContent requ /// Create Request for and operations. /// Job ID supplied by user. - /// The request body. - /// The request options. - private HttpMessage CreateCreateDataIngestionJobRequest(string jobId, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateDataIngestionJobRequest(string jobId, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -378,29 +378,29 @@ private HttpMessage CreateCreateDataIngestionJobRequest(string jobId, RequestCon request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } /// Get a farm operation data ingestion job. /// ID of the job. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetDataIngestionJobDetailsAsync(string jobId, RequestOptions requestOptions = null) + public virtual async Task GetDataIngestionJobDetailsAsync(string jobId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetDataIngestionJobDetailsRequest(jobId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetDataIngestionJobDetailsRequest(jobId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmClient.GetDataIngestionJobDetails"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -424,23 +424,23 @@ public virtual async Task GetDataIngestionJobDetailsAsync(string jobId /// Get a farm operation data ingestion job. /// ID of the job. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetDataIngestionJobDetails(string jobId, RequestOptions requestOptions = null) + public virtual Response GetDataIngestionJobDetails(string jobId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetDataIngestionJobDetailsRequest(jobId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetDataIngestionJobDetailsRequest(jobId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmClient.GetDataIngestionJobDetails"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -464,8 +464,8 @@ public virtual Response GetDataIngestionJobDetails(string jobId, RequestOptions /// Create Request for and operations. /// ID of the job. - /// The request options. - private HttpMessage CreateGetDataIngestionJobDetailsRequest(string jobId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetDataIngestionJobDetailsRequest(string jobId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FarmersClient.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FarmersClient.cs index badb2dec1e16..55a6bb7f5f19 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FarmersClient.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FarmersClient.cs @@ -73,23 +73,23 @@ public FarmersClient(Uri endpoint, TokenCredential credential, FarmBeatsClientOp /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListAsync(IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListAsync(IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmersClient.List"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -130,23 +130,23 @@ public virtual async Task ListAsync(IEnumerable ids = null, IE /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response List(IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response List(IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmersClient.List"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -187,8 +187,8 @@ public virtual Response List(IEnumerable ids = null, IEnumerable /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListRequest(IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListRequest(IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -244,23 +244,23 @@ private HttpMessage CreateListRequest(IEnumerable ids = null, IEnumerabl /// Gets a specified farmer resource. /// ID of the associated farmer. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetAsync(string farmerId, RequestOptions requestOptions = null) + public virtual async Task GetAsync(string farmerId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(farmerId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(farmerId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmersClient.Get"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -284,23 +284,23 @@ public virtual async Task GetAsync(string farmerId, RequestOptions req /// Gets a specified farmer resource. /// ID of the associated farmer. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Get(string farmerId, RequestOptions requestOptions = null) + public virtual Response Get(string farmerId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(farmerId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(farmerId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmersClient.Get"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -324,8 +324,8 @@ public virtual Response Get(string farmerId, RequestOptions requestOptions = nul /// Create Request for and operations. /// ID of the associated farmer. - /// The request options. - private HttpMessage CreateGetRequest(string farmerId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetRequest(string farmerId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -344,12 +344,12 @@ private HttpMessage CreateGetRequest(string farmerId, RequestOptions requestOpti /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -409,24 +409,24 @@ private HttpMessage CreateGetRequest(string farmerId, RequestOptions requestOpti /// /// /// ID of the farmer resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateOrUpdateAsync(string farmerId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateOrUpdateAsync(string farmerId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(farmerId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(farmerId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmersClient.CreateOrUpdate"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -453,12 +453,12 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, Request /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -518,24 +518,24 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, Request /// /// /// ID of the farmer resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateOrUpdate(string farmerId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateOrUpdate(string farmerId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(farmerId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(farmerId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmersClient.CreateOrUpdate"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -560,9 +560,9 @@ public virtual Response CreateOrUpdate(string farmerId, RequestContent requestBo /// Create Request for and operations. /// ID of the farmer resource. - /// The request body. - /// The request options. - private HttpMessage CreateCreateOrUpdateRequest(string farmerId, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateOrUpdateRequest(string farmerId, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -575,29 +575,29 @@ private HttpMessage CreateCreateOrUpdateRequest(string farmerId, RequestContent request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/merge-patch+json"); - request.Content = requestBody; + request.Content = content; return message; } /// Deletes a specified farmer resource. /// ID of farmer to be deleted. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteAsync(string farmerId, RequestOptions requestOptions = null) + public virtual async Task DeleteAsync(string farmerId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(farmerId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(farmerId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmersClient.Delete"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -621,23 +621,23 @@ public virtual async Task DeleteAsync(string farmerId, RequestOptions /// Deletes a specified farmer resource. /// ID of farmer to be deleted. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Delete(string farmerId, RequestOptions requestOptions = null) + public virtual Response Delete(string farmerId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(farmerId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(farmerId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmersClient.Delete"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -661,8 +661,8 @@ public virtual Response Delete(string farmerId, RequestOptions requestOptions = /// Create Request for and operations. /// ID of farmer to be deleted. - /// The request options. - private HttpMessage CreateDeleteRequest(string farmerId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteRequest(string farmerId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -679,23 +679,23 @@ private HttpMessage CreateDeleteRequest(string farmerId, RequestOptions requestO /// Get a cascade delete job for specified farmer. /// ID of the job. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestOptions requestOptions = null) + public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetCascadeDeleteJobDetailsRequest(jobId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetCascadeDeleteJobDetailsRequest(jobId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmersClient.GetCascadeDeleteJobDetails"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -719,23 +719,23 @@ public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId /// Get a cascade delete job for specified farmer. /// ID of the job. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestOptions requestOptions = null) + public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetCascadeDeleteJobDetailsRequest(jobId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetCascadeDeleteJobDetailsRequest(jobId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmersClient.GetCascadeDeleteJobDetails"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -759,8 +759,8 @@ public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestOptions /// Create Request for and operations. /// ID of the job. - /// The request options. - private HttpMessage CreateGetCascadeDeleteJobDetailsRequest(string jobId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetCascadeDeleteJobDetailsRequest(string jobId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -778,23 +778,23 @@ private HttpMessage CreateGetCascadeDeleteJobDetailsRequest(string jobId, Reques /// Create a cascade delete job for specified farmer. /// Job ID supplied by end user. /// ID of the farmer to be deleted. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateCascadeDeleteJobAsync(string jobId, string farmerId, RequestOptions requestOptions = null) + public virtual async Task CreateCascadeDeleteJobAsync(string jobId, string farmerId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateCascadeDeleteJobRequest(jobId, farmerId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateCascadeDeleteJobRequest(jobId, farmerId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmersClient.CreateCascadeDeleteJob"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -819,23 +819,23 @@ public virtual async Task CreateCascadeDeleteJobAsync(string jobId, st /// Create a cascade delete job for specified farmer. /// Job ID supplied by end user. /// ID of the farmer to be deleted. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateCascadeDeleteJob(string jobId, string farmerId, RequestOptions requestOptions = null) + public virtual Response CreateCascadeDeleteJob(string jobId, string farmerId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateCascadeDeleteJobRequest(jobId, farmerId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateCascadeDeleteJobRequest(jobId, farmerId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmersClient.CreateCascadeDeleteJob"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -860,8 +860,8 @@ public virtual Response CreateCascadeDeleteJob(string jobId, string farmerId, Re /// Create Request for and operations. /// Job ID supplied by end user. /// ID of the farmer to be deleted. - /// The request options. - private HttpMessage CreateCreateCascadeDeleteJobRequest(string jobId, string farmerId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateCreateCascadeDeleteJobRequest(string jobId, string farmerId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FarmsClient.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FarmsClient.cs index 3c2ab775cec4..48d26b40d682 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FarmsClient.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FarmsClient.cs @@ -74,23 +74,23 @@ public FarmsClient(Uri endpoint, TokenCredential credential, FarmBeatsClientOpti /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListByFarmerIdAsync(string farmerId, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListByFarmerIdAsync(string farmerId, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListByFarmerIdRequest(farmerId, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListByFarmerIdRequest(farmerId, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmsClient.ListByFarmerId"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -132,23 +132,23 @@ public virtual async Task ListByFarmerIdAsync(string farmerId, IEnumer /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response ListByFarmerId(string farmerId, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response ListByFarmerId(string farmerId, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListByFarmerIdRequest(farmerId, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListByFarmerIdRequest(farmerId, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmsClient.ListByFarmerId"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -190,8 +190,8 @@ public virtual Response ListByFarmerId(string farmerId, IEnumerable ids /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListByFarmerIdRequest(string farmerId, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListByFarmerIdRequest(string farmerId, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -266,23 +266,23 @@ private HttpMessage CreateListByFarmerIdRequest(string farmerId, IEnumerable /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListAsync(IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListAsync(IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmsClient.List"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -323,23 +323,23 @@ public virtual async Task ListAsync(IEnumerable ids = null, IE /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response List(IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response List(IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmsClient.List"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -380,8 +380,8 @@ public virtual Response List(IEnumerable ids = null, IEnumerable /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListRequest(IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListRequest(IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -438,23 +438,23 @@ private HttpMessage CreateListRequest(IEnumerable ids = null, IEnumerabl /// Gets a specified farm resource under a particular farmer. /// ID of the associated farmer resource. /// ID of the farm resource. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetAsync(string farmerId, string farmId, RequestOptions requestOptions = null) + public virtual async Task GetAsync(string farmerId, string farmId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(farmerId, farmId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(farmerId, farmId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmsClient.Get"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -479,23 +479,23 @@ public virtual async Task GetAsync(string farmerId, string farmId, Req /// Gets a specified farm resource under a particular farmer. /// ID of the associated farmer resource. /// ID of the farm resource. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Get(string farmerId, string farmId, RequestOptions requestOptions = null) + public virtual Response Get(string farmerId, string farmId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(farmerId, farmId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(farmerId, farmId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmsClient.Get"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -520,8 +520,8 @@ public virtual Response Get(string farmerId, string farmId, RequestOptions reque /// Create Request for and operations. /// ID of the associated farmer resource. /// ID of the farm resource. - /// The request options. - private HttpMessage CreateGetRequest(string farmerId, string farmId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetRequest(string farmerId, string farmId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -542,12 +542,12 @@ private HttpMessage CreateGetRequest(string farmerId, string farmId, RequestOpti /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// farmerId /// string @@ -614,24 +614,24 @@ private HttpMessage CreateGetRequest(string farmerId, string farmId, RequestOpti /// /// ID of the associated farmer resource. /// ID of the farm resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateOrUpdateAsync(string farmerId, string farmId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateOrUpdateAsync(string farmerId, string farmId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(farmerId, farmId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(farmerId, farmId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmsClient.CreateOrUpdate"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -658,12 +658,12 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, string /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// farmerId /// string @@ -730,24 +730,24 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, string /// /// ID of the associated farmer resource. /// ID of the farm resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateOrUpdate(string farmerId, string farmId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateOrUpdate(string farmerId, string farmId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(farmerId, farmId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(farmerId, farmId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmsClient.CreateOrUpdate"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -773,9 +773,9 @@ public virtual Response CreateOrUpdate(string farmerId, string farmId, RequestCo /// Create Request for and operations. /// ID of the associated farmer resource. /// ID of the farm resource. - /// The request body. - /// The request options. - private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string farmId, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string farmId, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -790,30 +790,30 @@ private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string farmId, request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/merge-patch+json"); - request.Content = requestBody; + request.Content = content; return message; } /// Deletes a specified farm resource under a particular farmer. /// ID of the farmer. /// ID of the farm. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteAsync(string farmerId, string farmId, RequestOptions requestOptions = null) + public virtual async Task DeleteAsync(string farmerId, string farmId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(farmerId, farmId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(farmerId, farmId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmsClient.Delete"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -838,23 +838,23 @@ public virtual async Task DeleteAsync(string farmerId, string farmId, /// Deletes a specified farm resource under a particular farmer. /// ID of the farmer. /// ID of the farm. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Delete(string farmerId, string farmId, RequestOptions requestOptions = null) + public virtual Response Delete(string farmerId, string farmId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(farmerId, farmId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(farmerId, farmId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmsClient.Delete"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -879,8 +879,8 @@ public virtual Response Delete(string farmerId, string farmId, RequestOptions re /// Create Request for and operations. /// ID of the farmer. /// ID of the farm. - /// The request options. - private HttpMessage CreateDeleteRequest(string farmerId, string farmId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteRequest(string farmerId, string farmId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -899,23 +899,23 @@ private HttpMessage CreateDeleteRequest(string farmerId, string farmId, RequestO /// Get a cascade delete job for specified farm. /// ID of the job. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestOptions requestOptions = null) + public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetCascadeDeleteJobDetailsRequest(jobId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetCascadeDeleteJobDetailsRequest(jobId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmsClient.GetCascadeDeleteJobDetails"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -939,23 +939,23 @@ public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId /// Get a cascade delete job for specified farm. /// ID of the job. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestOptions requestOptions = null) + public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetCascadeDeleteJobDetailsRequest(jobId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetCascadeDeleteJobDetailsRequest(jobId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmsClient.GetCascadeDeleteJobDetails"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -979,8 +979,8 @@ public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestOptions /// Create Request for and operations. /// ID of the job. - /// The request options. - private HttpMessage CreateGetCascadeDeleteJobDetailsRequest(string jobId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetCascadeDeleteJobDetailsRequest(string jobId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -999,23 +999,23 @@ private HttpMessage CreateGetCascadeDeleteJobDetailsRequest(string jobId, Reques /// Job ID supplied by end user. /// ID of the associated farmer. /// ID of the farm to be deleted. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateCascadeDeleteJobAsync(string jobId, string farmerId, string farmId, RequestOptions requestOptions = null) + public virtual async Task CreateCascadeDeleteJobAsync(string jobId, string farmerId, string farmId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateCascadeDeleteJobRequest(jobId, farmerId, farmId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateCascadeDeleteJobRequest(jobId, farmerId, farmId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmsClient.CreateCascadeDeleteJob"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1041,23 +1041,23 @@ public virtual async Task CreateCascadeDeleteJobAsync(string jobId, st /// Job ID supplied by end user. /// ID of the associated farmer. /// ID of the farm to be deleted. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateCascadeDeleteJob(string jobId, string farmerId, string farmId, RequestOptions requestOptions = null) + public virtual Response CreateCascadeDeleteJob(string jobId, string farmerId, string farmId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateCascadeDeleteJobRequest(jobId, farmerId, farmId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateCascadeDeleteJobRequest(jobId, farmerId, farmId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FarmsClient.CreateCascadeDeleteJob"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1083,8 +1083,8 @@ public virtual Response CreateCascadeDeleteJob(string jobId, string farmerId, st /// Job ID supplied by end user. /// ID of the associated farmer. /// ID of the farm to be deleted. - /// The request options. - private HttpMessage CreateCreateCascadeDeleteJobRequest(string jobId, string farmerId, string farmId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateCreateCascadeDeleteJobRequest(string jobId, string farmerId, string farmId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FieldsClient.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FieldsClient.cs index 18903a90b032..b424e1bb72a4 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FieldsClient.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/FieldsClient.cs @@ -75,23 +75,23 @@ public FieldsClient(Uri endpoint, TokenCredential credential, FarmBeatsClientOpt /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListByFarmerIdAsync(string farmerId, IEnumerable farmIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListByFarmerIdAsync(string farmerId, IEnumerable farmIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListByFarmerIdRequest(farmerId, farmIds, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListByFarmerIdRequest(farmerId, farmIds, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FieldsClient.ListByFarmerId"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -134,23 +134,23 @@ public virtual async Task ListByFarmerIdAsync(string farmerId, IEnumer /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response ListByFarmerId(string farmerId, IEnumerable farmIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response ListByFarmerId(string farmerId, IEnumerable farmIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListByFarmerIdRequest(farmerId, farmIds, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListByFarmerIdRequest(farmerId, farmIds, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FieldsClient.ListByFarmerId"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -193,8 +193,8 @@ public virtual Response ListByFarmerId(string farmerId, IEnumerable farm /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListByFarmerIdRequest(string farmerId, IEnumerable farmIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListByFarmerIdRequest(string farmerId, IEnumerable farmIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -274,23 +274,23 @@ private HttpMessage CreateListByFarmerIdRequest(string farmerId, IEnumerable /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListAsync(IEnumerable farmIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListAsync(IEnumerable farmIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(farmIds, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(farmIds, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FieldsClient.List"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -332,23 +332,23 @@ public virtual async Task ListAsync(IEnumerable farmIds = null /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response List(IEnumerable farmIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response List(IEnumerable farmIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(farmIds, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(farmIds, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FieldsClient.List"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -390,8 +390,8 @@ public virtual Response List(IEnumerable farmIds = null, IEnumerable /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListRequest(IEnumerable farmIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListRequest(IEnumerable farmIds = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -452,23 +452,23 @@ private HttpMessage CreateListRequest(IEnumerable farmIds = null, IEnume /// Gets a specified field resource under a particular farmer. /// ID of the associated farmer. /// ID of the field. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetAsync(string farmerId, string fieldId, RequestOptions requestOptions = null) + public virtual async Task GetAsync(string farmerId, string fieldId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(farmerId, fieldId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(farmerId, fieldId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FieldsClient.Get"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -493,23 +493,23 @@ public virtual async Task GetAsync(string farmerId, string fieldId, Re /// Gets a specified field resource under a particular farmer. /// ID of the associated farmer. /// ID of the field. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Get(string farmerId, string fieldId, RequestOptions requestOptions = null) + public virtual Response Get(string farmerId, string fieldId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(farmerId, fieldId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(farmerId, fieldId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FieldsClient.Get"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -534,8 +534,8 @@ public virtual Response Get(string farmerId, string fieldId, RequestOptions requ /// Create Request for and operations. /// ID of the associated farmer. /// ID of the field. - /// The request options. - private HttpMessage CreateGetRequest(string farmerId, string fieldId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetRequest(string farmerId, string fieldId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -556,12 +556,12 @@ private HttpMessage CreateGetRequest(string farmerId, string fieldId, RequestOpt /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// farmId /// string @@ -646,24 +646,24 @@ private HttpMessage CreateGetRequest(string farmerId, string fieldId, RequestOpt /// /// ID of the associated farmer resource. /// ID of the field resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateOrUpdateAsync(string farmerId, string fieldId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateOrUpdateAsync(string farmerId, string fieldId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(farmerId, fieldId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(farmerId, fieldId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FieldsClient.CreateOrUpdate"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -690,12 +690,12 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, string /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// farmId /// string @@ -780,24 +780,24 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, string /// /// ID of the associated farmer resource. /// ID of the field resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateOrUpdate(string farmerId, string fieldId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateOrUpdate(string farmerId, string fieldId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(farmerId, fieldId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(farmerId, fieldId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FieldsClient.CreateOrUpdate"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -823,9 +823,9 @@ public virtual Response CreateOrUpdate(string farmerId, string fieldId, RequestC /// Create Request for and operations. /// ID of the associated farmer resource. /// ID of the field resource. - /// The request body. - /// The request options. - private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string fieldId, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string fieldId, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -840,30 +840,30 @@ private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string fieldId, request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/merge-patch+json"); - request.Content = requestBody; + request.Content = content; return message; } /// Deletes a specified field resource under a particular farmer. /// ID of the farmer. /// ID of the field. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteAsync(string farmerId, string fieldId, RequestOptions requestOptions = null) + public virtual async Task DeleteAsync(string farmerId, string fieldId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(farmerId, fieldId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(farmerId, fieldId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FieldsClient.Delete"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -888,23 +888,23 @@ public virtual async Task DeleteAsync(string farmerId, string fieldId, /// Deletes a specified field resource under a particular farmer. /// ID of the farmer. /// ID of the field. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Delete(string farmerId, string fieldId, RequestOptions requestOptions = null) + public virtual Response Delete(string farmerId, string fieldId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(farmerId, fieldId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(farmerId, fieldId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FieldsClient.Delete"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -929,8 +929,8 @@ public virtual Response Delete(string farmerId, string fieldId, RequestOptions r /// Create Request for and operations. /// ID of the farmer. /// ID of the field. - /// The request options. - private HttpMessage CreateDeleteRequest(string farmerId, string fieldId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteRequest(string farmerId, string fieldId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -949,23 +949,23 @@ private HttpMessage CreateDeleteRequest(string farmerId, string fieldId, Request /// Get a cascade delete job for specified field. /// ID of the job. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestOptions requestOptions = null) + public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetCascadeDeleteJobDetailsRequest(jobId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetCascadeDeleteJobDetailsRequest(jobId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FieldsClient.GetCascadeDeleteJobDetails"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -989,23 +989,23 @@ public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId /// Get a cascade delete job for specified field. /// ID of the job. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestOptions requestOptions = null) + public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetCascadeDeleteJobDetailsRequest(jobId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetCascadeDeleteJobDetailsRequest(jobId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FieldsClient.GetCascadeDeleteJobDetails"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1029,8 +1029,8 @@ public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestOptions /// Create Request for and operations. /// ID of the job. - /// The request options. - private HttpMessage CreateGetCascadeDeleteJobDetailsRequest(string jobId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetCascadeDeleteJobDetailsRequest(string jobId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1049,23 +1049,23 @@ private HttpMessage CreateGetCascadeDeleteJobDetailsRequest(string jobId, Reques /// Job ID supplied by end user. /// ID of the associated farmer. /// ID of the field to be deleted. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateCascadeDeleteJobAsync(string jobId, string farmerId, string fieldId, RequestOptions requestOptions = null) + public virtual async Task CreateCascadeDeleteJobAsync(string jobId, string farmerId, string fieldId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateCascadeDeleteJobRequest(jobId, farmerId, fieldId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateCascadeDeleteJobRequest(jobId, farmerId, fieldId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FieldsClient.CreateCascadeDeleteJob"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1091,23 +1091,23 @@ public virtual async Task CreateCascadeDeleteJobAsync(string jobId, st /// Job ID supplied by end user. /// ID of the associated farmer. /// ID of the field to be deleted. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateCascadeDeleteJob(string jobId, string farmerId, string fieldId, RequestOptions requestOptions = null) + public virtual Response CreateCascadeDeleteJob(string jobId, string farmerId, string fieldId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateCascadeDeleteJobRequest(jobId, farmerId, fieldId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateCascadeDeleteJobRequest(jobId, farmerId, fieldId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("FieldsClient.CreateCascadeDeleteJob"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1133,8 +1133,8 @@ public virtual Response CreateCascadeDeleteJob(string jobId, string farmerId, st /// Job ID supplied by end user. /// ID of the associated farmer. /// ID of the field to be deleted. - /// The request options. - private HttpMessage CreateCreateCascadeDeleteJobRequest(string jobId, string farmerId, string fieldId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateCreateCascadeDeleteJobRequest(string jobId, string farmerId, string fieldId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/HarvestDataClient.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/HarvestDataClient.cs index 582de7353c51..a8fc3e8240e0 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/HarvestDataClient.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/HarvestDataClient.cs @@ -97,23 +97,23 @@ public HarvestDataClient(Uri endpoint, TokenCredential credential, FarmBeatsClie /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListByFarmerIdAsync(string farmerId, double? minTotalYield = null, double? maxTotalYield = null, double? minAvgYield = null, double? maxAvgYield = null, double? minTotalWetMass = null, double? maxTotalWetMass = null, double? minAvgWetMass = null, double? maxAvgWetMass = null, double? minAvgMoisture = null, double? maxAvgMoisture = null, double? minAvgSpeed = null, double? maxAvgSpeed = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListByFarmerIdAsync(string farmerId, double? minTotalYield = null, double? maxTotalYield = null, double? minAvgYield = null, double? maxAvgYield = null, double? minTotalWetMass = null, double? maxTotalWetMass = null, double? minAvgWetMass = null, double? maxAvgWetMass = null, double? minAvgMoisture = null, double? maxAvgMoisture = null, double? minAvgSpeed = null, double? maxAvgSpeed = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListByFarmerIdRequest(farmerId, minTotalYield, maxTotalYield, minAvgYield, maxAvgYield, minTotalWetMass, maxTotalWetMass, minAvgWetMass, maxAvgWetMass, minAvgMoisture, maxAvgMoisture, minAvgSpeed, maxAvgSpeed, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListByFarmerIdRequest(farmerId, minTotalYield, maxTotalYield, minAvgYield, maxAvgYield, minTotalWetMass, maxTotalWetMass, minAvgWetMass, maxAvgWetMass, minAvgMoisture, maxAvgMoisture, minAvgSpeed, maxAvgSpeed, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("HarvestDataClient.ListByFarmerId"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -178,23 +178,23 @@ public virtual async Task ListByFarmerIdAsync(string farmerId, double? /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response ListByFarmerId(string farmerId, double? minTotalYield = null, double? maxTotalYield = null, double? minAvgYield = null, double? maxAvgYield = null, double? minTotalWetMass = null, double? maxTotalWetMass = null, double? minAvgWetMass = null, double? maxAvgWetMass = null, double? minAvgMoisture = null, double? maxAvgMoisture = null, double? minAvgSpeed = null, double? maxAvgSpeed = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response ListByFarmerId(string farmerId, double? minTotalYield = null, double? maxTotalYield = null, double? minAvgYield = null, double? maxAvgYield = null, double? minTotalWetMass = null, double? maxTotalWetMass = null, double? minAvgWetMass = null, double? maxAvgWetMass = null, double? minAvgMoisture = null, double? maxAvgMoisture = null, double? minAvgSpeed = null, double? maxAvgSpeed = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListByFarmerIdRequest(farmerId, minTotalYield, maxTotalYield, minAvgYield, maxAvgYield, minTotalWetMass, maxTotalWetMass, minAvgWetMass, maxAvgWetMass, minAvgMoisture, maxAvgMoisture, minAvgSpeed, maxAvgSpeed, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListByFarmerIdRequest(farmerId, minTotalYield, maxTotalYield, minAvgYield, maxAvgYield, minTotalWetMass, maxTotalWetMass, minAvgWetMass, maxAvgWetMass, minAvgMoisture, maxAvgMoisture, minAvgSpeed, maxAvgSpeed, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("HarvestDataClient.ListByFarmerId"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -259,8 +259,8 @@ public virtual Response ListByFarmerId(string farmerId, double? minTotalYield = /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListByFarmerIdRequest(string farmerId, double? minTotalYield = null, double? maxTotalYield = null, double? minAvgYield = null, double? maxAvgYield = null, double? minTotalWetMass = null, double? maxTotalWetMass = null, double? minAvgWetMass = null, double? maxAvgWetMass = null, double? minAvgMoisture = null, double? maxAvgMoisture = null, double? minAvgSpeed = null, double? maxAvgSpeed = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListByFarmerIdRequest(string farmerId, double? minTotalYield = null, double? maxTotalYield = null, double? minAvgYield = null, double? maxAvgYield = null, double? minTotalWetMass = null, double? maxTotalWetMass = null, double? minAvgWetMass = null, double? maxAvgWetMass = null, double? minAvgMoisture = null, double? maxAvgMoisture = null, double? minAvgSpeed = null, double? maxAvgSpeed = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -450,23 +450,23 @@ private HttpMessage CreateListByFarmerIdRequest(string farmerId, double? minTota /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListAsync(double? minTotalYield = null, double? maxTotalYield = null, double? minAvgYield = null, double? maxAvgYield = null, double? minTotalWetMass = null, double? maxTotalWetMass = null, double? minAvgWetMass = null, double? maxAvgWetMass = null, double? minAvgMoisture = null, double? maxAvgMoisture = null, double? minAvgSpeed = null, double? maxAvgSpeed = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListAsync(double? minTotalYield = null, double? maxTotalYield = null, double? minAvgYield = null, double? maxAvgYield = null, double? minTotalWetMass = null, double? maxTotalWetMass = null, double? minAvgWetMass = null, double? maxAvgWetMass = null, double? minAvgMoisture = null, double? maxAvgMoisture = null, double? minAvgSpeed = null, double? maxAvgSpeed = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(minTotalYield, maxTotalYield, minAvgYield, maxAvgYield, minTotalWetMass, maxTotalWetMass, minAvgWetMass, maxAvgWetMass, minAvgMoisture, maxAvgMoisture, minAvgSpeed, maxAvgSpeed, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(minTotalYield, maxTotalYield, minAvgYield, maxAvgYield, minTotalWetMass, maxTotalWetMass, minAvgWetMass, maxAvgWetMass, minAvgMoisture, maxAvgMoisture, minAvgSpeed, maxAvgSpeed, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("HarvestDataClient.List"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -530,23 +530,23 @@ public virtual async Task ListAsync(double? minTotalYield = null, doub /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response List(double? minTotalYield = null, double? maxTotalYield = null, double? minAvgYield = null, double? maxAvgYield = null, double? minTotalWetMass = null, double? maxTotalWetMass = null, double? minAvgWetMass = null, double? maxAvgWetMass = null, double? minAvgMoisture = null, double? maxAvgMoisture = null, double? minAvgSpeed = null, double? maxAvgSpeed = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response List(double? minTotalYield = null, double? maxTotalYield = null, double? minAvgYield = null, double? maxAvgYield = null, double? minTotalWetMass = null, double? maxTotalWetMass = null, double? minAvgWetMass = null, double? maxAvgWetMass = null, double? minAvgMoisture = null, double? maxAvgMoisture = null, double? minAvgSpeed = null, double? maxAvgSpeed = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(minTotalYield, maxTotalYield, minAvgYield, maxAvgYield, minTotalWetMass, maxTotalWetMass, minAvgWetMass, maxAvgWetMass, minAvgMoisture, maxAvgMoisture, minAvgSpeed, maxAvgSpeed, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(minTotalYield, maxTotalYield, minAvgYield, maxAvgYield, minTotalWetMass, maxTotalWetMass, minAvgWetMass, maxAvgWetMass, minAvgMoisture, maxAvgMoisture, minAvgSpeed, maxAvgSpeed, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("HarvestDataClient.List"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -610,8 +610,8 @@ public virtual Response List(double? minTotalYield = null, double? maxTotalYield /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListRequest(double? minTotalYield = null, double? maxTotalYield = null, double? minAvgYield = null, double? maxAvgYield = null, double? minTotalWetMass = null, double? maxTotalWetMass = null, double? minAvgWetMass = null, double? maxAvgWetMass = null, double? minAvgMoisture = null, double? maxAvgMoisture = null, double? minAvgSpeed = null, double? maxAvgSpeed = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListRequest(double? minTotalYield = null, double? maxTotalYield = null, double? minAvgYield = null, double? maxAvgYield = null, double? minTotalWetMass = null, double? maxTotalWetMass = null, double? minAvgWetMass = null, double? maxAvgWetMass = null, double? minAvgMoisture = null, double? maxAvgMoisture = null, double? minAvgSpeed = null, double? maxAvgSpeed = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -760,23 +760,23 @@ private HttpMessage CreateListRequest(double? minTotalYield = null, double? maxT /// Get a specified harvest data resource under a particular farmer. /// ID of the associated farmer resource. /// ID of the harvest data resource. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetAsync(string farmerId, string harvestDataId, RequestOptions requestOptions = null) + public virtual async Task GetAsync(string farmerId, string harvestDataId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(farmerId, harvestDataId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(farmerId, harvestDataId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("HarvestDataClient.Get"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -801,23 +801,23 @@ public virtual async Task GetAsync(string farmerId, string harvestData /// Get a specified harvest data resource under a particular farmer. /// ID of the associated farmer resource. /// ID of the harvest data resource. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Get(string farmerId, string harvestDataId, RequestOptions requestOptions = null) + public virtual Response Get(string farmerId, string harvestDataId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(farmerId, harvestDataId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(farmerId, harvestDataId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("HarvestDataClient.Get"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -842,8 +842,8 @@ public virtual Response Get(string farmerId, string harvestDataId, RequestOption /// Create Request for and operations. /// ID of the associated farmer resource. /// ID of the harvest data resource. - /// The request options. - private HttpMessage CreateGetRequest(string farmerId, string harvestDataId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetRequest(string farmerId, string harvestDataId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -864,12 +864,12 @@ private HttpMessage CreateGetRequest(string farmerId, string harvestDataId, Requ /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// totalYield /// Measure @@ -1029,12 +1029,12 @@ private HttpMessage CreateGetRequest(string farmerId, string harvestDataId, Requ /// /// Schema for Measure: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// unit /// string @@ -1050,12 +1050,12 @@ private HttpMessage CreateGetRequest(string farmerId, string harvestDataId, Requ /// /// Schema for HarvestProductDetail: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// productName /// string @@ -1102,24 +1102,24 @@ private HttpMessage CreateGetRequest(string farmerId, string harvestDataId, Requ /// /// ID of the farmer. /// ID of the harvest data resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateOrUpdateAsync(string farmerId, string harvestDataId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateOrUpdateAsync(string farmerId, string harvestDataId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(farmerId, harvestDataId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(farmerId, harvestDataId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("HarvestDataClient.CreateOrUpdate"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1146,12 +1146,12 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, string /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// totalYield /// Measure @@ -1311,12 +1311,12 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, string /// /// Schema for Measure: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// unit /// string @@ -1332,12 +1332,12 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, string /// /// Schema for HarvestProductDetail: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// productName /// string @@ -1384,24 +1384,24 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, string /// /// ID of the farmer. /// ID of the harvest data resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateOrUpdate(string farmerId, string harvestDataId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateOrUpdate(string farmerId, string harvestDataId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(farmerId, harvestDataId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(farmerId, harvestDataId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("HarvestDataClient.CreateOrUpdate"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1427,9 +1427,9 @@ public virtual Response CreateOrUpdate(string farmerId, string harvestDataId, Re /// Create Request for and operations. /// ID of the farmer. /// ID of the harvest data resource. - /// The request body. - /// The request options. - private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string harvestDataId, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string harvestDataId, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1444,30 +1444,30 @@ private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string harvestD request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/merge-patch+json"); - request.Content = requestBody; + request.Content = content; return message; } /// Deletes a specified harvest data resource under a particular farmer. /// ID of the associated farmer resource. /// ID of the harvest data. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteAsync(string farmerId, string harvestDataId, RequestOptions requestOptions = null) + public virtual async Task DeleteAsync(string farmerId, string harvestDataId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(farmerId, harvestDataId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(farmerId, harvestDataId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("HarvestDataClient.Delete"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1492,23 +1492,23 @@ public virtual async Task DeleteAsync(string farmerId, string harvestD /// Deletes a specified harvest data resource under a particular farmer. /// ID of the associated farmer resource. /// ID of the harvest data. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Delete(string farmerId, string harvestDataId, RequestOptions requestOptions = null) + public virtual Response Delete(string farmerId, string harvestDataId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(farmerId, harvestDataId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(farmerId, harvestDataId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("HarvestDataClient.Delete"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1533,8 +1533,8 @@ public virtual Response Delete(string farmerId, string harvestDataId, RequestOpt /// Create Request for and operations. /// ID of the associated farmer resource. /// ID of the harvest data. - /// The request options. - private HttpMessage CreateDeleteRequest(string farmerId, string harvestDataId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteRequest(string farmerId, string harvestDataId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ImageProcessingClient.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ImageProcessingClient.cs index 5d7612b4adc7..39179fe687c5 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ImageProcessingClient.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ImageProcessingClient.cs @@ -57,12 +57,12 @@ public ImageProcessingClient(Uri endpoint, TokenCredential credential, FarmBeats /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// farmerId /// string @@ -162,24 +162,24 @@ public ImageProcessingClient(Uri endpoint, TokenCredential credential, FarmBeats /// /// /// JobId provided by user. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateRasterizeJobAsync(string jobId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateRasterizeJobAsync(string jobId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateRasterizeJobRequest(jobId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateRasterizeJobRequest(jobId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ImageProcessingClient.CreateRasterizeJob"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -205,12 +205,12 @@ public virtual async Task CreateRasterizeJobAsync(string jobId, Reques /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// farmerId /// string @@ -310,24 +310,24 @@ public virtual async Task CreateRasterizeJobAsync(string jobId, Reques /// /// /// JobId provided by user. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateRasterizeJob(string jobId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateRasterizeJob(string jobId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateRasterizeJobRequest(jobId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateRasterizeJobRequest(jobId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ImageProcessingClient.CreateRasterizeJob"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -351,9 +351,9 @@ public virtual Response CreateRasterizeJob(string jobId, RequestContent requestB /// Create Request for and operations. /// JobId provided by user. - /// The request body. - /// The request options. - private HttpMessage CreateCreateRasterizeJobRequest(string jobId, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateRasterizeJobRequest(string jobId, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -366,29 +366,29 @@ private HttpMessage CreateCreateRasterizeJobRequest(string jobId, RequestContent request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } /// Get ImageProcessing Rasterize job's details. /// ID of the job. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetRasterizeJobAsync(string jobId, RequestOptions requestOptions = null) + public virtual async Task GetRasterizeJobAsync(string jobId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRasterizeJobRequest(jobId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRasterizeJobRequest(jobId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ImageProcessingClient.GetRasterizeJob"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -412,23 +412,23 @@ public virtual async Task GetRasterizeJobAsync(string jobId, RequestOp /// Get ImageProcessing Rasterize job's details. /// ID of the job. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetRasterizeJob(string jobId, RequestOptions requestOptions = null) + public virtual Response GetRasterizeJob(string jobId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRasterizeJobRequest(jobId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRasterizeJobRequest(jobId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ImageProcessingClient.GetRasterizeJob"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -452,8 +452,8 @@ public virtual Response GetRasterizeJob(string jobId, RequestOptions requestOpti /// Create Request for and operations. /// ID of the job. - /// The request options. - private HttpMessage CreateGetRasterizeJobRequest(string jobId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetRasterizeJobRequest(string jobId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/OAuthProvidersClient.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/OAuthProvidersClient.cs index d64e323ba22e..4132bd1d315f 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/OAuthProvidersClient.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/OAuthProvidersClient.cs @@ -73,23 +73,23 @@ public OAuthProvidersClient(Uri endpoint, TokenCredential credential, FarmBeatsC /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListAsync(IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListAsync(IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("OAuthProvidersClient.List"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -130,23 +130,23 @@ public virtual async Task ListAsync(IEnumerable ids = null, IE /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response List(IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response List(IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("OAuthProvidersClient.List"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -187,8 +187,8 @@ public virtual Response List(IEnumerable ids = null, IEnumerable /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListRequest(IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListRequest(IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -244,23 +244,23 @@ private HttpMessage CreateListRequest(IEnumerable ids = null, IEnumerabl /// Get a specified oauthProvider resource. /// ID of the oauthProvider resource. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetAsync(string oauthProviderId, RequestOptions requestOptions = null) + public virtual async Task GetAsync(string oauthProviderId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(oauthProviderId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(oauthProviderId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("OAuthProvidersClient.Get"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -284,23 +284,23 @@ public virtual async Task GetAsync(string oauthProviderId, RequestOpti /// Get a specified oauthProvider resource. /// ID of the oauthProvider resource. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Get(string oauthProviderId, RequestOptions requestOptions = null) + public virtual Response Get(string oauthProviderId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(oauthProviderId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(oauthProviderId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("OAuthProvidersClient.Get"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -324,8 +324,8 @@ public virtual Response Get(string oauthProviderId, RequestOptions requestOption /// Create Request for and operations. /// ID of the oauthProvider resource. - /// The request options. - private HttpMessage CreateGetRequest(string oauthProviderId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetRequest(string oauthProviderId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -344,12 +344,12 @@ private HttpMessage CreateGetRequest(string oauthProviderId, RequestOptions requ /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// appId /// string @@ -439,24 +439,24 @@ private HttpMessage CreateGetRequest(string oauthProviderId, RequestOptions requ /// /// /// ID of oauthProvider resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateOrUpdateAsync(string oauthProviderId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateOrUpdateAsync(string oauthProviderId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(oauthProviderId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(oauthProviderId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("OAuthProvidersClient.CreateOrUpdate"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -483,12 +483,12 @@ public virtual async Task CreateOrUpdateAsync(string oauthProviderId, /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// appId /// string @@ -578,24 +578,24 @@ public virtual async Task CreateOrUpdateAsync(string oauthProviderId, /// /// /// ID of oauthProvider resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateOrUpdate(string oauthProviderId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateOrUpdate(string oauthProviderId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(oauthProviderId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(oauthProviderId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("OAuthProvidersClient.CreateOrUpdate"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -620,9 +620,9 @@ public virtual Response CreateOrUpdate(string oauthProviderId, RequestContent re /// Create Request for and operations. /// ID of oauthProvider resource. - /// The request body. - /// The request options. - private HttpMessage CreateCreateOrUpdateRequest(string oauthProviderId, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateOrUpdateRequest(string oauthProviderId, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -635,29 +635,29 @@ private HttpMessage CreateCreateOrUpdateRequest(string oauthProviderId, RequestC request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/merge-patch+json"); - request.Content = requestBody; + request.Content = content; return message; } /// Deletes an specified oauthProvider resource. /// ID of oauthProvider. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteAsync(string oauthProviderId, RequestOptions requestOptions = null) + public virtual async Task DeleteAsync(string oauthProviderId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(oauthProviderId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(oauthProviderId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("OAuthProvidersClient.Delete"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -681,23 +681,23 @@ public virtual async Task DeleteAsync(string oauthProviderId, RequestO /// Deletes an specified oauthProvider resource. /// ID of oauthProvider. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Delete(string oauthProviderId, RequestOptions requestOptions = null) + public virtual Response Delete(string oauthProviderId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(oauthProviderId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(oauthProviderId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("OAuthProvidersClient.Delete"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -721,8 +721,8 @@ public virtual Response Delete(string oauthProviderId, RequestOptions requestOpt /// Create Request for and operations. /// ID of oauthProvider. - /// The request options. - private HttpMessage CreateDeleteRequest(string oauthProviderId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteRequest(string oauthProviderId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/OAuthTokensClient.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/OAuthTokensClient.cs index ab4e3a7eda04..5270e492b673 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/OAuthTokensClient.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/OAuthTokensClient.cs @@ -68,23 +68,23 @@ public OAuthTokensClient(Uri endpoint, TokenCredential credential, FarmBeatsClie /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListAsync(IEnumerable authProviderIds = null, IEnumerable farmerIds = null, bool? isValid = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListAsync(IEnumerable authProviderIds = null, IEnumerable farmerIds = null, bool? isValid = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(authProviderIds, farmerIds, isValid, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(authProviderIds, farmerIds, isValid, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("OAuthTokensClient.List"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -120,23 +120,23 @@ public virtual async Task ListAsync(IEnumerable authProviderId /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response List(IEnumerable authProviderIds = null, IEnumerable farmerIds = null, bool? isValid = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response List(IEnumerable authProviderIds = null, IEnumerable farmerIds = null, bool? isValid = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(authProviderIds, farmerIds, isValid, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(authProviderIds, farmerIds, isValid, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("OAuthTokensClient.List"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -172,8 +172,8 @@ public virtual Response List(IEnumerable authProviderIds = null, IEnumer /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListRequest(IEnumerable authProviderIds = null, IEnumerable farmerIds = null, bool? isValid = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListRequest(IEnumerable authProviderIds = null, IEnumerable farmerIds = null, bool? isValid = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -227,12 +227,12 @@ private HttpMessage CreateListRequest(IEnumerable authProviderIds = null /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// farmerId /// string @@ -259,24 +259,24 @@ private HttpMessage CreateListRequest(IEnumerable authProviderIds = null /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetOAuthConnectionLinkAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task GetOAuthConnectionLinkAsync(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetOAuthConnectionLinkRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetOAuthConnectionLinkRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("OAuthTokensClient.GetOAuthConnectionLink"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -302,12 +302,12 @@ public virtual async Task GetOAuthConnectionLinkAsync(RequestContent r /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// farmerId /// string @@ -334,24 +334,24 @@ public virtual async Task GetOAuthConnectionLinkAsync(RequestContent r /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetOAuthConnectionLink(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response GetOAuthConnectionLink(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetOAuthConnectionLinkRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetOAuthConnectionLinkRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("OAuthTokensClient.GetOAuthConnectionLink"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -374,9 +374,9 @@ public virtual Response GetOAuthConnectionLink(RequestContent requestBody, Reque } /// Create Request for and operations. - /// The request body. - /// The request options. - private HttpMessage CreateGetOAuthConnectionLinkRequest(RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateGetOAuthConnectionLinkRequest(RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -388,29 +388,29 @@ private HttpMessage CreateGetOAuthConnectionLinkRequest(RequestContent requestBo request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } /// Get cascade delete job details for OAuth tokens for specified job ID. /// ID of the job. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestOptions requestOptions = null) + public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetCascadeDeleteJobDetailsRequest(jobId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetCascadeDeleteJobDetailsRequest(jobId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("OAuthTokensClient.GetCascadeDeleteJobDetails"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -434,23 +434,23 @@ public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId /// Get cascade delete job details for OAuth tokens for specified job ID. /// ID of the job. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestOptions requestOptions = null) + public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetCascadeDeleteJobDetailsRequest(jobId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetCascadeDeleteJobDetailsRequest(jobId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("OAuthTokensClient.GetCascadeDeleteJobDetails"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -474,8 +474,8 @@ public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestOptions /// Create Request for and operations. /// ID of the job. - /// The request options. - private HttpMessage CreateGetCascadeDeleteJobDetailsRequest(string jobId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetCascadeDeleteJobDetailsRequest(string jobId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -494,23 +494,23 @@ private HttpMessage CreateGetCascadeDeleteJobDetailsRequest(string jobId, Reques /// Job ID supplied by end user. /// ID of the farmer. /// ID of the OAuthProvider. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateCascadeDeleteJobAsync(string jobId, string farmerId, string oauthProviderId, RequestOptions requestOptions = null) + public virtual async Task CreateCascadeDeleteJobAsync(string jobId, string farmerId, string oauthProviderId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateCascadeDeleteJobRequest(jobId, farmerId, oauthProviderId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateCascadeDeleteJobRequest(jobId, farmerId, oauthProviderId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("OAuthTokensClient.CreateCascadeDeleteJob"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -536,23 +536,23 @@ public virtual async Task CreateCascadeDeleteJobAsync(string jobId, st /// Job ID supplied by end user. /// ID of the farmer. /// ID of the OAuthProvider. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateCascadeDeleteJob(string jobId, string farmerId, string oauthProviderId, RequestOptions requestOptions = null) + public virtual Response CreateCascadeDeleteJob(string jobId, string farmerId, string oauthProviderId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateCascadeDeleteJobRequest(jobId, farmerId, oauthProviderId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateCascadeDeleteJobRequest(jobId, farmerId, oauthProviderId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("OAuthTokensClient.CreateCascadeDeleteJob"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -578,8 +578,8 @@ public virtual Response CreateCascadeDeleteJob(string jobId, string farmerId, st /// Job ID supplied by end user. /// ID of the farmer. /// ID of the OAuthProvider. - /// The request options. - private HttpMessage CreateCreateCascadeDeleteJobRequest(string jobId, string farmerId, string oauthProviderId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateCreateCascadeDeleteJobRequest(string jobId, string farmerId, string oauthProviderId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/PlantingDataClient.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/PlantingDataClient.cs index bfaad8605fc2..e1292c8f5aa3 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/PlantingDataClient.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/PlantingDataClient.cs @@ -91,23 +91,23 @@ public PlantingDataClient(Uri endpoint, TokenCredential credential, FarmBeatsCli /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListByFarmerIdAsync(string farmerId, double? minAvgPlantingRate = null, double? maxAvgPlantingRate = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, double? minAvgMaterial = null, double? maxAvgMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListByFarmerIdAsync(string farmerId, double? minAvgPlantingRate = null, double? maxAvgPlantingRate = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, double? minAvgMaterial = null, double? maxAvgMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListByFarmerIdRequest(farmerId, minAvgPlantingRate, maxAvgPlantingRate, minTotalMaterial, maxTotalMaterial, minAvgMaterial, maxAvgMaterial, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListByFarmerIdRequest(farmerId, minAvgPlantingRate, maxAvgPlantingRate, minTotalMaterial, maxTotalMaterial, minAvgMaterial, maxAvgMaterial, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PlantingDataClient.ListByFarmerId"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -166,23 +166,23 @@ public virtual async Task ListByFarmerIdAsync(string farmerId, double? /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response ListByFarmerId(string farmerId, double? minAvgPlantingRate = null, double? maxAvgPlantingRate = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, double? minAvgMaterial = null, double? maxAvgMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response ListByFarmerId(string farmerId, double? minAvgPlantingRate = null, double? maxAvgPlantingRate = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, double? minAvgMaterial = null, double? maxAvgMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListByFarmerIdRequest(farmerId, minAvgPlantingRate, maxAvgPlantingRate, minTotalMaterial, maxTotalMaterial, minAvgMaterial, maxAvgMaterial, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListByFarmerIdRequest(farmerId, minAvgPlantingRate, maxAvgPlantingRate, minTotalMaterial, maxTotalMaterial, minAvgMaterial, maxAvgMaterial, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PlantingDataClient.ListByFarmerId"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -241,8 +241,8 @@ public virtual Response ListByFarmerId(string farmerId, double? minAvgPlantingRa /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListByFarmerIdRequest(string farmerId, double? minAvgPlantingRate = null, double? maxAvgPlantingRate = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, double? minAvgMaterial = null, double? maxAvgMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListByFarmerIdRequest(string farmerId, double? minAvgPlantingRate = null, double? maxAvgPlantingRate = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, double? minAvgMaterial = null, double? maxAvgMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -402,23 +402,23 @@ private HttpMessage CreateListByFarmerIdRequest(string farmerId, double? minAvgP /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListAsync(double? minAvgPlantingRate = null, double? maxAvgPlantingRate = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, double? minAvgMaterial = null, double? maxAvgMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListAsync(double? minAvgPlantingRate = null, double? maxAvgPlantingRate = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, double? minAvgMaterial = null, double? maxAvgMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(minAvgPlantingRate, maxAvgPlantingRate, minTotalMaterial, maxTotalMaterial, minAvgMaterial, maxAvgMaterial, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(minAvgPlantingRate, maxAvgPlantingRate, minTotalMaterial, maxTotalMaterial, minAvgMaterial, maxAvgMaterial, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PlantingDataClient.List"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -476,23 +476,23 @@ public virtual async Task ListAsync(double? minAvgPlantingRate = null, /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response List(double? minAvgPlantingRate = null, double? maxAvgPlantingRate = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, double? minAvgMaterial = null, double? maxAvgMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response List(double? minAvgPlantingRate = null, double? maxAvgPlantingRate = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, double? minAvgMaterial = null, double? maxAvgMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(minAvgPlantingRate, maxAvgPlantingRate, minTotalMaterial, maxTotalMaterial, minAvgMaterial, maxAvgMaterial, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(minAvgPlantingRate, maxAvgPlantingRate, minTotalMaterial, maxTotalMaterial, minAvgMaterial, maxAvgMaterial, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PlantingDataClient.List"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -550,8 +550,8 @@ public virtual Response List(double? minAvgPlantingRate = null, double? maxAvgPl /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListRequest(double? minAvgPlantingRate = null, double? maxAvgPlantingRate = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, double? minAvgMaterial = null, double? maxAvgMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListRequest(double? minAvgPlantingRate = null, double? maxAvgPlantingRate = null, double? minTotalMaterial = null, double? maxTotalMaterial = null, double? minAvgMaterial = null, double? maxAvgMaterial = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -676,23 +676,23 @@ private HttpMessage CreateListRequest(double? minAvgPlantingRate = null, double? /// Get a specified planting data resource under a particular farmer. /// ID of the associated farmer resource. /// ID of the planting data resource. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetAsync(string farmerId, string plantingDataId, RequestOptions requestOptions = null) + public virtual async Task GetAsync(string farmerId, string plantingDataId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(farmerId, plantingDataId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(farmerId, plantingDataId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PlantingDataClient.Get"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -717,23 +717,23 @@ public virtual async Task GetAsync(string farmerId, string plantingDat /// Get a specified planting data resource under a particular farmer. /// ID of the associated farmer resource. /// ID of the planting data resource. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Get(string farmerId, string plantingDataId, RequestOptions requestOptions = null) + public virtual Response Get(string farmerId, string plantingDataId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(farmerId, plantingDataId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(farmerId, plantingDataId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PlantingDataClient.Get"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -758,8 +758,8 @@ public virtual Response Get(string farmerId, string plantingDataId, RequestOptio /// Create Request for and operations. /// ID of the associated farmer resource. /// ID of the planting data resource. - /// The request options. - private HttpMessage CreateGetRequest(string farmerId, string plantingDataId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetRequest(string farmerId, string plantingDataId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -780,12 +780,12 @@ private HttpMessage CreateGetRequest(string farmerId, string plantingDataId, Req /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// avgPlantingRate /// Measure @@ -927,12 +927,12 @@ private HttpMessage CreateGetRequest(string farmerId, string plantingDataId, Req /// /// Schema for Measure: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// unit /// string @@ -948,12 +948,12 @@ private HttpMessage CreateGetRequest(string farmerId, string plantingDataId, Req /// /// Schema for PlantingProductDetail: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// productName /// string @@ -982,24 +982,24 @@ private HttpMessage CreateGetRequest(string farmerId, string plantingDataId, Req /// /// ID of the associated farmer. /// ID of the planting data resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateOrUpdateAsync(string farmerId, string plantingDataId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateOrUpdateAsync(string farmerId, string plantingDataId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(farmerId, plantingDataId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(farmerId, plantingDataId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PlantingDataClient.CreateOrUpdate"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1026,12 +1026,12 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, string /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// avgPlantingRate /// Measure @@ -1173,12 +1173,12 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, string /// /// Schema for Measure: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// unit /// string @@ -1194,12 +1194,12 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, string /// /// Schema for PlantingProductDetail: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// productName /// string @@ -1228,24 +1228,24 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, string /// /// ID of the associated farmer. /// ID of the planting data resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateOrUpdate(string farmerId, string plantingDataId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateOrUpdate(string farmerId, string plantingDataId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(farmerId, plantingDataId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(farmerId, plantingDataId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PlantingDataClient.CreateOrUpdate"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1271,9 +1271,9 @@ public virtual Response CreateOrUpdate(string farmerId, string plantingDataId, R /// Create Request for and operations. /// ID of the associated farmer. /// ID of the planting data resource. - /// The request body. - /// The request options. - private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string plantingDataId, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string plantingDataId, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1288,30 +1288,30 @@ private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string planting request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/merge-patch+json"); - request.Content = requestBody; + request.Content = content; return message; } /// Deletes a specified planting data resource under a particular farmer. /// ID of the associated farmer resource. /// ID of the planting data. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteAsync(string farmerId, string plantingDataId, RequestOptions requestOptions = null) + public virtual async Task DeleteAsync(string farmerId, string plantingDataId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(farmerId, plantingDataId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(farmerId, plantingDataId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PlantingDataClient.Delete"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1336,23 +1336,23 @@ public virtual async Task DeleteAsync(string farmerId, string planting /// Deletes a specified planting data resource under a particular farmer. /// ID of the associated farmer resource. /// ID of the planting data. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Delete(string farmerId, string plantingDataId, RequestOptions requestOptions = null) + public virtual Response Delete(string farmerId, string plantingDataId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(farmerId, plantingDataId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(farmerId, plantingDataId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PlantingDataClient.Delete"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1377,8 +1377,8 @@ public virtual Response Delete(string farmerId, string plantingDataId, RequestOp /// Create Request for and operations. /// ID of the associated farmer resource. /// ID of the planting data. - /// The request options. - private HttpMessage CreateDeleteRequest(string farmerId, string plantingDataId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteRequest(string farmerId, string plantingDataId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ScenesClient.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ScenesClient.cs index d1b689586a12..944a16a8d185 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ScenesClient.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/ScenesClient.cs @@ -72,23 +72,23 @@ public ScenesClient(Uri endpoint, TokenCredential credential, FarmBeatsClientOpt /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListAsync(string provider, string farmerId, string boundaryId, string source = null, DateTimeOffset? startDateTime = null, DateTimeOffset? endDateTime = null, double? maxCloudCoveragePercentage = null, double? maxDarkPixelCoveragePercentage = null, IEnumerable imageNames = null, IEnumerable imageResolutions = null, IEnumerable imageFormats = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListAsync(string provider, string farmerId, string boundaryId, string source = null, DateTimeOffset? startDateTime = null, DateTimeOffset? endDateTime = null, double? maxCloudCoveragePercentage = null, double? maxDarkPixelCoveragePercentage = null, IEnumerable imageNames = null, IEnumerable imageResolutions = null, IEnumerable imageFormats = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(provider, farmerId, boundaryId, source, startDateTime, endDateTime, maxCloudCoveragePercentage, maxDarkPixelCoveragePercentage, imageNames, imageResolutions, imageFormats, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(provider, farmerId, boundaryId, source, startDateTime, endDateTime, maxCloudCoveragePercentage, maxDarkPixelCoveragePercentage, imageNames, imageResolutions, imageFormats, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ScenesClient.List"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -128,23 +128,23 @@ public virtual async Task ListAsync(string provider, string farmerId, /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response List(string provider, string farmerId, string boundaryId, string source = null, DateTimeOffset? startDateTime = null, DateTimeOffset? endDateTime = null, double? maxCloudCoveragePercentage = null, double? maxDarkPixelCoveragePercentage = null, IEnumerable imageNames = null, IEnumerable imageResolutions = null, IEnumerable imageFormats = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response List(string provider, string farmerId, string boundaryId, string source = null, DateTimeOffset? startDateTime = null, DateTimeOffset? endDateTime = null, double? maxCloudCoveragePercentage = null, double? maxDarkPixelCoveragePercentage = null, IEnumerable imageNames = null, IEnumerable imageResolutions = null, IEnumerable imageFormats = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(provider, farmerId, boundaryId, source, startDateTime, endDateTime, maxCloudCoveragePercentage, maxDarkPixelCoveragePercentage, imageNames, imageResolutions, imageFormats, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(provider, farmerId, boundaryId, source, startDateTime, endDateTime, maxCloudCoveragePercentage, maxDarkPixelCoveragePercentage, imageNames, imageResolutions, imageFormats, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ScenesClient.List"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -184,8 +184,8 @@ public virtual Response List(string provider, string farmerId, string boundaryId /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListRequest(string provider, string farmerId, string boundaryId, string source = null, DateTimeOffset? startDateTime = null, DateTimeOffset? endDateTime = null, double? maxCloudCoveragePercentage = null, double? maxDarkPixelCoveragePercentage = null, IEnumerable imageNames = null, IEnumerable imageResolutions = null, IEnumerable imageFormats = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListRequest(string provider, string farmerId, string boundaryId, string source = null, DateTimeOffset? startDateTime = null, DateTimeOffset? endDateTime = null, double? maxCloudCoveragePercentage = null, double? maxDarkPixelCoveragePercentage = null, IEnumerable imageNames = null, IEnumerable imageResolutions = null, IEnumerable imageFormats = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -246,12 +246,12 @@ private HttpMessage CreateListRequest(string provider, string farmerId, string b /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// farmerId /// string @@ -375,12 +375,12 @@ private HttpMessage CreateListRequest(string provider, string farmerId, string b /// /// Schema for SatelliteData: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// imageNames /// string[] @@ -402,24 +402,24 @@ private HttpMessage CreateListRequest(string provider, string farmerId, string b /// /// /// JobId provided by user. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateSatelliteDataIngestionJobAsync(string jobId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateSatelliteDataIngestionJobAsync(string jobId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateSatelliteDataIngestionJobRequest(jobId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateSatelliteDataIngestionJobRequest(jobId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ScenesClient.CreateSatelliteDataIngestionJob"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -445,12 +445,12 @@ public virtual async Task CreateSatelliteDataIngestionJobAsync(string /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// farmerId /// string @@ -574,12 +574,12 @@ public virtual async Task CreateSatelliteDataIngestionJobAsync(string /// /// Schema for SatelliteData: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// imageNames /// string[] @@ -601,24 +601,24 @@ public virtual async Task CreateSatelliteDataIngestionJobAsync(string /// /// /// JobId provided by user. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateSatelliteDataIngestionJob(string jobId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateSatelliteDataIngestionJob(string jobId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateSatelliteDataIngestionJobRequest(jobId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateSatelliteDataIngestionJobRequest(jobId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ScenesClient.CreateSatelliteDataIngestionJob"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -642,9 +642,9 @@ public virtual Response CreateSatelliteDataIngestionJob(string jobId, RequestCon /// Create Request for and operations. /// JobId provided by user. - /// The request body. - /// The request options. - private HttpMessage CreateCreateSatelliteDataIngestionJobRequest(string jobId, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateSatelliteDataIngestionJobRequest(string jobId, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -657,29 +657,29 @@ private HttpMessage CreateCreateSatelliteDataIngestionJobRequest(string jobId, R request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } /// Get a satellite data ingestion job. /// ID of the job. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetSatelliteDataIngestionJobDetailsAsync(string jobId, RequestOptions requestOptions = null) + public virtual async Task GetSatelliteDataIngestionJobDetailsAsync(string jobId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetSatelliteDataIngestionJobDetailsRequest(jobId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetSatelliteDataIngestionJobDetailsRequest(jobId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ScenesClient.GetSatelliteDataIngestionJobDetails"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -703,23 +703,23 @@ public virtual async Task GetSatelliteDataIngestionJobDetailsAsync(str /// Get a satellite data ingestion job. /// ID of the job. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetSatelliteDataIngestionJobDetails(string jobId, RequestOptions requestOptions = null) + public virtual Response GetSatelliteDataIngestionJobDetails(string jobId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetSatelliteDataIngestionJobDetailsRequest(jobId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetSatelliteDataIngestionJobDetailsRequest(jobId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ScenesClient.GetSatelliteDataIngestionJobDetails"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -743,8 +743,8 @@ public virtual Response GetSatelliteDataIngestionJobDetails(string jobId, Reques /// Create Request for and operations. /// ID of the job. - /// The request options. - private HttpMessage CreateGetSatelliteDataIngestionJobDetailsRequest(string jobId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetSatelliteDataIngestionJobDetailsRequest(string jobId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -761,23 +761,23 @@ private HttpMessage CreateGetSatelliteDataIngestionJobDetailsRequest(string jobI /// Downloads and returns file stream as response for the given input filePath. /// cloud storage path of scene file. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DownloadAsync(string filePath, RequestOptions requestOptions = null) + public virtual async Task DownloadAsync(string filePath, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDownloadRequest(filePath, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDownloadRequest(filePath, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ScenesClient.Download"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -801,23 +801,23 @@ public virtual async Task DownloadAsync(string filePath, RequestOption /// Downloads and returns file stream as response for the given input filePath. /// cloud storage path of scene file. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Download(string filePath, RequestOptions requestOptions = null) + public virtual Response Download(string filePath, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDownloadRequest(filePath, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDownloadRequest(filePath, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ScenesClient.Download"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -841,8 +841,8 @@ public virtual Response Download(string filePath, RequestOptions requestOptions /// Create Request for and operations. /// cloud storage path of scene file. - /// The request options. - private HttpMessage CreateDownloadRequest(string filePath, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDownloadRequest(string filePath, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SeasonalFieldsClient.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SeasonalFieldsClient.cs index 4eb66492ac15..7c3a339f7f60 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SeasonalFieldsClient.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SeasonalFieldsClient.cs @@ -87,23 +87,23 @@ public SeasonalFieldsClient(Uri endpoint, TokenCredential credential, FarmBeatsC /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListByFarmerIdAsync(string farmerId, IEnumerable farmIds = null, IEnumerable fieldIds = null, IEnumerable seasonIds = null, IEnumerable cropVarietyIds = null, IEnumerable cropIds = null, double? minAvgYieldValue = null, double? maxAvgYieldValue = null, string avgYieldUnit = null, double? minAvgSeedPopulationValue = null, double? maxAvgSeedPopulationValue = null, string avgSeedPopulationUnit = null, DateTimeOffset? minPlantingDateTime = null, DateTimeOffset? maxPlantingDateTime = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListByFarmerIdAsync(string farmerId, IEnumerable farmIds = null, IEnumerable fieldIds = null, IEnumerable seasonIds = null, IEnumerable cropVarietyIds = null, IEnumerable cropIds = null, double? minAvgYieldValue = null, double? maxAvgYieldValue = null, string avgYieldUnit = null, double? minAvgSeedPopulationValue = null, double? maxAvgSeedPopulationValue = null, string avgSeedPopulationUnit = null, DateTimeOffset? minPlantingDateTime = null, DateTimeOffset? maxPlantingDateTime = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListByFarmerIdRequest(farmerId, farmIds, fieldIds, seasonIds, cropVarietyIds, cropIds, minAvgYieldValue, maxAvgYieldValue, avgYieldUnit, minAvgSeedPopulationValue, maxAvgSeedPopulationValue, avgSeedPopulationUnit, minPlantingDateTime, maxPlantingDateTime, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListByFarmerIdRequest(farmerId, farmIds, fieldIds, seasonIds, cropVarietyIds, cropIds, minAvgYieldValue, maxAvgYieldValue, avgYieldUnit, minAvgSeedPopulationValue, maxAvgSeedPopulationValue, avgSeedPopulationUnit, minPlantingDateTime, maxPlantingDateTime, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("SeasonalFieldsClient.ListByFarmerId"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -158,23 +158,23 @@ public virtual async Task ListByFarmerIdAsync(string farmerId, IEnumer /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response ListByFarmerId(string farmerId, IEnumerable farmIds = null, IEnumerable fieldIds = null, IEnumerable seasonIds = null, IEnumerable cropVarietyIds = null, IEnumerable cropIds = null, double? minAvgYieldValue = null, double? maxAvgYieldValue = null, string avgYieldUnit = null, double? minAvgSeedPopulationValue = null, double? maxAvgSeedPopulationValue = null, string avgSeedPopulationUnit = null, DateTimeOffset? minPlantingDateTime = null, DateTimeOffset? maxPlantingDateTime = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response ListByFarmerId(string farmerId, IEnumerable farmIds = null, IEnumerable fieldIds = null, IEnumerable seasonIds = null, IEnumerable cropVarietyIds = null, IEnumerable cropIds = null, double? minAvgYieldValue = null, double? maxAvgYieldValue = null, string avgYieldUnit = null, double? minAvgSeedPopulationValue = null, double? maxAvgSeedPopulationValue = null, string avgSeedPopulationUnit = null, DateTimeOffset? minPlantingDateTime = null, DateTimeOffset? maxPlantingDateTime = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListByFarmerIdRequest(farmerId, farmIds, fieldIds, seasonIds, cropVarietyIds, cropIds, minAvgYieldValue, maxAvgYieldValue, avgYieldUnit, minAvgSeedPopulationValue, maxAvgSeedPopulationValue, avgSeedPopulationUnit, minPlantingDateTime, maxPlantingDateTime, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListByFarmerIdRequest(farmerId, farmIds, fieldIds, seasonIds, cropVarietyIds, cropIds, minAvgYieldValue, maxAvgYieldValue, avgYieldUnit, minAvgSeedPopulationValue, maxAvgSeedPopulationValue, avgSeedPopulationUnit, minPlantingDateTime, maxPlantingDateTime, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("SeasonalFieldsClient.ListByFarmerId"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -229,8 +229,8 @@ public virtual Response ListByFarmerId(string farmerId, IEnumerable farm /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListByFarmerIdRequest(string farmerId, IEnumerable farmIds = null, IEnumerable fieldIds = null, IEnumerable seasonIds = null, IEnumerable cropVarietyIds = null, IEnumerable cropIds = null, double? minAvgYieldValue = null, double? maxAvgYieldValue = null, string avgYieldUnit = null, double? minAvgSeedPopulationValue = null, double? maxAvgSeedPopulationValue = null, string avgSeedPopulationUnit = null, DateTimeOffset? minPlantingDateTime = null, DateTimeOffset? maxPlantingDateTime = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListByFarmerIdRequest(string farmerId, IEnumerable farmIds = null, IEnumerable fieldIds = null, IEnumerable seasonIds = null, IEnumerable cropVarietyIds = null, IEnumerable cropIds = null, double? minAvgYieldValue = null, double? maxAvgYieldValue = null, string avgYieldUnit = null, double? minAvgSeedPopulationValue = null, double? maxAvgSeedPopulationValue = null, string avgSeedPopulationUnit = null, DateTimeOffset? minPlantingDateTime = null, DateTimeOffset? maxPlantingDateTime = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -370,23 +370,23 @@ private HttpMessage CreateListByFarmerIdRequest(string farmerId, IEnumerable /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListAsync(IEnumerable farmIds = null, IEnumerable fieldIds = null, IEnumerable seasonIds = null, IEnumerable cropVarietyIds = null, IEnumerable cropIds = null, double? minAvgYieldValue = null, double? maxAvgYieldValue = null, string avgYieldUnit = null, double? minAvgSeedPopulationValue = null, double? maxAvgSeedPopulationValue = null, string avgSeedPopulationUnit = null, DateTimeOffset? minPlantingDateTime = null, DateTimeOffset? maxPlantingDateTime = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListAsync(IEnumerable farmIds = null, IEnumerable fieldIds = null, IEnumerable seasonIds = null, IEnumerable cropVarietyIds = null, IEnumerable cropIds = null, double? minAvgYieldValue = null, double? maxAvgYieldValue = null, string avgYieldUnit = null, double? minAvgSeedPopulationValue = null, double? maxAvgSeedPopulationValue = null, string avgSeedPopulationUnit = null, DateTimeOffset? minPlantingDateTime = null, DateTimeOffset? maxPlantingDateTime = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(farmIds, fieldIds, seasonIds, cropVarietyIds, cropIds, minAvgYieldValue, maxAvgYieldValue, avgYieldUnit, minAvgSeedPopulationValue, maxAvgSeedPopulationValue, avgSeedPopulationUnit, minPlantingDateTime, maxPlantingDateTime, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(farmIds, fieldIds, seasonIds, cropVarietyIds, cropIds, minAvgYieldValue, maxAvgYieldValue, avgYieldUnit, minAvgSeedPopulationValue, maxAvgSeedPopulationValue, avgSeedPopulationUnit, minPlantingDateTime, maxPlantingDateTime, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("SeasonalFieldsClient.List"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -440,23 +440,23 @@ public virtual async Task ListAsync(IEnumerable farmIds = null /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response List(IEnumerable farmIds = null, IEnumerable fieldIds = null, IEnumerable seasonIds = null, IEnumerable cropVarietyIds = null, IEnumerable cropIds = null, double? minAvgYieldValue = null, double? maxAvgYieldValue = null, string avgYieldUnit = null, double? minAvgSeedPopulationValue = null, double? maxAvgSeedPopulationValue = null, string avgSeedPopulationUnit = null, DateTimeOffset? minPlantingDateTime = null, DateTimeOffset? maxPlantingDateTime = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response List(IEnumerable farmIds = null, IEnumerable fieldIds = null, IEnumerable seasonIds = null, IEnumerable cropVarietyIds = null, IEnumerable cropIds = null, double? minAvgYieldValue = null, double? maxAvgYieldValue = null, string avgYieldUnit = null, double? minAvgSeedPopulationValue = null, double? maxAvgSeedPopulationValue = null, string avgSeedPopulationUnit = null, DateTimeOffset? minPlantingDateTime = null, DateTimeOffset? maxPlantingDateTime = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(farmIds, fieldIds, seasonIds, cropVarietyIds, cropIds, minAvgYieldValue, maxAvgYieldValue, avgYieldUnit, minAvgSeedPopulationValue, maxAvgSeedPopulationValue, avgSeedPopulationUnit, minPlantingDateTime, maxPlantingDateTime, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(farmIds, fieldIds, seasonIds, cropVarietyIds, cropIds, minAvgYieldValue, maxAvgYieldValue, avgYieldUnit, minAvgSeedPopulationValue, maxAvgSeedPopulationValue, avgSeedPopulationUnit, minPlantingDateTime, maxPlantingDateTime, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("SeasonalFieldsClient.List"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -510,8 +510,8 @@ public virtual Response List(IEnumerable farmIds = null, IEnumerable /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListRequest(IEnumerable farmIds = null, IEnumerable fieldIds = null, IEnumerable seasonIds = null, IEnumerable cropVarietyIds = null, IEnumerable cropIds = null, double? minAvgYieldValue = null, double? maxAvgYieldValue = null, string avgYieldUnit = null, double? minAvgSeedPopulationValue = null, double? maxAvgSeedPopulationValue = null, string avgSeedPopulationUnit = null, DateTimeOffset? minPlantingDateTime = null, DateTimeOffset? maxPlantingDateTime = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListRequest(IEnumerable farmIds = null, IEnumerable fieldIds = null, IEnumerable seasonIds = null, IEnumerable cropVarietyIds = null, IEnumerable cropIds = null, double? minAvgYieldValue = null, double? maxAvgYieldValue = null, string avgYieldUnit = null, double? minAvgSeedPopulationValue = null, double? maxAvgSeedPopulationValue = null, string avgSeedPopulationUnit = null, DateTimeOffset? minPlantingDateTime = null, DateTimeOffset? maxPlantingDateTime = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -620,23 +620,23 @@ private HttpMessage CreateListRequest(IEnumerable farmIds = null, IEnume /// Gets a specified seasonal field resource under a particular farmer. /// ID of the associated farmer. /// ID of the seasonal field. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetAsync(string farmerId, string seasonalFieldId, RequestOptions requestOptions = null) + public virtual async Task GetAsync(string farmerId, string seasonalFieldId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(farmerId, seasonalFieldId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(farmerId, seasonalFieldId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("SeasonalFieldsClient.Get"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -661,23 +661,23 @@ public virtual async Task GetAsync(string farmerId, string seasonalFie /// Gets a specified seasonal field resource under a particular farmer. /// ID of the associated farmer. /// ID of the seasonal field. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Get(string farmerId, string seasonalFieldId, RequestOptions requestOptions = null) + public virtual Response Get(string farmerId, string seasonalFieldId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(farmerId, seasonalFieldId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(farmerId, seasonalFieldId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("SeasonalFieldsClient.Get"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -702,8 +702,8 @@ public virtual Response Get(string farmerId, string seasonalFieldId, RequestOpti /// Create Request for and operations. /// ID of the associated farmer. /// ID of the seasonal field. - /// The request options. - private HttpMessage CreateGetRequest(string farmerId, string seasonalFieldId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetRequest(string farmerId, string seasonalFieldId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -724,12 +724,12 @@ private HttpMessage CreateGetRequest(string farmerId, string seasonalFieldId, Re /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// farmerId /// string @@ -868,24 +868,24 @@ private HttpMessage CreateGetRequest(string farmerId, string seasonalFieldId, Re /// /// ID of the associated farmer resource. /// ID of the seasonal field resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateOrUpdateAsync(string farmerId, string seasonalFieldId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateOrUpdateAsync(string farmerId, string seasonalFieldId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(farmerId, seasonalFieldId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(farmerId, seasonalFieldId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("SeasonalFieldsClient.CreateOrUpdate"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -912,12 +912,12 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, string /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// farmerId /// string @@ -1056,24 +1056,24 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, string /// /// ID of the associated farmer resource. /// ID of the seasonal field resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateOrUpdate(string farmerId, string seasonalFieldId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateOrUpdate(string farmerId, string seasonalFieldId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(farmerId, seasonalFieldId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(farmerId, seasonalFieldId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("SeasonalFieldsClient.CreateOrUpdate"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1099,9 +1099,9 @@ public virtual Response CreateOrUpdate(string farmerId, string seasonalFieldId, /// Create Request for and operations. /// ID of the associated farmer resource. /// ID of the seasonal field resource. - /// The request body. - /// The request options. - private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string seasonalFieldId, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string seasonalFieldId, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1116,30 +1116,30 @@ private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string seasonal request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/merge-patch+json"); - request.Content = requestBody; + request.Content = content; return message; } /// Deletes a specified seasonal-field resource under a particular farmer. /// ID of the farmer. /// ID of the seasonal field. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteAsync(string farmerId, string seasonalFieldId, RequestOptions requestOptions = null) + public virtual async Task DeleteAsync(string farmerId, string seasonalFieldId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(farmerId, seasonalFieldId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(farmerId, seasonalFieldId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("SeasonalFieldsClient.Delete"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1164,23 +1164,23 @@ public virtual async Task DeleteAsync(string farmerId, string seasonal /// Deletes a specified seasonal-field resource under a particular farmer. /// ID of the farmer. /// ID of the seasonal field. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Delete(string farmerId, string seasonalFieldId, RequestOptions requestOptions = null) + public virtual Response Delete(string farmerId, string seasonalFieldId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(farmerId, seasonalFieldId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(farmerId, seasonalFieldId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("SeasonalFieldsClient.Delete"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1205,8 +1205,8 @@ public virtual Response Delete(string farmerId, string seasonalFieldId, RequestO /// Create Request for and operations. /// ID of the farmer. /// ID of the seasonal field. - /// The request options. - private HttpMessage CreateDeleteRequest(string farmerId, string seasonalFieldId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteRequest(string farmerId, string seasonalFieldId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1225,23 +1225,23 @@ private HttpMessage CreateDeleteRequest(string farmerId, string seasonalFieldId, /// Get cascade delete job for specified seasonal field. /// ID of the job. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestOptions requestOptions = null) + public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetCascadeDeleteJobDetailsRequest(jobId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetCascadeDeleteJobDetailsRequest(jobId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("SeasonalFieldsClient.GetCascadeDeleteJobDetails"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1265,23 +1265,23 @@ public virtual async Task GetCascadeDeleteJobDetailsAsync(string jobId /// Get cascade delete job for specified seasonal field. /// ID of the job. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestOptions requestOptions = null) + public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetCascadeDeleteJobDetailsRequest(jobId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetCascadeDeleteJobDetailsRequest(jobId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("SeasonalFieldsClient.GetCascadeDeleteJobDetails"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1305,8 +1305,8 @@ public virtual Response GetCascadeDeleteJobDetails(string jobId, RequestOptions /// Create Request for and operations. /// ID of the job. - /// The request options. - private HttpMessage CreateGetCascadeDeleteJobDetailsRequest(string jobId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetCascadeDeleteJobDetailsRequest(string jobId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1325,23 +1325,23 @@ private HttpMessage CreateGetCascadeDeleteJobDetailsRequest(string jobId, Reques /// Job ID supplied by end user. /// ID of the associated farmer. /// ID of the seasonalField to be deleted. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateCascadeDeleteJobAsync(string jobId, string farmerId, string seasonalFieldId, RequestOptions requestOptions = null) + public virtual async Task CreateCascadeDeleteJobAsync(string jobId, string farmerId, string seasonalFieldId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateCascadeDeleteJobRequest(jobId, farmerId, seasonalFieldId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateCascadeDeleteJobRequest(jobId, farmerId, seasonalFieldId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("SeasonalFieldsClient.CreateCascadeDeleteJob"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1367,23 +1367,23 @@ public virtual async Task CreateCascadeDeleteJobAsync(string jobId, st /// Job ID supplied by end user. /// ID of the associated farmer. /// ID of the seasonalField to be deleted. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateCascadeDeleteJob(string jobId, string farmerId, string seasonalFieldId, RequestOptions requestOptions = null) + public virtual Response CreateCascadeDeleteJob(string jobId, string farmerId, string seasonalFieldId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateCascadeDeleteJobRequest(jobId, farmerId, seasonalFieldId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateCascadeDeleteJobRequest(jobId, farmerId, seasonalFieldId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("SeasonalFieldsClient.CreateCascadeDeleteJob"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1409,8 +1409,8 @@ public virtual Response CreateCascadeDeleteJob(string jobId, string farmerId, st /// Job ID supplied by end user. /// ID of the associated farmer. /// ID of the seasonalField to be deleted. - /// The request options. - private HttpMessage CreateCreateCascadeDeleteJobRequest(string jobId, string farmerId, string seasonalFieldId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateCreateCascadeDeleteJobRequest(string jobId, string farmerId, string seasonalFieldId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SeasonsClient.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SeasonsClient.cs index 7302612d4cc1..4f32ca8c40a8 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SeasonsClient.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/SeasonsClient.cs @@ -78,23 +78,23 @@ public SeasonsClient(Uri endpoint, TokenCredential credential, FarmBeatsClientOp /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListAsync(DateTimeOffset? minStartDateTime = null, DateTimeOffset? maxStartDateTime = null, DateTimeOffset? minEndDateTime = null, DateTimeOffset? maxEndDateTime = null, IEnumerable years = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListAsync(DateTimeOffset? minStartDateTime = null, DateTimeOffset? maxStartDateTime = null, DateTimeOffset? minEndDateTime = null, DateTimeOffset? maxEndDateTime = null, IEnumerable years = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(minStartDateTime, maxStartDateTime, minEndDateTime, maxEndDateTime, years, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(minStartDateTime, maxStartDateTime, minEndDateTime, maxEndDateTime, years, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("SeasonsClient.List"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -140,23 +140,23 @@ public virtual async Task ListAsync(DateTimeOffset? minStartDateTime = /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response List(DateTimeOffset? minStartDateTime = null, DateTimeOffset? maxStartDateTime = null, DateTimeOffset? minEndDateTime = null, DateTimeOffset? maxEndDateTime = null, IEnumerable years = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response List(DateTimeOffset? minStartDateTime = null, DateTimeOffset? maxStartDateTime = null, DateTimeOffset? minEndDateTime = null, DateTimeOffset? maxEndDateTime = null, IEnumerable years = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(minStartDateTime, maxStartDateTime, minEndDateTime, maxEndDateTime, years, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(minStartDateTime, maxStartDateTime, minEndDateTime, maxEndDateTime, years, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("SeasonsClient.List"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -202,8 +202,8 @@ public virtual Response List(DateTimeOffset? minStartDateTime = null, DateTimeOf /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListRequest(DateTimeOffset? minStartDateTime = null, DateTimeOffset? maxStartDateTime = null, DateTimeOffset? minEndDateTime = null, DateTimeOffset? maxEndDateTime = null, IEnumerable years = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListRequest(DateTimeOffset? minStartDateTime = null, DateTimeOffset? maxStartDateTime = null, DateTimeOffset? minEndDateTime = null, DateTimeOffset? maxEndDateTime = null, IEnumerable years = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -279,23 +279,23 @@ private HttpMessage CreateListRequest(DateTimeOffset? minStartDateTime = null, D /// Gets a specified season resource. /// ID of the season. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetAsync(string seasonId, RequestOptions requestOptions = null) + public virtual async Task GetAsync(string seasonId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(seasonId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(seasonId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("SeasonsClient.Get"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -319,23 +319,23 @@ public virtual async Task GetAsync(string seasonId, RequestOptions req /// Gets a specified season resource. /// ID of the season. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Get(string seasonId, RequestOptions requestOptions = null) + public virtual Response Get(string seasonId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(seasonId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(seasonId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("SeasonsClient.Get"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -359,8 +359,8 @@ public virtual Response Get(string seasonId, RequestOptions requestOptions = nul /// Create Request for and operations. /// ID of the season. - /// The request options. - private HttpMessage CreateGetRequest(string seasonId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetRequest(string seasonId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -379,12 +379,12 @@ private HttpMessage CreateGetRequest(string seasonId, RequestOptions requestOpti /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// startDateTime /// string (ISO 8601 Format) @@ -462,24 +462,24 @@ private HttpMessage CreateGetRequest(string seasonId, RequestOptions requestOpti /// /// /// ID of the season resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateOrUpdateAsync(string seasonId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateOrUpdateAsync(string seasonId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(seasonId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(seasonId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("SeasonsClient.CreateOrUpdate"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -506,12 +506,12 @@ public virtual async Task CreateOrUpdateAsync(string seasonId, Request /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// startDateTime /// string (ISO 8601 Format) @@ -589,24 +589,24 @@ public virtual async Task CreateOrUpdateAsync(string seasonId, Request /// /// /// ID of the season resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateOrUpdate(string seasonId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateOrUpdate(string seasonId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(seasonId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(seasonId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("SeasonsClient.CreateOrUpdate"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -631,9 +631,9 @@ public virtual Response CreateOrUpdate(string seasonId, RequestContent requestBo /// Create Request for and operations. /// ID of the season resource. - /// The request body. - /// The request options. - private HttpMessage CreateCreateOrUpdateRequest(string seasonId, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateOrUpdateRequest(string seasonId, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -646,29 +646,29 @@ private HttpMessage CreateCreateOrUpdateRequest(string seasonId, RequestContent request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/merge-patch+json"); - request.Content = requestBody; + request.Content = content; return message; } /// Deletes a specified season resource. /// ID of the season. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteAsync(string seasonId, RequestOptions requestOptions = null) + public virtual async Task DeleteAsync(string seasonId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(seasonId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(seasonId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("SeasonsClient.Delete"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -692,23 +692,23 @@ public virtual async Task DeleteAsync(string seasonId, RequestOptions /// Deletes a specified season resource. /// ID of the season. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Delete(string seasonId, RequestOptions requestOptions = null) + public virtual Response Delete(string seasonId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(seasonId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(seasonId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("SeasonsClient.Delete"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -732,8 +732,8 @@ public virtual Response Delete(string seasonId, RequestOptions requestOptions = /// Create Request for and operations. /// ID of the season. - /// The request options. - private HttpMessage CreateDeleteRequest(string seasonId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteRequest(string seasonId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/TillageDataClient.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/TillageDataClient.cs index af3b836e00a9..2dba656c2cff 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/TillageDataClient.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/TillageDataClient.cs @@ -89,23 +89,23 @@ public TillageDataClient(Uri endpoint, TokenCredential credential, FarmBeatsClie /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListByFarmerIdAsync(string farmerId, double? minTillageDepth = null, double? maxTillageDepth = null, double? minTillagePressure = null, double? maxTillagePressure = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListByFarmerIdAsync(string farmerId, double? minTillageDepth = null, double? maxTillageDepth = null, double? minTillagePressure = null, double? maxTillagePressure = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListByFarmerIdRequest(farmerId, minTillageDepth, maxTillageDepth, minTillagePressure, maxTillagePressure, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListByFarmerIdRequest(farmerId, minTillageDepth, maxTillageDepth, minTillagePressure, maxTillagePressure, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("TillageDataClient.ListByFarmerId"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -162,23 +162,23 @@ public virtual async Task ListByFarmerIdAsync(string farmerId, double? /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response ListByFarmerId(string farmerId, double? minTillageDepth = null, double? maxTillageDepth = null, double? minTillagePressure = null, double? maxTillagePressure = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response ListByFarmerId(string farmerId, double? minTillageDepth = null, double? maxTillageDepth = null, double? minTillagePressure = null, double? maxTillagePressure = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListByFarmerIdRequest(farmerId, minTillageDepth, maxTillageDepth, minTillagePressure, maxTillagePressure, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListByFarmerIdRequest(farmerId, minTillageDepth, maxTillageDepth, minTillagePressure, maxTillagePressure, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("TillageDataClient.ListByFarmerId"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -235,8 +235,8 @@ public virtual Response ListByFarmerId(string farmerId, double? minTillageDepth /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListByFarmerIdRequest(string farmerId, double? minTillageDepth = null, double? maxTillageDepth = null, double? minTillagePressure = null, double? maxTillagePressure = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListByFarmerIdRequest(string farmerId, double? minTillageDepth = null, double? maxTillageDepth = null, double? minTillagePressure = null, double? maxTillagePressure = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -386,23 +386,23 @@ private HttpMessage CreateListByFarmerIdRequest(string farmerId, double? minTill /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListAsync(double? minTillageDepth = null, double? maxTillageDepth = null, double? minTillagePressure = null, double? maxTillagePressure = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListAsync(double? minTillageDepth = null, double? maxTillageDepth = null, double? minTillagePressure = null, double? maxTillagePressure = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(minTillageDepth, maxTillageDepth, minTillagePressure, maxTillagePressure, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(minTillageDepth, maxTillageDepth, minTillagePressure, maxTillagePressure, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("TillageDataClient.List"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -458,23 +458,23 @@ public virtual async Task ListAsync(double? minTillageDepth = null, do /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response List(double? minTillageDepth = null, double? maxTillageDepth = null, double? minTillagePressure = null, double? maxTillagePressure = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response List(double? minTillageDepth = null, double? maxTillageDepth = null, double? minTillagePressure = null, double? maxTillagePressure = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(minTillageDepth, maxTillageDepth, minTillagePressure, maxTillagePressure, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(minTillageDepth, maxTillageDepth, minTillagePressure, maxTillagePressure, sources, associatedBoundaryIds, operationBoundaryIds, minOperationStartDateTime, maxOperationStartDateTime, minOperationEndDateTime, maxOperationEndDateTime, minOperationModifiedDateTime, maxOperationModifiedDateTime, minArea, maxArea, ids, names, propertyFilters, statuses, minCreatedDateTime, maxCreatedDateTime, minLastModifiedDateTime, maxLastModifiedDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("TillageDataClient.List"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -530,8 +530,8 @@ public virtual Response List(double? minTillageDepth = null, double? maxTillageD /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListRequest(double? minTillageDepth = null, double? maxTillageDepth = null, double? minTillagePressure = null, double? maxTillagePressure = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListRequest(double? minTillageDepth = null, double? maxTillageDepth = null, double? minTillagePressure = null, double? maxTillagePressure = null, IEnumerable sources = null, IEnumerable associatedBoundaryIds = null, IEnumerable operationBoundaryIds = null, DateTimeOffset? minOperationStartDateTime = null, DateTimeOffset? maxOperationStartDateTime = null, DateTimeOffset? minOperationEndDateTime = null, DateTimeOffset? maxOperationEndDateTime = null, DateTimeOffset? minOperationModifiedDateTime = null, DateTimeOffset? maxOperationModifiedDateTime = null, double? minArea = null, double? maxArea = null, IEnumerable ids = null, IEnumerable names = null, IEnumerable propertyFilters = null, IEnumerable statuses = null, DateTimeOffset? minCreatedDateTime = null, DateTimeOffset? maxCreatedDateTime = null, DateTimeOffset? minLastModifiedDateTime = null, DateTimeOffset? maxLastModifiedDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -648,23 +648,23 @@ private HttpMessage CreateListRequest(double? minTillageDepth = null, double? ma /// Get a specified tillage data resource under a particular farmer. /// ID of the associated farmer resource. /// ID of the tillage data resource. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetAsync(string farmerId, string tillageDataId, RequestOptions requestOptions = null) + public virtual async Task GetAsync(string farmerId, string tillageDataId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(farmerId, tillageDataId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(farmerId, tillageDataId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("TillageDataClient.Get"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -689,23 +689,23 @@ public virtual async Task GetAsync(string farmerId, string tillageData /// Get a specified tillage data resource under a particular farmer. /// ID of the associated farmer resource. /// ID of the tillage data resource. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Get(string farmerId, string tillageDataId, RequestOptions requestOptions = null) + public virtual Response Get(string farmerId, string tillageDataId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(farmerId, tillageDataId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(farmerId, tillageDataId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("TillageDataClient.Get"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -730,8 +730,8 @@ public virtual Response Get(string farmerId, string tillageDataId, RequestOption /// Create Request for and operations. /// ID of the associated farmer resource. /// ID of the tillage data resource. - /// The request options. - private HttpMessage CreateGetRequest(string farmerId, string tillageDataId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetRequest(string farmerId, string tillageDataId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -752,12 +752,12 @@ private HttpMessage CreateGetRequest(string farmerId, string tillageDataId, Requ /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// tillageDepth /// Measure @@ -887,12 +887,12 @@ private HttpMessage CreateGetRequest(string farmerId, string tillageDataId, Requ /// /// Schema for Measure: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// unit /// string @@ -909,24 +909,24 @@ private HttpMessage CreateGetRequest(string farmerId, string tillageDataId, Requ /// /// ID of the associated farmer. /// ID of the tillage data resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateOrUpdateAsync(string farmerId, string tillageDataId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateOrUpdateAsync(string farmerId, string tillageDataId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(farmerId, tillageDataId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(farmerId, tillageDataId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("TillageDataClient.CreateOrUpdate"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -953,12 +953,12 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, string /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// tillageDepth /// Measure @@ -1088,12 +1088,12 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, string /// /// Schema for Measure: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// unit /// string @@ -1110,24 +1110,24 @@ public virtual async Task CreateOrUpdateAsync(string farmerId, string /// /// ID of the associated farmer. /// ID of the tillage data resource. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateOrUpdate(string farmerId, string tillageDataId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateOrUpdate(string farmerId, string tillageDataId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(farmerId, tillageDataId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(farmerId, tillageDataId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("TillageDataClient.CreateOrUpdate"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1153,9 +1153,9 @@ public virtual Response CreateOrUpdate(string farmerId, string tillageDataId, Re /// Create Request for and operations. /// ID of the associated farmer. /// ID of the tillage data resource. - /// The request body. - /// The request options. - private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string tillageDataId, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string tillageDataId, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1170,30 +1170,30 @@ private HttpMessage CreateCreateOrUpdateRequest(string farmerId, string tillageD request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/merge-patch+json"); - request.Content = requestBody; + request.Content = content; return message; } /// Deletes a specified tillage data resource under a particular farmer. /// ID of the associated farmer resource. /// ID of the tillage data. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteAsync(string farmerId, string tillageDataId, RequestOptions requestOptions = null) + public virtual async Task DeleteAsync(string farmerId, string tillageDataId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(farmerId, tillageDataId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(farmerId, tillageDataId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("TillageDataClient.Delete"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1218,23 +1218,23 @@ public virtual async Task DeleteAsync(string farmerId, string tillageD /// Deletes a specified tillage data resource under a particular farmer. /// ID of the associated farmer resource. /// ID of the tillage data. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Delete(string farmerId, string tillageDataId, RequestOptions requestOptions = null) + public virtual Response Delete(string farmerId, string tillageDataId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(farmerId, tillageDataId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(farmerId, tillageDataId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("TillageDataClient.Delete"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1259,8 +1259,8 @@ public virtual Response Delete(string farmerId, string tillageDataId, RequestOpt /// Create Request for and operations. /// ID of the associated farmer resource. /// ID of the tillage data. - /// The request options. - private HttpMessage CreateDeleteRequest(string farmerId, string tillageDataId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteRequest(string farmerId, string tillageDataId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/WeatherClient.cs b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/WeatherClient.cs index a7c0b1c2f820..0d7e60e61c6c 100644 --- a/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/WeatherClient.cs +++ b/sdk/agrifood/Azure.Verticals.AgriFood.Farming/src/Generated/WeatherClient.cs @@ -67,23 +67,23 @@ public WeatherClient(Uri endpoint, TokenCredential credential, FarmBeatsClientOp /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ListAsync(string farmerId, string boundaryId, string extensionId, string weatherDataType, string granularity, DateTimeOffset? startDateTime = null, DateTimeOffset? endDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual async Task ListAsync(string farmerId, string boundaryId, string extensionId, string weatherDataType, string granularity, DateTimeOffset? startDateTime = null, DateTimeOffset? endDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(farmerId, boundaryId, extensionId, weatherDataType, granularity, startDateTime, endDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(farmerId, boundaryId, extensionId, weatherDataType, granularity, startDateTime, endDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WeatherClient.List"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -119,23 +119,23 @@ public virtual async Task ListAsync(string farmerId, string boundaryId /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response List(string farmerId, string boundaryId, string extensionId, string weatherDataType, string granularity, DateTimeOffset? startDateTime = null, DateTimeOffset? endDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + public virtual Response List(string farmerId, string boundaryId, string extensionId, string weatherDataType, string granularity, DateTimeOffset? startDateTime = null, DateTimeOffset? endDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateListRequest(farmerId, boundaryId, extensionId, weatherDataType, granularity, startDateTime, endDateTime, maxPageSize, skipToken, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateListRequest(farmerId, boundaryId, extensionId, weatherDataType, granularity, startDateTime, endDateTime, maxPageSize, skipToken, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WeatherClient.List"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -171,8 +171,8 @@ public virtual Response List(string farmerId, string boundaryId, string extensio /// Minimum = 10, Maximum = 1000, Default value = 50. /// /// Skip token for getting next set of results. - /// The request options. - private HttpMessage CreateListRequest(string farmerId, string boundaryId, string extensionId, string weatherDataType, string granularity, DateTimeOffset? startDateTime = null, DateTimeOffset? endDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateListRequest(string farmerId, string boundaryId, string extensionId, string weatherDataType, string granularity, DateTimeOffset? startDateTime = null, DateTimeOffset? endDateTime = null, int? maxPageSize = null, string skipToken = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -209,23 +209,23 @@ private HttpMessage CreateListRequest(string farmerId, string boundaryId, string /// Get weather ingestion job. /// ID of the job. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetDataIngestionJobDetailsAsync(string jobId, RequestOptions requestOptions = null) + public virtual async Task GetDataIngestionJobDetailsAsync(string jobId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetDataIngestionJobDetailsRequest(jobId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetDataIngestionJobDetailsRequest(jobId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WeatherClient.GetDataIngestionJobDetails"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -249,23 +249,23 @@ public virtual async Task GetDataIngestionJobDetailsAsync(string jobId /// Get weather ingestion job. /// ID of the job. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetDataIngestionJobDetails(string jobId, RequestOptions requestOptions = null) + public virtual Response GetDataIngestionJobDetails(string jobId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetDataIngestionJobDetailsRequest(jobId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetDataIngestionJobDetailsRequest(jobId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WeatherClient.GetDataIngestionJobDetails"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -289,8 +289,8 @@ public virtual Response GetDataIngestionJobDetails(string jobId, RequestOptions /// Create Request for and operations. /// ID of the job. - /// The request options. - private HttpMessage CreateGetDataIngestionJobDetailsRequest(string jobId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetDataIngestionJobDetailsRequest(string jobId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -309,12 +309,12 @@ private HttpMessage CreateGetDataIngestionJobDetailsRequest(string jobId, Reques /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// boundaryId /// string @@ -438,24 +438,24 @@ private HttpMessage CreateGetDataIngestionJobDetailsRequest(string jobId, Reques /// /// /// Job id supplied by user. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateDataIngestionJobAsync(string jobId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateDataIngestionJobAsync(string jobId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateDataIngestionJobRequest(jobId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateDataIngestionJobRequest(jobId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WeatherClient.CreateDataIngestionJob"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -481,12 +481,12 @@ public virtual async Task CreateDataIngestionJobAsync(string jobId, Re /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// boundaryId /// string @@ -610,24 +610,24 @@ public virtual async Task CreateDataIngestionJobAsync(string jobId, Re /// /// /// Job id supplied by user. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateDataIngestionJob(string jobId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateDataIngestionJob(string jobId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateDataIngestionJobRequest(jobId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateDataIngestionJobRequest(jobId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WeatherClient.CreateDataIngestionJob"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -651,9 +651,9 @@ public virtual Response CreateDataIngestionJob(string jobId, RequestContent requ /// Create Request for and operations. /// Job id supplied by user. - /// The request body. - /// The request options. - private HttpMessage CreateCreateDataIngestionJobRequest(string jobId, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateDataIngestionJobRequest(string jobId, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -666,29 +666,29 @@ private HttpMessage CreateCreateDataIngestionJobRequest(string jobId, RequestCon request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } /// Get weather data delete job. /// ID of the job. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetDataDeleteJobDetailsAsync(string jobId, RequestOptions requestOptions = null) + public virtual async Task GetDataDeleteJobDetailsAsync(string jobId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetDataDeleteJobDetailsRequest(jobId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetDataDeleteJobDetailsRequest(jobId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WeatherClient.GetDataDeleteJobDetails"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -712,23 +712,23 @@ public virtual async Task GetDataDeleteJobDetailsAsync(string jobId, R /// Get weather data delete job. /// ID of the job. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetDataDeleteJobDetails(string jobId, RequestOptions requestOptions = null) + public virtual Response GetDataDeleteJobDetails(string jobId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetDataDeleteJobDetailsRequest(jobId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetDataDeleteJobDetailsRequest(jobId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WeatherClient.GetDataDeleteJobDetails"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -752,8 +752,8 @@ public virtual Response GetDataDeleteJobDetails(string jobId, RequestOptions req /// Create Request for and operations. /// ID of the job. - /// The request options. - private HttpMessage CreateGetDataDeleteJobDetailsRequest(string jobId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetDataDeleteJobDetailsRequest(string jobId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -772,12 +772,12 @@ private HttpMessage CreateGetDataDeleteJobDetailsRequest(string jobId, RequestOp /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// extensionId /// string @@ -901,24 +901,24 @@ private HttpMessage CreateGetDataDeleteJobDetailsRequest(string jobId, RequestOp /// /// /// Job ID supplied by end user. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateDataDeleteJobAsync(string jobId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateDataDeleteJobAsync(string jobId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateDataDeleteJobRequest(jobId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateDataDeleteJobRequest(jobId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WeatherClient.CreateDataDeleteJob"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -944,12 +944,12 @@ public virtual async Task CreateDataDeleteJobAsync(string jobId, Reque /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// extensionId /// string @@ -1073,24 +1073,24 @@ public virtual async Task CreateDataDeleteJobAsync(string jobId, Reque /// /// /// Job ID supplied by end user. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateDataDeleteJob(string jobId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateDataDeleteJob(string jobId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateDataDeleteJobRequest(jobId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateDataDeleteJobRequest(jobId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WeatherClient.CreateDataDeleteJob"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1114,9 +1114,9 @@ public virtual Response CreateDataDeleteJob(string jobId, RequestContent request /// Create Request for and operations. /// Job ID supplied by end user. - /// The request body. - /// The request options. - private HttpMessage CreateCreateDataDeleteJobRequest(string jobId, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateDataDeleteJobRequest(string jobId, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1129,7 +1129,7 @@ private HttpMessage CreateCreateDataDeleteJobRequest(string jobId, RequestConten request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } } diff --git a/sdk/agrifood/ci.yml b/sdk/agrifood/ci.yml index 5daa0dc29729..891387aca5cb 100644 --- a/sdk/agrifood/ci.yml +++ b/sdk/agrifood/ci.yml @@ -2,7 +2,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -13,7 +12,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/README.md b/sdk/anomalydetector/Azure.AI.AnomalyDetector/README.md index 678ff18b75b8..5ba27aca5eef 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/README.md +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/README.md @@ -68,12 +68,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -100,20 +100,20 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con -[anomalydetector_client_src]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/anomalydetector/Azure.AI.AnomalyDetector/src +[anomalydetector_client_src]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/anomalydetector/Azure.AI.AnomalyDetector/src [anomalydetector_docs]: https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/ [anomalydetector_refdocs]: https://azure.github.io/azure-sdk-for-net/anomalydetector.html [anomalydetector_nuget_package]: https://www.nuget.org/packages/Azure.AI.AnomalyDetector -[anomaly_detector_client_class]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AnomalyDetectorClient.cs -[azure_identity]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity +[anomaly_detector_client_class]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AnomalyDetectorClient.cs +[azure_identity]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity [register_aad_app]: https://docs.microsoft.com/azure/cognitive-services/authentication#assign-a-role-to-a-service-principal [aad_grant_access]: https://docs.microsoft.com/azure/cognitive-services/authentication#assign-a-role-to-a-service-principal [custom_subdomain]: https://docs.microsoft.com/azure/cognitive-services/authentication#create-a-resource-with-a-custom-subdomain -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity/README.md +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity/README.md [cognitive_resource_cli]: https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account-cli -[logging]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core/samples/Diagnostics.md +[logging]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core/samples/Diagnostics.md [azure_cli]: https://docs.microsoft.com/cli/azure diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/samples/README.md b/sdk/anomalydetector/Azure.AI.AnomalyDetector/samples/README.md index ca83520914f5..8cbb20440d76 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/samples/README.md +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/samples/README.md @@ -21,7 +21,7 @@ These code samples show common scenario operations with the Anomaly Detector cli |[Sample4_MultivariateDetect][sample_multivariate_detect] |Detecting the anomalies in the multivariate time series.| -[sample_detect_entire_series_anomaly]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/samples/Sample1_DetectEntireSeriesAnomaly.cs -[sample_detect_last_point_anomaly]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/samples/Sample2_DetectLastPointAnomaly.cs -[sample_detect_change_point]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/samples/Sample3_DetectChangePoint.cs -[sample_multivariate_detect]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/samples/Sample4_MultivariateDetect.cs \ No newline at end of file +[sample_detect_entire_series_anomaly]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/samples/Sample1_DetectEntireSeriesAnomaly.cs +[sample_detect_last_point_anomaly]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/samples/Sample2_DetectLastPointAnomaly.cs +[sample_detect_change_point]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/samples/Sample3_DetectChangePoint.cs +[sample_multivariate_detect]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/samples/Sample4_MultivariateDetect.cs \ No newline at end of file diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/samples/Sample1_DetectEntireSeriesAnomaly.md b/sdk/anomalydetector/Azure.AI.AnomalyDetector/samples/Sample1_DetectEntireSeriesAnomaly.md index 2d313888189d..b4af8c1a04b8 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/samples/Sample1_DetectEntireSeriesAnomaly.md +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/samples/Sample1_DetectEntireSeriesAnomaly.md @@ -75,7 +75,7 @@ else ``` To see the full example source files, see: -* [Detect Entire Series Anomaly](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/samples/Sample1_DetectEntireSeriesAnomaly.cs) +* [Detect Entire Series Anomaly](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/samples/Sample1_DetectEntireSeriesAnomaly.cs) -[README]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/anomalydetector/Azure.AI.AnomalyDetector/README.md -[SampleData]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/samples/data/request-data.csv \ No newline at end of file +[README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/anomalydetector/Azure.AI.AnomalyDetector/README.md +[SampleData]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/samples/data/request-data.csv \ No newline at end of file diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/samples/Sample2_DetectLastPointAnomaly.md b/sdk/anomalydetector/Azure.AI.AnomalyDetector/samples/Sample2_DetectLastPointAnomaly.md index bb6ae64bdf48..fc06a33ed056 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/samples/Sample2_DetectLastPointAnomaly.md +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/samples/Sample2_DetectLastPointAnomaly.md @@ -66,7 +66,7 @@ else ``` To see the full example source files, see: -* [Detect Last Point Anomaly](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/samples/Sample2_DetectLastPointAnomaly.cs) +* [Detect Last Point Anomaly](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/samples/Sample2_DetectLastPointAnomaly.cs) -[README]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/anomalydetector/Azure.AI.AnomalyDetector/README.md -[SampleData]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/samples/data/request-data.csv \ No newline at end of file +[README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/anomalydetector/Azure.AI.AnomalyDetector/README.md +[SampleData]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/samples/data/request-data.csv \ No newline at end of file diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/samples/Sample3_DetectChangePoint.md b/sdk/anomalydetector/Azure.AI.AnomalyDetector/samples/Sample3_DetectChangePoint.md index ac7fb426bc7c..a2d2453db54e 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/samples/Sample3_DetectChangePoint.md +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/samples/Sample3_DetectChangePoint.md @@ -72,7 +72,7 @@ else ``` To see the full example source files, see: -* [Detect Change Point](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/samples/Sample3_DetectChangePoint.cs) +* [Detect Change Point](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/samples/Sample3_DetectChangePoint.cs) -[README]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/anomalydetector/Azure.AI.AnomalyDetector/README.md -[SampleData]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/samples/data/request-data.csv \ No newline at end of file +[README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/anomalydetector/Azure.AI.AnomalyDetector/README.md +[SampleData]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/samples/data/request-data.csv \ No newline at end of file diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/samples/Sample4_MultivariateDetect.md b/sdk/anomalydetector/Azure.AI.AnomalyDetector/samples/Sample4_MultivariateDetect.md index 34fa806bd1af..859485217cfe 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/samples/Sample4_MultivariateDetect.md +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/samples/Sample4_MultivariateDetect.md @@ -179,9 +179,9 @@ private async Task getModelNumberAsync(AnomalyDetectorClient client, bool d To see the full example source files, see: -* [Multivariate Detect](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/samples/Sample4_MultivariateDetect.cs) +* [Multivariate Detect](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/samples/Sample4_MultivariateDetect.cs) -[README]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/anomalydetector/Azure.AI.AnomalyDetector/README.md -[datasource]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/samples/data/sample_data_20_3000.zip +[README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/anomalydetector/Azure.AI.AnomalyDetector/README.md +[datasource]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/anomalydetector/Azure.AI.AnomalyDetector/tests/samples/data/sample_data_20_3000.zip [upload_blob]: https://docs.microsoft.com/azure/storage/blobs/storage-quickstart-blobs-portal#upload-a-block-blob [generate_sas]: https://docs.microsoft.com/azure/cognitive-services/translator/document-translation/create-sas-tokens?tabs=Containers#create-sas-tokens-for-blobs-in-the-azure-portal \ No newline at end of file diff --git a/sdk/anomalydetector/ci.yml b/sdk/anomalydetector/ci.yml index 539baf28e7f8..e2516a5aae5d 100644 --- a/sdk/anomalydetector/ci.yml +++ b/sdk/anomalydetector/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/appconfiguration/Azure.Data.AppConfiguration/README.md b/sdk/appconfiguration/Azure.Data.AppConfiguration/README.md index a092f95debcb..449068173778 100644 --- a/sdk/appconfiguration/Azure.Data.AppConfiguration/README.md +++ b/sdk/appconfiguration/Azure.Data.AppConfiguration/README.md @@ -88,12 +88,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -183,13 +183,13 @@ Message: Azure.RequestFailedException : StatusCode: 404, ReasonPhrase: 'Not Foun ### More sample code Several App Configuration client library samples are available to you in this GitHub repository. These include: -- [Hello world](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample1_HelloWorld.md): Create and delete a configuration setting. -- [Hello world async with labels](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample2_HelloWorldExtended.md): Asynchronously create, update and delete configuration settings with labels. -- [Make a configuration setting readonly](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample3_SetClearReadOnly.md): Make a configuration setting read-only, and then return it to a read-write state. -- [Read revision history](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample4_ReadRevisionHistory.md): Read the revision history of a configuration setting that has been changed. -- [Get a setting if changed](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample5_GetSettingIfChanged.md): Save bandwidth by using a conditional request to retrieve a setting only if it is different from your local copy. -- [Update a setting if it hasn't changed](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample6_UpdateSettingIfUnchanged.md): Prevent lost updates by using optimistic concurrency to update a setting only if your local updates were applied to the same version as the resource in the configuration store. -- [Create a mock client](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample7_MockClient.md): Mock a client for testing using the [Moq library][moq]. +- [Hello world](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample1_HelloWorld.md): Create and delete a configuration setting. +- [Hello world async with labels](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample2_HelloWorldExtended.md): Asynchronously create, update and delete configuration settings with labels. +- [Make a configuration setting readonly](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample3_SetClearReadOnly.md): Make a configuration setting read-only, and then return it to a read-write state. +- [Read revision history](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample4_ReadRevisionHistory.md): Read the revision history of a configuration setting that has been changed. +- [Get a setting if changed](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample5_GetSettingIfChanged.md): Save bandwidth by using a conditional request to retrieve a setting only if it is different from your local copy. +- [Update a setting if it hasn't changed](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample6_UpdateSettingIfUnchanged.md): Prevent lost updates by using optimistic concurrency to update a setting only if your local updates were applied to the same version as the resource in the configuration store. +- [Create a mock client](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample7_MockClient.md): Mock a client for testing using the [Moq library][moq]. For more details see the [samples README][samples_readme]. @@ -208,26 +208,26 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con [azconfig_docs]: https://docs.microsoft.com/azure/azure-app-configuration/ -[azconfig_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/CONTRIBUTING.md +[azconfig_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/CONTRIBUTING.md [azconfig_setting_concepts]: https://docs.microsoft.com/azure/azure-app-configuration/concept-key-value [azconfig_asof_snapshot]: https://docs.microsoft.com/azure/azure-app-configuration/concept-point-time-snapshot [aad_grant_access]: https://docs.microsoft.com/powershell/module/az.Resources/New-azRoleAssignment?view=azps-1.8.0 [aad_register_app]: https://docs.microsoft.com/azure/app-service/configure-authentication-provider-aad#-configure-with-advanced-settings -[azure_identity]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity -[azure_identity_dac]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md#defaultazurecredential +[azure_identity]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity +[azure_identity_dac]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md#defaultazurecredential [azure_portal]: https://portal.azure.com -[source_root]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/src -[source_samples]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/samples +[source_root]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/src +[source_samples]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/samples [reference_docs]: https://azure.github.io/azure-sdk-for-net/appconfiguration.html [azconfig_rest]: https://docs.microsoft.com/azure/azure-app-configuration/rest-api [azure_cli]: https://docs.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ -[configuration_client_class]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/src/ConfigurationClient.cs +[configuration_client_class]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/src/ConfigurationClient.cs [configuration_store]: https://docs.microsoft.com/azure/azure-app-configuration/quickstart-dotnet-core-app#create-an-app-configuration-store [label_concept]: https://docs.microsoft.com/azure/azure-app-configuration/concept-key-value#label-keys [nuget]: https://www.nuget.org/ [package]: https://www.nuget.org/packages/Azure.Data.AppConfiguration/ -[samples_readme]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/README.md +[samples_readme]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/README.md [moq]: https://github.com/Moq/moq4/ [cla]: https://cla.microsoft.com [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ diff --git a/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/README.md b/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/README.md index 2018e613031e..87bd93ec271b 100644 --- a/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/README.md +++ b/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/README.md @@ -11,13 +11,13 @@ description: Samples for the Azure.Data.AppConfiguration client library # Azure App Configuration client SDK samples - - [Create, Retrieve and Delete a Configuration Setting](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample1_HelloWorld.md) - - [Asynchronously Create, Update and Delete Configuration Setting With Labels](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample2_HelloWorldExtended.md) - - [Make a Configuration Setting Read-Only](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample3_SetClearReadOnly.md) - - [Read Revision History](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample4_ReadRevisionHistory.md) - - [Get a Configuration Setting](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample5_GetSettingIfChanged.md) - - [Update a Configuration If Unchanged](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample6_UpdateSettingIfUnchanged.md) - - [Mock a client for testing using the Moq library](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample7_MockClient.md) - - [Reacting to setting change notification](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample8_ChangeNotification.md) - - [Create, Retrieve and Delete a Feature Flag](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample9_FeatureFlags.md) - - [Create, Retrieve and Delete a Secret Reference](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample10_SecretReference.md) \ No newline at end of file + - [Create, Retrieve and Delete a Configuration Setting](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample1_HelloWorld.md) + - [Asynchronously Create, Update and Delete Configuration Setting With Labels](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample2_HelloWorldExtended.md) + - [Make a Configuration Setting Read-Only](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample3_SetClearReadOnly.md) + - [Read Revision History](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample4_ReadRevisionHistory.md) + - [Get a Configuration Setting](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample5_GetSettingIfChanged.md) + - [Update a Configuration If Unchanged](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample6_UpdateSettingIfUnchanged.md) + - [Mock a client for testing using the Moq library](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample7_MockClient.md) + - [Reacting to setting change notification](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample8_ChangeNotification.md) + - [Create, Retrieve and Delete a Feature Flag](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample9_FeatureFlags.md) + - [Create, Retrieve and Delete a Secret Reference](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample10_SecretReference.md) \ No newline at end of file diff --git a/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample10_SecretReference.md b/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample10_SecretReference.md index 91db0502f13d..c159b3a0cf58 100644 --- a/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample10_SecretReference.md +++ b/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample10_SecretReference.md @@ -37,7 +37,7 @@ client.SetConfigurationSetting(secretReferenceSetting); You can use the `GetConfigurationSetting` method to retrieve the secret reference. -If you'd like to get the secret value you would need to reference the [Azure.Security.KeyVault.Secrets](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/README.md) library and use the `KeyVaultSecretIdentifier` to parse the `SecretId`, and `SecretClient.GetSecretAsync` to get the secret value. +If you'd like to get the secret value you would need to reference the [Azure.Security.KeyVault.Secrets](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/README.md) library and use the `KeyVaultSecretIdentifier` to parse the `SecretId`, and `SecretClient.GetSecretAsync` to get the secret value. ```C# Snippet:Sample_GetSecretReference Response response = client.GetConfigurationSetting("setting"); diff --git a/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample1_HelloWorld.md b/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample1_HelloWorld.md index 151c43162934..e82e124f123f 100644 --- a/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample1_HelloWorld.md +++ b/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample1_HelloWorld.md @@ -1,10 +1,10 @@ # Create, Retrieve and Delete a Configuration Setting -This sample demonstrates basic operations with two core classes in this library: `ConfigurationClient` and `ConfigurationSetting`. `ConfigurationClient` is used to call the Azure App Configuration service - each method call sends a request to the service's REST API. `ConfigurationSetting` is the primary entity stored in a Configuration Store and represents a key-value pair you use to configure your application. The sample walks through the basics of adding, retrieving, and deleting a configuration setting. To get started, you'll need a connection string to the Azure App Configuration. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/README.md) for links and instructions. +This sample demonstrates basic operations with two core classes in this library: `ConfigurationClient` and `ConfigurationSetting`. `ConfigurationClient` is used to call the Azure App Configuration service - each method call sends a request to the service's REST API. `ConfigurationSetting` is the primary entity stored in a Configuration Store and represents a key-value pair you use to configure your application. The sample walks through the basics of adding, retrieving, and deleting a configuration setting. To get started, you'll need a connection string to the Azure App Configuration. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/README.md) for links and instructions. ## Create a ConfigurationClient -To interact with Azure App Configuration, you need to instantiate a `ConfigurationClient`. You can use either an endpoint URL and a [`TokenCredential`](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md#credentials) or a connection string. +To interact with Azure App Configuration, you need to instantiate a `ConfigurationClient`. You can use either an endpoint URL and a [`TokenCredential`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md#credentials) or a connection string. For the sample below, you can set `connectionString` in an environment variable, a configuration setting, or any way that works for your application. The connection string is available from the App Configuration Access Keys view in the Azure Portal. diff --git a/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample2_HelloWorldExtended.md b/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample2_HelloWorldExtended.md index 0827d7b7a289..c79424a93ae4 100644 --- a/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample2_HelloWorldExtended.md +++ b/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample2_HelloWorldExtended.md @@ -1,10 +1,10 @@ # Asynchronously Create, Update and Delete Configuration Setting With Labels -This sample demonstrates how to send requests to the Azure App Configuration service asynchronously. It also shows how to create and retrieve configuration settings with labels, and provides an example scenario where labels are used to group configuration settings for "beta" and "production" application instances. To get started, you'll need a connection string to Azure App Configuration. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/README.md) for links and instructions. +This sample demonstrates how to send requests to the Azure App Configuration service asynchronously. It also shows how to create and retrieve configuration settings with labels, and provides an example scenario where labels are used to group configuration settings for "beta" and "production" application instances. To get started, you'll need a connection string to Azure App Configuration. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/README.md) for links and instructions. ## Create a ConfigurationClient -To interact with Azure App Configuration, you need to instantiate a `ConfigurationClient`. You can use either an endpoint URL and a [`TokenCredential`](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md#credentials) or a connection string. +To interact with Azure App Configuration, you need to instantiate a `ConfigurationClient`. You can use either an endpoint URL and a [`TokenCredential`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md#credentials) or a connection string. For the sample below, you can set `connectionString` in an environment variable, a configuration setting, or any way that works for your application. The connection string is available from the App Configuration Access Keys view in the Azure Portal. diff --git a/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample3_SetClearReadOnly.md b/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample3_SetClearReadOnly.md index c34c416165cb..f103b0fb4bc0 100644 --- a/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample3_SetClearReadOnly.md +++ b/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample3_SetClearReadOnly.md @@ -1,10 +1,10 @@ # Make a Configuration Setting Read-Only -This sample demonstrates how to make a configuration value read-only and return it back to the read-write state, as well as the exception that is thrown if a user attempts to write to a read-only setting. To get started, you'll need a connection string to the Azure App Configuration. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/README.md) for links and instructions. +This sample demonstrates how to make a configuration value read-only and return it back to the read-write state, as well as the exception that is thrown if a user attempts to write to a read-only setting. To get started, you'll need a connection string to the Azure App Configuration. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/README.md) for links and instructions. ## Create a ConfigurationClient -To interact with Azure App Configuration, you need to instantiate a `ConfigurationClient`. You can use either an endpoint URL and a [`TokenCredential`](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md#credentials) or a connection string. +To interact with Azure App Configuration, you need to instantiate a `ConfigurationClient`. You can use either an endpoint URL and a [`TokenCredential`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md#credentials) or a connection string. For the sample below, you can set `connectionString` in an environment variable, a configuration setting, or any way that works for your application. The connection string is available from the App Configuration Access Keys view in the Azure Portal. diff --git a/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample4_ReadRevisionHistory.md b/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample4_ReadRevisionHistory.md index 545e62f8c93e..35865c24a569 100644 --- a/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample4_ReadRevisionHistory.md +++ b/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample4_ReadRevisionHistory.md @@ -2,11 +2,11 @@ This sample demonstrates how to read the revision history of a Configuration Setting in a Configuration Store. To do this, we create a setting, change it twice to create revisions, then read the revision history for that setting using a `SettingSelector` that uniquely identifies the configuration setting by its key name. The sample uses a configuration setting with a timestamp in the key name to ensure the setting hasn't been used before and thereby minimize the size of the revision history. -To get started, you'll need a connection string to the Azure App Configuration. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/README.md) for links and instructions. +To get started, you'll need a connection string to the Azure App Configuration. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/README.md) for links and instructions. ## Create a ConfigurationClient -To interact with Azure App Configuration, you need to instantiate a `ConfigurationClient`. You can use either an endpoint URL and a [`TokenCredential`](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md#credentials) or a connection string. +To interact with Azure App Configuration, you need to instantiate a `ConfigurationClient`. You can use either an endpoint URL and a [`TokenCredential`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md#credentials) or a connection string. For the sample below, you can set `connectionString` in an environment variable, a configuration setting, or any way that works for your application. The connection string is available from the App Configuration Access Keys view in the Azure Portal. diff --git a/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample5_GetSettingIfChanged.md b/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample5_GetSettingIfChanged.md index c5f55d20737b..e4c3116dbba5 100644 --- a/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample5_GetSettingIfChanged.md +++ b/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample5_GetSettingIfChanged.md @@ -1,6 +1,6 @@ # Get a Configuration Setting If Changed -This sample illustrates how to get a setting from the configuration store only if the version in the configuration store is different from the one held by your client application, as determined by whether the setting ETags match. Getting a configuration setting only if it has changed allows you to avoid downloading a setting if your client application is already holding the latest value, which saves cost and bandwidth. To get started, you'll need a connection string to Azure App Configuration. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/README.md) for links and instructions. +This sample illustrates how to get a setting from the configuration store only if the version in the configuration store is different from the one held by your client application, as determined by whether the setting ETags match. Getting a configuration setting only if it has changed allows you to avoid downloading a setting if your client application is already holding the latest value, which saves cost and bandwidth. To get started, you'll need a connection string to Azure App Configuration. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/README.md) for links and instructions. ## Define method `GetConfigurationSettingIfChanged` @@ -26,7 +26,7 @@ public static ConfigurationSetting GetConfigurationSettingIfChanged(Configuratio ## Create a ConfigurationClient -To interact with Azure App Configuration, you need to instantiate a `ConfigurationClient`. You can use either an endpoint URL and a [`TokenCredential`](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md#credentials) or a connection string. +To interact with Azure App Configuration, you need to instantiate a `ConfigurationClient`. You can use either an endpoint URL and a [`TokenCredential`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md#credentials) or a connection string. For the sample below, you can set `connectionString` in an environment variable, a configuration setting, or any way that works for your application. The connection string is available from the App Configuration Access Keys view in the Azure Portal. diff --git a/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample6_UpdateSettingIfUnchanged.md b/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample6_UpdateSettingIfUnchanged.md index a84d452704a5..b7c95b52a792 100644 --- a/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample6_UpdateSettingIfUnchanged.md +++ b/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample6_UpdateSettingIfUnchanged.md @@ -4,7 +4,7 @@ This sample illustrates how to update a setting in the configuration store only In a hypothetical scenario, we release several virtual machines from our application's resource pool, and update the `available_vms` configuration setting to reflect this. In this scenario, if another client were to have modified `available_vms` since we last retrieved it, and we updated it unconditionally, our update would overwrite their changes and the resulting value of `available_vms` would be incorrect. We show in the sample how to implement optimistic concurrency to apply the update in a way that doesn't overwrite other clients' changes. -To get started, you'll need a connection string to the Azure App Configuration. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/README.md) for links and instructions. +To get started, you'll need a connection string to the Azure App Configuration. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/README.md) for links and instructions. ## Define method `ReleaseVMs` @@ -47,7 +47,7 @@ private static int UpdateAvailableVms(ConfigurationClient client, int releasedVM ## Create a ConfigurationClient -To interact with Azure App Configuration, you need to instantiate a `ConfigurationClient`. You can use either an endpoint URL and a [`TokenCredential`](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md#credentials) or a connection string. +To interact with Azure App Configuration, you need to instantiate a `ConfigurationClient`. You can use either an endpoint URL and a [`TokenCredential`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md#credentials) or a connection string. For the sample below, you can set `connectionString` in an environment variable, a configuration setting, or any way that works for your application. The connection string is available from the App Configuration Access Keys view in the Azure Portal. diff --git a/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample7_MockClient.md b/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample7_MockClient.md index 19e182c70c0a..af9e98b8e55f 100644 --- a/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample7_MockClient.md +++ b/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample7_MockClient.md @@ -1,10 +1,10 @@ # Mock a client for testing using the Moq library -This sample illustrates how to use [Moq](https://github.com/Moq/moq4/) to create a unit test that mocks the response from a ConfigurationClient method. For more examples of mocking, see the [Azure.Data.AppConfiguration.Tests](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/tests/ConfigurationMockTests.cs) project. +This sample illustrates how to use [Moq](https://github.com/Moq/moq4/) to create a unit test that mocks the response from a ConfigurationClient method. For more examples of mocking, see the [Azure.Data.AppConfiguration.Tests](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/tests/ConfigurationMockTests.cs) project. ## Define method that uses `ConfigurationClient` -To show the usage of mocks, define a method that will be tested with mocked objects. For more details about this sample method, see "[Update a Configuration If Unchanged](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample6_UpdateSettingIfUnchanged.md)" sample. +To show the usage of mocks, define a method that will be tested with mocked objects. For more details about this sample method, see "[Update a Configuration If Unchanged](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample6_UpdateSettingIfUnchanged.md)" sample. ```C# Snippet:AzConfigSample7_MethodToTest private static async Task UpdateAvailableVmsAsync(ConfigurationClient client, int releasedVMs, CancellationToken cancellationToken) diff --git a/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample8_ChangeNotification.md b/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample8_ChangeNotification.md index 24dc59bfd91f..9494fb7c33b4 100644 --- a/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample8_ChangeNotification.md +++ b/sdk/appconfiguration/Azure.Data.AppConfiguration/samples/Sample8_ChangeNotification.md @@ -17,7 +17,7 @@ There are three main properties on `AppConfigurationKeyValueModifiedEventData`: 2. `Label` - the label of the setting that changed. 3. `SyncToken` - because of the distributed nature of the AppConfiguration service, the synchronization token needs to be registered with the client to get the most up-to-date value of the setting. The `ConfigurationClient.UpdateSyncToken` is used to register the synchronization token. -The following sample parses the notification payload using the [Azure.Messaging.EventGrid](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventgrid/Azure.Messaging.EventGrid/README.md#receiving-and-deserializing-events) client library. +The following sample parses the notification payload using the [Azure.Messaging.EventGrid](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventgrid/Azure.Messaging.EventGrid/README.md#receiving-and-deserializing-events) client library. Next, it enumerates all events and handles all instances of `AppConfigurationKeyValueModifiedEventData`. ```C# Snippet:AzConfigSample8_ChangeNotification diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/README.md b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/README.md index d7819abdc3cf..8b7c9a4c4d65 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/README.md +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/README.md @@ -18,7 +18,7 @@ Install-Package Azure.ResourceManager.AppConfiguration -Version 1.0.0-preview.2 ### Authenticate the Client -To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) ## Key concepts @@ -28,9 +28,9 @@ Key concepts of the Azure .NET SDK can be found [here](https://azure.github.io/a Documentation is available to help you learn how to use this package -- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) - [API References](https://docs.microsoft.com/dotnet/api/?view=azure-dotnet) -- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md) +- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md) ## Examples diff --git a/sdk/appconfiguration/CONTRIBUTING.md b/sdk/appconfiguration/CONTRIBUTING.md index d8639dc2ecce..4f2f03adae4c 100644 --- a/sdk/appconfiguration/CONTRIBUTING.md +++ b/sdk/appconfiguration/CONTRIBUTING.md @@ -58,21 +58,21 @@ Our samples are structured as unit tests so we can easily verify they're up to d ## Development history -For additional insight and context, the development, release, and issue history for the Azure Event Hubs client library is available in read-only form, in its previous location, the [Azure App Configuration .NET repository](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/appconfiguration). +For additional insight and context, the development, release, and issue history for the Azure Event Hubs client library is available in read-only form, in its previous location, the [Azure App Configuration .NET repository](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/appconfiguration). [azconfig_root]: ../../sdk/appconfiguration -[azconfig_api]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/api/Azure.Data.AppConfiguration.netstandard2.0.cs -[azconfig_export_api]: https://github.com/Azure/azure-sdk-for-net/blob/master/eng/scripts/Export-API.ps1 +[azconfig_api]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/api/Azure.Data.AppConfiguration.netstandard2.0.cs +[azconfig_export_api]: https://github.com/Azure/azure-sdk-for-net/blob/main/eng/scripts/Export-API.ps1 [cla]: https://cla.microsoft.com [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ [code_of_conduct_faq]: https://opensource.microsoft.com/codeofconduct/faq/ -[core_tests]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core.TestFramework +[core_tests]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core.TestFramework [nunit]: https://github.com/nunit/docs/wiki [open_issues]: https://github.com/Azure/azure-sdk-for-net/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+label%3AClient+label%3AAzConfig [sdk_readme]: https://github.com/Azure/azure-sdk -[sdk_contributing]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/CONTRIBUTING.md +[sdk_contributing]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/CONTRIBUTING.md [sdk_design_guidelines]: https://azure.github.io/azure-sdk/general_introduction.html [sdk_design_guidelines_dotnet]: https://azure.github.io/azure-sdk/dotnet_introduction.html -[sdk_dotnet_code_readme]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md +[sdk_dotnet_code_readme]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md [email_opencode]: mailto:opencode@microsoft.com diff --git a/sdk/appconfiguration/README.md b/sdk/appconfiguration/README.md index 1a531724cd81..773df0d629f6 100644 --- a/sdk/appconfiguration/README.md +++ b/sdk/appconfiguration/README.md @@ -13,8 +13,8 @@ This project welcomes contributions and suggestions. Most contributions require This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc_faq] or contact [opencode@microsoft.com][coc_contact] with any additional questions or comments. -[app_config]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/Azure.Data.AppConfiguration/README.md -[contrib]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/appconfiguration/CONTRIBUTING.md +[app_config]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/Azure.Data.AppConfiguration/README.md +[contrib]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/appconfiguration/CONTRIBUTING.md [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/appconfiguration/ci.yml b/sdk/appconfiguration/ci.yml index cee6761057dc..08581e5c22b6 100644 --- a/sdk/appconfiguration/ci.yml +++ b/sdk/appconfiguration/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/applicationinsights/ci.yml b/sdk/applicationinsights/ci.yml index 2d9416ed08ad..49d6754bd51b 100644 --- a/sdk/applicationinsights/ci.yml +++ b/sdk/applicationinsights/ci.yml @@ -2,7 +2,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -13,7 +12,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/attestation/Azure.Security.Attestation/README.md b/sdk/attestation/Azure.Security.Attestation/README.md index 720e9a08502e..9f830b4aaeb7 100644 --- a/sdk/attestation/Azure.Security.Attestation/README.md +++ b/sdk/attestation/Azure.Security.Attestation/README.md @@ -10,7 +10,7 @@ Azure Attestation receives evidence from compute entities, turns them into a set > NOTE: This is a preview SDK for the Microsoft Azure Attestation service. It provides all the essential functionality to access the Azure Attestation service, it should be considered 'as-is" and is subject to changes in the future which may break compatibility with previous versions. - [Source code](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/attestation/Azure.Security.Attestation) | [Package (NuGet)](https://www.nuget.org/packages/Azure.Security.Attestation) | [API reference documentation][API_reference] | [Product documentation](https://docs.microsoft.com/azure/attestation/) + [Source code](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/attestation/Azure.Security.Attestation) | [Package (NuGet)](https://www.nuget.org/packages/Azure.Security.Attestation) | [API reference documentation][API_reference] | [Product documentation](https://docs.microsoft.com/azure/attestation/) ## Getting started @@ -81,7 +81,7 @@ Use the [Azure CLI][azure_cli] snippet below to create/get client secret credent $Env:AZURE_TENANT_ID="tenant-ID" ``` -For more information about the Azure Identity APIs and how to use them, see [Azure Identity client library](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity) +For more information about the Azure Identity APIs and how to use them, see [Azure Identity client library](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity) ## Key concepts @@ -157,12 +157,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -212,10 +212,10 @@ var setResult = client.SetPolicy(AttestationType.SgxEnclave, attestationPolicy, Clients need to be able to verify that the attestation policy document was not modified before the policy document was received by the attestation service's enclave. -There are two properties provided in the [PolicyResult][attestation_policy_result] that can be used to verify that the service received the policy document: +There are two properties provided in the [PolicyModificationResult][attestation_policy_modification_result] that can be used to verify that the service received the policy document: -* [`PolicySigner`][attestation_policy_result_signer] - if the `SetPolicy` call included a signing certificate, this will be the certificate provided at the time of the `SetPolicy` call. If no policy signer was set, this will be null. -* [`PolicyTokenHash`][attestation_policy_result_token_hash] - this is the hash of the [JSON Web Token][json_web_token] sent to the service. +* [`PolicySigner`][attestation_policy_modification_result_signer] - if the `SetPolicy` call included a signing certificate, this will be the certificate provided at the time of the `SetPolicy` call. If no policy signer was set, this will be null. +* [`PolicyTokenHash`][attestation_policy_modification_result_token_hash] - this is the hash of the [JSON Web Token][json_web_token] sent to the service. To verify the hash, clients can generate an attestation token and verify the hash generated from that token: @@ -298,7 +298,7 @@ IReadOnlyList signingCertificates = (await client.GetSigningC ## Troubleshooting -Most Attestation service operations will throw a [RequestFailedException](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core/src/RequestFailedException.cs) on failure with helpful ErrorCodes. Many of these errors are recoverable. +Most Attestation service operations will throw a [RequestFailedException](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core/src/RequestFailedException.cs) on failure with helpful ErrorCodes. Many of these errors are recoverable. ```C# Snippet:AttestSgxEnclaveWithException try @@ -342,19 +342,19 @@ See [CONTRIBUTING.md][contributing] for details on building, testing, and contri [attestation_response]: https://docs.microsoft.com/dotnet/api/azure.security.attestation.attestationresponse-1 [attestation_response_token]: https://docs.microsoft.com/dotnet/api/azure.security.attestation.attestationresponse-1.token [attestation_response_value]: https://docs.microsoft.com/dotnet/api/azure.security.attestation.attestationresponse-1.value -[attestation_policy_result]: https://docs.microsoft.com/dotnet/api/azure.security.attestation.policyresult -[attestation_policy_result_signer]: https://docs.microsoft.com/dotnet/api/azure.security.attestation.policyresult.policysigner -[attestation_policy_result_token_hash]: https://docs.microsoft.com/dotnet/api/azure.security.attestation.policyresult.policytokenhash +[attestation_policy_modification_result]: https://docs.microsoft.com/dotnet/api/azure.security.attestation.policymodificationresult +[attestation_policy_modification_result_signer]: https://docs.microsoft.com/dotnet/api/azure.security.attestation.policymodificationresult.policysigner +[attestation_policy_modification_result_token_hash]: https://docs.microsoft.com/dotnet/api/azure.security.attestation.policymodificationresult.policytokenhash [azure_cli]: https://docs.microsoft.com/cli/azure -[azure_identity]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity +[azure_identity]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity [azure_sub]: https://azure.microsoft.com/free/ [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ [json_web_token]: https://tools.ietf.org/html/rfc7519 [JWK]: https://tools.ietf.org/html/rfc7517 [base64url_encoding]: https://tools.ietf.org/html/rfc4648#section-5 [nuget]: https://www.nuget.org/ -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md#defaultazurecredential -[contributing]: https://github.com/Azure/azure-sdk-for-net/blob/master/CONTRIBUTING.md +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md#defaultazurecredential +[contributing]: https://github.com/Azure/azure-sdk-for-net/blob/main/CONTRIBUTING.md [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fattestation%2FAzure.Security.Attestation%2FREADME.png) diff --git a/sdk/attestation/ci.yml b/sdk/attestation/ci.yml index e557a631192d..97b9e8aa4da7 100644 --- a/sdk/attestation/ci.yml +++ b/sdk/attestation/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/CHANGELOG.md b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/CHANGELOG.md index 1e82b3895abf..930f9e253e36 100644 --- a/sdk/automanage/Microsoft.Azure.Management.Automanage/src/CHANGELOG.md +++ b/sdk/automanage/Microsoft.Azure.Management.Automanage/src/CHANGELOG.md @@ -1,4 +1,4 @@ -# Microsoft.Azure.Management.Automanage release notes +# Microsoft.Azure.Management.Automanage release notes ## Changes in 0.1.0-preview ### Features diff --git a/sdk/batch/Microsoft.Azure.Management.Batch/README.md b/sdk/batch/Microsoft.Azure.Management.Batch/README.md index bf5c24a1c7d9..688bf13931e9 100644 --- a/sdk/batch/Microsoft.Azure.Management.Batch/README.md +++ b/sdk/batch/Microsoft.Azure.Management.Batch/README.md @@ -12,6 +12,6 @@ * Unit tests are in-memory tests which never actually make a REST call. * **Note:** You should prefer to add unit tests over recording tests where possible -- recording tests should be reserved for ensuring that the Batch Service accepts the Swagger payload, and only cover the basic happy path scenarios. 4. Update the `CHANGELOG.md` file and the `Version` tag in `src/Microsoft.Azure.Management.Batch.csproj`. Ensure that if you are making a breaking change, you update the major version of the version number. -5. Re-record all of the recording tests against the new API version (see [here](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/dev/Using-Azure-TestFramework.md) for details on how to use the recording framework). +5. Re-record all of the recording tests against the new API version (see [here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/dev/Using-Azure-TestFramework.md) for details on how to use the recording framework). 6. Switch test mode back to `Playback` and ensure that all of the tests pass. 7. Open a PR to https://github.com/Azure/azure-sdk-for-net. diff --git a/sdk/batch/ci.yml b/sdk/batch/ci.yml index 59a14ce734f1..a9b78d73f70f 100644 --- a/sdk/batch/ci.yml +++ b/sdk/batch/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/cdn/Microsoft.Azure.Management.Cdn/samples/CdnSignedUrlSignatureComputationSample/README.md b/sdk/cdn/Microsoft.Azure.Management.Cdn/samples/CdnSignedUrlSignatureComputationSample/README.md index 3c11bffa48b0..0a314c26838c 100644 --- a/sdk/cdn/Microsoft.Azure.Management.Cdn/samples/CdnSignedUrlSignatureComputationSample/README.md +++ b/sdk/cdn/Microsoft.Azure.Management.Cdn/samples/CdnSignedUrlSignatureComputationSample/README.md @@ -1,4 +1,4 @@ -SIGNEDURLUTILITIES: +SIGNEDURLUTILITIES: Signed URLs is a CDN feature. When enabled, requests are verified CDN edge server before the CDN delivers the content that they are generated by a trusted site by requiring requests to contain a signature value that holds encoded information about the requester. diff --git a/sdk/cognitiveservices/FormRecognizer/README.md b/sdk/cognitiveservices/FormRecognizer/README.md index 9431df58df80..9b544e3deb55 100644 --- a/sdk/cognitiveservices/FormRecognizer/README.md +++ b/sdk/cognitiveservices/FormRecognizer/README.md @@ -2,4 +2,4 @@ This package has endpoints that are no longer active and cannot make proper use of the Form Recognizer service. A newer package is available at [Azure.AI.FormRecognizer][new_package] as of 2020-08-20. -[new_package]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer \ No newline at end of file +[new_package]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer \ No newline at end of file diff --git a/sdk/cognitiveservices/Language.TextAnalytics/src/README.md b/sdk/cognitiveservices/Language.TextAnalytics/src/README.md index e4b9727db7b7..fa7b9a4bea4d 100644 --- a/sdk/cognitiveservices/Language.TextAnalytics/src/README.md +++ b/sdk/cognitiveservices/Language.TextAnalytics/src/README.md @@ -1,6 +1,6 @@ # Microsoft Azure Text Analytics SDK library for .NET ---- -**Note:** This SDK targets the V2.1 version of the Text Analytics service. For the new set of libraries that support newer service versions and follows the [Azure SDK Design Guidelines for .NET](https://azure.github.io/azure-sdk/dotnet/guidelines/) please see the Text Analytics Azure SDK under the path: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics . Instructions on how to install the package and samples on how to consume it are provided. +**Note:** This SDK targets the V2.1 version of the Text Analytics service. For the new set of libraries that support newer service versions and follows the [Azure SDK Design Guidelines for .NET](https://azure.github.io/azure-sdk/dotnet/guidelines/) please see the Text Analytics Azure SDK under the path: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics . Instructions on how to install the package and samples on how to consume it are provided. This SDK allows you to build applications that consumes Microsoft Cognitive Services Language APIs. diff --git a/sdk/cognitiveservices/ci.yml b/sdk/cognitiveservices/ci.yml index b76bc08de435..5fe1212bad73 100644 --- a/sdk/cognitiveservices/ci.yml +++ b/sdk/cognitiveservices/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/communication/Azure.Communication.CallingServer/README.md b/sdk/communication/Azure.Communication.CallingServer/README.md index f5c7ab2f5aba..0e2da8398ef1 100644 --- a/sdk/communication/Azure.Communication.CallingServer/README.md +++ b/sdk/communication/Azure.Communication.CallingServer/README.md @@ -1,4 +1,4 @@ -# Azure Communication Server Calling client library for .NET +# Azure Communication CallingServer client library for .NET This package contains a C# SDK for Azure Communication Services for Calling. @@ -6,7 +6,7 @@ This package contains a C# SDK for Azure Communication Services for Calling. ## Getting started ### Install the package -Install the Azure Communication Server Calling client library for .NET with [NuGet][nuget]: +Install the Azure Communication CallingServer client library for .NET with [NuGet][nuget]: ```PowerShell dotnet add package Azure.Communication.CallingServer --version 1.0.0-beta.1 @@ -18,7 +18,7 @@ You need an [Azure subscription][azure_sub] and a [Communication Service Resourc To create a new Communication Service, you can use the [Azure Portal][communication_resource_create_portal], the [Azure PowerShell][communication_resource_create_power_shell], or the [.NET management client library][communication_resource_create_net]. ### Key concepts -`CallClient` provides the functionality to make call related operations. +`CallingServerClient` provides the functionality to make call connection, join call connection or initialize a server call. ### Using statements ```C# Snippet:Azure_Communication_ServerCalling_Tests_UsingStatements @@ -28,33 +28,33 @@ using Azure.Communication.CallingServer; ``` ### Authenticate the client -Server Calling clients can be authenticated using the connection string acquired from an Azure Communication Resource in the [Azure Portal][azure_portal]. +Calling server client can be authenticated using the connection string acquired from an Azure Communication Resource in the [Azure Portal][azure_portal]. ```C# Snippet:Azure_Communication_ServerCalling_Tests_Samples_CreateServerCallingClient var connectionString = ""; // Find your Communication Services resource in the Azure portal -CallClient client = new CallClient(connectionString); +CallingServerClient callingServerClient = new CallingServerClient(connectionString); ``` ## Examples ### Make a call to a phone number recipient -To make a call, call the `CreateCall` or `CreateCallAsync` function from the `CallClient`. +To make an outbound call, call the `CreateCallConnection` or `CreateCallConnectionAsync` function from the `CallingServerClient`. ```C# Snippet:Azure_Communication_Call_Tests_CreateCallOptions var createCallOption = new CreateCallOptions( new Uri(TestEnvironment.AppCallbackUrl), - new List { CallModality.Audio }, - new List + new[] { MediaType.Audio }, + new[] { EventSubscriptionType.ParticipantsUpdated, EventSubscriptionType.DtmfReceived }); ``` ```C# Snippet:Azure_Communication_Call_Tests_CreateCallAsync -CreateCallResponse createCallResponse = await callClient.CreateCallAsync( +var callConnection = await callingServerClient.CreateCallConnectionAsync( source: new CommunicationUserIdentifier(""), // Your Azure Communication Resource Guid Id used to make a Call targets: new List() { new PhoneNumberIdentifier("") }, // E.164 formatted recipient phone number options: createCallOption // The options for creating a call. ); -Console.WriteLine($"Call Leg id: {createCallResponse.CallLegId}"); +Console.WriteLine($"Call connection id: {callConnection.Value.CallConnectionId}"); ``` ## Troubleshooting diff --git a/sdk/communication/Azure.Communication.CallingServer/api/Azure.Communication.CallingServer.netstandard2.0.cs b/sdk/communication/Azure.Communication.CallingServer/api/Azure.Communication.CallingServer.netstandard2.0.cs index c87567dfa6b8..6a748a9c5152 100644 --- a/sdk/communication/Azure.Communication.CallingServer/api/Azure.Communication.CallingServer.netstandard2.0.cs +++ b/sdk/communication/Azure.Communication.CallingServer/api/Azure.Communication.CallingServer.netstandard2.0.cs @@ -1,46 +1,88 @@ namespace Azure.Communication.CallingServer { - public static partial class AzureCommunicationCallingServerServiceModelFactory + public partial class AddParticipantResult { - public static Azure.Communication.CallingServer.CancelAllMediaOperationsResponse CancelAllMediaOperationsResponse(string id = null, Azure.Communication.CallingServer.OperationStatus? status = default(Azure.Communication.CallingServer.OperationStatus?), string operationContext = null, Azure.Communication.CallingServer.ResultInfo resultInfo = null) { throw null; } - public static Azure.Communication.CallingServer.CreateCallResponse CreateCallResponse(string callLegId = null) { throw null; } - public static Azure.Communication.CallingServer.GetCallRecordingStateResponse GetCallRecordingStateResponse(Azure.Communication.CallingServer.CallRecordingState? recordingState = default(Azure.Communication.CallingServer.CallRecordingState?)) { throw null; } - public static Azure.Communication.CallingServer.JoinCallResponse JoinCallResponse(string callLegId = null) { throw null; } - public static Azure.Communication.CallingServer.PlayAudioResponse PlayAudioResponse(string id = null, Azure.Communication.CallingServer.OperationStatus? status = default(Azure.Communication.CallingServer.OperationStatus?), string operationContext = null, Azure.Communication.CallingServer.ResultInfo resultInfo = null) { throw null; } - public static Azure.Communication.CallingServer.ResultInfo ResultInfo(int? code = default(int?), int? subcode = default(int?), string message = null) { throw null; } - public static Azure.Communication.CallingServer.StartCallRecordingResponse StartCallRecordingResponse(string recordingId = null) { throw null; } + internal AddParticipantResult() { } + public string ParticipantId { get { throw null; } } } - public partial class CallClient + public partial class AddParticipantResultEvent : Azure.Communication.CallingServer.CallingServerEventBase { - protected CallClient() { } - public CallClient(string connectionString) { } - public CallClient(string connectionString, Azure.Communication.CallingServer.CallClientOptions options = null) { } - public CallClient(System.Uri endpoint, Azure.AzureKeyCredential keyCredential, Azure.Communication.CallingServer.CallClientOptions options = null) { } - public CallClient(System.Uri endpoint, Azure.Core.TokenCredential tokenCredential, Azure.Communication.CallingServer.CallClientOptions options = null) { } - public virtual Azure.Response AddParticipant(string callLegId, Azure.Communication.CommunicationIdentifier participant, string alternateCallerId = null, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task AddParticipantAsync(string callLegId, Azure.Communication.CommunicationIdentifier participant, string alternateCallerId = null, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response CancelAllMediaOperations(string callLegId, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CancelAllMediaOperationsAsync(string callLegId, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response CreateCall(Azure.Communication.CommunicationIdentifier source, System.Collections.Generic.IEnumerable targets, Azure.Communication.CallingServer.CreateCallOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateCallAsync(Azure.Communication.CommunicationIdentifier source, System.Collections.Generic.IEnumerable targets, Azure.Communication.CallingServer.CreateCallOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response DeleteCall(string callLegId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteCallAsync(string callLegId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response HangupCall(string callLegId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task HangupCallAsync(string callLegId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response PlayAudio(string callLegId, Azure.Communication.CallingServer.PlayAudioOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response PlayAudio(string callLegId, System.Uri audioFileUri, bool? loop, string audioFileId, System.Uri callbackUri, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> PlayAudioAsync(string callLegId, Azure.Communication.CallingServer.PlayAudioOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> PlayAudioAsync(string callLegId, System.Uri audioFileUri, bool? loop, string audioFileId, System.Uri callbackUri, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveParticipant(string callLegId, string participantId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task RemoveParticipantAsync(string callLegId, string participantId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + internal AddParticipantResultEvent() { } + public string OperationContext { get { throw null; } } + public Azure.Communication.CallingServer.ResultInfo ResultInfo { get { throw null; } } + public Azure.Communication.CallingServer.OperationStatus Status { get { throw null; } } + public static Azure.Communication.CallingServer.AddParticipantResultEvent Deserialize(string content) { throw null; } + } + public partial class CallConnection + { + protected CallConnection() { } + public virtual string CallConnectionId { get { throw null; } } + public virtual Azure.Response AddParticipant(Azure.Communication.CommunicationIdentifier participant, string alternateCallerId = null, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddParticipantAsync(Azure.Communication.CommunicationIdentifier participant, string alternateCallerId = null, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response CancelAllMediaOperations(string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CancelAllMediaOperationsAsync(string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Hangup(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task HangupAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response PlayAudio(Azure.Communication.CallingServer.PlayAudioOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response PlayAudio(System.Uri audioFileUri, bool? loop, string audioFileId, System.Uri callbackUri, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> PlayAudioAsync(Azure.Communication.CallingServer.PlayAudioOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> PlayAudioAsync(System.Uri audioFileUri, bool? loop, string audioFileId, System.Uri callbackUri, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveParticipant(string participantId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task RemoveParticipantAsync(string participantId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct CallConnectionState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public CallConnectionState(string value) { throw null; } + public static Azure.Communication.CallingServer.CallConnectionState Connected { get { throw null; } } + public static Azure.Communication.CallingServer.CallConnectionState Connecting { get { throw null; } } + public static Azure.Communication.CallingServer.CallConnectionState Disconnected { get { throw null; } } + public static Azure.Communication.CallingServer.CallConnectionState Disconnecting { get { throw null; } } + public static Azure.Communication.CallingServer.CallConnectionState Incoming { get { throw null; } } + public bool Equals(Azure.Communication.CallingServer.CallConnectionState 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.Communication.CallingServer.CallConnectionState left, Azure.Communication.CallingServer.CallConnectionState right) { throw null; } + public static implicit operator Azure.Communication.CallingServer.CallConnectionState (string value) { throw null; } + public static bool operator !=(Azure.Communication.CallingServer.CallConnectionState left, Azure.Communication.CallingServer.CallConnectionState right) { throw null; } + public override string ToString() { throw null; } + } + public partial class CallConnectionStateChangedEvent : Azure.Communication.CallingServer.CallingServerEventBase + { + internal CallConnectionStateChangedEvent() { } + public string CallConnectionId { get { throw null; } } + public Azure.Communication.CallingServer.CallConnectionState CallConnectionState { get { throw null; } } + public string ServerCallId { get { throw null; } } + public static Azure.Communication.CallingServer.CallConnectionStateChangedEvent Deserialize(string content) { throw null; } } - public partial class CallClientOptions : Azure.Core.ClientOptions + public partial class CallingServerClient { - public const Azure.Communication.CallingServer.CallClientOptions.ServiceVersion LatestVersion = Azure.Communication.CallingServer.CallClientOptions.ServiceVersion.V2021_04_15_Preview1; - public CallClientOptions(Azure.Communication.CallingServer.CallClientOptions.ServiceVersion version = Azure.Communication.CallingServer.CallClientOptions.ServiceVersion.V2021_04_15_Preview1) { } + protected CallingServerClient() { } + public CallingServerClient(string connectionString) { } + public CallingServerClient(string connectionString, Azure.Communication.CallingServer.CallingServerClientOptions options) { } + public virtual Azure.Response CreateCallConnection(Azure.Communication.CommunicationIdentifier source, System.Collections.Generic.IEnumerable targets, Azure.Communication.CallingServer.CreateCallOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateCallConnectionAsync(Azure.Communication.CommunicationIdentifier source, System.Collections.Generic.IEnumerable targets, Azure.Communication.CallingServer.CreateCallOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DownloadStreaming(System.Uri sourceEndpoint, Azure.HttpRange range = default(Azure.HttpRange), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> DownloadStreamingAsync(System.Uri sourceEndpoint, Azure.HttpRange range = default(Azure.HttpRange), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DownloadTo(System.Uri sourceEndpoint, System.IO.Stream destinationStream, Azure.Communication.CallingServer.ContentTransferOptions transferOptions = default(Azure.Communication.CallingServer.ContentTransferOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DownloadTo(System.Uri sourceEndpoint, string destinationPath, Azure.Communication.CallingServer.ContentTransferOptions transferOptions = default(Azure.Communication.CallingServer.ContentTransferOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DownloadToAsync(System.Uri sourceEndpoint, System.IO.Stream destinationStream, Azure.Communication.CallingServer.ContentTransferOptions transferOptions = default(Azure.Communication.CallingServer.ContentTransferOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DownloadToAsync(System.Uri sourceEndpoint, string destinationPath, Azure.Communication.CallingServer.ContentTransferOptions transferOptions = default(Azure.Communication.CallingServer.ContentTransferOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Communication.CallingServer.CallConnection GetCallConnection(string callConnectionId) { throw null; } + public virtual Azure.Communication.CallingServer.ServerCall InitializeServerCall(string serverCallId) { throw null; } + public virtual Azure.Response JoinCall(string serverCallId, Azure.Communication.CommunicationIdentifier source, Azure.Communication.CallingServer.JoinCallOptions callOptions, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> JoinCallAsync(string serverCallId, Azure.Communication.CommunicationIdentifier source, Azure.Communication.CallingServer.JoinCallOptions callOptions, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class CallingServerClientOptions : Azure.Core.ClientOptions + { + public CallingServerClientOptions(Azure.Communication.CallingServer.CallingServerClientOptions.ServiceVersion version = Azure.Communication.CallingServer.CallingServerClientOptions.ServiceVersion.V2021_06_15_Preview) { } public enum ServiceVersion { - V2021_04_15_Preview1 = 0, + V2021_06_15_Preview = 1, } } public abstract partial class CallingServerEventBase @@ -53,9 +95,9 @@ protected CallingServerEventBase() { } private readonly object _dummy; private readonly int _dummyPrimitive; public CallingServerEventType(string value) { throw null; } - public static Azure.Communication.CallingServer.CallingServerEventType CallLegStateChangedEvent { get { throw null; } } + public static Azure.Communication.CallingServer.CallingServerEventType AddParticipantResultEvent { get { throw null; } } + public static Azure.Communication.CallingServer.CallingServerEventType CallConnectionStateChangedEvent { get { throw null; } } public static Azure.Communication.CallingServer.CallingServerEventType CallRecordingStateChangeEvent { get { throw null; } } - public static Azure.Communication.CallingServer.CallingServerEventType InviteParticipantsResultEvent { get { throw null; } } public static Azure.Communication.CallingServer.CallingServerEventType ParticipantsUpdatedEvent { get { throw null; } } public static Azure.Communication.CallingServer.CallingServerEventType PlayAudioResultEvent { get { throw null; } } public static Azure.Communication.CallingServer.CallingServerEventType ToneReceivedEvent { get { throw null; } } @@ -68,31 +110,17 @@ protected CallingServerEventBase() { } public static bool operator !=(Azure.Communication.CallingServer.CallingServerEventType left, Azure.Communication.CallingServer.CallingServerEventType right) { throw null; } public override string ToString() { throw null; } } - public partial class CallLegStateChangedEvent : Azure.Communication.CallingServer.CallingServerEventBase + public partial class CallParticipant { - public CallLegStateChangedEvent() { } - public string CallLegId { get { throw null; } set { } } - public Azure.Communication.CallingServer.CallState? CallState { get { throw null; } set { } } - public string ConversationId { get { throw null; } set { } } - public static Azure.Communication.CallingServer.CallLegStateChangedEvent Deserialize(string content) { throw null; } + internal CallParticipant() { } + public Azure.Communication.CommunicationIdentifier Identifier { get { throw null; } } + public bool IsMuted { get { throw null; } } + public string ParticipantId { get { throw null; } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct CallModality : System.IEquatable + public partial class CallRecordingProperties { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public CallModality(string value) { throw null; } - public static Azure.Communication.CallingServer.CallModality Audio { get { throw null; } } - public static Azure.Communication.CallingServer.CallModality Video { get { throw null; } } - public bool Equals(Azure.Communication.CallingServer.CallModality 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.Communication.CallingServer.CallModality left, Azure.Communication.CallingServer.CallModality right) { throw null; } - public static implicit operator Azure.Communication.CallingServer.CallModality (string value) { throw null; } - public static bool operator !=(Azure.Communication.CallingServer.CallModality left, Azure.Communication.CallingServer.CallModality right) { throw null; } - public override string ToString() { throw null; } + internal CallRecordingProperties() { } + public Azure.Communication.CallingServer.CallRecordingState RecordingState { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct CallRecordingState : System.IEquatable @@ -114,55 +142,20 @@ public CallLegStateChangedEvent() { } } public partial class CallRecordingStateChangeEvent : Azure.Communication.CallingServer.CallingServerEventBase { - public CallRecordingStateChangeEvent() { } - public string ConversationId { get { throw null; } set { } } - public string RecordingId { get { throw null; } set { } } - public System.DateTimeOffset? StartDateTime { get { throw null; } set { } } - public Azure.Communication.CallingServer.CallRecordingState? State { get { throw null; } set { } } + internal CallRecordingStateChangeEvent() { } + public string RecordingId { get { throw null; } } + public string ServerCallId { get { throw null; } } + public System.DateTimeOffset StartDateTime { get { throw null; } } + public Azure.Communication.CallingServer.CallRecordingState State { get { throw null; } } public static Azure.Communication.CallingServer.CallRecordingStateChangeEvent Deserialize(string content) { throw null; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct CallState : System.IEquatable + public partial class CancelAllMediaOperationsResult { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public CallState(string value) { throw null; } - public static Azure.Communication.CallingServer.CallState Established { get { throw null; } } - public static Azure.Communication.CallingServer.CallState Establishing { get { throw null; } } - public static Azure.Communication.CallingServer.CallState Hold { get { throw null; } } - public static Azure.Communication.CallingServer.CallState Idle { get { throw null; } } - public static Azure.Communication.CallingServer.CallState Incoming { get { throw null; } } - public static Azure.Communication.CallingServer.CallState Redirecting { get { throw null; } } - public static Azure.Communication.CallingServer.CallState Terminated { get { throw null; } } - public static Azure.Communication.CallingServer.CallState Terminating { get { throw null; } } - public static Azure.Communication.CallingServer.CallState Transferring { get { throw null; } } - public static Azure.Communication.CallingServer.CallState Unhold { get { throw null; } } - public static Azure.Communication.CallingServer.CallState Unknown { get { throw null; } } - public bool Equals(Azure.Communication.CallingServer.CallState 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.Communication.CallingServer.CallState left, Azure.Communication.CallingServer.CallState right) { throw null; } - public static implicit operator Azure.Communication.CallingServer.CallState (string value) { throw null; } - public static bool operator !=(Azure.Communication.CallingServer.CallState left, Azure.Communication.CallingServer.CallState right) { throw null; } - public override string ToString() { throw null; } - } - public partial class CancelAllMediaOperationsResponse - { - internal CancelAllMediaOperationsResponse() { } - public string Id { get { throw null; } } + internal CancelAllMediaOperationsResult() { } public string OperationContext { get { throw null; } } + public string OperationId { get { throw null; } } public Azure.Communication.CallingServer.ResultInfo ResultInfo { get { throw null; } } - public Azure.Communication.CallingServer.OperationStatus? Status { get { throw null; } } - } - public partial class CommunicationParticipant - { - public CommunicationParticipant() { } - public CommunicationParticipant(Azure.Communication.CommunicationIdentifier identifier, string participantId, bool? isMuted) { } - public Azure.Communication.CommunicationIdentifier Identifier { get { throw null; } set { } } - public bool? IsMuted { get { throw null; } set { } } - public string ParticipantId { get { throw null; } set { } } + public Azure.Communication.CallingServer.OperationStatus Status { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public partial struct ContentTransferOptions : System.IEquatable @@ -181,54 +174,15 @@ public partial struct ContentTransferOptions : System.IEquatable AddParticipantAsync(string conversationId, Azure.Communication.CommunicationIdentifier participant, System.Uri callbackUri, string alternateCallerId = null, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response DownloadStreaming(System.Uri sourceEndpoint, Azure.HttpRange range = default(Azure.HttpRange), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> DownloadStreamingAsync(System.Uri sourceEndpoint, Azure.HttpRange range = default(Azure.HttpRange), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response DownloadTo(System.Uri sourceEndpoint, System.IO.Stream destinationStream, Azure.Communication.CallingServer.ContentTransferOptions transferOptions = default(Azure.Communication.CallingServer.ContentTransferOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response DownloadTo(System.Uri sourceEndpoint, string destinationPath, Azure.Communication.CallingServer.ContentTransferOptions transferOptions = default(Azure.Communication.CallingServer.ContentTransferOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DownloadToAsync(System.Uri sourceEndpoint, System.IO.Stream destinationStream, Azure.Communication.CallingServer.ContentTransferOptions transferOptions = default(Azure.Communication.CallingServer.ContentTransferOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DownloadToAsync(System.Uri sourceEndpoint, string destinationPath, Azure.Communication.CallingServer.ContentTransferOptions transferOptions = default(Azure.Communication.CallingServer.ContentTransferOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetRecordingState(string conversationId, string recordingId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetRecordingStateAsync(string conversationId, string recordingId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response JoinCall(string conversationId, Azure.Communication.CommunicationIdentifier source, Azure.Communication.CallingServer.JoinCallOptions callOptions, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> JoinCallAsync(string conversationId, Azure.Communication.CommunicationIdentifier source, Azure.Communication.CallingServer.JoinCallOptions callOptions, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response PauseRecording(string conversationId, string recordingId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task PauseRecordingAsync(string conversationId, string recordingId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response PlayAudio(string conversationId, Azure.Communication.CallingServer.PlayAudioOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response PlayAudio(string conversationId, System.Uri audioFileUri, string audioFileId, System.Uri callbackUri, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> PlayAudioAsync(string conversationId, Azure.Communication.CallingServer.PlayAudioOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> PlayAudioAsync(string conversationId, System.Uri audioFileUri, string audioFileId, System.Uri callbackUri, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveParticipant(string conversationId, string participantId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task RemoveParticipantAsync(string conversationId, string participantId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response ResumeRecording(string conversationId, string recordingId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task ResumeRecordingAsync(string conversationId, string recordingId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response StartRecording(string conversationId, System.Uri recordingStateCallbackUri, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> StartRecordingAsync(string conversationId, System.Uri recordingStateCallbackUri, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response StopRecording(string conversationId, string recordingId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task StopRecordingAsync(string conversationId, string recordingId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } public partial class CreateCallOptions { - public CreateCallOptions(System.Uri callbackUri, System.Collections.Generic.IEnumerable requestedModalities, System.Collections.Generic.IEnumerable requestedCallEvents) { } + public CreateCallOptions(System.Uri callbackUri, System.Collections.Generic.IEnumerable requestedMediaTypes, System.Collections.Generic.IEnumerable requestedCallEvents) { } public Azure.Communication.PhoneNumberIdentifier AlternateCallerId { get { throw null; } set { } } public System.Uri CallbackUri { get { throw null; } } public System.Collections.Generic.IList RequestedCallEvents { get { throw null; } } - public System.Collections.Generic.IList RequestedModalities { get { throw null; } } + public System.Collections.Generic.IList RequestedMediaTypes { get { throw null; } } public string Subject { get { throw null; } set { } } } - public partial class CreateCallResponse - { - internal CreateCallResponse() { } - public string CallLegId { get { throw null; } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct EventSubscriptionType : System.IEquatable { @@ -247,31 +201,31 @@ internal CreateCallResponse() { } public static bool operator !=(Azure.Communication.CallingServer.EventSubscriptionType left, Azure.Communication.CallingServer.EventSubscriptionType right) { throw null; } public override string ToString() { throw null; } } - public partial class GetCallRecordingStateResponse - { - internal GetCallRecordingStateResponse() { } - public Azure.Communication.CallingServer.CallRecordingState? RecordingState { get { throw null; } } - } - public partial class InviteParticipantsResultEvent : Azure.Communication.CallingServer.CallingServerEventBase - { - public InviteParticipantsResultEvent() { } - public string OperationContext { get { throw null; } set { } } - public Azure.Communication.CallingServer.ResultInfo ResultInfo { get { throw null; } set { } } - public Azure.Communication.CallingServer.OperationStatus? Status { get { throw null; } set { } } - public static Azure.Communication.CallingServer.InviteParticipantsResultEvent Deserialize(string content) { throw null; } - } public partial class JoinCallOptions { - public JoinCallOptions(System.Uri callbackUri, System.Collections.Generic.IEnumerable requestedModalities, System.Collections.Generic.IEnumerable requestedCallEvents) { } + public JoinCallOptions(System.Uri callbackUri, System.Collections.Generic.IEnumerable requestedMediaTypes, System.Collections.Generic.IEnumerable requestedCallEvents) { } public System.Uri CallbackUri { get { throw null; } } public System.Collections.Generic.IList RequestedCallEvents { get { throw null; } } - public System.Collections.Generic.IList RequestedModalities { get { throw null; } } + public System.Collections.Generic.IList RequestedMediaTypes { get { throw null; } } public string Subject { get { throw null; } set { } } } - public partial class JoinCallResponse + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MediaType : System.IEquatable { - internal JoinCallResponse() { } - public string CallLegId { get { throw null; } } + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MediaType(string value) { throw null; } + public static Azure.Communication.CallingServer.MediaType Audio { get { throw null; } } + public static Azure.Communication.CallingServer.MediaType Video { get { throw null; } } + public bool Equals(Azure.Communication.CallingServer.MediaType 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.Communication.CallingServer.MediaType left, Azure.Communication.CallingServer.MediaType right) { throw null; } + public static implicit operator Azure.Communication.CallingServer.MediaType (string value) { throw null; } + public static bool operator !=(Azure.Communication.CallingServer.MediaType left, Azure.Communication.CallingServer.MediaType right) { throw null; } + public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct OperationStatus : System.IEquatable @@ -295,9 +249,9 @@ internal JoinCallResponse() { } } public partial class ParticipantsUpdatedEvent : Azure.Communication.CallingServer.CallingServerEventBase { - public ParticipantsUpdatedEvent() { } - public string CallLegId { get { throw null; } set { } } - public System.Collections.Generic.IEnumerable Participants { get { throw null; } set { } } + internal ParticipantsUpdatedEvent() { } + public string CallConnectionId { get { throw null; } } + public System.Collections.Generic.IEnumerable Participants { get { throw null; } } public static Azure.Communication.CallingServer.ParticipantsUpdatedEvent Deserialize(string content) { throw null; } } public partial class PlayAudioOptions @@ -309,45 +263,65 @@ public PlayAudioOptions() { } public bool? Loop { get { throw null; } set { } } public string OperationContext { get { throw null; } set { } } } - public partial class PlayAudioResponse + public partial class PlayAudioResult { - internal PlayAudioResponse() { } - public string Id { get { throw null; } } + internal PlayAudioResult() { } public string OperationContext { get { throw null; } } + public string OperationId { get { throw null; } } public Azure.Communication.CallingServer.ResultInfo ResultInfo { get { throw null; } } - public Azure.Communication.CallingServer.OperationStatus? Status { get { throw null; } } + public Azure.Communication.CallingServer.OperationStatus Status { get { throw null; } } } public partial class PlayAudioResultEvent : Azure.Communication.CallingServer.CallingServerEventBase { - public PlayAudioResultEvent() { } - public string OperationContext { get { throw null; } set { } } - public Azure.Communication.CallingServer.ResultInfo ResultInfo { get { throw null; } set { } } - public Azure.Communication.CallingServer.OperationStatus? Status { get { throw null; } set { } } + internal PlayAudioResultEvent() { } + public string OperationContext { get { throw null; } } + public Azure.Communication.CallingServer.ResultInfo ResultInfo { get { throw null; } } + public Azure.Communication.CallingServer.OperationStatus Status { get { throw null; } } public static Azure.Communication.CallingServer.PlayAudioResultEvent Deserialize(string content) { throw null; } } public partial class ResultInfo { internal ResultInfo() { } - public int? Code { get { throw null; } } + public int Code { get { throw null; } } public string Message { get { throw null; } } - public int? Subcode { get { throw null; } } + public int Subcode { get { throw null; } } + } + public partial class ServerCall + { + protected ServerCall() { } + public virtual Azure.Response AddParticipant(Azure.Communication.CommunicationIdentifier participant, System.Uri callbackUri, string alternateCallerId = null, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddParticipantAsync(Azure.Communication.CommunicationIdentifier participant, System.Uri callbackUri, string alternateCallerId = null, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetRecordingState(string recordingId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetRecordingStateAsync(string recordingId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response PauseRecording(string recordingId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task PauseRecordingAsync(string recordingId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response PlayAudio(System.Uri audioFileUri, string audioFileId, System.Uri callbackUri, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> PlayAudioAsync(System.Uri audioFileUri, string audioFileId, System.Uri callbackUri, string operationContext = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveParticipant(string participantId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task RemoveParticipantAsync(string participantId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response ResumeRecording(string recordingId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task ResumeRecordingAsync(string recordingId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response StartRecording(System.Uri recordingStateCallbackUri, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> StartRecordingAsync(System.Uri recordingStateCallbackUri, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response StopRecording(string recordingId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task StopRecordingAsync(string recordingId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class StartCallRecordingResponse + public partial class StartCallRecordingResult { - internal StartCallRecordingResponse() { } + internal StartCallRecordingResult() { } public string RecordingId { get { throw null; } } } public partial class ToneInfo { - public ToneInfo() { } - public int? SequenceId { get { throw null; } set { } } - public Azure.Communication.CallingServer.ToneValue? Tone { get { throw null; } set { } } + internal ToneInfo() { } + public int SequenceId { get { throw null; } } + public Azure.Communication.CallingServer.ToneValue Tone { get { throw null; } } } public partial class ToneReceivedEvent : Azure.Communication.CallingServer.CallingServerEventBase { - public ToneReceivedEvent() { } - public string CallLegId { get { throw null; } set { } } - public Azure.Communication.CallingServer.ToneInfo ToneInfo { get { throw null; } set { } } + internal ToneReceivedEvent() { } + public string CallConnectionId { get { throw null; } } + public Azure.Communication.CallingServer.ToneInfo ToneInfo { get { throw null; } } public static Azure.Communication.CallingServer.ToneReceivedEvent Deserialize(string content) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -384,3 +358,21 @@ public ToneReceivedEvent() { } public override string ToString() { throw null; } } } +namespace Azure.Communication.CallingServer.Models +{ + public static partial class CallingServerModelFactory + { + public static Azure.Communication.CallingServer.AddParticipantResult AddParticipantResult(string participantId = null) { throw null; } + public static Azure.Communication.CallingServer.AddParticipantResultEvent AddParticipantResultEvent(Azure.Communication.CallingServer.ResultInfo resultInfo = null, string operationContext = null, Azure.Communication.CallingServer.OperationStatus status = default(Azure.Communication.CallingServer.OperationStatus)) { throw null; } + public static Azure.Communication.CallingServer.CallConnectionStateChangedEvent CallConnectionStateChangedEvent(string serverCallId = null, string callConnectionId = null, Azure.Communication.CallingServer.CallConnectionState callConnectionState = default(Azure.Communication.CallingServer.CallConnectionState)) { throw null; } + public static Azure.Communication.CallingServer.CallRecordingProperties CallRecordingProperties(Azure.Communication.CallingServer.CallRecordingState recordingState = default(Azure.Communication.CallingServer.CallRecordingState)) { throw null; } + public static Azure.Communication.CallingServer.CallRecordingStateChangeEvent CallRecordingStateChangeEvent(string recordingId = null, Azure.Communication.CallingServer.CallRecordingState state = default(Azure.Communication.CallingServer.CallRecordingState), System.DateTimeOffset startDateTime = default(System.DateTimeOffset), string serverCallId = null) { throw null; } + public static Azure.Communication.CallingServer.CancelAllMediaOperationsResult CancelAllMediaOperationsResult(string operationId = null, Azure.Communication.CallingServer.OperationStatus status = default(Azure.Communication.CallingServer.OperationStatus), string operationContext = null, Azure.Communication.CallingServer.ResultInfo resultInfo = null) { throw null; } + public static Azure.Communication.CallingServer.PlayAudioResult PlayAudioResult(string operationId = null, Azure.Communication.CallingServer.OperationStatus status = default(Azure.Communication.CallingServer.OperationStatus), string operationContext = null, Azure.Communication.CallingServer.ResultInfo resultInfo = null) { throw null; } + public static Azure.Communication.CallingServer.PlayAudioResultEvent PlayAudioResultEvent(Azure.Communication.CallingServer.ResultInfo resultInfo = null, string operationContext = null, Azure.Communication.CallingServer.OperationStatus status = default(Azure.Communication.CallingServer.OperationStatus)) { throw null; } + public static Azure.Communication.CallingServer.ResultInfo ResultInfo(int code = 0, int subcode = 0, string message = null) { throw null; } + public static Azure.Communication.CallingServer.StartCallRecordingResult StartCallRecordingResult(string recordingId = null) { throw null; } + public static Azure.Communication.CallingServer.ToneInfo ToneInfo(int sequenceId = 0, Azure.Communication.CallingServer.ToneValue tone = default(Azure.Communication.CallingServer.ToneValue)) { throw null; } + public static Azure.Communication.CallingServer.ToneReceivedEvent ToneReceivedEvent(Azure.Communication.CallingServer.ToneInfo toneInfo = null, string callConnectionId = null) { throw null; } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/samples/README.md b/sdk/communication/Azure.Communication.CallingServer/samples/README.md index 502d01001f01..8c6fd015225d 100644 --- a/sdk/communication/Azure.Communication.CallingServer/samples/README.md +++ b/sdk/communication/Azure.Communication.CallingServer/samples/README.md @@ -1,17 +1,17 @@ ---- +--- page_type: sample languages: - csharp products: - azure - azure-communication-services -name: Azure Communication Server Calling samples for .NET +name: Azure Communication CallingServer samples for .NET description: Samples for the Azure.Communication.CallingServer client library --- -# Azure Communication Server Calling SDK samples +# Azure Communication CallingServer SDK samples -Azure Communication Server Calling is a client library that provides the functionality to make call between user identities. +Azure Communication CallingServer is a client library that provides the functionality to make call between user identities. To get started you will need to have an Azure Subscription. Once you have this you can go into the Azure portal and create Azure Communication Services resource. The page will give you necessary information to be able to use the sample codes here such as connections string, shared access key, etc. This client library allows to do following operations: diff --git a/sdk/communication/Azure.Communication.CallingServer/samples/Sample1_CreateCall.md b/sdk/communication/Azure.Communication.CallingServer/samples/Sample1_CreateCall.md index 8ea57baf5a1e..7b8b15a9b5fb 100644 --- a/sdk/communication/Azure.Communication.CallingServer/samples/Sample1_CreateCall.md +++ b/sdk/communication/Azure.Communication.CallingServer/samples/Sample1_CreateCall.md @@ -4,13 +4,13 @@ This sample demonstrates how to make a call to a phone number recipient. To get started you'll need a Communication Service Resource. See [README][README] for prerequisites and instructions. -## Creating an `ServerCallingClient` +## Creating a `CallingServerClient` -Server Calling clients can be authenticated using the connection string acquired from an Azure Communication Resource in the Azure Portal. +CallingServer client can be authenticated using the connection string acquired from an Azure Communication Resource in the Azure Portal. ```C# Snippet:Azure_Communication_ServerCalling_Tests_Samples_CreateServerCallingClient var connectionString = ""; // Find your Communication Services resource in the Azure portal -CallClient client = new CallClient(connectionString); +CallingServerClient callingServerClient = new CallingServerClient(connectionString); ``` ## Make a call to a phone number recipient @@ -19,20 +19,20 @@ To make a call, call the `CreateCall` or `CreateCallAsync` function from the `Ca ```C# Snippet:Azure_Communication_Call_Tests_CreateCallOptions var createCallOption = new CreateCallOptions( new Uri(TestEnvironment.AppCallbackUrl), - new List { CallModality.Audio }, - new List + new[] { MediaType.Audio }, + new[] { EventSubscriptionType.ParticipantsUpdated, EventSubscriptionType.DtmfReceived }); ``` ```C# Snippet:Azure_Communication_Call_Tests_CreateCall -CreateCallResponse createCallResponse = callClient.CreateCall( +var callConnection = callingServerClient.CreateCallConnection( source: new CommunicationUserIdentifier(""), // Your Azure Communication Resource Guid Id used to make a Call targets: new List() { new PhoneNumberIdentifier("") }, // E.164 formatted recipient phone number options: createCallOption // The options for creating a call. ); -Console.WriteLine($"Call Leg id: {createCallResponse.CallLegId}"); +Console.WriteLine($"Call connection id: {callConnection.Value.CallConnectionId}"); ``` To see the full example source files, see: diff --git a/sdk/communication/Azure.Communication.CallingServer/samples/Sample1_CreateCallAsync.md b/sdk/communication/Azure.Communication.CallingServer/samples/Sample1_CreateCallAsync.md index 1ad5703e3a79..18b334d34625 100644 --- a/sdk/communication/Azure.Communication.CallingServer/samples/Sample1_CreateCallAsync.md +++ b/sdk/communication/Azure.Communication.CallingServer/samples/Sample1_CreateCallAsync.md @@ -4,13 +4,13 @@ This sample demonstrates how to make a call to a recipient phone number. To get started you'll need a Communication Service Resource. See [README][README] for prerequisites and instructions. -## Creating an `ServerCallingClient` +## Creating a `CallingServerClient` -Server Calling clients can be authenticated using the connection string acquired from an Azure Communication Resource in the Azure Portal. +CallingServer client can be authenticated using the connection string acquired from an Azure Communication Resource in the Azure Portal. ```C# Snippet:Azure_Communication_ServerCalling_Tests_Samples_CreateServerCallingClient var connectionString = ""; // Find your Communication Services resource in the Azure portal -CallClient client = new CallClient(connectionString); +CallingServerClient callingServerClient = new CallingServerClient(connectionString); ``` ## Make a call to a phone number recipient @@ -19,20 +19,20 @@ To make a Call, call the `CreateCall` or `CreateCallAsync` function from the `Ca ```C# Snippet:Azure_Communication_Call_Tests_CreateCallOptions var createCallOption = new CreateCallOptions( new Uri(TestEnvironment.AppCallbackUrl), - new List { CallModality.Audio }, - new List + new[] { MediaType.Audio }, + new[] { EventSubscriptionType.ParticipantsUpdated, EventSubscriptionType.DtmfReceived }); ``` ```C# Snippet:Azure_Communication_Call_Tests_CreateCallAsync -CreateCallResponse createCallResponse = await callClient.CreateCallAsync( +var callConnection = await callingServerClient.CreateCallConnectionAsync( source: new CommunicationUserIdentifier(""), // Your Azure Communication Resource Guid Id used to make a Call targets: new List() { new PhoneNumberIdentifier("") }, // E.164 formatted recipient phone number options: createCallOption // The options for creating a call. ); -Console.WriteLine($"Call Leg id: {createCallResponse.CallLegId}"); +Console.WriteLine($"Call connection id: {callConnection.Value.CallConnectionId}"); ``` To see the full example source files, see: diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Azure.Communication.CallingServer.csproj b/sdk/communication/Azure.Communication.CallingServer/src/Azure.Communication.CallingServer.csproj index af9fd5b53b07..b6c54a2c7064 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Azure.Communication.CallingServer.csproj +++ b/sdk/communication/Azure.Communication.CallingServer/src/Azure.Communication.CallingServer.csproj @@ -1,13 +1,13 @@  - This client library enables working with the Microsoft Azure Communication Service Calling Server APIs. + This client library enables working with the Microsoft Azure Communication CallingServer service. For this release, see notes - https://github.com/Azure/azure-sdk-for-net-pr/blob/master/sdk/communication/Azure.Communication.ServerCalling/README.md and https://github.com/Azure/azure-sdk-for-net-pr/blob/master/sdk/communication/Azure.Communication.ServerCalling/CHANGELOG.md. - Azure Communication Service Calling Server APIs + Azure Communication CallingServer Service 1.0.0-beta.1 - Microsoft Azure Communication Calling Server APIs;Microsoft;Azure;Azure Communication Service;Azure Communication Calling Server APIs;Calling;Communication;$(PackageCommonTags) + Microsoft Azure Communication CallingServer Service;Microsoft;Azure;Azure Communication Service;Azure Communication CallingServer Service;Calling;Communication;$(PackageCommonTags) $(RequiredTargetFrameworks) diff --git a/sdk/communication/Azure.Communication.CallingServer/src/CallClient.cs b/sdk/communication/Azure.Communication.CallingServer/src/CallClient.cs deleted file mode 100644 index 6ddf78a66d82..000000000000 --- a/sdk/communication/Azure.Communication.CallingServer/src/CallClient.cs +++ /dev/null @@ -1,533 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.Communication.Pipeline; - -namespace Azure.Communication.CallingServer -{ - /// - /// The Azure Communication Services Calling Server client. - /// - public class CallClient - { - private readonly ClientDiagnostics _clientDiagnostics; - internal CallRestClient RestClient { get; } - - #region public constructors - all arguments need null check - - /// Initializes a new instance of . - /// Connection string acquired from the Azure Communication Services resource. - public CallClient(string connectionString) - : this( - ConnectionString.Parse(Argument.CheckNotNullOrEmpty(connectionString, nameof(connectionString))), - new CallClientOptions()) - { } - - /// Initializes a new instance of . - /// Connection string acquired from the Azure Communication Services resource. - /// Client option exposing , , , etc. - public CallClient(string connectionString, CallClientOptions options = default) - : this( - ConnectionString.Parse(Argument.CheckNotNullOrEmpty(connectionString, nameof(connectionString))), - options ?? new CallClientOptions()) - { } - - /// Initializes a new instance of . - /// The URI of the Azure Communication Services resource. - /// The used to authenticate requests. - /// Client option exposing , , , etc. - public CallClient(Uri endpoint, AzureKeyCredential keyCredential, CallClientOptions options = default) - : this( - Argument.CheckNotNull(endpoint, nameof(endpoint)).AbsoluteUri, - Argument.CheckNotNull(keyCredential, nameof(keyCredential)), - options ?? new CallClientOptions()) - { } - - /// Initializes a new instance of . - /// The URI of the Azure Communication Services resource. - /// The TokenCredential used to authenticate requests, such as DefaultAzureCredential. - /// Client option exposing , , , etc. - public CallClient(Uri endpoint, TokenCredential tokenCredential, CallClientOptions options = default) - : this( - Argument.CheckNotNull(endpoint, nameof(endpoint)).AbsoluteUri, - Argument.CheckNotNull(tokenCredential, nameof(tokenCredential)), - options ?? new CallClientOptions()) - { } - - #endregion - - #region private constructors - - private CallClient(ConnectionString connectionString, CallClientOptions options) - : this(connectionString.GetRequired("endpoint"), options.BuildHttpPipeline(connectionString), options) - { } - - private CallClient(string endpoint, TokenCredential tokenCredential, CallClientOptions options) - : this(endpoint, options.BuildHttpPipeline(tokenCredential), options) - { } - - private CallClient(string endpoint, AzureKeyCredential keyCredential, CallClientOptions options) - : this(endpoint, options.BuildHttpPipeline(keyCredential), options) - { } - - private CallClient(string endpoint, HttpPipeline httpPipeline, CallClientOptions options) - { - _clientDiagnostics = new ClientDiagnostics(options); - RestClient = new CallRestClient(_clientDiagnostics, httpPipeline, endpoint, options.ApiVersion); - } - - #endregion - - /// Initializes a new instance of for mocking. - protected CallClient() - { - _clientDiagnostics = null; - RestClient = null; - } - - /// Create an outgoing call from source to target identities. - /// The source identity - /// The target identities. - /// The call options. - /// The cancellation token. - /// The server returned an error. See for details returned from the server. - /// is null. - /// is null. - /// is null. - public virtual async Task> CreateCallAsync(CommunicationIdentifier source, IEnumerable targets, CreateCallOptions options, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallClient)}.{nameof(CreateCall)}"); - scope.Start(); - try - { - Argument.AssertNotNull(source, nameof(source)); - Argument.AssertNotNullOrEmpty(targets, nameof(targets)); - Argument.AssertNotNull(options, nameof(options)); - - var sourceAlternateIdentity = options.AlternateCallerId == null ? null : new PhoneNumberIdentifierModel(options.AlternateCallerId.PhoneNumber); - - return await RestClient.CreateCallAsync( - targets: targets.Select(t => CommunicationIdentifierSerializer.Serialize(t)), - source: CommunicationIdentifierSerializer.Serialize(source), - callbackUri: options.CallbackUri?.AbsoluteUri, - requestedModalities: options.RequestedModalities, - requestedCallEvents: options.RequestedCallEvents, - sourceAlternateIdentity: sourceAlternateIdentity, - subject: options.Subject, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// Create an outgoing call from source to target identities. - /// The source identity - /// The target identities. - /// The call options. - /// The cancellation token. - /// The server returned an error. See for details returned from the server. - /// is null. - /// is null. - /// is null. - public virtual Response CreateCall(CommunicationIdentifier source, IEnumerable targets, CreateCallOptions options, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallClient)}.{nameof(CreateCall)}"); - scope.Start(); - try - { - Argument.AssertNotNull(source, nameof(source)); - Argument.AssertNotNullOrEmpty(targets, nameof(targets)); - Argument.AssertNotNull(options, nameof(options)); - - var sourceAlternateIdentity = options.AlternateCallerId == null ? null : new PhoneNumberIdentifierModel(options.AlternateCallerId.PhoneNumber); - - return RestClient.CreateCall( - targets: targets.Select(t => CommunicationIdentifierSerializer.Serialize(t)), - source: CommunicationIdentifierSerializer.Serialize(source), - callbackUri: options.CallbackUri?.AbsoluteUri, - requestedModalities: options.RequestedModalities, - requestedCallEvents: options.RequestedCallEvents, - sourceAlternateIdentity: sourceAlternateIdentity, - subject: options.Subject, - cancellationToken: cancellationToken - ); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// Deletes the call. - /// The call leg id. - /// The cancellation token . - /// The server returned an error. See for details returned from the server. - public virtual async Task DeleteCallAsync(string callLegId, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallClient)}.{nameof(DeleteCall)}"); - scope.Start(); - try - { - return await RestClient.DeleteCallAsync( - callId: callLegId, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// Deletes the call. - /// The call leg id. - /// The cancellation token. - /// The server returned an error. See for details returned from the server. - public virtual Response DeleteCall(string callLegId, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallClient)}.{nameof(DeleteCall)}"); - scope.Start(); - try - { - return RestClient.DeleteCall( - callId: callLegId, - cancellationToken: cancellationToken - ); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// Disconnect the current caller in a group-call or end a p2p-call. - /// The call leg id. - /// The cancellation token. - /// The server returned an error. See for details returned from the server. - public virtual async Task HangupCallAsync(string callLegId, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallClient)}.{nameof(HangupCall)}"); - scope.Start(); - try - { - return await RestClient.HangupCallAsync( - callId: callLegId, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// Disconnect the current caller in a group-call or end a p2p-call. - /// The call leg id. - /// The cancellation token. - /// The server returned an error. See for details returned from the server. - public virtual Response HangupCall(string callLegId, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallClient)}.{nameof(HangupCall)}"); - scope.Start(); - try - { - return RestClient.HangupCall( - callId: callLegId, - cancellationToken: cancellationToken - ); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// Cancel all media operations in the call. - /// The call leg id. - /// The operation context. - /// The cancellation token. - /// The server returned an error. See for details returned from the server. - public virtual async Task> CancelAllMediaOperationsAsync(string callLegId, string operationContext = null, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallClient)}.{nameof(CancelAllMediaOperations)}"); - scope.Start(); - try - { - return await RestClient.CancelAllMediaOperationsAsync( - callId: callLegId, - operationContext: operationContext, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// Cancel all media operations in the call. - /// The call leg id. - /// The operation context. - /// The cancellation token. - /// The server returned an error. See for details returned from the server. - public virtual Response CancelAllMediaOperations(string callLegId, string operationContext = null, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallClient)}.{nameof(CancelAllMediaOperations)}"); - scope.Start(); - try - { - return RestClient.CancelAllMediaOperations( - callId: callLegId, - operationContext: operationContext, - cancellationToken: cancellationToken - ); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// Play audio in the call. - /// The call leg id. - /// The uri of the audio file. - /// The flag to indicate if audio file need to be played in a loop or not. - /// Tne id for the media in the AudioFileUri, using which we cache the media resource. - /// The callback Uri to receive PlayAudio status notifications. - /// The operation context. - /// The cancellation token to use. - /// The server returned an error. See for details returned from the server. - /// is null. - public virtual async Task> PlayAudioAsync(string callLegId, Uri audioFileUri, bool? loop, string audioFileId, Uri callbackUri, string operationContext = null, CancellationToken cancellationToken = default) - => await PlayAudioAsync( - callLegId: callLegId, - options: new PlayAudioOptions { - AudioFileUri = audioFileUri, - Loop = loop, - AudioFileId = audioFileId, - CallbackUri = callbackUri, - OperationContext = operationContext - }, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - /// Play audio in the call. - /// The call leg id. - /// Play audio request. - /// The cancellation token. - /// The server returned an error. See for details returned from the server. - /// is null. - public virtual async Task> PlayAudioAsync(string callLegId, PlayAudioOptions options, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallClient)}.{nameof(PlayAudio)}"); - scope.Start(); - try - { - Argument.AssertNotNull(options, nameof(options)); - - return await RestClient.PlayAudioAsync( - callId: callLegId, - audioFileUri: options.AudioFileUri?.AbsoluteUri, - loop: options.Loop, - audioFileId: options.AudioFileId, - callbackUri: options.CallbackUri?.AbsoluteUri, - operationContext: options.OperationContext, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// Play audio in the call. - /// The call leg id. - /// The uri of the audio file. - /// The flag to indicate if audio file need to be played in a loop or not. - /// Tne id for the media in the AudioFileUri, using which we cache the media resource. - /// The callback Uri to receive PlayAudio status notifications. - /// The operation context. - /// The cancellation token to use. - /// The server returned an error. See for details returned from the server. - /// is null. - public virtual Response PlayAudio(string callLegId, Uri audioFileUri, bool? loop, string audioFileId, Uri callbackUri, string operationContext = null, CancellationToken cancellationToken = default) - => PlayAudio( - callLegId: callLegId, - options: new PlayAudioOptions { - AudioFileUri = audioFileUri, - Loop = loop, - AudioFileId = audioFileId, - CallbackUri = callbackUri, - OperationContext = operationContext - }, - cancellationToken: cancellationToken - ); - - /// Play audio in the call. - /// The call leg id. - /// Play audio request. - /// The cancellation token. - /// The server returned an error. See for details returned from the server. - /// is null. - public virtual Response PlayAudio(string callLegId, PlayAudioOptions options, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallClient)}.{nameof(PlayAudio)}"); - scope.Start(); - try - { - Argument.AssertNotNull(options, nameof(options)); - - return RestClient.PlayAudio( - callId: callLegId, - audioFileUri: options.AudioFileUri?.AbsoluteUri, - loop: options.Loop, - audioFileId: options.AudioFileId, - callbackUri: options.CallbackUri?.AbsoluteUri, - operationContext: options.OperationContext, - cancellationToken: cancellationToken - ); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// Add a participant to the call. - /// The call leg id. - /// The identity of participant to be added to the call. - /// The phone number to use when adding a pstn participant. - /// The operation context. - /// The cancellation token. - /// The server returned an error. See for details returned from the server. - /// is null. - public virtual async Task AddParticipantAsync(string callLegId, CommunicationIdentifier participant, string alternateCallerId = default, string operationContext = default, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallClient)}.{nameof(AddParticipant)}"); - scope.Start(); - try - { - Argument.AssertNotNull(participant, nameof(participant)); - Argument.AssertNotNullOrEmpty(alternateCallerId, nameof(alternateCallerId)); - - return await RestClient.InviteParticipantsAsync( - callId: callLegId, - participants: new List() { CommunicationIdentifierSerializer.Serialize(participant) }, - alternateCallerId: new PhoneNumberIdentifierModel(alternateCallerId), - operationContext: operationContext, - callbackUri: null, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// Add a participant to the call. - /// The call leg id. - /// The identity of participant to be added to the call. - /// The phone number to use when adding a pstn participant. - /// The operation context. - /// The cancellation token. - /// The server returned an error. See for details returned from the server. - /// is null. - public virtual Response AddParticipant(string callLegId, CommunicationIdentifier participant, string alternateCallerId = default, string operationContext = default, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallClient)}.{nameof(AddParticipant)}"); - scope.Start(); - try - { - Argument.AssertNotNull(participant, nameof(participant)); - Argument.AssertNotNullOrEmpty(alternateCallerId, nameof(alternateCallerId)); - - return RestClient.InviteParticipants( - callId: callLegId, - participants: new List() { CommunicationIdentifierSerializer.Serialize(participant) }, - alternateCallerId: new PhoneNumberIdentifierModel(alternateCallerId), - operationContext: operationContext, - callbackUri: null, - cancellationToken: cancellationToken - ); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// Remove a participant from the call. - /// The call leg id. - /// The participant id. - /// The cancellation token. - /// The server returned an error. See for details returned from the server. - /// is null. - public virtual async Task RemoveParticipantAsync(string callLegId, string participantId, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallClient)}.{nameof(RemoveParticipant)}"); - scope.Start(); - try - { - return await RestClient.RemoveParticipantAsync( - callId: callLegId, - participantId: participantId, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// Remove a participants from the call. - /// The call leg id. - /// The participant id. - /// The cancellation token. - /// The server returned an error. See for details returned from the server. - /// is null. - public virtual Response RemoveParticipant(string callLegId, string participantId, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallClient)}.{nameof(RemoveParticipant)}"); - scope.Start(); - try - { - return RestClient.RemoveParticipant( - callId: callLegId, - participantId: participantId, - cancellationToken: cancellationToken - ); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - } -} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/CallConnection.cs b/sdk/communication/Azure.Communication.CallingServer/src/CallConnection.cs new file mode 100644 index 000000000000..b51276df2bbc --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/CallConnection.cs @@ -0,0 +1,336 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.Communication.CallingServer +{ + /// + /// The Azure Communication Services Calling Server client. + /// + public class CallConnection + { + private readonly ClientDiagnostics _clientDiagnostics; + internal CallConnectionsRestClient RestClient { get; } + + /// + /// The call connection id. + /// + public virtual string CallConnectionId { get; internal set; } + + internal CallConnection(string callConnectionId, CallConnectionsRestClient callConnectionRestClient, ClientDiagnostics clientDiagnostics) + { + this.CallConnectionId = callConnectionId; + this.RestClient = callConnectionRestClient; + this._clientDiagnostics = clientDiagnostics; + } + + /// Initializes a new instance of for mocking. + protected CallConnection() + { + _clientDiagnostics = null; + RestClient = null; + CallConnectionId = null; + } + + /// Disconnect the current caller in a group-call or end a p2p-call. + /// The cancellation token. + /// The server returned an error. See for details returned from the server. + public virtual async Task HangupAsync(CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallConnection)}.{nameof(Hangup)}"); + scope.Start(); + try + { + return await RestClient.HangupCallAsync( + callConnectionId: CallConnectionId, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// Disconnect the current caller in a group-call or end a p2p-call. + /// The cancellation token. + /// The server returned an error. See for details returned from the server. + public virtual Response Hangup(CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallConnection)}.{nameof(Hangup)}"); + scope.Start(); + try + { + return RestClient.HangupCall( + callConnectionId: CallConnectionId, + cancellationToken: cancellationToken + ); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// Cancel all media operations in the call. + /// The operation context. + /// The cancellation token. + /// The server returned an error. See for details returned from the server. + public virtual async Task> CancelAllMediaOperationsAsync(string operationContext = null, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallConnection)}.{nameof(CancelAllMediaOperations)}"); + scope.Start(); + try + { + return await RestClient.CancelAllMediaOperationsAsync( + callConnectionId: CallConnectionId, + operationContext: operationContext, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// Cancel all media operations in the call. + /// The operation context. + /// The cancellation token. + /// The server returned an error. See for details returned from the server. + public virtual Response CancelAllMediaOperations(string operationContext = null, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallConnection)}.{nameof(CancelAllMediaOperations)}"); + scope.Start(); + try + { + return RestClient.CancelAllMediaOperations( + callConnectionId: CallConnectionId, + operationContext: operationContext, + cancellationToken: cancellationToken + ); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// Play audio in the call. + /// The uri of the audio file. + /// The flag to indicate if audio file need to be played in a loop or not. + /// Tne id for the media in the AudioFileUri, using which we cache the media resource. + /// The callback Uri to receive PlayAudio status notifications. + /// The operation context. + /// The cancellation token to use. + /// The server returned an error. See for details returned from the server. + public virtual async Task> PlayAudioAsync(Uri audioFileUri, bool? loop, string audioFileId, Uri callbackUri, string operationContext = null, CancellationToken cancellationToken = default) + => await PlayAudioAsync( + options: new PlayAudioOptions { + AudioFileUri = audioFileUri, + Loop = loop, + AudioFileId = audioFileId, + CallbackUri = callbackUri, + OperationContext = operationContext + }, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + /// Play audio in the call. + /// Play audio request. + /// The cancellation token. + /// The server returned an error. See for details returned from the server. + /// is null. + public virtual async Task> PlayAudioAsync(PlayAudioOptions options, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallConnection)}.{nameof(PlayAudio)}"); + scope.Start(); + try + { + Argument.AssertNotNull(options, nameof(options)); + + return await RestClient.PlayAudioAsync( + callConnectionId: CallConnectionId, + audioFileUri: options.AudioFileUri?.AbsoluteUri, + loop: options.Loop, + audioFileId: options.AudioFileId, + callbackUri: options.CallbackUri?.AbsoluteUri, + operationContext: options.OperationContext, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// Play audio in the call. + /// The uri of the audio file. + /// The flag to indicate if audio file need to be played in a loop or not. + /// Tne id for the media in the AudioFileUri, using which we cache the media resource. + /// The callback Uri to receive PlayAudio status notifications. + /// The operation context. + /// The cancellation token to use. + /// The server returned an error. See for details returned from the server. + public virtual Response PlayAudio(Uri audioFileUri, bool? loop, string audioFileId, Uri callbackUri, string operationContext = null, CancellationToken cancellationToken = default) + => PlayAudio( + options: new PlayAudioOptions { + AudioFileUri = audioFileUri, + Loop = loop, + AudioFileId = audioFileId, + CallbackUri = callbackUri, + OperationContext = operationContext + }, + cancellationToken: cancellationToken + ); + + /// Play audio in the call. + /// Play audio request. + /// The cancellation token. + /// The server returned an error. See for details returned from the server. + /// is null. + public virtual Response PlayAudio(PlayAudioOptions options, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallConnection)}.{nameof(PlayAudio)}"); + scope.Start(); + try + { + Argument.AssertNotNull(options, nameof(options)); + + return RestClient.PlayAudio( + callConnectionId: CallConnectionId, + audioFileUri: options.AudioFileUri?.AbsoluteUri, + loop: options.Loop, + audioFileId: options.AudioFileId, + callbackUri: options.CallbackUri?.AbsoluteUri, + operationContext: options.OperationContext, + cancellationToken: cancellationToken + ); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// Add a participant to the call. + /// The identity of participant to be added to the call. + /// The phone number to use when adding a pstn participant. + /// The operation context. + /// The cancellation token. + /// The server returned an error. See for details returned from the server. + /// is null. + public virtual async Task> AddParticipantAsync(CommunicationIdentifier participant, string alternateCallerId = default, string operationContext = default, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallConnection)}.{nameof(AddParticipant)}"); + scope.Start(); + try + { + Argument.AssertNotNull(participant, nameof(participant)); + + return await RestClient.AddParticipantAsync( + callConnectionId: CallConnectionId, + participant: CommunicationIdentifierSerializer.Serialize(participant), + alternateCallerId: alternateCallerId == null ? null : new PhoneNumberIdentifierModel(alternateCallerId), + operationContext: operationContext, + callbackUri: null, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// Add a participant to the call. + /// The identity of participant to be added to the call. + /// The phone number to use when adding a pstn participant. + /// The operation context. + /// The cancellation token. + /// The server returned an error. See for details returned from the server. + /// is null. + public virtual Response AddParticipant(CommunicationIdentifier participant, string alternateCallerId = default, string operationContext = default, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallConnection)}.{nameof(AddParticipant)}"); + scope.Start(); + try + { + Argument.AssertNotNull(participant, nameof(participant)); + + return RestClient.AddParticipant( + callConnectionId: CallConnectionId, + participant: CommunicationIdentifierSerializer.Serialize(participant), + alternateCallerId: alternateCallerId == null ? null : new PhoneNumberIdentifierModel(alternateCallerId), + operationContext: operationContext, + callbackUri: null, + cancellationToken: cancellationToken + ); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// Remove a participant from the call. + /// The participant id. + /// The cancellation token. + /// The server returned an error. See for details returned from the server. + public virtual async Task RemoveParticipantAsync(string participantId, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallConnection)}.{nameof(RemoveParticipant)}"); + scope.Start(); + try + { + return await RestClient.RemoveParticipantAsync( + callConnectionId: CallConnectionId, + participantId: participantId, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// Remove a participants from the call. + /// The participant id. + /// The cancellation token. + /// The server returned an error. See for details returned from the server. + public virtual Response RemoveParticipant(string participantId, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallConnection)}.{nameof(RemoveParticipant)}"); + scope.Start(); + try + { + return RestClient.RemoveParticipant( + callConnectionId: CallConnectionId, + participantId: participantId, + cancellationToken: cancellationToken + ); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/CallingServerClient.cs b/sdk/communication/Azure.Communication.CallingServer/src/CallingServerClient.cs new file mode 100644 index 000000000000..d6b5143d7049 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/CallingServerClient.cs @@ -0,0 +1,476 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Communication.Pipeline; + +namespace Azure.Communication.CallingServer +{ + /// + /// The Azure Communication Services Calling Server client. + /// + public class CallingServerClient + { + internal readonly ClientDiagnostics _clientDiagnostics; + internal readonly HttpPipeline _pipeline; + internal readonly string _resourceEndpoint; + internal readonly ContentDownloader _contentDownloader; + + internal CallConnectionsRestClient CallConnectionRestClient { get; } + internal ServerCallsRestClient ServerCallRestClient { get; } + + #region public constructors + /// Initializes a new instance of . + /// Connection string acquired from the Azure Communication Services resource. + public CallingServerClient(string connectionString) + : this( + ConnectionString.Parse(Argument.CheckNotNullOrEmpty(connectionString, nameof(connectionString))), + new CallingServerClientOptions()) + { } + + /// Initializes a new instance of . + /// Connection string acquired from the Azure Communication Services resource. + /// Client option exposing , , , etc. + public CallingServerClient(string connectionString, CallingServerClientOptions options) + : this( + ConnectionString.Parse(Argument.CheckNotNullOrEmpty(connectionString, nameof(connectionString))), + Argument.CheckNotNull(options, nameof(options))) + { } + + #endregion + + #region private constructors + + private CallingServerClient(ConnectionString connectionString, CallingServerClientOptions options) + : this(connectionString.GetRequired("endpoint"), options.BuildHttpPipeline(connectionString), options) + { } + + private CallingServerClient(string endpoint, HttpPipeline httpPipeline, CallingServerClientOptions options) + { + _pipeline = httpPipeline; + _resourceEndpoint = endpoint; + _clientDiagnostics = new ClientDiagnostics(options); + _contentDownloader = new(this); + CallConnectionRestClient = new CallConnectionsRestClient(_clientDiagnostics, httpPipeline, endpoint, options.ApiVersion); + ServerCallRestClient = new ServerCallsRestClient(_clientDiagnostics, httpPipeline, endpoint, options.ApiVersion); + } + + #endregion + + /// Initializes a new instance of for mocking. + protected CallingServerClient() + { + _pipeline = null; + _resourceEndpoint = null; + _clientDiagnostics = null; + _contentDownloader = new(this); + CallConnectionRestClient = null; + ServerCallRestClient = null; + } + + /// Create an outgoing call from source to target identities. + /// The source identity + /// The target identities. + /// The call options. + /// The cancellation token. + /// The server returned an error. See for details returned from the server. + /// is null. + /// is null. + /// is null. + public virtual async Task> CreateCallConnectionAsync(CommunicationIdentifier source, IEnumerable targets, CreateCallOptions options, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallingServerClient)}.{nameof(CreateCallConnection)}"); + scope.Start(); + try + { + Argument.AssertNotNull(source, nameof(source)); + Argument.AssertNotNullOrEmpty(targets, nameof(targets)); + Argument.AssertNotNull(options, nameof(options)); + + var createCallResponse = await CallConnectionRestClient.CreateCallAsync( + source: CommunicationIdentifierSerializer.Serialize(source), + targets: targets.Select(t => CommunicationIdentifierSerializer.Serialize(t)), + callbackUri: options.CallbackUri?.AbsoluteUri, + requestedMediaTypes: options.RequestedMediaTypes, + requestedCallEvents: options.RequestedCallEvents, + alternateCallerId: options.AlternateCallerId == null ? null : new PhoneNumberIdentifierModel(options.AlternateCallerId.PhoneNumber), + subject: options.Subject, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return Response.FromValue( + new CallConnection(createCallResponse.Value.CallConnectionId, CallConnectionRestClient, _clientDiagnostics), + createCallResponse.GetRawResponse()); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// Create an outgoing call from source to target identities. + /// The source identity + /// The target identities. + /// The call options. + /// The cancellation token. + /// The server returned an error. See for details returned from the server. + /// is null. + /// is null. + /// is null. + public virtual Response CreateCallConnection(CommunicationIdentifier source, IEnumerable targets, CreateCallOptions options, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallingServerClient)}.{nameof(CreateCallConnection)}"); + scope.Start(); + try + { + Argument.AssertNotNull(source, nameof(source)); + Argument.AssertNotNullOrEmpty(targets, nameof(targets)); + Argument.AssertNotNull(options, nameof(options)); + + var createCallResponse = CallConnectionRestClient.CreateCall( + source: CommunicationIdentifierSerializer.Serialize(source), + targets: targets.Select(t => CommunicationIdentifierSerializer.Serialize(t)), + callbackUri: options.CallbackUri?.AbsoluteUri, + requestedMediaTypes: options.RequestedMediaTypes, + requestedCallEvents: options.RequestedCallEvents, + alternateCallerId: options.AlternateCallerId == null ? null : new PhoneNumberIdentifierModel(options.AlternateCallerId.PhoneNumber), + subject: options.Subject, + cancellationToken: cancellationToken + ); + + return Response.FromValue( + new CallConnection(createCallResponse.Value.CallConnectionId, CallConnectionRestClient, _clientDiagnostics), + createCallResponse.GetRawResponse()); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// Join the call using server call id. + /// The server call id. + /// The source identity. + /// The call Options. + /// The cancellation token. + /// The server returned an error. See for details returned from the server. + /// is null. + /// is null. + /// is null. + public virtual async Task> JoinCallAsync(string serverCallId, CommunicationIdentifier source, JoinCallOptions callOptions, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallingServerClient)}.{nameof(JoinCall)}"); + scope.Start(); + try + { + Argument.AssertNotNull(source, nameof(source)); + Argument.AssertNotNull(callOptions, nameof(callOptions)); + + var joinCallResponse = await ServerCallRestClient.JoinCallAsync( + serverCallId: serverCallId, + source: CommunicationIdentifierSerializer.Serialize(source), + callbackUri: callOptions.CallbackUri?.AbsoluteUri, + requestedMediaTypes: callOptions.RequestedMediaTypes, + requestedCallEvents: callOptions.RequestedCallEvents, + subject: null, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return Response.FromValue( + new CallConnection(joinCallResponse.Value.CallConnectionId, CallConnectionRestClient, _clientDiagnostics), + joinCallResponse.GetRawResponse()); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// Join the call using server call id. + /// The server call id. + /// The source identity. + /// The call Options. + /// The cancellation token. + /// The server returned an error. See for details returned from the server. + /// is null. + /// is null. + /// is null. + public virtual Response JoinCall(string serverCallId, CommunicationIdentifier source, JoinCallOptions callOptions, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallingServerClient)}.{nameof(JoinCall)}"); + scope.Start(); + try + { + Argument.AssertNotNull(source, nameof(source)); + Argument.AssertNotNull(callOptions, nameof(callOptions)); + + var joinCallResponse = ServerCallRestClient.JoinCall( + serverCallId: serverCallId, + source: CommunicationIdentifierSerializer.Serialize(source), + callbackUri: callOptions.CallbackUri?.AbsoluteUri, + requestedMediaTypes: callOptions.RequestedMediaTypes, + requestedCallEvents: callOptions.RequestedCallEvents, + subject: null, + cancellationToken: cancellationToken + ); + + return Response.FromValue( + new CallConnection(joinCallResponse.Value.CallConnectionId, CallConnectionRestClient, _clientDiagnostics), + joinCallResponse.GetRawResponse()); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// Initializes a new instance of CallConnection. . + /// The thread id for the ChatThreadClient instance. + public virtual CallConnection GetCallConnection(string callConnectionId) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallingServerClient)}.{nameof(CallingServerClient)}"); + scope.Start(); + try + { + Argument.AssertNotNullOrEmpty(callConnectionId, nameof(callConnectionId)); + + return new CallConnection(callConnectionId, CallConnectionRestClient, _clientDiagnostics); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// + /// Initializes a server call. + /// + /// The server call id. + /// + public virtual ServerCall InitializeServerCall(string serverCallId) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallingServerClient)}.{nameof(InitializeServerCall)}"); + scope.Start(); + try + { + Argument.AssertNotNull(serverCallId, nameof(serverCallId)); + + return new ServerCall(serverCallId, ServerCallRestClient, _clientDiagnostics); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// + /// The + /// operation downloads the recording's content. + /// + /// + /// + /// Recording's content's url location. + /// + /// + /// If provided, only download the bytes of the content in the specified range. + /// If not provided, download the entire content. + /// + /// + /// Optional to propagate + /// notifications that the operation should be cancelled. + /// + /// + /// A containing the + /// downloaded content. + /// + /// + /// A will be thrown if + /// a failure occurs. + /// + public virtual async Task> DownloadStreamingAsync( + Uri sourceEndpoint, + HttpRange range = default, + CancellationToken cancellationToken = default) => + await _contentDownloader.DownloadStreamingInternal( + sourceEndpoint, + range, + async: true, + cancellationToken) + .ConfigureAwait(false); + + /// + /// The + /// operation downloads the recording's content. + /// + /// + /// + /// Recording's content's url location. + /// + /// + /// If provided, only download the bytes of the content in the specified range. + /// If not provided, download the entire content. + /// + /// + /// Optional to propagate + /// notifications that the operation should be cancelled. + /// + /// + /// A containing the + /// downloaded content. + /// + /// + /// A will be thrown if + /// a failure occurs. + /// + public virtual Response DownloadStreaming( + Uri sourceEndpoint, + HttpRange range = default, + CancellationToken cancellationToken = default) => + _contentDownloader.DownloadStreamingInternal( + sourceEndpoint, + range, + async: false, + cancellationToken) + .EnsureCompleted(); + + /// + /// The + /// operation downloads the specified content using parallel requests, + /// and writes the content to . + /// + /// + /// A with the Recording's content's url location. + /// + /// + /// A to write the downloaded content to. + /// + /// + /// Optional to configure + /// parallel transfer behavior. + /// + /// + /// Optional to propagate + /// notifications that the operation should be cancelled. + /// + /// + /// A describing the operation. + /// + /// + /// A will be thrown if + /// a failure occurs. + /// + public virtual Response DownloadTo(Uri sourceEndpoint, Stream destinationStream, + ContentTransferOptions transferOptions = default, CancellationToken cancellationToken = default) => + _contentDownloader.StagedDownloadAsync(sourceEndpoint, destinationStream, transferOptions, async: false, cancellationToken: cancellationToken).EnsureCompleted(); + + /// + /// The + /// operation downloads the specified content using parallel requests, + /// and writes the content to . + /// + /// + /// A with the Recording's content's url location. + /// + /// + /// A to write the downloaded content to. + /// + /// + /// Optional to configure + /// parallel transfer behavior. + /// + /// + /// Optional to propagate + /// notifications that the operation should be cancelled. + /// + /// + /// A describing the operation. + /// + /// + /// A will be thrown if + /// a failure occurs. + /// + public virtual async Task DownloadToAsync(Uri sourceEndpoint, Stream destinationStream, ContentTransferOptions transferOptions = default, CancellationToken cancellationToken = default) => + await _contentDownloader.StagedDownloadAsync(sourceEndpoint, destinationStream, transferOptions, async: true, cancellationToken: cancellationToken).ConfigureAwait(false); + + /// + /// The + /// operation downloads the specified content using parallel requests, + /// and writes the content to . + /// + /// + /// A with the Recording's content's url location. + /// + /// + /// A file path to write the downloaded content to. + /// + /// + /// Optional to configure + /// parallel transfer behavior. + /// + /// + /// Optional to propagate + /// notifications that the operation should be cancelled. + /// + /// + /// A describing the operation. + /// + /// + /// A will be thrown if + /// a failure occurs. + /// + public virtual Response DownloadTo(Uri sourceEndpoint, string destinationPath, + ContentTransferOptions transferOptions = default, CancellationToken cancellationToken = default) + { + using Stream destination = File.Create(destinationPath); + return _contentDownloader.StagedDownloadAsync(sourceEndpoint, destination, transferOptions, + async: false, cancellationToken: cancellationToken).EnsureCompleted(); + } + + /// + /// The + /// operation downloads the specified content using parallel requests, + /// and writes the content to . + /// + /// + /// A with the Recording's content's url location. + /// + /// + /// A file path to write the downloaded content to. + /// + /// + /// Optional to configure + /// parallel transfer behavior. + /// + /// + /// Optional to propagate + /// notifications that the operation should be cancelled. + /// + /// + /// A describing the operation. + /// + /// + /// A will be thrown if + /// a failure occurs. + /// + public virtual async Task DownloadToAsync(Uri sourceEndpoint, string destinationPath, + ContentTransferOptions transferOptions = default, CancellationToken cancellationToken = default) + { + using Stream destination = File.Create(destinationPath); + return await _contentDownloader.StagedDownloadAsync(sourceEndpoint, destination, transferOptions, + async: true, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/CallClientOptions.cs b/sdk/communication/Azure.Communication.CallingServer/src/CallingServerClientOptions.cs similarity index 65% rename from sdk/communication/Azure.Communication.CallingServer/src/CallClientOptions.cs rename to sdk/communication/Azure.Communication.CallingServer/src/CallingServerClientOptions.cs index 6427a2995561..737b9a76425b 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/CallClientOptions.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/CallingServerClientOptions.cs @@ -7,25 +7,25 @@ namespace Azure.Communication.CallingServer { /// - /// The options for communication . + /// The options for communication and . /// - public class CallClientOptions : ClientOptions + public class CallingServerClientOptions : ClientOptions { /// /// The latest version of the CallingServer service. /// - public const ServiceVersion LatestVersion = ServiceVersion.V2021_04_15_Preview1; + internal const ServiceVersion LatestVersion = ServiceVersion.V2021_06_15_Preview; internal string ApiVersion { get; } /// - /// Initializes a new instance of the . + /// Initializes a new instance of the . /// - public CallClientOptions(ServiceVersion version = LatestVersion) + public CallingServerClientOptions(ServiceVersion version = LatestVersion) { ApiVersion = version switch { - ServiceVersion.V2021_04_15_Preview1 => "2021-04-15-preview1", + ServiceVersion.V2021_06_15_Preview => "2021-06-15-preview", _ => throw new ArgumentOutOfRangeException(nameof(version)), }; } @@ -39,7 +39,7 @@ public enum ServiceVersion /// The Beta of the CallingServer service. /// #pragma warning disable CA1707 // Identifiers should not contain underscores - V2021_04_15_Preview1 = 0 + V2021_06_15_Preview = 1 #pragma warning restore CA1707 // Identifiers should not contain underscores } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/ConversationClient.cs b/sdk/communication/Azure.Communication.CallingServer/src/ConversationClient.cs deleted file mode 100644 index e95c96d46078..000000000000 --- a/sdk/communication/Azure.Communication.CallingServer/src/ConversationClient.cs +++ /dev/null @@ -1,863 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.Communication.Pipeline; -using System.Collections.Generic; -using System.Linq; -using System.IO; - -namespace Azure.Communication.CallingServer -{ - /// - /// The Azure Communication Services Conversation Client. - /// - public class ConversationClient - { - internal readonly ClientDiagnostics _clientDiagnostics; - internal readonly HttpPipeline _pipeline; - internal readonly string _resourceEndpoint; - private readonly ContentDownloader _contentDownloader; - - internal ConversationRestClient RestClient { get; } - - #region public constructors - all arguments need null check - - /// Initializes a new instance of . - /// Connection string acquired from the Azure Communication Services resource. - public ConversationClient(string connectionString) - : this( - ConnectionString.Parse(Argument.CheckNotNullOrEmpty(connectionString, nameof(connectionString))), - new CallClientOptions()) - { } - - /// Initializes a new instance of . - /// Connection string acquired from the Azure Communication Services resource. - /// Client option exposing , , , etc. - public ConversationClient(string connectionString, CallClientOptions options) - : this( - ConnectionString.Parse(Argument.CheckNotNullOrEmpty(connectionString, nameof(connectionString))), - options ?? new CallClientOptions()) - { } - - /// Initializes a new instance of . - /// The URI of the Azure Communication Services resource. - /// The used to authenticate requests. - /// Client option exposing , , , etc. - public ConversationClient(Uri endpoint, AzureKeyCredential keyCredential, CallClientOptions options = default) - : this( - Argument.CheckNotNull(endpoint, nameof(endpoint)).AbsoluteUri, - Argument.CheckNotNull(keyCredential, nameof(keyCredential)), - options ?? new CallClientOptions()) - { } - - /// Initializes a new instance of . - /// The URI of the Azure Communication Services resource. - /// The TokenCredential used to authenticate requests, such as DefaultAzureCredential. - /// Client option exposing , , , etc. - public ConversationClient(Uri endpoint, TokenCredential tokenCredential, CallClientOptions options = default) - : this( - Argument.CheckNotNull(endpoint, nameof(endpoint)).AbsoluteUri, - Argument.CheckNotNull(tokenCredential, nameof(tokenCredential)), - options ?? new CallClientOptions()) - { } - - #endregion - - #region private constructors - - private ConversationClient(ConnectionString connectionString, CallClientOptions options) - : this(connectionString.GetRequired("endpoint"), options.BuildHttpPipeline(connectionString), options) - { } - - private ConversationClient(string endpoint, TokenCredential tokenCredential, CallClientOptions options) - : this(endpoint, options.BuildHttpPipeline(tokenCredential), options) - { } - - private ConversationClient(string endpoint, AzureKeyCredential keyCredential, CallClientOptions options) - : this(endpoint, options.BuildHttpPipeline(keyCredential), options) - { } - - private ConversationClient(string endpoint, HttpPipeline httpPipeline, CallClientOptions options) - { - _clientDiagnostics = new ClientDiagnostics(options); - _pipeline = httpPipeline; - _resourceEndpoint = endpoint; - _contentDownloader = new(this); - RestClient = new ConversationRestClient(_clientDiagnostics, httpPipeline, endpoint, options.ApiVersion); - } - - #endregion - - /// Initializes a new instance of for mocking. - protected ConversationClient() - { - _clientDiagnostics = null; - _pipeline = null; - _resourceEndpoint = null; - _contentDownloader = new(this); - RestClient = null; - } - - /// Join the call using conversation id. - /// The conversation id that can be a group id or a encoded conversation url retrieve from client. - /// The source identity. - /// The call Options. - /// The cancellation token. - /// The server returned an error. See for details returned from the server. - /// is null. - /// is null. - /// is null. - public virtual async Task> JoinCallAsync(string conversationId, CommunicationIdentifier source, JoinCallOptions callOptions, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallClient)}.{nameof(JoinCall)}"); - scope.Start(); - try - { - Argument.AssertNotNull(source, nameof(source)); - Argument.AssertNotNull(callOptions, nameof(callOptions)); - - return await RestClient.JoinCallAsync( - conversationId: conversationId, - source: CommunicationIdentifierSerializer.Serialize(source), - callbackUri: callOptions.CallbackUri?.AbsoluteUri, - requestedModalities: callOptions.RequestedModalities, - requestedCallEvents: callOptions.RequestedCallEvents, - subject: null, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// Join the call using conversation id. - /// The conversation id that can be a group id or a encoded conversation url retrieve from client. - /// The source identity. - /// The call Options. - /// The cancellation token. - /// The server returned an error. See for details returned from the server. - /// is null. - /// is null. - /// is null. - public virtual Response JoinCall(string conversationId, CommunicationIdentifier source, JoinCallOptions callOptions, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(CallClient)}.{nameof(JoinCall)}"); - scope.Start(); - try - { - Argument.AssertNotNull(source, nameof(source)); - Argument.AssertNotNull(callOptions, nameof(callOptions)); - - return RestClient.JoinCall( - conversationId: conversationId, - source: CommunicationIdentifierSerializer.Serialize(source), - callbackUri: callOptions.CallbackUri?.AbsoluteUri, - requestedModalities: callOptions.RequestedModalities, - requestedCallEvents: callOptions.RequestedCallEvents, - subject: null, - cancellationToken: cancellationToken - ); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// Play audio in the call. - /// The conversation id that can be a group id or a encoded conversation url retrieve from client. - /// The uri of the audio file. - /// Tne id for the media in the AudioFileUri, using which we cache the media resource. - /// The callback Uri to receive PlayAudio status notifications. - /// The operation context. - /// The cancellation token to use. - /// The server returned an error. See for details returned from the server. - /// is null. - public virtual async Task> PlayAudioAsync(string conversationId, Uri audioFileUri, string audioFileId, Uri callbackUri, string operationContext = null, CancellationToken cancellationToken = default) - => await PlayAudioAsync( - conversationId: conversationId, - options: new PlayAudioOptions - { - AudioFileUri = audioFileUri, - AudioFileId = audioFileId, - CallbackUri = callbackUri, - OperationContext = operationContext - }, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - - /// Play audio in the call. - /// The call leg id. - /// Play audio request. - /// The cancellation token. - /// The server returned an error. See for details returned from the server. - /// is null. - public virtual async Task> PlayAudioAsync(string conversationId, PlayAudioOptions options, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ConversationClient)}.{nameof(PlayAudio)}"); - scope.Start(); - try - { - Argument.AssertNotNull(options, nameof(options)); - - // Currently looping media is not supported for out-call scenarios, thus setting it to false. - return await RestClient.PlayAudioAsync( - conversationId: conversationId, - audioFileUri: options.AudioFileUri?.AbsoluteUri, - loop: false, - audioFileId: options.AudioFileId, - callbackUri: options.CallbackUri?.AbsoluteUri, - operationContext: options.OperationContext, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// Play audio in the call. - /// The conversation id that can be a group id or a encoded conversation url retrieve from client. - /// The uri of the audio file. - /// Tne id for the media in the AudioFileUri, using which we cache the media resource. - /// The callback Uri to receive PlayAudio status notifications. - /// The operation context. - /// The cancellation token to use. - /// - public virtual Response PlayAudio(string conversationId, Uri audioFileUri, string audioFileId, Uri callbackUri, string operationContext = null, CancellationToken cancellationToken = default) - => PlayAudio( - conversationId: conversationId, - options: new PlayAudioOptions - { - AudioFileUri = audioFileUri, - AudioFileId = audioFileId, - CallbackUri = callbackUri, - OperationContext = operationContext - }, - cancellationToken: cancellationToken - ); - - /// Play audio in the call. - /// The conversation id that can be a group id or a encoded conversation url retrieve from client. - /// Play audio request. - /// The cancellation token. - /// The server returned an error. See for details returned from the server. - /// is null. - public virtual Response PlayAudio(string conversationId, PlayAudioOptions options, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ConversationClient)}.{nameof(PlayAudio)}"); - scope.Start(); - try - { - Argument.AssertNotNull(options, nameof(options)); - - // Currently looping media is not supported for out-call scenarios, thus setting it to false. - return RestClient.PlayAudio( - conversationId: conversationId, - audioFileUri: options.AudioFileUri?.AbsoluteUri, - loop: false, - audioFileId: options.AudioFileId, - callbackUri: options.CallbackUri?.AbsoluteUri, - operationContext: options.OperationContext, - cancellationToken: cancellationToken - ); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// - /// Add participant to the call. - /// - /// The conversation id that can be a group id or a encoded conversation url retrieve from client. - /// The identity of participant to be added to the call. - /// The callback uri to receive the notification. - /// The phone number to use when adding a pstn participant. - /// The operation context. - /// The cancellation token. - public virtual Response AddParticipant(string conversationId, CommunicationIdentifier participant, Uri callbackUri, string alternateCallerId = default, string operationContext = default, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ConversationClient)}.{nameof(AddParticipant)}"); - scope.Start(); - try - { - Argument.AssertNotNull(participant, nameof(participant)); - - var participantsInternal = new List { CommunicationIdentifierSerializer.Serialize(participant) }; - var alternateCallerIdInternal = string.IsNullOrEmpty(alternateCallerId) ? null : new PhoneNumberIdentifierModel(alternateCallerId); - return RestClient.InviteParticipants( - conversationId: conversationId, - participants: participantsInternal, - alternateCallerId: alternateCallerIdInternal, - callbackUri: callbackUri?.AbsoluteUri, - operationContext: operationContext, - cancellationToken: cancellationToken - ); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// - /// Add participant to the call. - /// - /// The conversation id that can be a group id or a encoded conversation url retrieve from client. - /// The identity of participant to be added to the call. - /// - /// The phone number to use when adding a pstn participant. - /// The operation context. - /// The cancellation token. - public virtual async Task AddParticipantAsync(string conversationId, CommunicationIdentifier participant, Uri callbackUri, string alternateCallerId = default, string operationContext = default, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ConversationClient)}.{nameof(AddParticipant)}"); - scope.Start(); - try - { - Argument.AssertNotNull(participant, nameof(participant)); - - var participantsInternal = new List { CommunicationIdentifierSerializer.Serialize(participant) }; - var alternateCallerIdInternal = string.IsNullOrEmpty(alternateCallerId) ? null : new PhoneNumberIdentifierModel(alternateCallerId); - return await RestClient.InviteParticipantsAsync( - conversationId: conversationId, - participants: participantsInternal, - alternateCallerId: alternateCallerIdInternal, - callbackUri: callbackUri?.AbsoluteUri, - operationContext: operationContext, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// - /// Remove participant from the call. - /// - /// The conversation id that can be a group id or a encoded conversation url retrieve from client. - /// The participant id. - /// The cancellation token. - public virtual Response RemoveParticipant(string conversationId, string participantId, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ConversationClient)}.{nameof(RemoveParticipant)}"); - scope.Start(); - try - { - return RestClient.RemoveParticipant( - conversationId: conversationId, - participantId: participantId, - cancellationToken: cancellationToken - ); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// - /// Remove participant from the call. - /// - /// The conversation id that can be a group id or a encoded conversation url retrieve from client. - /// The participant id. - /// The cancellation token. - public virtual async Task RemoveParticipantAsync(string conversationId, string participantId, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ConversationClient)}.{nameof(RemoveParticipant)}"); - scope.Start(); - try - { - return await RestClient.RemoveParticipantAsync( - conversationId: conversationId, - participantId: participantId, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// - /// Start recording of the call. - /// - /// The conversation id that can be a group id or a encoded conversation url retrieve from client. - /// The uri to send state change callbacks. - /// The cancellation token. - public virtual async Task> StartRecordingAsync(string conversationId, Uri recordingStateCallbackUri, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ConversationClient)}.{nameof(StartRecording)}"); - scope.Start(); - try - { - return await RestClient.StartRecordingAsync( - conversationId: conversationId, - recordingStateCallbackUri: recordingStateCallbackUri.AbsoluteUri, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// - /// Start recording of the call. - /// - /// The conversation id that can be a group id or a encoded conversation url retrieve from client. - /// The uri to send state change callbacks. - /// The cancellation token. - public virtual Response StartRecording(string conversationId, Uri recordingStateCallbackUri, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ConversationClient)}.{nameof(StartRecording)}"); - scope.Start(); - try - { - return RestClient.StartRecording( - conversationId: conversationId, - recordingStateCallbackUri: recordingStateCallbackUri.AbsoluteUri, - cancellationToken: cancellationToken - ); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// - /// Get the current recording state by recording id. - /// - /// The conversation id that can be a group id or a encoded conversation url retrieve from client. - /// The recording id to get the state of. - /// The cancellation token. - public virtual async Task> GetRecordingStateAsync(string conversationId, string recordingId, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ConversationClient)}.{nameof(GetRecordingState)}"); - scope.Start(); - try - { - return await RestClient.RecordingStateAsync( - conversationId: conversationId, - recordingId: recordingId, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// - /// Get the current recording state by recording id. - /// - /// The conversation id that can be a group id or a encoded conversation url retrieve from client. - /// The recording id to get the state of. - /// The cancellation token. - public virtual Response GetRecordingState(string conversationId, string recordingId, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ConversationClient)}.{nameof(GetRecordingState)}"); - scope.Start(); - try - { - return RestClient.RecordingState( - conversationId: conversationId, - recordingId: recordingId, - cancellationToken: cancellationToken - ); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// - /// Stop recording of the call. - /// - /// The conversation id that can be a group id or a encoded conversation url retrieve from client. - /// The recording id to stop. - /// The cancellation token. - public virtual async Task StopRecordingAsync(string conversationId, string recordingId, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ConversationClient)}.{nameof(StopRecording)}"); - scope.Start(); - try - { - return await RestClient.StopRecordingAsync( - conversationId: conversationId, - recordingId: recordingId, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// - /// Stop recording of the call. - /// - /// The conversation id that can be a group id or a encoded conversation url retrieve from client. - /// The recording id to stop. - /// The cancellation token. - public virtual Response StopRecording(string conversationId, string recordingId, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ConversationClient)}.{nameof(StopRecording)}"); - scope.Start(); - try - { - return RestClient.StopRecording( - conversationId: conversationId, - recordingId: recordingId, - cancellationToken: cancellationToken - ); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// - /// Pause recording of the call. - /// - /// The conversation id that can be a group id or a encoded conversation url retrieve from client. - /// The recording id to pause. - /// The cancellation token. - public virtual async Task PauseRecordingAsync(string conversationId, string recordingId, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ConversationClient)}.{nameof(PauseRecording)}"); - scope.Start(); - try - { - return await RestClient.PauseRecordingAsync( - conversationId: conversationId, - recordingId: recordingId, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// - /// Pause recording of the call. - /// - /// The conversation id that can be a group id or a encoded conversation url retrieve from client. - /// The recording id to pause. - /// The cancellation token. - public virtual Response PauseRecording(string conversationId, string recordingId, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ConversationClient)}.{nameof(PauseRecording)}"); - scope.Start(); - try - { - return RestClient.PauseRecording( - conversationId: conversationId, - recordingId: recordingId, - cancellationToken: cancellationToken - ); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// - /// Resume recording of the call. - /// - /// The conversation id that can be a group id or a encoded conversation url retrieve from client. - /// The recording id to pause. - /// The cancellation token. - public virtual async Task ResumeRecordingAsync(string conversationId, string recordingId, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ConversationClient)}.{nameof(ResumeRecording)}"); - scope.Start(); - try - { - return await RestClient.ResumeRecordingAsync( - conversationId: conversationId, - recordingId: recordingId, - cancellationToken: cancellationToken - ).ConfigureAwait(false); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// - /// resume recording of the call. - /// - /// The conversation id that can be a group id or a encoded conversation url retrieve from client. - /// The recording id to resume. - /// The cancellation token. - public virtual Response ResumeRecording(string conversationId, string recordingId, CancellationToken cancellationToken = default) - { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ConversationClient)}.{nameof(ResumeRecording)}"); - scope.Start(); - try - { - return RestClient.ResumeRecording( - conversationId: conversationId, - recordingId: recordingId, - cancellationToken: cancellationToken - ); - } - catch (Exception ex) - { - scope.Failed(ex); - throw; - } - } - - /// - /// The - /// operation downloads the recording's content. - /// - /// - /// - /// Recording's content's url location. - /// - /// - /// If provided, only download the bytes of the content in the specified range. - /// If not provided, download the entire content. - /// - /// - /// Optional to propagate - /// notifications that the operation should be cancelled. - /// - /// - /// A containing the - /// downloaded content. - /// - /// - /// A will be thrown if - /// a failure occurs. - /// - public virtual async Task> DownloadStreamingAsync( - Uri sourceEndpoint, - HttpRange range = default, - CancellationToken cancellationToken = default) => - await _contentDownloader.DownloadStreamingInternal( - sourceEndpoint, - range, - async: true, - cancellationToken) - .ConfigureAwait(false); - - /// - /// The - /// operation downloads the recording's content. - /// - /// - /// - /// Recording's content's url location. - /// - /// - /// If provided, only download the bytes of the content in the specified range. - /// If not provided, download the entire content. - /// - /// - /// Optional to propagate - /// notifications that the operation should be cancelled. - /// - /// - /// A containing the - /// downloaded content. - /// - /// - /// A will be thrown if - /// a failure occurs. - /// - public virtual Response DownloadStreaming( - Uri sourceEndpoint, - HttpRange range = default, - CancellationToken cancellationToken = default) => - _contentDownloader.DownloadStreamingInternal( - sourceEndpoint, - range, - async: false, - cancellationToken) - .EnsureCompleted(); - - /// - /// The - /// operation downloads the specified content using parallel requests, - /// and writes the content to . - /// - /// - /// A with the Recording's content's url location. - /// - /// - /// A to write the downloaded content to. - /// - /// - /// Optional to configure - /// parallel transfer behavior. - /// - /// - /// Optional to propagate - /// notifications that the operation should be cancelled. - /// - /// - /// A describing the operation. - /// - /// - /// A will be thrown if - /// a failure occurs. - /// - public virtual Response DownloadTo(Uri sourceEndpoint, Stream destinationStream, - ContentTransferOptions transferOptions = default, CancellationToken cancellationToken = default) => - _contentDownloader.StagedDownloadAsync(sourceEndpoint, destinationStream, transferOptions, async: false, cancellationToken: cancellationToken).EnsureCompleted(); - - /// - /// The - /// operation downloads the specified content using parallel requests, - /// and writes the content to . - /// - /// - /// A with the Recording's content's url location. - /// - /// - /// A to write the downloaded content to. - /// - /// - /// Optional to configure - /// parallel transfer behavior. - /// - /// - /// Optional to propagate - /// notifications that the operation should be cancelled. - /// - /// - /// A describing the operation. - /// - /// - /// A will be thrown if - /// a failure occurs. - /// - public virtual async Task DownloadToAsync(Uri sourceEndpoint, Stream destinationStream, ContentTransferOptions transferOptions = default, CancellationToken cancellationToken = default) => - await _contentDownloader.StagedDownloadAsync(sourceEndpoint, destinationStream, transferOptions, async: true, cancellationToken: cancellationToken).ConfigureAwait(false); - - /// - /// The - /// operation downloads the specified content using parallel requests, - /// and writes the content to . - /// - /// - /// A with the Recording's content's url location. - /// - /// - /// A file path to write the downloaded content to. - /// - /// - /// Optional to configure - /// parallel transfer behavior. - /// - /// - /// Optional to propagate - /// notifications that the operation should be cancelled. - /// - /// - /// A describing the operation. - /// - /// - /// A will be thrown if - /// a failure occurs. - /// - public virtual Response DownloadTo(Uri sourceEndpoint, string destinationPath, - ContentTransferOptions transferOptions = default, CancellationToken cancellationToken = default) - { - using Stream destination = File.Create(destinationPath); - return _contentDownloader.StagedDownloadAsync(sourceEndpoint, destination, transferOptions, - async: false, cancellationToken: cancellationToken).EnsureCompleted(); - } - - /// - /// The - /// operation downloads the specified content using parallel requests, - /// and writes the content to . - /// - /// - /// A with the Recording's content's url location. - /// - /// - /// A file path to write the downloaded content to. - /// - /// - /// Optional to configure - /// parallel transfer behavior. - /// - /// - /// Optional to propagate - /// notifications that the operation should be cancelled. - /// - /// - /// A describing the operation. - /// - /// - /// A will be thrown if - /// a failure occurs. - /// - public virtual async Task DownloadToAsync(Uri sourceEndpoint, string destinationPath, - ContentTransferOptions transferOptions = default, CancellationToken cancellationToken = default) - { - using Stream destination = File.Create(destinationPath); - return await _contentDownloader.StagedDownloadAsync(sourceEndpoint, destination, transferOptions, - async: true, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - private static T AssertNotNull(T argument, string argumentName) - where T : class - { - Argument.AssertNotNull(argument, argumentName); - return argument; - } - - private static string AssertNotNullOrEmpty(string argument, string argumentName) - { - Argument.AssertNotNullOrEmpty(argument, argumentName); - return argument; - } - } -} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Constants.cs b/sdk/communication/Azure.Communication.CallingServer/src/Downloader/Constants.cs similarity index 100% rename from sdk/communication/Azure.Communication.CallingServer/src/Constants.cs rename to sdk/communication/Azure.Communication.CallingServer/src/Downloader/Constants.cs diff --git a/sdk/communication/Azure.Communication.CallingServer/src/ContentDownloader.cs b/sdk/communication/Azure.Communication.CallingServer/src/Downloader/ContentDownloader.cs similarity index 97% rename from sdk/communication/Azure.Communication.CallingServer/src/ContentDownloader.cs rename to sdk/communication/Azure.Communication.CallingServer/src/Downloader/ContentDownloader.cs index 74a5aac01b5d..59cc2248299a 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/ContentDownloader.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Downloader/ContentDownloader.cs @@ -12,9 +12,9 @@ namespace Azure.Communication.CallingServer { internal class ContentDownloader { - private readonly ConversationClient _client; + private readonly CallingServerClient _client; - internal ContentDownloader(ConversationClient client) + internal ContentDownloader(CallingServerClient client) { _client = client; } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/PartitionedDownloader.cs b/sdk/communication/Azure.Communication.CallingServer/src/Downloader/PartitionedDownloader.cs similarity index 98% rename from sdk/communication/Azure.Communication.CallingServer/src/PartitionedDownloader.cs rename to sdk/communication/Azure.Communication.CallingServer/src/Downloader/PartitionedDownloader.cs index 0309a1f6ca36..23ff1ce9a56d 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/PartitionedDownloader.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Downloader/PartitionedDownloader.cs @@ -15,7 +15,7 @@ internal class PartitionedDownloader /// /// The client used to download the blob. /// - private readonly ConversationClient _client; + private readonly CallingServerClient _client; /// /// The maximum number of simultaneous workers. @@ -34,7 +34,7 @@ internal class PartitionedDownloader private readonly long _rangeSize; internal PartitionedDownloader( - ConversationClient client, + CallingServerClient client, ContentTransferOptions transferOptions = default) { _client = client; diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/AzureCommunicationCallingServerServiceModelFactory.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/AzureCommunicationCallingServerServiceModelFactory.cs deleted file mode 100644 index 7a1b5cdbef82..000000000000 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/AzureCommunicationCallingServerServiceModelFactory.cs +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.Communication.CallingServer -{ - /// Model factory for read-only models. - public static partial class AzureCommunicationCallingServerServiceModelFactory - { - /// Initializes new instance of CreateCallResponse class. - /// Call leg id of the call. - /// A new instance for mocking. - public static CreateCallResponse CreateCallResponse(string callLegId = default) - { - return new CreateCallResponse(callLegId); - } - - /// Initializes new instance of PlayAudioResponse class. - /// Gets or sets the identifier. - /// Gets or sets the status of the operation. - /// Gets or sets the operation context. - /// Gets or sets the result info. - /// A new instance for mocking. - public static PlayAudioResponse PlayAudioResponse(string id = default, OperationStatus? status = default, string operationContext = default, ResultInfo resultInfo = default) - { - return new PlayAudioResponse(id, status, operationContext, resultInfo); - } - - /// Initializes new instance of ResultInfo class. - /// - /// Gets or sets the result code - /// - /// For synchronous failures, this maps one-to-one with HTTP responses. For asynchronous failures or messages, it is contextual. - /// - /// - /// Gets or sets the result subcode. - /// - /// The subcode further classifies a failure. For example. - /// - /// - /// Gets or sets the message - /// - /// The message is a detail explanation of subcode. - /// - /// A new instance for mocking. - public static ResultInfo ResultInfo(int? code = default, int? subcode = default, string message = default) - { - return new ResultInfo(code, subcode, message); - } - - /// Initializes new instance of CancelAllMediaOperationsResponse class. - /// Gets or sets the identifier. - /// Gets or sets the status of the operation. - /// Gets or sets the operation context. - /// Gets or sets the result info. - /// A new instance for mocking. - public static CancelAllMediaOperationsResponse CancelAllMediaOperationsResponse(string id = default, OperationStatus? status = default, string operationContext = default, ResultInfo resultInfo = default) - { - return new CancelAllMediaOperationsResponse(id, status, operationContext, resultInfo); - } - - /// Initializes new instance of JoinCallResponse class. - /// Call leg id of the call. - /// A new instance for mocking. - public static JoinCallResponse JoinCallResponse(string callLegId = default) - { - return new JoinCallResponse(callLegId); - } - - /// Initializes new instance of StartCallRecordingResponse class. - /// The recording id of the started recording. - /// A new instance for mocking. - public static StartCallRecordingResponse StartCallRecordingResponse(string recordingId = default) - { - return new StartCallRecordingResponse(recordingId); - } - - /// Initializes new instance of GetCallRecordingStateResponse class. - /// The recording state of the recording. - /// A new instance for mocking. - public static GetCallRecordingStateResponse GetCallRecordingStateResponse(CallRecordingState? recordingState = default) - { - return new GetCallRecordingStateResponse(recordingState); - } - } -} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/CallRestClient.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/CallConnectionsRestClient.cs similarity index 57% rename from sdk/communication/Azure.Communication.CallingServer/src/Generated/CallRestClient.cs rename to sdk/communication/Azure.Communication.CallingServer/src/Generated/CallConnectionsRestClient.cs index 8724406844a5..d5010fe774dc 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/CallRestClient.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/CallConnectionsRestClient.cs @@ -18,20 +18,20 @@ namespace Azure.Communication.CallingServer { - internal partial class CallRestClient + internal partial class CallConnectionsRestClient { private string endpoint; private string apiVersion; private ClientDiagnostics _clientDiagnostics; private HttpPipeline _pipeline; - /// Initializes a new instance of CallRestClient. + /// Initializes a new instance of CallConnectionsRestClient. /// The handler for diagnostic messaging in the client. /// The HTTP pipeline for sending and receiving REST requests and responses. /// The endpoint of the Azure Communication resource. /// Api Version. /// or is null. - public CallRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, string apiVersion = "2021-04-15-preview1") + public CallConnectionsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, string apiVersion = "2021-06-15-preview") { if (endpoint == null) { @@ -48,23 +48,38 @@ public CallRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline _pipeline = pipeline; } - internal HttpMessage CreateCreateCallRequest(IEnumerable targets, CommunicationIdentifierModel source, string callbackUri, IEnumerable requestedModalities, IEnumerable requestedCallEvents, PhoneNumberIdentifierModel sourceAlternateIdentity, string subject) + internal HttpMessage CreateCreateCallRequest(IEnumerable targets, CommunicationIdentifierModel source, string callbackUri, PhoneNumberIdentifierModel alternateCallerId, string subject, IEnumerable requestedMediaTypes, IEnumerable requestedCallEvents) { var message = _pipeline.CreateMessage(); var request = message.Request; request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); - uri.AppendPath("/calling/calls", false); + uri.AppendPath("/calling/callConnections", false); uri.AppendQuery("api-version", apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - var model = new CreateCallRequestInternal(targets.ToList(), source, callbackUri, requestedModalities.ToList(), requestedCallEvents.ToList()) + CreateCallRequestInternal createCallRequestInternal = new CreateCallRequestInternal(targets.ToList(), source, callbackUri) { - SourceAlternateIdentity = sourceAlternateIdentity, + AlternateCallerId = alternateCallerId, Subject = subject }; + if (requestedMediaTypes != null) + { + foreach (var value in requestedMediaTypes) + { + createCallRequestInternal.RequestedMediaTypes.Add(value); + } + } + if (requestedCallEvents != null) + { + foreach (var value in requestedCallEvents) + { + createCallRequestInternal.RequestedCallEvents.Add(value); + } + } + var model = createCallRequestInternal; var content = new Utf8JsonRequestContent(); content.JsonWriter.WriteObjectValue(model); request.Content = content; @@ -75,13 +90,13 @@ internal HttpMessage CreateCreateCallRequest(IEnumerable The targets of the call. /// The source of the call. /// The callback URI. - /// The requested modalities. - /// The requested call events to subscribe to. - /// The alternate identity of the source of the call if dialing out to a pstn number. + /// The alternate identity of the source of the call if dialing out to a pstn number. /// The subject. + /// The requested modalities. + /// The requested call events to subscribe to. /// The cancellation token to use. - /// , , , , or is null. - public async Task> CreateCallAsync(IEnumerable targets, CommunicationIdentifierModel source, string callbackUri, IEnumerable requestedModalities, IEnumerable requestedCallEvents, PhoneNumberIdentifierModel sourceAlternateIdentity = null, string subject = null, CancellationToken cancellationToken = default) + /// , , or is null. + public async Task> CreateCallAsync(IEnumerable targets, CommunicationIdentifierModel source, string callbackUri, PhoneNumberIdentifierModel alternateCallerId = null, string subject = null, IEnumerable requestedMediaTypes = null, IEnumerable requestedCallEvents = null, CancellationToken cancellationToken = default) { if (targets == null) { @@ -95,24 +110,16 @@ public async Task> CreateCallAsync(IEnumerable> CreateCallAsync(IEnumerable The targets of the call. /// The source of the call. /// The callback URI. - /// The requested modalities. - /// The requested call events to subscribe to. - /// The alternate identity of the source of the call if dialing out to a pstn number. + /// The alternate identity of the source of the call if dialing out to a pstn number. /// The subject. + /// The requested modalities. + /// The requested call events to subscribe to. /// The cancellation token to use. - /// , , , , or is null. - public Response CreateCall(IEnumerable targets, CommunicationIdentifierModel source, string callbackUri, IEnumerable requestedModalities, IEnumerable requestedCallEvents, PhoneNumberIdentifierModel sourceAlternateIdentity = null, string subject = null, CancellationToken cancellationToken = default) + /// , , or is null. + public Response CreateCall(IEnumerable targets, CommunicationIdentifierModel source, string callbackUri, PhoneNumberIdentifierModel alternateCallerId = null, string subject = null, IEnumerable requestedMediaTypes = null, IEnumerable requestedCallEvents = null, CancellationToken cancellationToken = default) { if (targets == null) { @@ -144,24 +151,16 @@ public Response CreateCall(IEnumerable CreateCall(IEnumerable Hangup a call. - /// Call id. + /// Hangup the call. + /// The call connection id. /// The cancellation token to use. - /// is null. - public async Task HangupCallAsync(string callId, CancellationToken cancellationToken = default) + /// is null. + public async Task HangupCallAsync(string callConnectionId, CancellationToken cancellationToken = default) { - if (callId == null) + if (callConnectionId == null) { - throw new ArgumentNullException(nameof(callId)); + throw new ArgumentNullException(nameof(callConnectionId)); } - using var message = CreateHangupCallRequest(callId); + using var message = CreateHangupCallRequest(callConnectionId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -207,18 +206,18 @@ public async Task HangupCallAsync(string callId, CancellationToken can } } - /// Hangup a call. - /// Call id. + /// Hangup the call. + /// The call connection id. /// The cancellation token to use. - /// is null. - public Response HangupCall(string callId, CancellationToken cancellationToken = default) + /// is null. + public Response HangupCall(string callConnectionId, CancellationToken cancellationToken = default) { - if (callId == null) + if (callConnectionId == null) { - throw new ArgumentNullException(nameof(callId)); + throw new ArgumentNullException(nameof(callConnectionId)); } - using var message = CreateHangupCallRequest(callId); + using var message = CreateHangupCallRequest(callConnectionId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -229,75 +228,16 @@ public Response HangupCall(string callId, CancellationToken cancellationToken = } } - internal HttpMessage CreateDeleteCallRequest(string callId) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Delete; - var uri = new RawRequestUriBuilder(); - uri.AppendRaw(endpoint, false); - uri.AppendPath("/calling/calls/", false); - uri.AppendPath(callId, true); - uri.AppendQuery("api-version", apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - return message; - } - - /// Delete a call. - /// Call id. - /// The cancellation token to use. - /// is null. - public async Task DeleteCallAsync(string callId, CancellationToken cancellationToken = default) - { - if (callId == null) - { - throw new ArgumentNullException(nameof(callId)); - } - - using var message = CreateDeleteCallRequest(callId); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 202: - return message.Response; - default: - throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); - } - } - - /// Delete a call. - /// Call id. - /// The cancellation token to use. - /// is null. - public Response DeleteCall(string callId, CancellationToken cancellationToken = default) - { - if (callId == null) - { - throw new ArgumentNullException(nameof(callId)); - } - - using var message = CreateDeleteCallRequest(callId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 202: - return message.Response; - default: - throw _clientDiagnostics.CreateRequestFailedException(message.Response); - } - } - - internal HttpMessage CreatePlayAudioRequest(string callId, string audioFileUri, bool? loop, string operationContext, string audioFileId, string callbackUri) + internal HttpMessage CreatePlayAudioRequest(string callConnectionId, string audioFileUri, bool? loop, string operationContext, string audioFileId, string callbackUri) { var message = _pipeline.CreateMessage(); var request = message.Request; request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); - uri.AppendPath("/calling/calls/", false); - uri.AppendPath(callId, true); - uri.AppendPath("/PlayAudio", false); + uri.AppendPath("/calling/callConnections/", false); + uri.AppendPath(callConnectionId, true); + uri.AppendPath("/:playAudio", false); uri.AppendQuery("api-version", apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -316,8 +256,8 @@ internal HttpMessage CreatePlayAudioRequest(string callId, string audioFileUri, return message; } - /// Play audio in a call. - /// The call id. + /// Play audio in the call. + /// The call connection id. /// /// The media resource uri of the play audio request. /// @@ -332,23 +272,23 @@ internal HttpMessage CreatePlayAudioRequest(string callId, string audioFileUri, /// An id for the media in the AudioFileUri, using which we cache the media resource. /// The callback Uri to receive PlayAudio status notifications. /// The cancellation token to use. - /// is null. - public async Task> PlayAudioAsync(string callId, string audioFileUri = null, bool? loop = null, string operationContext = null, string audioFileId = null, string callbackUri = null, CancellationToken cancellationToken = default) + /// is null. + public async Task> PlayAudioAsync(string callConnectionId, string audioFileUri = null, bool? loop = null, string operationContext = null, string audioFileId = null, string callbackUri = null, CancellationToken cancellationToken = default) { - if (callId == null) + if (callConnectionId == null) { - throw new ArgumentNullException(nameof(callId)); + throw new ArgumentNullException(nameof(callConnectionId)); } - using var message = CreatePlayAudioRequest(callId, audioFileUri, loop, operationContext, audioFileId, callbackUri); + using var message = CreatePlayAudioRequest(callConnectionId, audioFileUri, loop, operationContext, audioFileId, callbackUri); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 202: { - PlayAudioResponse value = default; + PlayAudioResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = PlayAudioResponse.DeserializePlayAudioResponse(document.RootElement); + value = PlayAudioResult.DeserializePlayAudioResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -356,8 +296,8 @@ public async Task> PlayAudioAsync(string callId, str } } - /// Play audio in a call. - /// The call id. + /// Play audio in the call. + /// The call connection id. /// /// The media resource uri of the play audio request. /// @@ -372,23 +312,23 @@ public async Task> PlayAudioAsync(string callId, str /// An id for the media in the AudioFileUri, using which we cache the media resource. /// The callback Uri to receive PlayAudio status notifications. /// The cancellation token to use. - /// is null. - public Response PlayAudio(string callId, string audioFileUri = null, bool? loop = null, string operationContext = null, string audioFileId = null, string callbackUri = null, CancellationToken cancellationToken = default) + /// is null. + public Response PlayAudio(string callConnectionId, string audioFileUri = null, bool? loop = null, string operationContext = null, string audioFileId = null, string callbackUri = null, CancellationToken cancellationToken = default) { - if (callId == null) + if (callConnectionId == null) { - throw new ArgumentNullException(nameof(callId)); + throw new ArgumentNullException(nameof(callConnectionId)); } - using var message = CreatePlayAudioRequest(callId, audioFileUri, loop, operationContext, audioFileId, callbackUri); + using var message = CreatePlayAudioRequest(callConnectionId, audioFileUri, loop, operationContext, audioFileId, callbackUri); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 202: { - PlayAudioResponse value = default; + PlayAudioResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = PlayAudioResponse.DeserializePlayAudioResponse(document.RootElement); + value = PlayAudioResult.DeserializePlayAudioResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -396,16 +336,16 @@ public Response PlayAudio(string callId, string audioFileUri } } - internal HttpMessage CreateCancelAllMediaOperationsRequest(string callId, string operationContext) + internal HttpMessage CreateCancelAllMediaOperationsRequest(string callConnectionId, string operationContext) { var message = _pipeline.CreateMessage(); var request = message.Request; request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); - uri.AppendPath("/calling/calls/", false); - uri.AppendPath(callId, true); - uri.AppendPath("/CancelMediaProcessing", false); + uri.AppendPath("/calling/callConnections/", false); + uri.AppendPath(callConnectionId, true); + uri.AppendPath("/:cancelAllMediaOperations", false); uri.AppendQuery("api-version", apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); @@ -420,27 +360,27 @@ internal HttpMessage CreateCancelAllMediaOperationsRequest(string callId, string return message; } - /// Cancel Media Processing. - /// The call id. + /// Cancel all media operations. + /// The call connection id. /// The context for this operation. /// The cancellation token to use. - /// is null. - public async Task> CancelAllMediaOperationsAsync(string callId, string operationContext = null, CancellationToken cancellationToken = default) + /// is null. + public async Task> CancelAllMediaOperationsAsync(string callConnectionId, string operationContext = null, CancellationToken cancellationToken = default) { - if (callId == null) + if (callConnectionId == null) { - throw new ArgumentNullException(nameof(callId)); + throw new ArgumentNullException(nameof(callConnectionId)); } - using var message = CreateCancelAllMediaOperationsRequest(callId, operationContext); + using var message = CreateCancelAllMediaOperationsRequest(callConnectionId, operationContext); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - CancelAllMediaOperationsResponse value = default; + CancelAllMediaOperationsResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = CancelAllMediaOperationsResponse.DeserializeCancelAllMediaOperationsResponse(document.RootElement); + value = CancelAllMediaOperationsResult.DeserializeCancelAllMediaOperationsResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -448,27 +388,27 @@ public async Task> CancelAllMediaOper } } - /// Cancel Media Processing. - /// The call id. + /// Cancel all media operations. + /// The call connection id. /// The context for this operation. /// The cancellation token to use. - /// is null. - public Response CancelAllMediaOperations(string callId, string operationContext = null, CancellationToken cancellationToken = default) + /// is null. + public Response CancelAllMediaOperations(string callConnectionId, string operationContext = null, CancellationToken cancellationToken = default) { - if (callId == null) + if (callConnectionId == null) { - throw new ArgumentNullException(nameof(callId)); + throw new ArgumentNullException(nameof(callConnectionId)); } - using var message = CreateCancelAllMediaOperationsRequest(callId, operationContext); + using var message = CreateCancelAllMediaOperationsRequest(callConnectionId, operationContext); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - CancelAllMediaOperationsResponse value = default; + CancelAllMediaOperationsResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = CancelAllMediaOperationsResponse.DeserializeCancelAllMediaOperationsResponse(document.RootElement); + value = CancelAllMediaOperationsResult.DeserializeCancelAllMediaOperationsResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -476,23 +416,24 @@ public Response CancelAllMediaOperations(strin } } - internal HttpMessage CreateInviteParticipantsRequest(string callId, IEnumerable participants, PhoneNumberIdentifierModel alternateCallerId, string operationContext, string callbackUri) + internal HttpMessage CreateAddParticipantRequest(string callConnectionId, PhoneNumberIdentifierModel alternateCallerId, CommunicationIdentifierModel participant, string operationContext, string callbackUri) { var message = _pipeline.CreateMessage(); var request = message.Request; request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); - uri.AppendPath("/calling/calls/", false); - uri.AppendPath(callId, true); + uri.AppendPath("/calling/callConnections/", false); + uri.AppendPath(callConnectionId, true); uri.AppendPath("/participants", false); uri.AppendQuery("api-version", apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - var model = new InviteParticipantsRequestInternal(participants.ToList()) + var model = new AddParticipantRequest() { AlternateCallerId = alternateCallerId, + Participant = participant, OperationContext = operationContext, CallbackUri = callbackUri }; @@ -502,75 +443,77 @@ internal HttpMessage CreateInviteParticipantsRequest(string callId, IEnumerable< return message; } - /// Invite participants to the call. - /// Call id. - /// The list of participants to be added to the call. + /// Add a participant to the call. + /// The call connection id. /// The alternate identity of source participant. + /// The participant to be added to the call. /// The operation context. /// The callback URI. /// The cancellation token to use. - /// or is null. - public async Task InviteParticipantsAsync(string callId, IEnumerable participants, PhoneNumberIdentifierModel alternateCallerId = null, string operationContext = null, string callbackUri = null, CancellationToken cancellationToken = default) + /// is null. + public async Task> AddParticipantAsync(string callConnectionId, PhoneNumberIdentifierModel alternateCallerId = null, CommunicationIdentifierModel participant = null, string operationContext = null, string callbackUri = null, CancellationToken cancellationToken = default) { - if (callId == null) + if (callConnectionId == null) { - throw new ArgumentNullException(nameof(callId)); - } - if (participants == null) - { - throw new ArgumentNullException(nameof(participants)); + throw new ArgumentNullException(nameof(callConnectionId)); } - using var message = CreateInviteParticipantsRequest(callId, participants, alternateCallerId, operationContext, callbackUri); + using var message = CreateAddParticipantRequest(callConnectionId, alternateCallerId, participant, operationContext, callbackUri); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 202: - return message.Response; + { + AddParticipantResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = AddParticipantResult.DeserializeAddParticipantResult(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } } - /// Invite participants to the call. - /// Call id. - /// The list of participants to be added to the call. + /// Add a participant to the call. + /// The call connection id. /// The alternate identity of source participant. + /// The participant to be added to the call. /// The operation context. /// The callback URI. /// The cancellation token to use. - /// or is null. - public Response InviteParticipants(string callId, IEnumerable participants, PhoneNumberIdentifierModel alternateCallerId = null, string operationContext = null, string callbackUri = null, CancellationToken cancellationToken = default) + /// is null. + public Response AddParticipant(string callConnectionId, PhoneNumberIdentifierModel alternateCallerId = null, CommunicationIdentifierModel participant = null, string operationContext = null, string callbackUri = null, CancellationToken cancellationToken = default) { - if (callId == null) + if (callConnectionId == null) { - throw new ArgumentNullException(nameof(callId)); - } - if (participants == null) - { - throw new ArgumentNullException(nameof(participants)); + throw new ArgumentNullException(nameof(callConnectionId)); } - using var message = CreateInviteParticipantsRequest(callId, participants, alternateCallerId, operationContext, callbackUri); + using var message = CreateAddParticipantRequest(callConnectionId, alternateCallerId, participant, operationContext, callbackUri); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 202: - return message.Response; + { + AddParticipantResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = AddParticipantResult.DeserializeAddParticipantResult(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } } - internal HttpMessage CreateRemoveParticipantRequest(string callId, string participantId) + internal HttpMessage CreateRemoveParticipantRequest(string callConnectionId, string participantId) { var message = _pipeline.CreateMessage(); var request = message.Request; request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); - uri.AppendPath("/calling/calls/", false); - uri.AppendPath(callId, true); + uri.AppendPath("/calling/callConnections/", false); + uri.AppendPath(callConnectionId, true); uri.AppendPath("/participants/", false); uri.AppendPath(participantId, true); uri.AppendQuery("api-version", apiVersion, true); @@ -579,23 +522,23 @@ internal HttpMessage CreateRemoveParticipantRequest(string callId, string partic return message; } - /// Remove participant from the call. - /// Call id. - /// Participant id. + /// Remove a participant from the call. + /// The call connection id. + /// The participant id. /// The cancellation token to use. - /// or is null. - public async Task RemoveParticipantAsync(string callId, string participantId, CancellationToken cancellationToken = default) + /// or is null. + public async Task RemoveParticipantAsync(string callConnectionId, string participantId, CancellationToken cancellationToken = default) { - if (callId == null) + if (callConnectionId == null) { - throw new ArgumentNullException(nameof(callId)); + throw new ArgumentNullException(nameof(callConnectionId)); } if (participantId == null) { throw new ArgumentNullException(nameof(participantId)); } - using var message = CreateRemoveParticipantRequest(callId, participantId); + using var message = CreateRemoveParticipantRequest(callConnectionId, participantId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -606,23 +549,23 @@ public async Task RemoveParticipantAsync(string callId, string partici } } - /// Remove participant from the call. - /// Call id. - /// Participant id. + /// Remove a participant from the call. + /// The call connection id. + /// The participant id. /// The cancellation token to use. - /// or is null. - public Response RemoveParticipant(string callId, string participantId, CancellationToken cancellationToken = default) + /// or is null. + public Response RemoveParticipant(string callConnectionId, string participantId, CancellationToken cancellationToken = default) { - if (callId == null) + if (callConnectionId == null) { - throw new ArgumentNullException(nameof(callId)); + throw new ArgumentNullException(nameof(callConnectionId)); } if (participantId == null) { throw new ArgumentNullException(nameof(participantId)); } - using var message = CreateRemoveParticipantRequest(callId, participantId); + using var message = CreateRemoveParticipantRequest(callConnectionId, participantId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/CallingServerModelFactory.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/CallingServerModelFactory.cs new file mode 100644 index 000000000000..1af99b9c7641 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/CallingServerModelFactory.cs @@ -0,0 +1,131 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Communication.CallingServer; + +namespace Azure.Communication.CallingServer.Models +{ + /// Model factory for read-only models. + public static partial class CallingServerModelFactory + { + /// Initializes new instance of PlayAudioResult class. + /// The operation id. + /// The status of the operation. + /// The operation context provided by client. + /// The result info for the operation. + /// A new instance for mocking. + public static PlayAudioResult PlayAudioResult(string operationId = default, OperationStatus status = default, string operationContext = default, ResultInfo resultInfo = default) + { + return new PlayAudioResult(operationId, status, operationContext, resultInfo); + } + + /// Initializes new instance of ResultInfo class. + /// The result code associated with the operation. + /// The subcode that further classifies the result. + /// The message is a detail explanation of subcode. + /// A new instance for mocking. + public static ResultInfo ResultInfo(int code = default, int subcode = default, string message = default) + { + return new ResultInfo(code, subcode, message); + } + + /// Initializes new instance of CancelAllMediaOperationsResult class. + /// The operation id. + /// The status of the operation. + /// The operation context provided by client. + /// The result info for the operation. + /// A new instance for mocking. + public static CancelAllMediaOperationsResult CancelAllMediaOperationsResult(string operationId = default, OperationStatus status = default, string operationContext = default, ResultInfo resultInfo = default) + { + return new CancelAllMediaOperationsResult(operationId, status, operationContext, resultInfo); + } + + /// Initializes new instance of AddParticipantResult class. + /// The id of the added participant. + /// A new instance for mocking. + public static AddParticipantResult AddParticipantResult(string participantId = default) + { + return new AddParticipantResult(participantId); + } + + /// Initializes new instance of StartCallRecordingResult class. + /// The recording id of the started recording. + /// A new instance for mocking. + public static StartCallRecordingResult StartCallRecordingResult(string recordingId = default) + { + return new StartCallRecordingResult(recordingId); + } + + /// Initializes new instance of CallRecordingProperties class. + /// The state of the recording. + /// A new instance for mocking. + public static CallRecordingProperties CallRecordingProperties(CallRecordingState recordingState = default) + { + return new CallRecordingProperties(recordingState); + } + + /// Initializes new instance of CallConnectionStateChangedEvent class. + /// The server call.id. + /// The call connection id. + /// The call connection state. + /// A new instance for mocking. + public static CallConnectionStateChangedEvent CallConnectionStateChangedEvent(string serverCallId = default, string callConnectionId = default, CallConnectionState callConnectionState = default) + { + return new CallConnectionStateChangedEvent(serverCallId, callConnectionId, callConnectionState); + } + + /// Initializes new instance of CallRecordingStateChangeEvent class. + /// The call recording id. + /// The state of the recording. + /// The time of the recording started. + /// The server call.id. + /// A new instance for mocking. + public static CallRecordingStateChangeEvent CallRecordingStateChangeEvent(string recordingId = default, CallRecordingState state = default, DateTimeOffset startDateTime = default, string serverCallId = default) + { + return new CallRecordingStateChangeEvent(recordingId, state, startDateTime, serverCallId); + } + + /// Initializes new instance of AddParticipantResultEvent class. + /// The result details. + /// The operation context. + /// The status of the operation. + /// A new instance for mocking. + public static AddParticipantResultEvent AddParticipantResultEvent(ResultInfo resultInfo = default, string operationContext = default, OperationStatus status = default) + { + return new AddParticipantResultEvent(resultInfo, operationContext, status); + } + + /// Initializes new instance of PlayAudioResultEvent class. + /// The result details. + /// The operation context. + /// The status of the operation. + /// A new instance for mocking. + public static PlayAudioResultEvent PlayAudioResultEvent(ResultInfo resultInfo = default, string operationContext = default, OperationStatus status = default) + { + return new PlayAudioResultEvent(resultInfo, operationContext, status); + } + + /// Initializes new instance of ToneReceivedEvent class. + /// The tone info. + /// The call connection id. + /// A new instance for mocking. + public static ToneReceivedEvent ToneReceivedEvent(ToneInfo toneInfo = default, string callConnectionId = default) + { + return new ToneReceivedEvent(toneInfo, callConnectionId); + } + + /// Initializes new instance of ToneInfo class. + /// The sequence id which can be used to determine if the same tone was played multiple times or if any tones were missed. + /// The tone value. + /// A new instance for mocking. + public static ToneInfo ToneInfo(int sequenceId = default, ToneValue tone = default) + { + return new ToneInfo(sequenceId, tone); + } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/InviteParticipantsRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantRequest.Serialization.cs similarity index 76% rename from sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/InviteParticipantsRequestInternal.Serialization.cs rename to sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantRequest.Serialization.cs index 60e7b7968455..407f6e7f1238 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/InviteParticipantsRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantRequest.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.Communication.CallingServer { - internal partial class InviteParticipantsRequestInternal : IUtf8JsonSerializable + internal partial class AddParticipantRequest : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -20,13 +20,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("alternateCallerId"); writer.WriteObjectValue(AlternateCallerId); } - writer.WritePropertyName("participants"); - writer.WriteStartArray(); - foreach (var item in Participants) + if (Optional.IsDefined(Participant)) { - writer.WriteObjectValue(item); + writer.WritePropertyName("participant"); + writer.WriteObjectValue(Participant); } - writer.WriteEndArray(); if (Optional.IsDefined(OperationContext)) { writer.WritePropertyName("operationContext"); diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantRequest.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantRequest.cs new file mode 100644 index 000000000000..c5c466c3d73e --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantRequest.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Communication; + +namespace Azure.Communication.CallingServer +{ + /// The add participant request. + internal partial class AddParticipantRequest + { + /// Initializes a new instance of AddParticipantRequest. + public AddParticipantRequest() + { + } + + /// The alternate identity of source participant. + public PhoneNumberIdentifierModel AlternateCallerId { get; set; } + /// The participant to be added to the call. + public CommunicationIdentifierModel Participant { get; set; } + /// The operation context. + public string OperationContext { get; set; } + /// The callback URI. + public string CallbackUri { get; set; } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/JoinCallResponse.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantResult.Serialization.cs similarity index 52% rename from sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/JoinCallResponse.Serialization.cs rename to sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantResult.Serialization.cs index 837903cd12d2..1ad1575d6224 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/JoinCallResponse.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantResult.Serialization.cs @@ -10,20 +10,20 @@ namespace Azure.Communication.CallingServer { - public partial class JoinCallResponse + public partial class AddParticipantResult { - internal static JoinCallResponse DeserializeJoinCallResponse(JsonElement element) + internal static AddParticipantResult DeserializeAddParticipantResult(JsonElement element) { - Optional callLegId = default; + Optional participantId = default; foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("callLegId")) + if (property.NameEquals("participantId")) { - callLegId = property.Value.GetString(); + participantId = property.Value.GetString(); continue; } } - return new JoinCallResponse(callLegId.Value); + return new AddParticipantResult(participantId.Value); } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantResult.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantResult.cs new file mode 100644 index 000000000000..827e351accce --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantResult.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Communication.CallingServer +{ + /// The add participant result. + public partial class AddParticipantResult + { + /// Initializes a new instance of AddParticipantResult. + internal AddParticipantResult() + { + } + + /// Initializes a new instance of AddParticipantResult. + /// The id of the added participant. + internal AddParticipantResult(string participantId) + { + ParticipantId = participantId; + } + + /// The id of the added participant. + public string ParticipantId { get; } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantResultEvent.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantResultEvent.Serialization.cs new file mode 100644 index 000000000000..05004943a343 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantResultEvent.Serialization.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Communication.CallingServer +{ + public partial class AddParticipantResultEvent + { + internal static AddParticipantResultEvent DeserializeAddParticipantResultEvent(JsonElement element) + { + Optional resultInfo = default; + Optional operationContext = default; + OperationStatus status = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("resultInfo")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + resultInfo = ResultInfo.DeserializeResultInfo(property.Value); + continue; + } + if (property.NameEquals("operationContext")) + { + operationContext = property.Value.GetString(); + continue; + } + if (property.NameEquals("status")) + { + status = new OperationStatus(property.Value.GetString()); + continue; + } + } + return new AddParticipantResultEvent(resultInfo.Value, operationContext.Value, status); + } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantResultEvent.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantResultEvent.cs new file mode 100644 index 000000000000..e2bae28a24b4 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/AddParticipantResultEvent.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Communication.CallingServer +{ + /// The AddParticipantResultEvent. + public partial class AddParticipantResultEvent + { + /// Initializes a new instance of AddParticipantResultEvent. + /// The status of the operation. + internal AddParticipantResultEvent(OperationStatus status) + { + Status = status; + } + + /// Initializes a new instance of AddParticipantResultEvent. + /// The result details. + /// The operation context. + /// The status of the operation. + internal AddParticipantResultEvent(ResultInfo resultInfo, string operationContext, OperationStatus status) + { + ResultInfo = resultInfo; + OperationContext = operationContext; + Status = status; + } + + /// The result details. + public ResultInfo ResultInfo { get; } + /// The operation context. + public string OperationContext { get; } + /// The status of the operation. + public OperationStatus Status { get; } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallConnectionState.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallConnectionState.cs new file mode 100644 index 000000000000..6979532fe5e1 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallConnectionState.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Communication.CallingServer +{ + /// The call connection state. + public readonly partial struct CallConnectionState : IEquatable + { + private readonly string _value; + + /// Determines if two values are the same. + /// is null. + public CallConnectionState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string IncomingValue = "incoming"; + private const string ConnectingValue = "connecting"; + private const string ConnectedValue = "connected"; + private const string DisconnectingValue = "disconnecting"; + private const string DisconnectedValue = "disconnected"; + + /// incoming. + public static CallConnectionState Incoming { get; } = new CallConnectionState(IncomingValue); + /// connecting. + public static CallConnectionState Connecting { get; } = new CallConnectionState(ConnectingValue); + /// connected. + public static CallConnectionState Connected { get; } = new CallConnectionState(ConnectedValue); + /// disconnecting. + public static CallConnectionState Disconnecting { get; } = new CallConnectionState(DisconnectingValue); + /// disconnected. + public static CallConnectionState Disconnected { get; } = new CallConnectionState(DisconnectedValue); + /// Determines if two values are the same. + public static bool operator ==(CallConnectionState left, CallConnectionState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(CallConnectionState left, CallConnectionState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator CallConnectionState(string value) => new CallConnectionState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is CallConnectionState other && Equals(other); + /// + public bool Equals(CallConnectionState 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/communication/Azure.Communication.CallingServer/src/Generated/Models/CallConnectionStateChangedEvent.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallConnectionStateChangedEvent.Serialization.cs new file mode 100644 index 000000000000..06d4e92a9768 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallConnectionStateChangedEvent.Serialization.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Communication.CallingServer +{ + public partial class CallConnectionStateChangedEvent + { + internal static CallConnectionStateChangedEvent DeserializeCallConnectionStateChangedEvent(JsonElement element) + { + Optional serverCallId = default; + Optional callConnectionId = default; + CallConnectionState callConnectionState = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("serverCallId")) + { + serverCallId = property.Value.GetString(); + continue; + } + if (property.NameEquals("callConnectionId")) + { + callConnectionId = property.Value.GetString(); + continue; + } + if (property.NameEquals("callConnectionState")) + { + callConnectionState = new CallConnectionState(property.Value.GetString()); + continue; + } + } + return new CallConnectionStateChangedEvent(serverCallId.Value, callConnectionId.Value, callConnectionState); + } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallConnectionStateChangedEvent.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallConnectionStateChangedEvent.cs new file mode 100644 index 000000000000..c15300cdded3 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallConnectionStateChangedEvent.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Communication.CallingServer +{ + /// The call connection state changed event. + public partial class CallConnectionStateChangedEvent + { + /// Initializes a new instance of CallConnectionStateChangedEvent. + /// The call connection state. + internal CallConnectionStateChangedEvent(CallConnectionState callConnectionState) + { + CallConnectionState = callConnectionState; + } + + /// Initializes a new instance of CallConnectionStateChangedEvent. + /// The server call.id. + /// The call connection id. + /// The call connection state. + internal CallConnectionStateChangedEvent(string serverCallId, string callConnectionId, CallConnectionState callConnectionState) + { + ServerCallId = serverCallId; + CallConnectionId = callConnectionId; + CallConnectionState = callConnectionState; + } + + /// The server call.id. + public string ServerCallId { get; } + /// The call connection id. + public string CallConnectionId { get; } + /// The call connection state. + public CallConnectionState CallConnectionState { get; } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallLegStateChangedEvent.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallLegStateChangedEvent.Serialization.cs deleted file mode 100644 index 5f1db1ce2625..000000000000 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallLegStateChangedEvent.Serialization.cs +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.Communication.CallingServer -{ - public partial class CallLegStateChangedEvent : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsDefined(ConversationId)) - { - writer.WritePropertyName("conversationId"); - writer.WriteStringValue(ConversationId); - } - if (Optional.IsDefined(CallLegId)) - { - writer.WritePropertyName("callLegId"); - writer.WriteStringValue(CallLegId); - } - if (Optional.IsDefined(CallState)) - { - writer.WritePropertyName("callState"); - writer.WriteStringValue(CallState.Value.ToString()); - } - writer.WriteEndObject(); - } - - internal static CallLegStateChangedEvent DeserializeCallLegStateChangedEvent(JsonElement element) - { - Optional conversationId = default; - Optional callLegId = default; - Optional callState = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("conversationId")) - { - conversationId = property.Value.GetString(); - continue; - } - if (property.NameEquals("callLegId")) - { - callLegId = property.Value.GetString(); - continue; - } - if (property.NameEquals("callState")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - callState = new CallState(property.Value.GetString()); - continue; - } - } - return new CallLegStateChangedEvent(conversationId.Value, callLegId.Value, Optional.ToNullable(callState)); - } - } -} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallLegStateChangedEvent.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallLegStateChangedEvent.cs deleted file mode 100644 index de96c72a9686..000000000000 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallLegStateChangedEvent.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.Communication.CallingServer -{ - /// The call state change event. - public partial class CallLegStateChangedEvent - { - /// Initializes a new instance of CallLegStateChangedEvent. - public CallLegStateChangedEvent() - { - } - - /// Initializes a new instance of CallLegStateChangedEvent. - /// The conversation.id. - /// The call leg.id. - /// The call state. - internal CallLegStateChangedEvent(string conversationId, string callLegId, CallState? callState) - { - ConversationId = conversationId; - CallLegId = callLegId; - CallState = callState; - } - - /// The conversation.id. - public string ConversationId { get; set; } - /// The call leg.id. - public string CallLegId { get; set; } - /// The call state. - public CallState? CallState { get; set; } - } -} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallModality.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallModality.cs deleted file mode 100644 index 731293ed3196..000000000000 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallModality.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.Communication.CallingServer -{ - /// The CallModality. - public readonly partial struct CallModality : IEquatable - { - private readonly string _value; - - /// Determines if two values are the same. - /// is null. - public CallModality(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string AudioValue = "audio"; - private const string VideoValue = "video"; - - /// audio. - public static CallModality Audio { get; } = new CallModality(AudioValue); - /// video. - public static CallModality Video { get; } = new CallModality(VideoValue); - /// Determines if two values are the same. - public static bool operator ==(CallModality left, CallModality right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(CallModality left, CallModality right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator CallModality(string value) => new CallModality(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is CallModality other && Equals(other); - /// - public bool Equals(CallModality 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/communication/Azure.Communication.CallingServer/src/Generated/Models/CommunicationParticipantInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallParticipantInternal.Serialization.cs similarity index 69% rename from sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CommunicationParticipantInternal.Serialization.cs rename to sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallParticipantInternal.Serialization.cs index a122d06ea955..87a9c9e45f00 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CommunicationParticipantInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallParticipantInternal.Serialization.cs @@ -11,13 +11,13 @@ namespace Azure.Communication.CallingServer { - internal partial class CommunicationParticipantInternal + internal partial class CallParticipantInternal { - internal static CommunicationParticipantInternal DeserializeCommunicationParticipantInternal(JsonElement element) + internal static CallParticipantInternal DeserializeCallParticipantInternal(JsonElement element) { Optional identifier = default; Optional participantId = default; - Optional isMuted = default; + bool isMuted = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("identifier")) @@ -37,16 +37,11 @@ internal static CommunicationParticipantInternal DeserializeCommunicationPartici } if (property.NameEquals("isMuted")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } isMuted = property.Value.GetBoolean(); continue; } } - return new CommunicationParticipantInternal(identifier.Value, participantId.Value, Optional.ToNullable(isMuted)); + return new CallParticipantInternal(identifier.Value, participantId.Value, isMuted); } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallParticipantInternal.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallParticipantInternal.cs new file mode 100644 index 000000000000..d0e9755d677f --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallParticipantInternal.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Communication; + +namespace Azure.Communication.CallingServer +{ + /// A participant in a call. + internal partial class CallParticipantInternal + { + /// Initializes a new instance of CallParticipantInternal. + /// Is participant muted. + internal CallParticipantInternal(bool isMuted) + { + IsMuted = isMuted; + } + + /// Initializes a new instance of CallParticipantInternal. + /// Communication identifier of the participant. + /// Participant id. + /// Is participant muted. + internal CallParticipantInternal(CommunicationIdentifierModel identifier, string participantId, bool isMuted) + { + Identifier = identifier; + ParticipantId = participantId; + IsMuted = isMuted; + } + + /// Communication identifier of the participant. + public CommunicationIdentifierModel Identifier { get; } + /// Participant id. + public string ParticipantId { get; } + /// Is participant muted. + public bool IsMuted { get; } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/GetCallRecordingStateResponse.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallRecordingProperties.Serialization.cs similarity index 50% rename from sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/GetCallRecordingStateResponse.Serialization.cs rename to sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallRecordingProperties.Serialization.cs index c004a26399d0..44eca4f22244 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/GetCallRecordingStateResponse.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallRecordingProperties.Serialization.cs @@ -10,25 +10,20 @@ namespace Azure.Communication.CallingServer { - public partial class GetCallRecordingStateResponse + public partial class CallRecordingProperties { - internal static GetCallRecordingStateResponse DeserializeGetCallRecordingStateResponse(JsonElement element) + internal static CallRecordingProperties DeserializeCallRecordingProperties(JsonElement element) { - Optional recordingState = default; + CallRecordingState recordingState = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("recordingState")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } recordingState = new CallRecordingState(property.Value.GetString()); continue; } } - return new GetCallRecordingStateResponse(Optional.ToNullable(recordingState)); + return new CallRecordingProperties(recordingState); } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallRecordingProperties.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallRecordingProperties.cs new file mode 100644 index 000000000000..64daf6f9d92b --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallRecordingProperties.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Communication.CallingServer +{ + /// The response payload of get call recording properties operation. + public partial class CallRecordingProperties + { + /// Initializes a new instance of CallRecordingProperties. + /// The state of the recording. + internal CallRecordingProperties(CallRecordingState recordingState) + { + RecordingState = recordingState; + } + + /// The state of the recording. + public CallRecordingState RecordingState { get; } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallRecordingState.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallRecordingState.cs index 2aa166bbece7..ad9278e1b12c 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallRecordingState.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallRecordingState.cs @@ -10,7 +10,7 @@ namespace Azure.Communication.CallingServer { - /// The recording state of the recording. + /// The state of the recording. public readonly partial struct CallRecordingState : IEquatable { private readonly string _value; diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallRecordingStateChangeEvent.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallRecordingStateChangeEvent.Serialization.cs index ccf995cb91fc..a36e9962460c 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallRecordingStateChangeEvent.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallRecordingStateChangeEvent.Serialization.cs @@ -11,40 +11,14 @@ namespace Azure.Communication.CallingServer { - public partial class CallRecordingStateChangeEvent : IUtf8JsonSerializable + public partial class CallRecordingStateChangeEvent { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsDefined(RecordingId)) - { - writer.WritePropertyName("recordingId"); - writer.WriteStringValue(RecordingId); - } - if (Optional.IsDefined(State)) - { - writer.WritePropertyName("state"); - writer.WriteStringValue(State.Value.ToString()); - } - if (Optional.IsDefined(StartDateTime)) - { - writer.WritePropertyName("startDateTime"); - writer.WriteStringValue(StartDateTime.Value, "O"); - } - if (Optional.IsDefined(ConversationId)) - { - writer.WritePropertyName("conversationId"); - writer.WriteStringValue(ConversationId); - } - writer.WriteEndObject(); - } - internal static CallRecordingStateChangeEvent DeserializeCallRecordingStateChangeEvent(JsonElement element) { Optional recordingId = default; - Optional state = default; - Optional startDateTime = default; - Optional conversationId = default; + CallRecordingState state = default; + DateTimeOffset startDateTime = default; + Optional serverCallId = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("recordingId")) @@ -54,31 +28,21 @@ internal static CallRecordingStateChangeEvent DeserializeCallRecordingStateChang } if (property.NameEquals("state")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } state = new CallRecordingState(property.Value.GetString()); continue; } if (property.NameEquals("startDateTime")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } startDateTime = property.Value.GetDateTimeOffset("O"); continue; } - if (property.NameEquals("conversationId")) + if (property.NameEquals("serverCallId")) { - conversationId = property.Value.GetString(); + serverCallId = property.Value.GetString(); continue; } } - return new CallRecordingStateChangeEvent(recordingId.Value, Optional.ToNullable(state), Optional.ToNullable(startDateTime), conversationId.Value); + return new CallRecordingStateChangeEvent(recordingId.Value, state, startDateTime, serverCallId.Value); } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallRecordingStateChangeEvent.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallRecordingStateChangeEvent.cs index ad2a94e87045..481668aa3cbf 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallRecordingStateChangeEvent.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallRecordingStateChangeEvent.cs @@ -13,30 +13,34 @@ namespace Azure.Communication.CallingServer public partial class CallRecordingStateChangeEvent { /// Initializes a new instance of CallRecordingStateChangeEvent. - public CallRecordingStateChangeEvent() + /// The state of the recording. + /// The time of the recording started. + internal CallRecordingStateChangeEvent(CallRecordingState state, DateTimeOffset startDateTime) { + State = state; + StartDateTime = startDateTime; } /// Initializes a new instance of CallRecordingStateChangeEvent. /// The call recording id. - /// The recording state of the recording. + /// The state of the recording. /// The time of the recording started. - /// The conversation id from a out call start recording request. - internal CallRecordingStateChangeEvent(string recordingId, CallRecordingState? state, DateTimeOffset? startDateTime, string conversationId) + /// The server call.id. + internal CallRecordingStateChangeEvent(string recordingId, CallRecordingState state, DateTimeOffset startDateTime, string serverCallId) { RecordingId = recordingId; State = state; StartDateTime = startDateTime; - ConversationId = conversationId; + ServerCallId = serverCallId; } /// The call recording id. - public string RecordingId { get; set; } - /// The recording state of the recording. - public CallRecordingState? State { get; set; } + public string RecordingId { get; } + /// The state of the recording. + public CallRecordingState State { get; } /// The time of the recording started. - public DateTimeOffset? StartDateTime { get; set; } - /// The conversation id from a out call start recording request. - public string ConversationId { get; set; } + public DateTimeOffset StartDateTime { get; } + /// The server call.id. + public string ServerCallId { get; } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallState.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallState.cs deleted file mode 100644 index cbd5c4ab0615..000000000000 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CallState.cs +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.Communication.CallingServer -{ - /// The call state. - public readonly partial struct CallState : IEquatable - { - private readonly string _value; - - /// Determines if two values are the same. - /// is null. - public CallState(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string UnknownValue = "unknown"; - private const string IdleValue = "idle"; - private const string IncomingValue = "incoming"; - private const string EstablishingValue = "establishing"; - private const string EstablishedValue = "established"; - private const string HoldValue = "hold"; - private const string UnholdValue = "unhold"; - private const string TransferringValue = "transferring"; - private const string RedirectingValue = "redirecting"; - private const string TerminatingValue = "terminating"; - private const string TerminatedValue = "terminated"; - - /// unknown. - public static CallState Unknown { get; } = new CallState(UnknownValue); - /// idle. - public static CallState Idle { get; } = new CallState(IdleValue); - /// incoming. - public static CallState Incoming { get; } = new CallState(IncomingValue); - /// establishing. - public static CallState Establishing { get; } = new CallState(EstablishingValue); - /// established. - public static CallState Established { get; } = new CallState(EstablishedValue); - /// hold. - public static CallState Hold { get; } = new CallState(HoldValue); - /// unhold. - public static CallState Unhold { get; } = new CallState(UnholdValue); - /// transferring. - public static CallState Transferring { get; } = new CallState(TransferringValue); - /// redirecting. - public static CallState Redirecting { get; } = new CallState(RedirectingValue); - /// terminating. - public static CallState Terminating { get; } = new CallState(TerminatingValue); - /// terminated. - public static CallState Terminated { get; } = new CallState(TerminatedValue); - /// Determines if two values are the same. - public static bool operator ==(CallState left, CallState right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(CallState left, CallState right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator CallState(string value) => new CallState(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is CallState other && Equals(other); - /// - public bool Equals(CallState 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/communication/Azure.Communication.CallingServer/src/Generated/Models/CancelAllMediaOperationsRequest.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CancelAllMediaOperationsRequest.cs index b9ba58849858..498b236ddf8f 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CancelAllMediaOperationsRequest.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CancelAllMediaOperationsRequest.cs @@ -7,7 +7,7 @@ namespace Azure.Communication.CallingServer { - /// The request payload for cancel media processing. + /// The request payload for cancel all media operations. internal partial class CancelAllMediaOperationsRequest { /// Initializes a new instance of CancelAllMediaOperationsRequest. diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CancelAllMediaOperationsResponse.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CancelAllMediaOperationsResponse.cs deleted file mode 100644 index 9560e0967afa..000000000000 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CancelAllMediaOperationsResponse.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.Communication.CallingServer -{ - /// The response payload of the cancel media processing operation. - public partial class CancelAllMediaOperationsResponse - { - /// Initializes a new instance of CancelAllMediaOperationsResponse. - internal CancelAllMediaOperationsResponse() - { - } - - /// Initializes a new instance of CancelAllMediaOperationsResponse. - /// Gets or sets the identifier. - /// Gets or sets the status of the operation. - /// Gets or sets the operation context. - /// Gets or sets the result info. - internal CancelAllMediaOperationsResponse(string id, OperationStatus? status, string operationContext, ResultInfo resultInfo) - { - Id = id; - Status = status; - OperationContext = operationContext; - ResultInfo = resultInfo; - } - - /// Gets or sets the identifier. - public string Id { get; } - /// Gets or sets the status of the operation. - public OperationStatus? Status { get; } - /// Gets or sets the operation context. - public string OperationContext { get; } - /// Gets or sets the result info. - public ResultInfo ResultInfo { get; } - } -} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayAudioResponse.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CancelAllMediaOperationsResult.Serialization.cs similarity index 66% rename from sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayAudioResponse.Serialization.cs rename to sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CancelAllMediaOperationsResult.Serialization.cs index 8757de91f31c..0d94214912ba 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayAudioResponse.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CancelAllMediaOperationsResult.Serialization.cs @@ -10,28 +10,23 @@ namespace Azure.Communication.CallingServer { - public partial class PlayAudioResponse + public partial class CancelAllMediaOperationsResult { - internal static PlayAudioResponse DeserializePlayAudioResponse(JsonElement element) + internal static CancelAllMediaOperationsResult DeserializeCancelAllMediaOperationsResult(JsonElement element) { - Optional id = default; - Optional status = default; + Optional operationId = default; + OperationStatus status = default; Optional operationContext = default; Optional resultInfo = default; foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("id")) + if (property.NameEquals("operationId")) { - id = property.Value.GetString(); + operationId = property.Value.GetString(); continue; } if (property.NameEquals("status")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } status = new OperationStatus(property.Value.GetString()); continue; } @@ -51,7 +46,7 @@ internal static PlayAudioResponse DeserializePlayAudioResponse(JsonElement eleme continue; } } - return new PlayAudioResponse(id.Value, Optional.ToNullable(status), operationContext.Value, resultInfo.Value); + return new CancelAllMediaOperationsResult(operationId.Value, status, operationContext.Value, resultInfo.Value); } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CancelAllMediaOperationsResult.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CancelAllMediaOperationsResult.cs new file mode 100644 index 000000000000..e31e114e93f7 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CancelAllMediaOperationsResult.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Communication.CallingServer +{ + /// The response payload of the cancel all media operations. + public partial class CancelAllMediaOperationsResult + { + /// Initializes a new instance of CancelAllMediaOperationsResult. + /// The status of the operation. + internal CancelAllMediaOperationsResult(OperationStatus status) + { + Status = status; + } + + /// Initializes a new instance of CancelAllMediaOperationsResult. + /// The operation id. + /// The status of the operation. + /// The operation context provided by client. + /// The result info for the operation. + internal CancelAllMediaOperationsResult(string operationId, OperationStatus status, string operationContext, ResultInfo resultInfo) + { + OperationId = operationId; + Status = status; + OperationContext = operationContext; + ResultInfo = resultInfo; + } + + /// The operation id. + public string OperationId { get; } + /// The status of the operation. + public OperationStatus Status { get; } + /// The operation context provided by client. + public string OperationContext { get; } + /// The result info for the operation. + public ResultInfo ResultInfo { get; } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CommunicationErrorResponse.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CommunicationErrorResponse.Serialization.cs new file mode 100644 index 000000000000..6637948463e5 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CommunicationErrorResponse.Serialization.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Communication.CallingServer +{ + internal partial class CommunicationErrorResponse + { + internal static CommunicationErrorResponse DeserializeCommunicationErrorResponse(JsonElement element) + { + CommunicationError error = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("error")) + { + error = CommunicationError.DeserializeCommunicationError(property.Value); + continue; + } + } + return new CommunicationErrorResponse(error); + } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CommunicationErrorResponse.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CommunicationErrorResponse.cs new file mode 100644 index 000000000000..08849379fca7 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CommunicationErrorResponse.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.Communication.CallingServer +{ + /// The Communication Services error. + internal partial class CommunicationErrorResponse + { + /// Initializes a new instance of CommunicationErrorResponse. + /// The Communication Services error. + /// is null. + internal CommunicationErrorResponse(CommunicationError error) + { + if (error == null) + { + throw new ArgumentNullException(nameof(error)); + } + + Error = error; + } + + /// The Communication Services error. + public CommunicationError Error { get; } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CommunicationParticipantInternal.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CommunicationParticipantInternal.cs deleted file mode 100644 index f4f85d3a97e3..000000000000 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CommunicationParticipantInternal.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using Azure.Communication; - -namespace Azure.Communication.CallingServer -{ - /// Class to represent entry in roster. - internal partial class CommunicationParticipantInternal - { - /// Initializes a new instance of CommunicationParticipantInternal. - internal CommunicationParticipantInternal() - { - } - - /// Initializes a new instance of CommunicationParticipantInternal. - /// ACS communication identifier. - /// Participant Id. - /// Is participant muted. - internal CommunicationParticipantInternal(CommunicationIdentifierModel identifier, string participantId, bool? isMuted) - { - Identifier = identifier; - ParticipantId = participantId; - IsMuted = isMuted; - } - - /// ACS communication identifier. - public CommunicationIdentifierModel Identifier { get; } - /// Participant Id. - public string ParticipantId { get; } - /// Is participant muted. - public bool? IsMuted { get; } - } -} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CreateCallRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CreateCallRequestInternal.Serialization.cs index 8a733b6b2dd3..b283cbb7b742 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CreateCallRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CreateCallRequestInternal.Serialization.cs @@ -15,10 +15,10 @@ internal partial class CreateCallRequestInternal : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(SourceAlternateIdentity)) + if (Optional.IsDefined(AlternateCallerId)) { - writer.WritePropertyName("sourceAlternateIdentity"); - writer.WriteObjectValue(SourceAlternateIdentity); + writer.WritePropertyName("alternateCallerId"); + writer.WriteObjectValue(AlternateCallerId); } writer.WritePropertyName("targets"); writer.WriteStartArray(); @@ -36,20 +36,26 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WritePropertyName("callbackUri"); writer.WriteStringValue(CallbackUri); - writer.WritePropertyName("requestedModalities"); - writer.WriteStartArray(); - foreach (var item in RequestedModalities) + if (Optional.IsCollectionDefined(RequestedMediaTypes)) { - writer.WriteStringValue(item.ToString()); + writer.WritePropertyName("requestedMediaTypes"); + writer.WriteStartArray(); + foreach (var item in RequestedMediaTypes) + { + writer.WriteStringValue(item.ToString()); + } + writer.WriteEndArray(); } - writer.WriteEndArray(); - writer.WritePropertyName("requestedCallEvents"); - writer.WriteStartArray(); - foreach (var item in RequestedCallEvents) + if (Optional.IsCollectionDefined(RequestedCallEvents)) { - writer.WriteStringValue(item.ToString()); + writer.WritePropertyName("requestedCallEvents"); + writer.WriteStartArray(); + foreach (var item in RequestedCallEvents) + { + writer.WriteStringValue(item.ToString()); + } + writer.WriteEndArray(); } - writer.WriteEndArray(); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CreateCallRequestInternal.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CreateCallRequestInternal.cs index d75474f0b119..d851487109dc 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CreateCallRequestInternal.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CreateCallRequestInternal.cs @@ -9,6 +9,7 @@ using System.Collections.Generic; using System.Linq; using Azure.Communication; +using Azure.Core; namespace Azure.Communication.CallingServer { @@ -19,10 +20,8 @@ internal partial class CreateCallRequestInternal /// The targets of the call. /// The source of the call. /// The callback URI. - /// The requested modalities. - /// The requested call events to subscribe to. - /// , , , , or is null. - public CreateCallRequestInternal(IEnumerable targets, CommunicationIdentifierModel source, string callbackUri, IEnumerable requestedModalities, IEnumerable requestedCallEvents) + /// , , or is null. + public CreateCallRequestInternal(IEnumerable targets, CommunicationIdentifierModel source, string callbackUri) { if (targets == null) { @@ -36,24 +35,16 @@ public CreateCallRequestInternal(IEnumerable targe { throw new ArgumentNullException(nameof(callbackUri)); } - if (requestedModalities == null) - { - throw new ArgumentNullException(nameof(requestedModalities)); - } - if (requestedCallEvents == null) - { - throw new ArgumentNullException(nameof(requestedCallEvents)); - } Targets = targets.ToList(); Source = source; CallbackUri = callbackUri; - RequestedModalities = requestedModalities.ToList(); - RequestedCallEvents = requestedCallEvents.ToList(); + RequestedMediaTypes = new ChangeTrackingList(); + RequestedCallEvents = new ChangeTrackingList(); } /// The alternate identity of the source of the call if dialing out to a pstn number. - public PhoneNumberIdentifierModel SourceAlternateIdentity { get; set; } + public PhoneNumberIdentifierModel AlternateCallerId { get; set; } /// The targets of the call. public IList Targets { get; } /// The source of the call. @@ -63,7 +54,7 @@ public CreateCallRequestInternal(IEnumerable targe /// The callback URI. public string CallbackUri { get; } /// The requested modalities. - public IList RequestedModalities { get; } + public IList RequestedMediaTypes { get; } /// The requested call events to subscribe to. public IList RequestedCallEvents { get; } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CreateCallResultInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CreateCallResultInternal.Serialization.cs new file mode 100644 index 000000000000..0181a75d8685 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CreateCallResultInternal.Serialization.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Communication.CallingServer +{ + internal partial class CreateCallResultInternal + { + internal static CreateCallResultInternal DeserializeCreateCallResultInternal(JsonElement element) + { + Optional callConnectionId = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("callConnectionId")) + { + callConnectionId = property.Value.GetString(); + continue; + } + } + return new CreateCallResultInternal(callConnectionId.Value); + } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CreateCallResponse.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CreateCallResultInternal.cs similarity index 50% rename from sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CreateCallResponse.cs rename to sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CreateCallResultInternal.cs index cc4aa0e8128c..a06e1a24a29e 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CreateCallResponse.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CreateCallResultInternal.cs @@ -8,21 +8,21 @@ namespace Azure.Communication.CallingServer { /// The response payload of the create call operation. - public partial class CreateCallResponse + internal partial class CreateCallResultInternal { - /// Initializes a new instance of CreateCallResponse. - internal CreateCallResponse() + /// Initializes a new instance of CreateCallResultInternal. + internal CreateCallResultInternal() { } - /// Initializes a new instance of CreateCallResponse. - /// Call leg id of the call. - internal CreateCallResponse(string callLegId) + /// Initializes a new instance of CreateCallResultInternal. + /// The call connection id. + internal CreateCallResultInternal(string callConnectionId) { - CallLegId = callLegId; + CallConnectionId = callConnectionId; } - /// Call leg id of the call. - public string CallLegId { get; } + /// The call connection id. + public string CallConnectionId { get; } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/GetCallRecordingStateResponse.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/GetCallRecordingStateResponse.cs deleted file mode 100644 index ea34da593ec1..000000000000 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/GetCallRecordingStateResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.Communication.CallingServer -{ - /// The response payload of get call recording state operation. - public partial class GetCallRecordingStateResponse - { - /// Initializes a new instance of GetCallRecordingStateResponse. - internal GetCallRecordingStateResponse() - { - } - - /// Initializes a new instance of GetCallRecordingStateResponse. - /// The recording state of the recording. - internal GetCallRecordingStateResponse(CallRecordingState? recordingState) - { - RecordingState = recordingState; - } - - /// The recording state of the recording. - public CallRecordingState? RecordingState { get; } - } -} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/InviteParticipantsRequestInternal.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/InviteParticipantsRequestInternal.cs deleted file mode 100644 index b806cfa49c03..000000000000 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/InviteParticipantsRequestInternal.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Linq; -using Azure.Communication; - -namespace Azure.Communication.CallingServer -{ - /// The invite participants request. - internal partial class InviteParticipantsRequestInternal - { - /// Initializes a new instance of InviteParticipantsRequestInternal. - /// The list of participants to be added to the call. - /// is null. - public InviteParticipantsRequestInternal(IEnumerable participants) - { - if (participants == null) - { - throw new ArgumentNullException(nameof(participants)); - } - - Participants = participants.ToList(); - } - - /// The alternate identity of source participant. - public PhoneNumberIdentifierModel AlternateCallerId { get; set; } - /// The list of participants to be added to the call. - public IList Participants { get; } - /// The operation context. - public string OperationContext { get; set; } - /// The callback URI. - public string CallbackUri { get; set; } - } -} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/InviteParticipantsResultEvent.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/InviteParticipantsResultEvent.Serialization.cs deleted file mode 100644 index 52d3b4767665..000000000000 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/InviteParticipantsResultEvent.Serialization.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using Azure.Core; - -namespace Azure.Communication.CallingServer -{ - public partial class InviteParticipantsResultEvent : IUtf8JsonSerializable - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsDefined(ResultInfo)) - { - writer.WritePropertyName("resultInfo"); - writer.WriteObjectValue(ResultInfo); - } - if (Optional.IsDefined(OperationContext)) - { - writer.WritePropertyName("operationContext"); - writer.WriteStringValue(OperationContext); - } - if (Optional.IsDefined(Status)) - { - writer.WritePropertyName("status"); - writer.WriteStringValue(Status.Value.ToString()); - } - writer.WriteEndObject(); - } - - internal static InviteParticipantsResultEvent DeserializeInviteParticipantsResultEvent(JsonElement element) - { - Optional resultInfo = default; - Optional operationContext = default; - Optional status = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("resultInfo")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - resultInfo = ResultInfo.DeserializeResultInfo(property.Value); - continue; - } - if (property.NameEquals("operationContext")) - { - operationContext = property.Value.GetString(); - continue; - } - if (property.NameEquals("status")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - status = new OperationStatus(property.Value.GetString()); - continue; - } - } - return new InviteParticipantsResultEvent(resultInfo.Value, operationContext.Value, Optional.ToNullable(status)); - } - } -} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/InviteParticipantsResultEvent.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/InviteParticipantsResultEvent.cs deleted file mode 100644 index 1fd35fffa5b1..000000000000 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/InviteParticipantsResultEvent.cs +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.Communication.CallingServer -{ - /// The InviteParticipantsResultEvent. - public partial class InviteParticipantsResultEvent - { - /// Initializes a new instance of InviteParticipantsResultEvent. - public InviteParticipantsResultEvent() - { - } - - /// Initializes a new instance of InviteParticipantsResultEvent. - /// The result details. - /// The operation context. - /// Gets or sets the status of the operation. - internal InviteParticipantsResultEvent(ResultInfo resultInfo, string operationContext, OperationStatus? status) - { - ResultInfo = resultInfo; - OperationContext = operationContext; - Status = status; - } - - /// The result details. - public ResultInfo ResultInfo { get; set; } - /// The operation context. - public string OperationContext { get; set; } - /// Gets or sets the status of the operation. - public OperationStatus? Status { get; set; } - } -} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/JoinCallRequestInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/JoinCallRequestInternal.Serialization.cs index 286ada28f878..16cadb22366e 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/JoinCallRequestInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/JoinCallRequestInternal.Serialization.cs @@ -24,20 +24,26 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WritePropertyName("callbackUri"); writer.WriteStringValue(CallbackUri); - writer.WritePropertyName("requestedModalities"); - writer.WriteStartArray(); - foreach (var item in RequestedModalities) + if (Optional.IsCollectionDefined(RequestedMediaTypes)) { - writer.WriteStringValue(item.ToString()); + writer.WritePropertyName("requestedMediaTypes"); + writer.WriteStartArray(); + foreach (var item in RequestedMediaTypes) + { + writer.WriteStringValue(item.ToString()); + } + writer.WriteEndArray(); } - writer.WriteEndArray(); - writer.WritePropertyName("requestedCallEvents"); - writer.WriteStartArray(); - foreach (var item in RequestedCallEvents) + if (Optional.IsCollectionDefined(RequestedCallEvents)) { - writer.WriteStringValue(item.ToString()); + writer.WritePropertyName("requestedCallEvents"); + writer.WriteStartArray(); + foreach (var item in RequestedCallEvents) + { + writer.WriteStringValue(item.ToString()); + } + writer.WriteEndArray(); } - writer.WriteEndArray(); writer.WriteEndObject(); } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/JoinCallRequestInternal.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/JoinCallRequestInternal.cs index 519e2948fec2..bafb78435ca5 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/JoinCallRequestInternal.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/JoinCallRequestInternal.cs @@ -7,8 +7,8 @@ using System; using System.Collections.Generic; -using System.Linq; using Azure.Communication; +using Azure.Core; namespace Azure.Communication.CallingServer { @@ -18,10 +18,8 @@ internal partial class JoinCallRequestInternal /// Initializes a new instance of JoinCallRequestInternal. /// The source of the call. /// The callback URI. - /// The requested modalities. - /// The requested call events to subscribe to. - /// , , , or is null. - public JoinCallRequestInternal(CommunicationIdentifierModel source, string callbackUri, IEnumerable requestedModalities, IEnumerable requestedCallEvents) + /// or is null. + public JoinCallRequestInternal(CommunicationIdentifierModel source, string callbackUri) { if (source == null) { @@ -31,19 +29,11 @@ public JoinCallRequestInternal(CommunicationIdentifierModel source, string callb { throw new ArgumentNullException(nameof(callbackUri)); } - if (requestedModalities == null) - { - throw new ArgumentNullException(nameof(requestedModalities)); - } - if (requestedCallEvents == null) - { - throw new ArgumentNullException(nameof(requestedCallEvents)); - } Source = source; CallbackUri = callbackUri; - RequestedModalities = requestedModalities.ToList(); - RequestedCallEvents = requestedCallEvents.ToList(); + RequestedMediaTypes = new ChangeTrackingList(); + RequestedCallEvents = new ChangeTrackingList(); } /// The source of the call. @@ -53,7 +43,7 @@ public JoinCallRequestInternal(CommunicationIdentifierModel source, string callb /// The callback URI. public string CallbackUri { get; } /// The requested modalities. - public IList RequestedModalities { get; } + public IList RequestedMediaTypes { get; } /// The requested call events to subscribe to. public IList RequestedCallEvents { get; } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/JoinCallResponse.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/JoinCallResponse.cs deleted file mode 100644 index 4813790e5a80..000000000000 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/JoinCallResponse.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.Communication.CallingServer -{ - /// The response payload of the join call operation. - public partial class JoinCallResponse - { - /// Initializes a new instance of JoinCallResponse. - internal JoinCallResponse() - { - } - - /// Initializes a new instance of JoinCallResponse. - /// Call leg id of the call. - internal JoinCallResponse(string callLegId) - { - CallLegId = callLegId; - } - - /// Call leg id of the call. - public string CallLegId { get; } - } -} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CreateCallResponse.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/JoinCallResultInternal.Serialization.cs similarity index 50% rename from sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CreateCallResponse.Serialization.cs rename to sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/JoinCallResultInternal.Serialization.cs index 82d8b2c87bdf..4d226b1a4661 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CreateCallResponse.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/JoinCallResultInternal.Serialization.cs @@ -10,20 +10,20 @@ namespace Azure.Communication.CallingServer { - public partial class CreateCallResponse + internal partial class JoinCallResultInternal { - internal static CreateCallResponse DeserializeCreateCallResponse(JsonElement element) + internal static JoinCallResultInternal DeserializeJoinCallResultInternal(JsonElement element) { - Optional callLegId = default; + Optional callConnectionId = default; foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("callLegId")) + if (property.NameEquals("callConnectionId")) { - callLegId = property.Value.GetString(); + callConnectionId = property.Value.GetString(); continue; } } - return new CreateCallResponse(callLegId.Value); + return new JoinCallResultInternal(callConnectionId.Value); } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/JoinCallResultInternal.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/JoinCallResultInternal.cs new file mode 100644 index 000000000000..94b89f2ba743 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/JoinCallResultInternal.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Communication.CallingServer +{ + /// The response payload of the join call operation. + internal partial class JoinCallResultInternal + { + /// Initializes a new instance of JoinCallResultInternal. + internal JoinCallResultInternal() + { + } + + /// Initializes a new instance of JoinCallResultInternal. + /// The call connection id. + internal JoinCallResultInternal(string callConnectionId) + { + CallConnectionId = callConnectionId; + } + + /// The call connection id. + public string CallConnectionId { get; } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/MediaType.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/MediaType.cs new file mode 100644 index 000000000000..27cd7f3a3459 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/MediaType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Communication.CallingServer +{ + /// The MediaType. + public readonly partial struct MediaType : IEquatable + { + private readonly string _value; + + /// Determines if two values are the same. + /// is null. + public MediaType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AudioValue = "audio"; + private const string VideoValue = "video"; + + /// audio. + public static MediaType Audio { get; } = new MediaType(AudioValue); + /// video. + public static MediaType Video { get; } = new MediaType(VideoValue); + /// Determines if two values are the same. + public static bool operator ==(MediaType left, MediaType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(MediaType left, MediaType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator MediaType(string value) => new MediaType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is MediaType other && Equals(other); + /// + public bool Equals(MediaType 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/communication/Azure.Communication.CallingServer/src/Generated/Models/OperationStatus.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/OperationStatus.cs index 878c958f9d8e..63fe782fb828 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/OperationStatus.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/OperationStatus.cs @@ -10,7 +10,7 @@ namespace Azure.Communication.CallingServer { - /// Gets or sets the status of the operation. + /// The status of the operation. public readonly partial struct OperationStatus : IEquatable { private readonly string _value; diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ParticipantsUpdatedEventInternal.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ParticipantsUpdatedEventInternal.Serialization.cs index 954fa3e99465..61d4cbba4f09 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ParticipantsUpdatedEventInternal.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ParticipantsUpdatedEventInternal.Serialization.cs @@ -15,13 +15,13 @@ internal partial class ParticipantsUpdatedEventInternal { internal static ParticipantsUpdatedEventInternal DeserializeParticipantsUpdatedEventInternal(JsonElement element) { - Optional callLegId = default; - Optional> participants = default; + Optional callConnectionId = default; + Optional> participants = default; foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("callLegId")) + if (property.NameEquals("callConnectionId")) { - callLegId = property.Value.GetString(); + callConnectionId = property.Value.GetString(); continue; } if (property.NameEquals("participants")) @@ -31,16 +31,16 @@ internal static ParticipantsUpdatedEventInternal DeserializeParticipantsUpdatedE property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(CommunicationParticipantInternal.DeserializeCommunicationParticipantInternal(item)); + array.Add(CallParticipantInternal.DeserializeCallParticipantInternal(item)); } participants = array; continue; } } - return new ParticipantsUpdatedEventInternal(callLegId.Value, Optional.ToList(participants)); + return new ParticipantsUpdatedEventInternal(callConnectionId.Value, Optional.ToList(participants)); } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ParticipantsUpdatedEventInternal.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ParticipantsUpdatedEventInternal.cs index e9a5240bb648..81254e79aeda 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ParticipantsUpdatedEventInternal.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ParticipantsUpdatedEventInternal.cs @@ -10,27 +10,27 @@ namespace Azure.Communication.CallingServer { - /// Class to represent roster update. + /// The participant update event. internal partial class ParticipantsUpdatedEventInternal { /// Initializes a new instance of ParticipantsUpdatedEventInternal. internal ParticipantsUpdatedEventInternal() { - Participants = new ChangeTrackingList(); + Participants = new ChangeTrackingList(); } /// Initializes a new instance of ParticipantsUpdatedEventInternal. - /// The call leg.id. + /// The call connection id. /// The list of participants. - internal ParticipantsUpdatedEventInternal(string callLegId, IReadOnlyList participants) + internal ParticipantsUpdatedEventInternal(string callConnectionId, IReadOnlyList participants) { - CallLegId = callLegId; + CallConnectionId = callConnectionId; Participants = participants; } - /// The call leg.id. - public string CallLegId { get; } + /// The call connection id. + public string CallConnectionId { get; } /// The list of participants. - public IReadOnlyList Participants { get; } + public IReadOnlyList Participants { get; } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayAudioResponse.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayAudioResponse.cs deleted file mode 100644 index daa01f390e2b..000000000000 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayAudioResponse.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.Communication.CallingServer -{ - /// The response payload for play audio operation. - public partial class PlayAudioResponse - { - /// Initializes a new instance of PlayAudioResponse. - internal PlayAudioResponse() - { - } - - /// Initializes a new instance of PlayAudioResponse. - /// Gets or sets the identifier. - /// Gets or sets the status of the operation. - /// Gets or sets the operation context. - /// Gets or sets the result info. - internal PlayAudioResponse(string id, OperationStatus? status, string operationContext, ResultInfo resultInfo) - { - Id = id; - Status = status; - OperationContext = operationContext; - ResultInfo = resultInfo; - } - - /// Gets or sets the identifier. - public string Id { get; } - /// Gets or sets the status of the operation. - public OperationStatus? Status { get; } - /// Gets or sets the operation context. - public string OperationContext { get; } - /// Gets or sets the result info. - public ResultInfo ResultInfo { get; } - } -} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CancelAllMediaOperationsResponse.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayAudioResult.Serialization.cs similarity index 64% rename from sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CancelAllMediaOperationsResponse.Serialization.cs rename to sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayAudioResult.Serialization.cs index 90342df4e832..bda9dc0250e5 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/CancelAllMediaOperationsResponse.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayAudioResult.Serialization.cs @@ -10,28 +10,23 @@ namespace Azure.Communication.CallingServer { - public partial class CancelAllMediaOperationsResponse + public partial class PlayAudioResult { - internal static CancelAllMediaOperationsResponse DeserializeCancelAllMediaOperationsResponse(JsonElement element) + internal static PlayAudioResult DeserializePlayAudioResult(JsonElement element) { - Optional id = default; - Optional status = default; + Optional operationId = default; + OperationStatus status = default; Optional operationContext = default; Optional resultInfo = default; foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("id")) + if (property.NameEquals("operationId")) { - id = property.Value.GetString(); + operationId = property.Value.GetString(); continue; } if (property.NameEquals("status")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } status = new OperationStatus(property.Value.GetString()); continue; } @@ -51,7 +46,7 @@ internal static CancelAllMediaOperationsResponse DeserializeCancelAllMediaOperat continue; } } - return new CancelAllMediaOperationsResponse(id.Value, Optional.ToNullable(status), operationContext.Value, resultInfo.Value); + return new PlayAudioResult(operationId.Value, status, operationContext.Value, resultInfo.Value); } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayAudioResult.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayAudioResult.cs new file mode 100644 index 000000000000..7dd6b1dfd6d1 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayAudioResult.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Communication.CallingServer +{ + /// The response payload for play audio operation. + public partial class PlayAudioResult + { + /// Initializes a new instance of PlayAudioResult. + /// The status of the operation. + internal PlayAudioResult(OperationStatus status) + { + Status = status; + } + + /// Initializes a new instance of PlayAudioResult. + /// The operation id. + /// The status of the operation. + /// The operation context provided by client. + /// The result info for the operation. + internal PlayAudioResult(string operationId, OperationStatus status, string operationContext, ResultInfo resultInfo) + { + OperationId = operationId; + Status = status; + OperationContext = operationContext; + ResultInfo = resultInfo; + } + + /// The operation id. + public string OperationId { get; } + /// The status of the operation. + public OperationStatus Status { get; } + /// The operation context provided by client. + public string OperationContext { get; } + /// The result info for the operation. + public ResultInfo ResultInfo { get; } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayAudioResultEvent.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayAudioResultEvent.Serialization.cs index b1f1eeae26f4..865e57a31d3b 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayAudioResultEvent.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayAudioResultEvent.Serialization.cs @@ -10,34 +10,13 @@ namespace Azure.Communication.CallingServer { - public partial class PlayAudioResultEvent : IUtf8JsonSerializable + public partial class PlayAudioResultEvent { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsDefined(ResultInfo)) - { - writer.WritePropertyName("resultInfo"); - writer.WriteObjectValue(ResultInfo); - } - if (Optional.IsDefined(OperationContext)) - { - writer.WritePropertyName("operationContext"); - writer.WriteStringValue(OperationContext); - } - if (Optional.IsDefined(Status)) - { - writer.WritePropertyName("status"); - writer.WriteStringValue(Status.Value.ToString()); - } - writer.WriteEndObject(); - } - internal static PlayAudioResultEvent DeserializePlayAudioResultEvent(JsonElement element) { Optional resultInfo = default; Optional operationContext = default; - Optional status = default; + OperationStatus status = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("resultInfo")) @@ -57,16 +36,11 @@ internal static PlayAudioResultEvent DeserializePlayAudioResultEvent(JsonElement } if (property.NameEquals("status")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } status = new OperationStatus(property.Value.GetString()); continue; } } - return new PlayAudioResultEvent(resultInfo.Value, operationContext.Value, Optional.ToNullable(status)); + return new PlayAudioResultEvent(resultInfo.Value, operationContext.Value, status); } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayAudioResultEvent.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayAudioResultEvent.cs index a781525bc166..5c13697c27d9 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayAudioResultEvent.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/PlayAudioResultEvent.cs @@ -11,15 +11,17 @@ namespace Azure.Communication.CallingServer public partial class PlayAudioResultEvent { /// Initializes a new instance of PlayAudioResultEvent. - public PlayAudioResultEvent() + /// The status of the operation. + internal PlayAudioResultEvent(OperationStatus status) { + Status = status; } /// Initializes a new instance of PlayAudioResultEvent. /// The result details. /// The operation context. - /// Gets or sets the status of the operation. - internal PlayAudioResultEvent(ResultInfo resultInfo, string operationContext, OperationStatus? status) + /// The status of the operation. + internal PlayAudioResultEvent(ResultInfo resultInfo, string operationContext, OperationStatus status) { ResultInfo = resultInfo; OperationContext = operationContext; @@ -27,10 +29,10 @@ internal PlayAudioResultEvent(ResultInfo resultInfo, string operationContext, Op } /// The result details. - public ResultInfo ResultInfo { get; set; } + public ResultInfo ResultInfo { get; } /// The operation context. - public string OperationContext { get; set; } - /// Gets or sets the status of the operation. - public OperationStatus? Status { get; set; } + public string OperationContext { get; } + /// The status of the operation. + public OperationStatus Status { get; } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ResultInfo.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ResultInfo.Serialization.cs index 2a66db65162b..afeabc783ff3 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ResultInfo.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ResultInfo.Serialization.cs @@ -14,28 +14,18 @@ public partial class ResultInfo { internal static ResultInfo DeserializeResultInfo(JsonElement element) { - Optional code = default; - Optional subcode = default; + int code = default; + int subcode = default; Optional message = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("code")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } code = property.Value.GetInt32(); continue; } if (property.NameEquals("subcode")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } subcode = property.Value.GetInt32(); continue; } @@ -45,7 +35,7 @@ internal static ResultInfo DeserializeResultInfo(JsonElement element) continue; } } - return new ResultInfo(Optional.ToNullable(code), Optional.ToNullable(subcode), message.Value); + return new ResultInfo(code, subcode, message.Value); } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ResultInfo.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ResultInfo.cs index f40ef9a660a4..7b4aa9982c19 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ResultInfo.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ResultInfo.cs @@ -11,50 +11,30 @@ namespace Azure.Communication.CallingServer public partial class ResultInfo { /// Initializes a new instance of ResultInfo. - internal ResultInfo() + /// The result code associated with the operation. + /// The subcode that further classifies the result. + internal ResultInfo(int code, int subcode) { + Code = code; + Subcode = subcode; } /// Initializes a new instance of ResultInfo. - /// - /// Gets or sets the result code - /// - /// For synchronous failures, this maps one-to-one with HTTP responses. For asynchronous failures or messages, it is contextual. - /// - /// - /// Gets or sets the result subcode. - /// - /// The subcode further classifies a failure. For example. - /// - /// - /// Gets or sets the message - /// - /// The message is a detail explanation of subcode. - /// - internal ResultInfo(int? code, int? subcode, string message) + /// The result code associated with the operation. + /// The subcode that further classifies the result. + /// The message is a detail explanation of subcode. + internal ResultInfo(int code, int subcode, string message) { Code = code; Subcode = subcode; Message = message; } - /// - /// Gets or sets the result code - /// - /// For synchronous failures, this maps one-to-one with HTTP responses. For asynchronous failures or messages, it is contextual. - /// - public int? Code { get; } - /// - /// Gets or sets the result subcode. - /// - /// The subcode further classifies a failure. For example. - /// - public int? Subcode { get; } - /// - /// Gets or sets the message - /// - /// The message is a detail explanation of subcode. - /// + /// The result code associated with the operation. + public int Code { get; } + /// The subcode that further classifies the result. + public int Subcode { get; } + /// The message is a detail explanation of subcode. public string Message { get; } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/StartCallRecordingResponse.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/StartCallRecordingResult.Serialization.cs similarity index 71% rename from sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/StartCallRecordingResponse.Serialization.cs rename to sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/StartCallRecordingResult.Serialization.cs index 2819ae59c6cd..0ed327d5f67e 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/StartCallRecordingResponse.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/StartCallRecordingResult.Serialization.cs @@ -10,9 +10,9 @@ namespace Azure.Communication.CallingServer { - public partial class StartCallRecordingResponse + public partial class StartCallRecordingResult { - internal static StartCallRecordingResponse DeserializeStartCallRecordingResponse(JsonElement element) + internal static StartCallRecordingResult DeserializeStartCallRecordingResult(JsonElement element) { Optional recordingId = default; foreach (var property in element.EnumerateObject()) @@ -23,7 +23,7 @@ internal static StartCallRecordingResponse DeserializeStartCallRecordingResponse continue; } } - return new StartCallRecordingResponse(recordingId.Value); + return new StartCallRecordingResult(recordingId.Value); } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/StartCallRecordingResponse.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/StartCallRecordingResult.cs similarity index 76% rename from sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/StartCallRecordingResponse.cs rename to sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/StartCallRecordingResult.cs index fdd30e12eb77..1f34fac12aa1 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/StartCallRecordingResponse.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/StartCallRecordingResult.cs @@ -8,16 +8,16 @@ namespace Azure.Communication.CallingServer { /// The response payload of start call recording operation. - public partial class StartCallRecordingResponse + public partial class StartCallRecordingResult { - /// Initializes a new instance of StartCallRecordingResponse. - internal StartCallRecordingResponse() + /// Initializes a new instance of StartCallRecordingResult. + internal StartCallRecordingResult() { } - /// Initializes a new instance of StartCallRecordingResponse. + /// Initializes a new instance of StartCallRecordingResult. /// The recording id of the started recording. - internal StartCallRecordingResponse(string recordingId) + internal StartCallRecordingResult(string recordingId) { RecordingId = recordingId; } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ToneInfo.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ToneInfo.Serialization.cs index f97a5a860928..88f829d9ce48 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ToneInfo.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ToneInfo.Serialization.cs @@ -10,52 +10,26 @@ namespace Azure.Communication.CallingServer { - public partial class ToneInfo : IUtf8JsonSerializable + public partial class ToneInfo { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsDefined(SequenceId)) - { - writer.WritePropertyName("sequenceId"); - writer.WriteNumberValue(SequenceId.Value); - } - if (Optional.IsDefined(Tone)) - { - writer.WritePropertyName("tone"); - writer.WriteStringValue(Tone.Value.ToString()); - } - writer.WriteEndObject(); - } - internal static ToneInfo DeserializeToneInfo(JsonElement element) { - Optional sequenceId = default; - Optional tone = default; + int sequenceId = default; + ToneValue tone = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("sequenceId")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } sequenceId = property.Value.GetInt32(); continue; } if (property.NameEquals("tone")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } tone = new ToneValue(property.Value.GetString()); continue; } } - return new ToneInfo(Optional.ToNullable(sequenceId), Optional.ToNullable(tone)); + return new ToneInfo(sequenceId, tone); } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ToneInfo.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ToneInfo.cs index e22dc97f01a0..0fc8ed115fa8 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ToneInfo.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ToneInfo.cs @@ -7,34 +7,21 @@ namespace Azure.Communication.CallingServer { - /// Gets or sets the tone info. + /// The information about the tone. public partial class ToneInfo { /// Initializes a new instance of ToneInfo. - public ToneInfo() - { - } - - /// Initializes a new instance of ToneInfo. - /// - /// Gets or sets the sequence id. This id can be used to determine if the same tone - /// - /// was played multiple times or if any tones were missed. - /// - /// Gets or sets the tone detected. - internal ToneInfo(int? sequenceId, ToneValue? tone) + /// The sequence id which can be used to determine if the same tone was played multiple times or if any tones were missed. + /// The tone value. + internal ToneInfo(int sequenceId, ToneValue tone) { SequenceId = sequenceId; Tone = tone; } - /// - /// Gets or sets the sequence id. This id can be used to determine if the same tone - /// - /// was played multiple times or if any tones were missed. - /// - public int? SequenceId { get; set; } - /// Gets or sets the tone detected. - public ToneValue? Tone { get; set; } + /// The sequence id which can be used to determine if the same tone was played multiple times or if any tones were missed. + public int SequenceId { get; } + /// The tone value. + public ToneValue Tone { get; } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ToneReceivedEvent.Serialization.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ToneReceivedEvent.Serialization.cs index 025c53232a1d..9c2f01a2901a 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ToneReceivedEvent.Serialization.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ToneReceivedEvent.Serialization.cs @@ -10,47 +10,26 @@ namespace Azure.Communication.CallingServer { - public partial class ToneReceivedEvent : IUtf8JsonSerializable + public partial class ToneReceivedEvent { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) - { - writer.WriteStartObject(); - if (Optional.IsDefined(ToneInfo)) - { - writer.WritePropertyName("toneInfo"); - writer.WriteObjectValue(ToneInfo); - } - if (Optional.IsDefined(CallLegId)) - { - writer.WritePropertyName("callLegId"); - writer.WriteStringValue(CallLegId); - } - writer.WriteEndObject(); - } - internal static ToneReceivedEvent DeserializeToneReceivedEvent(JsonElement element) { - Optional toneInfo = default; - Optional callLegId = default; + ToneInfo toneInfo = default; + Optional callConnectionId = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("toneInfo")) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } toneInfo = ToneInfo.DeserializeToneInfo(property.Value); continue; } - if (property.NameEquals("callLegId")) + if (property.NameEquals("callConnectionId")) { - callLegId = property.Value.GetString(); + callConnectionId = property.Value.GetString(); continue; } } - return new ToneReceivedEvent(toneInfo.Value, callLegId.Value); + return new ToneReceivedEvent(toneInfo, callConnectionId.Value); } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ToneReceivedEvent.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ToneReceivedEvent.cs index 7c84fcfde510..645c5e5e72b0 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ToneReceivedEvent.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ToneReceivedEvent.cs @@ -5,28 +5,38 @@ #nullable disable +using System; + namespace Azure.Communication.CallingServer { /// The subscribe to tone event. public partial class ToneReceivedEvent { /// Initializes a new instance of ToneReceivedEvent. - public ToneReceivedEvent() + /// The tone info. + /// is null. + internal ToneReceivedEvent(ToneInfo toneInfo) { + if (toneInfo == null) + { + throw new ArgumentNullException(nameof(toneInfo)); + } + + ToneInfo = toneInfo; } /// Initializes a new instance of ToneReceivedEvent. /// The tone info. - /// The call leg.id. - internal ToneReceivedEvent(ToneInfo toneInfo, string callLegId) + /// The call connection id. + internal ToneReceivedEvent(ToneInfo toneInfo, string callConnectionId) { ToneInfo = toneInfo; - CallLegId = callLegId; + CallConnectionId = callConnectionId; } /// The tone info. - public ToneInfo ToneInfo { get; set; } - /// The call leg.id. - public string CallLegId { get; set; } + public ToneInfo ToneInfo { get; } + /// The call connection id. + public string CallConnectionId { get; } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ToneValue.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ToneValue.cs index 2881449048c2..b61260b6d57e 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ToneValue.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/Models/ToneValue.cs @@ -10,7 +10,7 @@ namespace Azure.Communication.CallingServer { - /// Gets or sets the tone detected. + /// The tone value. public readonly partial struct ToneValue : IEquatable { private readonly string _value; diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Generated/ConversationRestClient.cs b/sdk/communication/Azure.Communication.CallingServer/src/Generated/ServerCallsRestClient.cs similarity index 59% rename from sdk/communication/Azure.Communication.CallingServer/src/Generated/ConversationRestClient.cs rename to sdk/communication/Azure.Communication.CallingServer/src/Generated/ServerCallsRestClient.cs index 13c588e0121b..590d85b54afa 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Generated/ConversationRestClient.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Generated/ServerCallsRestClient.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Text.Json; using System.Threading; using System.Threading.Tasks; @@ -18,20 +17,20 @@ namespace Azure.Communication.CallingServer { - internal partial class ConversationRestClient + internal partial class ServerCallsRestClient { private string endpoint; private string apiVersion; private ClientDiagnostics _clientDiagnostics; private HttpPipeline _pipeline; - /// Initializes a new instance of ConversationRestClient. + /// Initializes a new instance of ServerCallsRestClient. /// The handler for diagnostic messaging in the client. /// The HTTP pipeline for sending and receiving REST requests and responses. /// The endpoint of the Azure Communication resource. /// Api Version. /// or is null. - public ConversationRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, string apiVersion = "2021-04-15-preview1") + public ServerCallsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, string apiVersion = "2021-06-15-preview") { if (endpoint == null) { @@ -48,23 +47,26 @@ public ConversationRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline _pipeline = pipeline; } - internal HttpMessage CreateJoinCallRequest(string conversationId, CommunicationIdentifierModel source, string callbackUri, IEnumerable requestedModalities, IEnumerable requestedCallEvents, string subject) + internal HttpMessage CreateAddParticipantRequest(string serverCallId, PhoneNumberIdentifierModel alternateCallerId, CommunicationIdentifierModel participant, string operationContext, string callbackUri) { var message = _pipeline.CreateMessage(); var request = message.Request; request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); - uri.AppendPath("/calling/conversations/", false); - uri.AppendPath(conversationId, true); - uri.AppendPath("/Join", false); + uri.AppendPath("/calling/serverCalls/", false); + uri.AppendPath(serverCallId, true); + uri.AppendPath("/participants", false); uri.AppendQuery("api-version", apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - var model = new JoinCallRequestInternal(source, callbackUri, requestedModalities.ToList(), requestedCallEvents.ToList()) + var model = new AddParticipantRequest() { - Subject = subject + AlternateCallerId = alternateCallerId, + Participant = participant, + OperationContext = operationContext, + CallbackUri = callbackUri }; var content = new Utf8JsonRequestContent(); content.JsonWriter.WriteObjectValue(model); @@ -72,47 +74,30 @@ internal HttpMessage CreateJoinCallRequest(string conversationId, CommunicationI return message; } - /// Join a call. - /// The conversation id which can be guid or encoded cs url. - /// The source of the call. + /// Add a participant to the call. + /// The server call id. + /// The alternate identity of source participant. + /// The participant to be added to the call. + /// The operation context. /// The callback URI. - /// The requested modalities. - /// The requested call events to subscribe to. - /// The subject. /// The cancellation token to use. - /// , , , , or is null. - public async Task> JoinCallAsync(string conversationId, CommunicationIdentifierModel source, string callbackUri, IEnumerable requestedModalities, IEnumerable requestedCallEvents, string subject = null, CancellationToken cancellationToken = default) + /// is null. + public async Task> AddParticipantAsync(string serverCallId, PhoneNumberIdentifierModel alternateCallerId = null, CommunicationIdentifierModel participant = null, string operationContext = null, string callbackUri = null, CancellationToken cancellationToken = default) { - if (conversationId == null) - { - throw new ArgumentNullException(nameof(conversationId)); - } - if (source == null) - { - throw new ArgumentNullException(nameof(source)); - } - if (callbackUri == null) - { - throw new ArgumentNullException(nameof(callbackUri)); - } - if (requestedModalities == null) + if (serverCallId == null) { - throw new ArgumentNullException(nameof(requestedModalities)); - } - if (requestedCallEvents == null) - { - throw new ArgumentNullException(nameof(requestedCallEvents)); + throw new ArgumentNullException(nameof(serverCallId)); } - using var message = CreateJoinCallRequest(conversationId, source, callbackUri, requestedModalities, requestedCallEvents, subject); + using var message = CreateAddParticipantRequest(serverCallId, alternateCallerId, participant, operationContext, callbackUri); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 202: { - JoinCallResponse value = default; + AddParticipantResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = JoinCallResponse.DeserializeJoinCallResponse(document.RootElement); + value = AddParticipantResult.DeserializeAddParticipantResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -120,47 +105,30 @@ public async Task> JoinCallAsync(string conversationI } } - /// Join a call. - /// The conversation id which can be guid or encoded cs url. - /// The source of the call. + /// Add a participant to the call. + /// The server call id. + /// The alternate identity of source participant. + /// The participant to be added to the call. + /// The operation context. /// The callback URI. - /// The requested modalities. - /// The requested call events to subscribe to. - /// The subject. /// The cancellation token to use. - /// , , , , or is null. - public Response JoinCall(string conversationId, CommunicationIdentifierModel source, string callbackUri, IEnumerable requestedModalities, IEnumerable requestedCallEvents, string subject = null, CancellationToken cancellationToken = default) + /// is null. + public Response AddParticipant(string serverCallId, PhoneNumberIdentifierModel alternateCallerId = null, CommunicationIdentifierModel participant = null, string operationContext = null, string callbackUri = null, CancellationToken cancellationToken = default) { - if (conversationId == null) + if (serverCallId == null) { - throw new ArgumentNullException(nameof(conversationId)); - } - if (source == null) - { - throw new ArgumentNullException(nameof(source)); - } - if (callbackUri == null) - { - throw new ArgumentNullException(nameof(callbackUri)); - } - if (requestedModalities == null) - { - throw new ArgumentNullException(nameof(requestedModalities)); - } - if (requestedCallEvents == null) - { - throw new ArgumentNullException(nameof(requestedCallEvents)); + throw new ArgumentNullException(nameof(serverCallId)); } - using var message = CreateJoinCallRequest(conversationId, source, callbackUri, requestedModalities, requestedCallEvents, subject); + using var message = CreateAddParticipantRequest(serverCallId, alternateCallerId, participant, operationContext, callbackUri); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 202: { - JoinCallResponse value = default; + AddParticipantResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = JoinCallResponse.DeserializeJoinCallResponse(document.RootElement); + value = AddParticipantResult.DeserializeAddParticipantResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -168,133 +136,94 @@ public Response JoinCall(string conversationId, CommunicationI } } - internal HttpMessage CreatePlayAudioRequest(string conversationId, string audioFileUri, bool? loop, string operationContext, string audioFileId, string callbackUri) + internal HttpMessage CreateRemoveParticipantRequest(string serverCallId, string participantId) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Post; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); - uri.AppendPath("/calling/conversations/", false); - uri.AppendPath(conversationId, true); - uri.AppendPath("/PlayAudio", false); + uri.AppendPath("/calling/serverCalls/", false); + uri.AppendPath(serverCallId, true); + uri.AppendPath("/participants/", false); + uri.AppendPath(participantId, true); uri.AppendQuery("api-version", apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var model = new PlayAudioRequest() - { - AudioFileUri = audioFileUri, - Loop = loop, - OperationContext = operationContext, - AudioFileId = audioFileId, - CallbackUri = callbackUri - }; - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(model); - request.Content = content; return message; } - /// Play audio in a call. - /// The conversation id which can be guid or encoded cs url. - /// - /// The media resource uri of the play audio request. - /// - /// Currently only Wave file (.wav) format audio prompts are supported. - /// - /// More specifically, the audio content in the wave file must be mono (single-channel), - /// - /// 16-bit samples with a 16,000 (16KHz) sampling rate. - /// - /// The flag indicating whether audio file needs to be played in loop or not. - /// The value to identify context of the operation. - /// An id for the media in the AudioFileUri, using which we cache the media resource. - /// The callback Uri to receive PlayAudio status notifications. + /// Remove participant from the call. + /// Server call id. + /// Participant id. /// The cancellation token to use. - /// is null. - public async Task> PlayAudioAsync(string conversationId, string audioFileUri = null, bool? loop = null, string operationContext = null, string audioFileId = null, string callbackUri = null, CancellationToken cancellationToken = default) + /// or is null. + public async Task RemoveParticipantAsync(string serverCallId, string participantId, CancellationToken cancellationToken = default) { - if (conversationId == null) + if (serverCallId == null) + { + throw new ArgumentNullException(nameof(serverCallId)); + } + if (participantId == null) { - throw new ArgumentNullException(nameof(conversationId)); + throw new ArgumentNullException(nameof(participantId)); } - using var message = CreatePlayAudioRequest(conversationId, audioFileUri, loop, operationContext, audioFileId, callbackUri); + using var message = CreateRemoveParticipantRequest(serverCallId, participantId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 202: - { - PlayAudioResponse value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = PlayAudioResponse.DeserializePlayAudioResponse(document.RootElement); - return Response.FromValue(value, message.Response); - } + return message.Response; default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } } - /// Play audio in a call. - /// The conversation id which can be guid or encoded cs url. - /// - /// The media resource uri of the play audio request. - /// - /// Currently only Wave file (.wav) format audio prompts are supported. - /// - /// More specifically, the audio content in the wave file must be mono (single-channel), - /// - /// 16-bit samples with a 16,000 (16KHz) sampling rate. - /// - /// The flag indicating whether audio file needs to be played in loop or not. - /// The value to identify context of the operation. - /// An id for the media in the AudioFileUri, using which we cache the media resource. - /// The callback Uri to receive PlayAudio status notifications. + /// Remove participant from the call. + /// Server call id. + /// Participant id. /// The cancellation token to use. - /// is null. - public Response PlayAudio(string conversationId, string audioFileUri = null, bool? loop = null, string operationContext = null, string audioFileId = null, string callbackUri = null, CancellationToken cancellationToken = default) + /// or is null. + public Response RemoveParticipant(string serverCallId, string participantId, CancellationToken cancellationToken = default) { - if (conversationId == null) + if (serverCallId == null) + { + throw new ArgumentNullException(nameof(serverCallId)); + } + if (participantId == null) { - throw new ArgumentNullException(nameof(conversationId)); + throw new ArgumentNullException(nameof(participantId)); } - using var message = CreatePlayAudioRequest(conversationId, audioFileUri, loop, operationContext, audioFileId, callbackUri); + using var message = CreateRemoveParticipantRequest(serverCallId, participantId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 202: - { - PlayAudioResponse value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = PlayAudioResponse.DeserializePlayAudioResponse(document.RootElement); - return Response.FromValue(value, message.Response); - } + return message.Response; default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } } - internal HttpMessage CreateInviteParticipantsRequest(string conversationId, IEnumerable participants, PhoneNumberIdentifierModel alternateCallerId, string operationContext, string callbackUri) + internal HttpMessage CreateStartRecordingRequest(string serverCallId, string recordingStateCallbackUri) { var message = _pipeline.CreateMessage(); var request = message.Request; request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); - uri.AppendPath("/calling/conversations/", false); - uri.AppendPath(conversationId, true); - uri.AppendPath("/participants", false); + uri.AppendPath("/calling/serverCalls/", false); + uri.AppendPath(serverCallId, true); + uri.AppendPath("/recordings", false); uri.AppendQuery("api-version", apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - var model = new InviteParticipantsRequestInternal(participants.ToList()) + var model = new StartCallRecordingRequest() { - AlternateCallerId = alternateCallerId, - OperationContext = operationContext, - CallbackUri = callbackUri + RecordingStateCallbackUri = recordingStateCallbackUri }; var content = new Utf8JsonRequestContent(); content.JsonWriter.WriteObjectValue(model); @@ -302,332 +231,321 @@ internal HttpMessage CreateInviteParticipantsRequest(string conversationId, IEnu return message; } - /// Invite participants to the call. - /// Conversation id. - /// The list of participants to be added to the call. - /// The alternate identity of source participant. - /// The operation context. - /// The callback URI. + /// Start recording of the call. + /// The server call id. + /// The uri to send notifications to. /// The cancellation token to use. - /// or is null. - public async Task InviteParticipantsAsync(string conversationId, IEnumerable participants, PhoneNumberIdentifierModel alternateCallerId = null, string operationContext = null, string callbackUri = null, CancellationToken cancellationToken = default) + /// is null. + public async Task> StartRecordingAsync(string serverCallId, string recordingStateCallbackUri = null, CancellationToken cancellationToken = default) { - if (conversationId == null) - { - throw new ArgumentNullException(nameof(conversationId)); - } - if (participants == null) + if (serverCallId == null) { - throw new ArgumentNullException(nameof(participants)); + throw new ArgumentNullException(nameof(serverCallId)); } - using var message = CreateInviteParticipantsRequest(conversationId, participants, alternateCallerId, operationContext, callbackUri); + using var message = CreateStartRecordingRequest(serverCallId, recordingStateCallbackUri); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { - case 202: - return message.Response; + case 200: + { + StartCallRecordingResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = StartCallRecordingResult.DeserializeStartCallRecordingResult(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } } - /// Invite participants to the call. - /// Conversation id. - /// The list of participants to be added to the call. - /// The alternate identity of source participant. - /// The operation context. - /// The callback URI. + /// Start recording of the call. + /// The server call id. + /// The uri to send notifications to. /// The cancellation token to use. - /// or is null. - public Response InviteParticipants(string conversationId, IEnumerable participants, PhoneNumberIdentifierModel alternateCallerId = null, string operationContext = null, string callbackUri = null, CancellationToken cancellationToken = default) + /// is null. + public Response StartRecording(string serverCallId, string recordingStateCallbackUri = null, CancellationToken cancellationToken = default) { - if (conversationId == null) - { - throw new ArgumentNullException(nameof(conversationId)); - } - if (participants == null) + if (serverCallId == null) { - throw new ArgumentNullException(nameof(participants)); + throw new ArgumentNullException(nameof(serverCallId)); } - using var message = CreateInviteParticipantsRequest(conversationId, participants, alternateCallerId, operationContext, callbackUri); + using var message = CreateStartRecordingRequest(serverCallId, recordingStateCallbackUri); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { - case 202: - return message.Response; + case 200: + { + StartCallRecordingResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = StartCallRecordingResult.DeserializeStartCallRecordingResult(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } } - internal HttpMessage CreateRemoveParticipantRequest(string conversationId, string participantId) + internal HttpMessage CreateGetRecordingPropertiesRequest(string serverCallId, string recordingId) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Delete; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); - uri.AppendPath("/calling/conversations/", false); - uri.AppendPath(conversationId, true); - uri.AppendPath("/participants/", false); - uri.AppendPath(participantId, true); + uri.AppendPath("/calling/serverCalls/", false); + uri.AppendPath(serverCallId, true); + uri.AppendPath("/recordings/", false); + uri.AppendPath(recordingId, true); uri.AppendQuery("api-version", apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); return message; } - /// Remove participant from the call. - /// Conversation id. - /// Participant id. + /// Get call recording properties. + /// The server call id. + /// The recording id. /// The cancellation token to use. - /// or is null. - public async Task RemoveParticipantAsync(string conversationId, string participantId, CancellationToken cancellationToken = default) + /// or is null. + public async Task> GetRecordingPropertiesAsync(string serverCallId, string recordingId, CancellationToken cancellationToken = default) { - if (conversationId == null) + if (serverCallId == null) { - throw new ArgumentNullException(nameof(conversationId)); + throw new ArgumentNullException(nameof(serverCallId)); } - if (participantId == null) + if (recordingId == null) { - throw new ArgumentNullException(nameof(participantId)); + throw new ArgumentNullException(nameof(recordingId)); } - using var message = CreateRemoveParticipantRequest(conversationId, participantId); + using var message = CreateGetRecordingPropertiesRequest(serverCallId, recordingId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { - case 202: - return message.Response; + case 200: + { + CallRecordingProperties value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = CallRecordingProperties.DeserializeCallRecordingProperties(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } } - /// Remove participant from the call. - /// Conversation id. - /// Participant id. + /// Get call recording properties. + /// The server call id. + /// The recording id. /// The cancellation token to use. - /// or is null. - public Response RemoveParticipant(string conversationId, string participantId, CancellationToken cancellationToken = default) + /// or is null. + public Response GetRecordingProperties(string serverCallId, string recordingId, CancellationToken cancellationToken = default) { - if (conversationId == null) + if (serverCallId == null) { - throw new ArgumentNullException(nameof(conversationId)); + throw new ArgumentNullException(nameof(serverCallId)); } - if (participantId == null) + if (recordingId == null) { - throw new ArgumentNullException(nameof(participantId)); + throw new ArgumentNullException(nameof(recordingId)); } - using var message = CreateRemoveParticipantRequest(conversationId, participantId); + using var message = CreateGetRecordingPropertiesRequest(serverCallId, recordingId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { - case 202: - return message.Response; + case 200: + { + CallRecordingProperties value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = CallRecordingProperties.DeserializeCallRecordingProperties(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } } - internal HttpMessage CreateStartRecordingRequest(string conversationId, string recordingStateCallbackUri) + internal HttpMessage CreateStopRecordingRequest(string serverCallId, string recordingId) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Post; + request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); - uri.AppendPath("/calling/conversations/", false); - uri.AppendPath(conversationId, true); - uri.AppendPath("/recordings", false); + uri.AppendPath("/calling/serverCalls/", false); + uri.AppendPath(serverCallId, true); + uri.AppendPath("/recordings/", false); + uri.AppendPath(recordingId, true); uri.AppendQuery("api-version", apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var model = new StartCallRecordingRequest() - { - RecordingStateCallbackUri = recordingStateCallbackUri - }; - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(model); - request.Content = content; return message; } - /// Start call recording request. - /// Encoded conversation url. - /// The uri to send notifications to. + /// Stop recording the call. + /// The server call id. + /// The recording id. /// The cancellation token to use. - /// is null. - public async Task> StartRecordingAsync(string conversationId, string recordingStateCallbackUri = null, CancellationToken cancellationToken = default) + /// or is null. + public async Task StopRecordingAsync(string serverCallId, string recordingId, CancellationToken cancellationToken = default) { - if (conversationId == null) + if (serverCallId == null) + { + throw new ArgumentNullException(nameof(serverCallId)); + } + if (recordingId == null) { - throw new ArgumentNullException(nameof(conversationId)); + throw new ArgumentNullException(nameof(recordingId)); } - using var message = CreateStartRecordingRequest(conversationId, recordingStateCallbackUri); + using var message = CreateStopRecordingRequest(serverCallId, recordingId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - { - StartCallRecordingResponse value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = StartCallRecordingResponse.DeserializeStartCallRecordingResponse(document.RootElement); - return Response.FromValue(value, message.Response); - } + return message.Response; default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } } - /// Start call recording request. - /// Encoded conversation url. - /// The uri to send notifications to. + /// Stop recording the call. + /// The server call id. + /// The recording id. /// The cancellation token to use. - /// is null. - public Response StartRecording(string conversationId, string recordingStateCallbackUri = null, CancellationToken cancellationToken = default) + /// or is null. + public Response StopRecording(string serverCallId, string recordingId, CancellationToken cancellationToken = default) { - if (conversationId == null) + if (serverCallId == null) { - throw new ArgumentNullException(nameof(conversationId)); + throw new ArgumentNullException(nameof(serverCallId)); + } + if (recordingId == null) + { + throw new ArgumentNullException(nameof(recordingId)); } - using var message = CreateStartRecordingRequest(conversationId, recordingStateCallbackUri); + using var message = CreateStopRecordingRequest(serverCallId, recordingId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - { - StartCallRecordingResponse value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = StartCallRecordingResponse.DeserializeStartCallRecordingResponse(document.RootElement); - return Response.FromValue(value, message.Response); - } + return message.Response; default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } } - internal HttpMessage CreateRecordingStateRequest(string conversationId, string recordingId) + internal HttpMessage CreatePauseRecordingRequest(string serverCallId, string recordingId) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Get; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); - uri.AppendPath("/calling/conversations/", false); - uri.AppendPath(conversationId, true); + uri.AppendPath("/calling/serverCalls/", false); + uri.AppendPath(serverCallId, true); uri.AppendPath("/recordings/", false); uri.AppendPath(recordingId, true); + uri.AppendPath("/:pause", false); uri.AppendQuery("api-version", apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); return message; } - /// Get call recording state. - /// Encoded conversation url. - /// Recording id. + /// Pause recording the call. + /// The server call id. + /// The recording id. /// The cancellation token to use. - /// or is null. - public async Task> RecordingStateAsync(string conversationId, string recordingId, CancellationToken cancellationToken = default) + /// or is null. + public async Task PauseRecordingAsync(string serverCallId, string recordingId, CancellationToken cancellationToken = default) { - if (conversationId == null) + if (serverCallId == null) { - throw new ArgumentNullException(nameof(conversationId)); + throw new ArgumentNullException(nameof(serverCallId)); } if (recordingId == null) { throw new ArgumentNullException(nameof(recordingId)); } - using var message = CreateRecordingStateRequest(conversationId, recordingId); + using var message = CreatePauseRecordingRequest(serverCallId, recordingId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - { - GetCallRecordingStateResponse value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = GetCallRecordingStateResponse.DeserializeGetCallRecordingStateResponse(document.RootElement); - return Response.FromValue(value, message.Response); - } + return message.Response; default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } } - /// Get call recording state. - /// Encoded conversation url. - /// Recording id. + /// Pause recording the call. + /// The server call id. + /// The recording id. /// The cancellation token to use. - /// or is null. - public Response RecordingState(string conversationId, string recordingId, CancellationToken cancellationToken = default) + /// or is null. + public Response PauseRecording(string serverCallId, string recordingId, CancellationToken cancellationToken = default) { - if (conversationId == null) + if (serverCallId == null) { - throw new ArgumentNullException(nameof(conversationId)); + throw new ArgumentNullException(nameof(serverCallId)); } if (recordingId == null) { throw new ArgumentNullException(nameof(recordingId)); } - using var message = CreateRecordingStateRequest(conversationId, recordingId); + using var message = CreatePauseRecordingRequest(serverCallId, recordingId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - { - GetCallRecordingStateResponse value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = GetCallRecordingStateResponse.DeserializeGetCallRecordingStateResponse(document.RootElement); - return Response.FromValue(value, message.Response); - } + return message.Response; default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } } - internal HttpMessage CreateStopRecordingRequest(string conversationId, string recordingId) + internal HttpMessage CreateResumeRecordingRequest(string serverCallId, string recordingId) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Delete; + request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); - uri.AppendPath("/calling/conversations/", false); - uri.AppendPath(conversationId, true); + uri.AppendPath("/calling/serverCalls/", false); + uri.AppendPath(serverCallId, true); uri.AppendPath("/recordings/", false); uri.AppendPath(recordingId, true); + uri.AppendPath("/:resume", false); uri.AppendQuery("api-version", apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); return message; } - /// Stop recording a call. - /// Encoded conversation url. - /// Recording id. + /// Resume recording the call. + /// The server call id. + /// The recording id. /// The cancellation token to use. - /// or is null. - public async Task StopRecordingAsync(string conversationId, string recordingId, CancellationToken cancellationToken = default) + /// or is null. + public async Task ResumeRecordingAsync(string serverCallId, string recordingId, CancellationToken cancellationToken = default) { - if (conversationId == null) + if (serverCallId == null) { - throw new ArgumentNullException(nameof(conversationId)); + throw new ArgumentNullException(nameof(serverCallId)); } if (recordingId == null) { throw new ArgumentNullException(nameof(recordingId)); } - using var message = CreateStopRecordingRequest(conversationId, recordingId); + using var message = CreateResumeRecordingRequest(serverCallId, recordingId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -638,23 +556,23 @@ public async Task StopRecordingAsync(string conversationId, string rec } } - /// Stop recording a call. - /// Encoded conversation url. - /// Recording id. + /// Resume recording the call. + /// The server call id. + /// The recording id. /// The cancellation token to use. - /// or is null. - public Response StopRecording(string conversationId, string recordingId, CancellationToken cancellationToken = default) + /// or is null. + public Response ResumeRecording(string serverCallId, string recordingId, CancellationToken cancellationToken = default) { - if (conversationId == null) + if (serverCallId == null) { - throw new ArgumentNullException(nameof(conversationId)); + throw new ArgumentNullException(nameof(serverCallId)); } if (recordingId == null) { throw new ArgumentNullException(nameof(recordingId)); } - using var message = CreateStopRecordingRequest(conversationId, recordingId); + using var message = CreateResumeRecordingRequest(serverCallId, recordingId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -665,145 +583,228 @@ public Response StopRecording(string conversationId, string recordingId, Cancell } } - internal HttpMessage CreatePauseRecordingRequest(string conversationId, string recordingId) + internal HttpMessage CreateJoinCallRequest(string serverCallId, CommunicationIdentifierModel source, string callbackUri, string subject, IEnumerable requestedMediaTypes, IEnumerable requestedCallEvents) { var message = _pipeline.CreateMessage(); var request = message.Request; request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); - uri.AppendPath("/calling/conversations/", false); - uri.AppendPath(conversationId, true); - uri.AppendPath("/recordings/", false); - uri.AppendPath(recordingId, true); - uri.AppendPath("/Pause", false); + uri.AppendPath("/calling/serverCalls/", false); + uri.AppendPath(serverCallId, true); + uri.AppendPath("/:join", false); uri.AppendQuery("api-version", apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + JoinCallRequestInternal joinCallRequestInternal = new JoinCallRequestInternal(source, callbackUri) + { + Subject = subject + }; + if (requestedMediaTypes != null) + { + foreach (var value in requestedMediaTypes) + { + joinCallRequestInternal.RequestedMediaTypes.Add(value); + } + } + if (requestedCallEvents != null) + { + foreach (var value in requestedCallEvents) + { + joinCallRequestInternal.RequestedCallEvents.Add(value); + } + } + var model = joinCallRequestInternal; + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(model); + request.Content = content; return message; } - /// Pause recording a call. - /// Encoded conversation url. - /// Recording id. + /// Join a call. + /// The server call id. + /// The source of the call. + /// The callback URI. + /// The subject. + /// The requested modalities. + /// The requested call events to subscribe to. /// The cancellation token to use. - /// or is null. - public async Task PauseRecordingAsync(string conversationId, string recordingId, CancellationToken cancellationToken = default) + /// , , or is null. + public async Task> JoinCallAsync(string serverCallId, CommunicationIdentifierModel source, string callbackUri, string subject = null, IEnumerable requestedMediaTypes = null, IEnumerable requestedCallEvents = null, CancellationToken cancellationToken = default) { - if (conversationId == null) + if (serverCallId == null) { - throw new ArgumentNullException(nameof(conversationId)); + throw new ArgumentNullException(nameof(serverCallId)); } - if (recordingId == null) + if (source == null) { - throw new ArgumentNullException(nameof(recordingId)); + throw new ArgumentNullException(nameof(source)); + } + if (callbackUri == null) + { + throw new ArgumentNullException(nameof(callbackUri)); } - using var message = CreatePauseRecordingRequest(conversationId, recordingId); + using var message = CreateJoinCallRequest(serverCallId, source, callbackUri, subject, requestedMediaTypes, requestedCallEvents); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { - case 200: - return message.Response; + case 202: + { + JoinCallResultInternal value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = JoinCallResultInternal.DeserializeJoinCallResultInternal(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } } - /// Pause recording a call. - /// Encoded conversation url. - /// Recording id. + /// Join a call. + /// The server call id. + /// The source of the call. + /// The callback URI. + /// The subject. + /// The requested modalities. + /// The requested call events to subscribe to. /// The cancellation token to use. - /// or is null. - public Response PauseRecording(string conversationId, string recordingId, CancellationToken cancellationToken = default) + /// , , or is null. + public Response JoinCall(string serverCallId, CommunicationIdentifierModel source, string callbackUri, string subject = null, IEnumerable requestedMediaTypes = null, IEnumerable requestedCallEvents = null, CancellationToken cancellationToken = default) { - if (conversationId == null) + if (serverCallId == null) { - throw new ArgumentNullException(nameof(conversationId)); + throw new ArgumentNullException(nameof(serverCallId)); } - if (recordingId == null) + if (source == null) { - throw new ArgumentNullException(nameof(recordingId)); + throw new ArgumentNullException(nameof(source)); + } + if (callbackUri == null) + { + throw new ArgumentNullException(nameof(callbackUri)); } - using var message = CreatePauseRecordingRequest(conversationId, recordingId); + using var message = CreateJoinCallRequest(serverCallId, source, callbackUri, subject, requestedMediaTypes, requestedCallEvents); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { - case 200: - return message.Response; + case 202: + { + JoinCallResultInternal value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = JoinCallResultInternal.DeserializeJoinCallResultInternal(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } } - internal HttpMessage CreateResumeRecordingRequest(string conversationId, string recordingId) + internal HttpMessage CreatePlayAudioRequest(string serverCallId, string audioFileUri, bool? loop, string operationContext, string audioFileId, string callbackUri) { var message = _pipeline.CreateMessage(); var request = message.Request; request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(endpoint, false); - uri.AppendPath("/calling/conversations/", false); - uri.AppendPath(conversationId, true); - uri.AppendPath("/recordings/", false); - uri.AppendPath(recordingId, true); - uri.AppendPath("/Resume", false); + uri.AppendPath("/calling/serverCalls/", false); + uri.AppendPath(serverCallId, true); + uri.AppendPath("/:playAudio", false); uri.AppendQuery("api-version", apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var model = new PlayAudioRequest() + { + AudioFileUri = audioFileUri, + Loop = loop, + OperationContext = operationContext, + AudioFileId = audioFileId, + CallbackUri = callbackUri + }; + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(model); + request.Content = content; return message; } - /// Resume recording a call. - /// Encoded conversation url. - /// Recording id. + /// Play audio in the call. + /// The server call id. + /// + /// The media resource uri of the play audio request. + /// + /// Currently only Wave file (.wav) format audio prompts are supported. + /// + /// More specifically, the audio content in the wave file must be mono (single-channel), + /// + /// 16-bit samples with a 16,000 (16KHz) sampling rate. + /// + /// The flag indicating whether audio file needs to be played in loop or not. + /// The value to identify context of the operation. + /// An id for the media in the AudioFileUri, using which we cache the media resource. + /// The callback Uri to receive PlayAudio status notifications. /// The cancellation token to use. - /// or is null. - public async Task ResumeRecordingAsync(string conversationId, string recordingId, CancellationToken cancellationToken = default) + /// is null. + public async Task> PlayAudioAsync(string serverCallId, string audioFileUri = null, bool? loop = null, string operationContext = null, string audioFileId = null, string callbackUri = null, CancellationToken cancellationToken = default) { - if (conversationId == null) + if (serverCallId == null) { - throw new ArgumentNullException(nameof(conversationId)); - } - if (recordingId == null) - { - throw new ArgumentNullException(nameof(recordingId)); + throw new ArgumentNullException(nameof(serverCallId)); } - using var message = CreateResumeRecordingRequest(conversationId, recordingId); + using var message = CreatePlayAudioRequest(serverCallId, audioFileUri, loop, operationContext, audioFileId, callbackUri); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { - case 200: - return message.Response; + case 202: + { + PlayAudioResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = PlayAudioResult.DeserializePlayAudioResult(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); } } - /// Resume recording a call. - /// Encoded conversation url. - /// Recording id. + /// Play audio in the call. + /// The server call id. + /// + /// The media resource uri of the play audio request. + /// + /// Currently only Wave file (.wav) format audio prompts are supported. + /// + /// More specifically, the audio content in the wave file must be mono (single-channel), + /// + /// 16-bit samples with a 16,000 (16KHz) sampling rate. + /// + /// The flag indicating whether audio file needs to be played in loop or not. + /// The value to identify context of the operation. + /// An id for the media in the AudioFileUri, using which we cache the media resource. + /// The callback Uri to receive PlayAudio status notifications. /// The cancellation token to use. - /// or is null. - public Response ResumeRecording(string conversationId, string recordingId, CancellationToken cancellationToken = default) + /// is null. + public Response PlayAudio(string serverCallId, string audioFileUri = null, bool? loop = null, string operationContext = null, string audioFileId = null, string callbackUri = null, CancellationToken cancellationToken = default) { - if (conversationId == null) - { - throw new ArgumentNullException(nameof(conversationId)); - } - if (recordingId == null) + if (serverCallId == null) { - throw new ArgumentNullException(nameof(recordingId)); + throw new ArgumentNullException(nameof(serverCallId)); } - using var message = CreateResumeRecordingRequest(conversationId, recordingId); + using var message = CreatePlayAudioRequest(serverCallId, audioFileUri, loop, operationContext, audioFileId, callbackUri); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { - case 200: - return message.Response; + case 202: + { + PlayAudioResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = PlayAudioResult.DeserializePlayAudioResult(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw _clientDiagnostics.CreateRequestFailedException(message.Response); } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Models/CallState.cs b/sdk/communication/Azure.Communication.CallingServer/src/Models/CallConnectionState.cs similarity index 59% rename from sdk/communication/Azure.Communication.CallingServer/src/Models/CallState.cs rename to sdk/communication/Azure.Communication.CallingServer/src/Models/CallConnectionState.cs index bc33da63dffd..0175802d929d 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Models/CallState.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Models/CallConnectionState.cs @@ -8,8 +8,8 @@ namespace Azure.Communication.CallingServer /// /// The states of a call. /// - [CodeGenModel("CallState", Usage = new string[] { "input", "output" }, Formats = new string[] { "json" })] - public readonly partial struct CallState + [CodeGenModel("CallConnectionState", Usage = new string[] { "output" }, Formats = new string[] { "json" })] + public readonly partial struct CallConnectionState { } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Models/CommunicationParticipant.cs b/sdk/communication/Azure.Communication.CallingServer/src/Models/CallParticipant.cs similarity index 52% rename from sdk/communication/Azure.Communication.CallingServer/src/Models/CommunicationParticipant.cs rename to sdk/communication/Azure.Communication.CallingServer/src/Models/CallParticipant.cs index 7ce1548733bd..938623f882f4 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Models/CommunicationParticipant.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Models/CallParticipant.cs @@ -3,19 +3,14 @@ namespace Azure.Communication.CallingServer { - /// Class to represent entry in roster. - public class CommunicationParticipant + /// The participant in a call. + public class CallParticipant { - /// Initializes a new instance of CommunicationParticipant. - public CommunicationParticipant() - { - } - - /// Initializes a new instance of CommunicationParticipant. + /// Initializes a new instance of CallParticipant. /// The communication identifier. /// Participant Id. /// Is participant muted. - public CommunicationParticipant(CommunicationIdentifier identifier, string participantId, bool? isMuted) + internal CallParticipant(CommunicationIdentifier identifier, string participantId, bool isMuted) { Identifier = identifier; ParticipantId = participantId; @@ -23,12 +18,12 @@ public CommunicationParticipant(CommunicationIdentifier identifier, string parti } /// The communication identifier. - public CommunicationIdentifier Identifier { get; set; } + public CommunicationIdentifier Identifier { get; } /// Participant Id. - public string ParticipantId { get; set; } + public string ParticipantId { get; } /// Is participant muted. - public bool? IsMuted { get; set; } + public bool IsMuted { get; } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Models/CommunicationParticipantInternal.cs b/sdk/communication/Azure.Communication.CallingServer/src/Models/CallParticipantInternal.cs similarity index 58% rename from sdk/communication/Azure.Communication.CallingServer/src/Models/CommunicationParticipantInternal.cs rename to sdk/communication/Azure.Communication.CallingServer/src/Models/CallParticipantInternal.cs index 54ecdbcdfd2f..781dcb69ceda 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Models/CommunicationParticipantInternal.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Models/CallParticipantInternal.cs @@ -8,8 +8,8 @@ namespace Azure.Communication.CallingServer /// /// The participant in a call. /// - [CodeGenModel("CommunicationParticipant", Usage = new string[] { "output" }, Formats = new string[] { "json" })] - internal partial class CommunicationParticipantInternal + [CodeGenModel("CallParticipant", Usage = new string[] { "output" }, Formats = new string[] { "json" })] + internal partial class CallParticipantInternal { } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Models/CallingServerModelFactory.cs b/sdk/communication/Azure.Communication.CallingServer/src/Models/CallingServerModelFactory.cs new file mode 100644 index 000000000000..e37cf7fd149b --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/Models/CallingServerModelFactory.cs @@ -0,0 +1,15 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; + +namespace Azure.Communication.CallingServer.Models +{ + /// + /// Calling server model factory + /// + [CodeGenModel("AzureCommunicationServicesModelFactory")] + public partial class CallingServerModelFactory + { + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Models/CreateCallOptions.cs b/sdk/communication/Azure.Communication.CallingServer/src/Models/CreateCallOptions.cs index 6740661ee3c4..1f3008b4b5e0 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Models/CreateCallOptions.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Models/CreateCallOptions.cs @@ -20,25 +20,25 @@ public class CreateCallOptions /// The callback URI. public Uri CallbackUri { get; } - /// The requested modalities. - public IList RequestedModalities { get; } + /// The requested media types. + public IList RequestedMediaTypes { get; } /// The requested call events to subscribe to. public IList RequestedCallEvents { get; } /// Initializes a new instance of CreateCallOptions. /// The callback URI. - /// The requested modalities. + /// The requested media types. /// The requested call events to subscribe to. - /// , , or is null. - public CreateCallOptions(Uri callbackUri, IEnumerable requestedModalities, IEnumerable requestedCallEvents) + /// , , or is null. + public CreateCallOptions(Uri callbackUri, IEnumerable requestedMediaTypes, IEnumerable requestedCallEvents) { Argument.AssertNotNull(callbackUri, nameof(callbackUri)); - Argument.AssertNotNull(requestedModalities, nameof(requestedModalities)); + Argument.AssertNotNull(requestedMediaTypes, nameof(requestedMediaTypes)); Argument.AssertNotNull(requestedCallEvents, nameof(requestedCallEvents)); CallbackUri = callbackUri; - RequestedModalities = requestedModalities.ToList(); + RequestedMediaTypes = requestedMediaTypes.ToList(); RequestedCallEvents = requestedCallEvents.ToList(); } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Models/CreateCallResultInternal.cs b/sdk/communication/Azure.Communication.CallingServer/src/Models/CreateCallResultInternal.cs new file mode 100644 index 000000000000..8a5e2b7913da --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/Models/CreateCallResultInternal.cs @@ -0,0 +1,12 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; + +namespace Azure.Communication.CallingServer +{ + [CodeGenModel("CreateCallResult")] + internal partial class CreateCallResultInternal + { + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/AddParticipantResultEvent.cs b/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/AddParticipantResultEvent.cs new file mode 100644 index 000000000000..29ed58bab1cb --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/AddParticipantResultEvent.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Communication.CallingServer +{ + /// + /// The added participants result event. + /// + [CodeGenModel("AddParticipantResultEvent", Usage = new string[] { "output" }, Formats = new string[] { "json" })] + public partial class AddParticipantResultEvent : CallingServerEventBase + { + /// + /// Deserialize event. + /// + /// The json content. + /// The new object. + public static AddParticipantResultEvent Deserialize(string content) + { + using var document = JsonDocument.Parse(content); + JsonElement element = document.RootElement; + + return DeserializeAddParticipantResultEvent(element); + } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/CallConnectionStateChangedEvent.cs b/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/CallConnectionStateChangedEvent.cs new file mode 100644 index 000000000000..10f8ca12a864 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/CallConnectionStateChangedEvent.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Communication.CallingServer +{ + /// + /// The call connection state change event. + /// + [CodeGenModel("CallConnectionStateChangedEvent", Usage = new string[] { "output" }, Formats = new string[] { "json" })] + public partial class CallConnectionStateChangedEvent : CallingServerEventBase + { + /// + /// Deserialize event. + /// + /// The json content. + /// The new object. + public static CallConnectionStateChangedEvent Deserialize(string content) + { + using var document = JsonDocument.Parse(content); + JsonElement element = document.RootElement; + + return DeserializeCallConnectionStateChangedEvent(element); + } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/CallLegStateChangedEvent.cs b/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/CallLegStateChangedEvent.cs deleted file mode 100644 index 8c6289d39b82..000000000000 --- a/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/CallLegStateChangedEvent.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System.Text.Json; -using Azure.Core; - -namespace Azure.Communication.CallingServer -{ - /// - /// The call leg state change event. - /// - [CodeGenModel("CallLegStateChangedEvent", Usage = new string[] { "input, output" }, Formats = new string[] { "json" })] - public partial class CallLegStateChangedEvent : CallingServerEventBase - { - /// - /// Deserialize event. - /// - /// The json content. - /// The new object. - public static CallLegStateChangedEvent Deserialize(string content) - { - using var document = JsonDocument.Parse(content); - JsonElement element = document.RootElement; - - return DeserializeCallLegStateChangedEvent(element); - } - } -} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/CallRecordingStateChangeEvent.cs b/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/CallRecordingStateChangeEvent.cs index 1b84ea2dd947..81ca894900d5 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/CallRecordingStateChangeEvent.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/CallRecordingStateChangeEvent.cs @@ -9,7 +9,7 @@ namespace Azure.Communication.CallingServer /// /// The call recording state change event. /// - [CodeGenModel("CallRecordingStateChangeEvent", Usage = new string[] { "input, output" }, Formats = new string[] { "json" })] + [CodeGenModel("CallRecordingStateChangeEvent", Usage = new string[] { "output" }, Formats = new string[] { "json" })] public partial class CallRecordingStateChangeEvent : CallingServerEventBase { /// diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/CallingServerEventType.cs b/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/CallingServerEventType.cs index 8e17723f93bc..ecb6b39238df 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/CallingServerEventType.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/CallingServerEventType.cs @@ -22,17 +22,17 @@ public CallingServerEventType(string value) _value = value ?? throw new ArgumentNullException(nameof(value)); } - internal const string CallLegStateChangedEventValue = "Microsoft.Communication.CallLegStateChanged"; + internal const string CallConnectionStateChangedEventValue = "Microsoft.Communication.CallConnectionStateChanged"; internal const string ToneReceivedEventValue = "Microsoft.Communication.DtmfReceived"; internal const string PlayAudioResultEventValue = "Microsoft.Communication.PlayAudioResult"; internal const string CallRecordingStateChangeEventValue = "Microsoft.Communication.CallRecordingStateChanged"; - internal const string InviteParticipantsResultEventValue = "Microsoft.Communication.InviteParticipantResult"; + internal const string AddParticipantResultEventValue = "Microsoft.Communication.AddParticipantResult"; internal const string ParticipantsUpdatedEventValue = "Microsoft.Communication.ParticipantsUpdated"; /// - /// The call leg state change event type. + /// The call connection state change event type. /// - public static CallingServerEventType CallLegStateChangedEvent { get; } = new CallingServerEventType(CallLegStateChangedEventValue); + public static CallingServerEventType CallConnectionStateChangedEvent { get; } = new CallingServerEventType(CallConnectionStateChangedEventValue); /// /// The subscribe to tone event type. @@ -50,9 +50,9 @@ public CallingServerEventType(string value) public static CallingServerEventType CallRecordingStateChangeEvent { get; } = new CallingServerEventType(CallRecordingStateChangeEventValue); /// - /// The invited participants result event type. + /// The add participant result event type. /// - public static CallingServerEventType InviteParticipantsResultEvent { get; } = new CallingServerEventType(InviteParticipantsResultEventValue); + public static CallingServerEventType AddParticipantResultEvent { get; } = new CallingServerEventType(AddParticipantResultEventValue); /// /// The call state change event type. @@ -88,7 +88,7 @@ public bool Equals(CallingServerEventType other) [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) { - return obj is CallState && Equals((CallingServerEventType)obj); + return obj is CallingServerEventType && Equals((CallingServerEventType)obj); } /// diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/InviteParticipantsResultEvent.cs b/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/InviteParticipantsResultEvent.cs deleted file mode 100644 index 191c0cf224ad..000000000000 --- a/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/InviteParticipantsResultEvent.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System.Text.Json; -using Azure.Core; - -namespace Azure.Communication.CallingServer -{ - /// - /// The invited participants result event. - /// - [CodeGenModel("InviteParticipantsResultEvent", Usage = new string[] { "input, output" }, Formats = new string[] { "json" })] - public partial class InviteParticipantsResultEvent : CallingServerEventBase - { - /// - /// Deserialize event. - /// - /// The json content. - /// The new object. - public static InviteParticipantsResultEvent Deserialize(string content) - { - using var document = JsonDocument.Parse(content); - JsonElement element = document.RootElement; - - return DeserializeInviteParticipantsResultEvent(element); - } - } -} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/ParticipantsUpdatedEvent.cs b/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/ParticipantsUpdatedEvent.cs index a96c5490cfde..4e6293852ee3 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/ParticipantsUpdatedEvent.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/ParticipantsUpdatedEvent.cs @@ -12,9 +12,13 @@ namespace Azure.Communication.CallingServer /// public class ParticipantsUpdatedEvent : CallingServerEventBase { - /// Initializes a new instance of ParticipantsUpdatedEventInternal. - public ParticipantsUpdatedEvent() + /// Initializes a new instance of ParticipantsUpdatedEvent. + /// The call connection id. + /// The list of participants. + internal ParticipantsUpdatedEvent(string callConnectionId, IEnumerable participants) { + CallConnectionId = callConnectionId; + Participants = participants; } /// @@ -28,18 +32,15 @@ public static ParticipantsUpdatedEvent Deserialize(string content) JsonElement element = document.RootElement; var participantsUpdatedEventInternal = ParticipantsUpdatedEventInternal.DeserializeParticipantsUpdatedEventInternal(element); + var callParticipants = participantsUpdatedEventInternal.Participants?.Select(x => new CallParticipant(identifier: CommunicationIdentifierSerializer.Deserialize(x.Identifier), isMuted: x.IsMuted, participantId: x.ParticipantId)); - return new ParticipantsUpdatedEvent - { - CallLegId = participantsUpdatedEventInternal.CallLegId, - Participants = participantsUpdatedEventInternal.Participants?.Select(x => new CommunicationParticipant { Identifier = CommunicationIdentifierSerializer.Deserialize(x.Identifier), IsMuted = x.IsMuted, ParticipantId = x.ParticipantId }) - }; + return new ParticipantsUpdatedEvent(participantsUpdatedEventInternal.CallConnectionId, callParticipants); } - /// The call leg.id. - public string CallLegId { get; set; } + /// The call connection id. + public string CallConnectionId { get; } /// The list of participants. - public IEnumerable Participants { get; set; } + public IEnumerable Participants { get; } } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/PlayAudioResultEvent.cs b/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/PlayAudioResultEvent.cs index 6521c7b799e5..c871bfab7f40 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/PlayAudioResultEvent.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/PlayAudioResultEvent.cs @@ -9,7 +9,7 @@ namespace Azure.Communication.CallingServer /// /// The play audio result event. /// - [CodeGenModel("PlayAudioResultEvent", Usage = new string[] { "input, output" }, Formats = new string[] { "json" })] + [CodeGenModel("PlayAudioResultEvent", Usage = new string[] { "output" }, Formats = new string[] { "json" })] public partial class PlayAudioResultEvent : CallingServerEventBase { /// diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/ToneReceivedEvent.cs b/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/ToneReceivedEvent.cs index cb209c5d8685..49aafc51de0e 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/ToneReceivedEvent.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Models/Events/ToneReceivedEvent.cs @@ -9,7 +9,7 @@ namespace Azure.Communication.CallingServer /// /// The subscribe to tone event /// - [CodeGenModel("ToneReceivedEvent", Usage = new string[] { "model", "input, output" }, Formats = new string[] { "json" })] + [CodeGenModel("ToneReceivedEvent", Usage = new string[] { "model", "output" }, Formats = new string[] { "json" })] public partial class ToneReceivedEvent : CallingServerEventBase { /// diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Models/JoinCallOptions.cs b/sdk/communication/Azure.Communication.CallingServer/src/Models/JoinCallOptions.cs index 3f00f13f4420..f52bb95e7041 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Models/JoinCallOptions.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Models/JoinCallOptions.cs @@ -17,25 +17,25 @@ public class JoinCallOptions /// The callback URI. public Uri CallbackUri { get; } - /// The requested modalities. - public IList RequestedModalities { get; } + /// The requested media types. + public IList RequestedMediaTypes { get; } /// The requested call events to subscribe to. public IList RequestedCallEvents { get; } /// Initializes a new instance of JoinCallOptions. /// The callback URI. - /// The requested modalities. + /// The requested media types. /// The requested call events to subscribe to. - /// , , or is null. - public JoinCallOptions(Uri callbackUri, IEnumerable requestedModalities, IEnumerable requestedCallEvents) + /// , , or is null. + public JoinCallOptions(Uri callbackUri, IEnumerable requestedMediaTypes, IEnumerable requestedCallEvents) { Argument.AssertNotNull(callbackUri, nameof(callbackUri)); - Argument.AssertNotNull(requestedModalities, nameof(requestedModalities)); + Argument.AssertNotNull(requestedMediaTypes, nameof(requestedMediaTypes)); Argument.AssertNotNull(requestedCallEvents, nameof(requestedCallEvents)); CallbackUri = callbackUri; - RequestedModalities = requestedModalities.ToList(); + RequestedMediaTypes = requestedMediaTypes.ToList(); RequestedCallEvents = requestedCallEvents.ToList(); } } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Models/JoinCallResultInternal.cs b/sdk/communication/Azure.Communication.CallingServer/src/Models/JoinCallResultInternal.cs new file mode 100644 index 000000000000..5a05ab52ef1a --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/Models/JoinCallResultInternal.cs @@ -0,0 +1,12 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; + +namespace Azure.Communication.CallingServer +{ + [CodeGenModel("JoinCallResult")] + internal partial class JoinCallResultInternal + { + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Models/ToneInfo.cs b/sdk/communication/Azure.Communication.CallingServer/src/Models/ToneInfo.cs index aa712ecc98c7..ad05aec9e750 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Models/ToneInfo.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Models/ToneInfo.cs @@ -8,7 +8,7 @@ namespace Azure.Communication.CallingServer /// /// The tone info /// - [CodeGenModel("ToneInfo", Usage = new[] { "input", "output" }, Formats = new[] { "json" })] + [CodeGenModel("ToneInfo", Usage = new[] { "output" }, Formats = new[] { "json" })] public partial class ToneInfo { } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Models/ToneValue.cs b/sdk/communication/Azure.Communication.CallingServer/src/Models/ToneValue.cs index dd8021414b35..665bd6758bda 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Models/ToneValue.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Models/ToneValue.cs @@ -8,7 +8,7 @@ namespace Azure.Communication.CallingServer /// /// The tone. /// - [CodeGenModel("ToneValue", Usage = new string[] { "input", "output" }, Formats = new string[] { "json" })] + [CodeGenModel("ToneValue", Usage = new string[] { "output" }, Formats = new string[] { "json" })] public readonly partial struct ToneValue { } diff --git a/sdk/communication/Azure.Communication.CallingServer/src/Properties/AssemblyInfo.cs b/sdk/communication/Azure.Communication.CallingServer/src/Properties/AssemblyInfo.cs index 6522e17d75cc..12a9c7421e7a 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/Properties/AssemblyInfo.cs +++ b/sdk/communication/Azure.Communication.CallingServer/src/Properties/AssemblyInfo.cs @@ -4,3 +4,4 @@ using System.Runtime.CompilerServices; [assembly: Azure.Core.AzureResourceProviderNamespace("Communication")] +[assembly: InternalsVisibleTo("Azure.Communication.CallingServer.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")] diff --git a/sdk/communication/Azure.Communication.CallingServer/src/ServerCall.cs b/sdk/communication/Azure.Communication.CallingServer/src/ServerCall.cs new file mode 100644 index 000000000000..204d2015f960 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/src/ServerCall.cs @@ -0,0 +1,455 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.Communication.CallingServer +{ + /// + /// The Azure Communication Services Server Call Client. + /// + public class ServerCall + { + private readonly ClientDiagnostics _clientDiagnostics; + internal ServerCallsRestClient RestClient { get; } + + /// + /// The server call id. + /// + internal virtual string ServerCallId { get; set; } + + /// Initializes a new instance of . + internal ServerCall(string serverCallId, ServerCallsRestClient serverCallRestClient, ClientDiagnostics clientDiagnostics) + { + ServerCallId = serverCallId; + RestClient = serverCallRestClient; + _clientDiagnostics = clientDiagnostics; + } + + /// Initializes a new instance of for mocking. + protected ServerCall() + { + ServerCallId = null; + _clientDiagnostics = null; + RestClient = null; + } + + /// Play audio in the call. + /// The uri of the audio file. + /// Tne id for the media in the AudioFileUri, using which we cache the media resource. + /// The callback Uri to receive PlayAudio status notifications. + /// The operation context. + /// The cancellation token to use. + /// The server returned an error. See for details returned from the server. + public virtual async Task> PlayAudioAsync(Uri audioFileUri, string audioFileId, Uri callbackUri, string operationContext = null, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ServerCall)}.{nameof(PlayAudio)}"); + scope.Start(); + try + { + // Currently looping media is not supported for out-call scenarios, thus setting it to false. + return await RestClient.PlayAudioAsync( + serverCallId: ServerCallId, + audioFileUri: audioFileUri?.AbsoluteUri, + loop: false, + audioFileId: audioFileId, + callbackUri: callbackUri?.AbsoluteUri, + operationContext: operationContext, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// Play audio in the call. + /// The uri of the audio file. + /// Tne id for the media in the AudioFileUri, using which we cache the media resource. + /// The callback Uri to receive PlayAudio status notifications. + /// The operation context. + /// The cancellation token to use. + /// The server returned an error. See for details returned from the server. + public virtual Response PlayAudio(Uri audioFileUri, string audioFileId, Uri callbackUri, string operationContext = null, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ServerCall)}.{nameof(PlayAudio)}"); + scope.Start(); + try + { + // Currently looping media is not supported for out-call scenarios, thus setting it to false. + return RestClient.PlayAudio( + serverCallId: ServerCallId, + audioFileUri: audioFileUri?.AbsoluteUri, + loop: false, + audioFileId: audioFileId, + callbackUri: callbackUri?.AbsoluteUri, + operationContext: operationContext, + cancellationToken: cancellationToken + ); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// + /// Add participant to the call. + /// + /// The identity of participant to be added to the call. + /// The callback uri to receive the notification. + /// The phone number to use when adding a pstn participant. + /// The operation context. + /// The cancellation token. + public virtual Response AddParticipant(CommunicationIdentifier participant, Uri callbackUri, string alternateCallerId = default, string operationContext = default, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ServerCall)}.{nameof(AddParticipant)}"); + scope.Start(); + try + { + Argument.AssertNotNull(participant, nameof(participant)); + + return RestClient.AddParticipant( + serverCallId: ServerCallId, + participant: CommunicationIdentifierSerializer.Serialize(participant), + alternateCallerId: string.IsNullOrEmpty(alternateCallerId) ? null : new PhoneNumberIdentifierModel(alternateCallerId), + callbackUri: callbackUri?.AbsoluteUri, + operationContext: operationContext, + cancellationToken: cancellationToken + ); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// + /// Add participant to the call. + /// + /// The identity of participant to be added to the call. + /// + /// The phone number to use when adding a pstn participant. + /// The operation context. + /// The cancellation token. + public virtual async Task> AddParticipantAsync(CommunicationIdentifier participant, Uri callbackUri, string alternateCallerId = default, string operationContext = default, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ServerCall)}.{nameof(AddParticipant)}"); + scope.Start(); + try + { + Argument.AssertNotNull(participant, nameof(participant)); + + return await RestClient.AddParticipantAsync( + serverCallId: ServerCallId, + participant: CommunicationIdentifierSerializer.Serialize(participant), + alternateCallerId: string.IsNullOrEmpty(alternateCallerId) ? null : new PhoneNumberIdentifierModel(alternateCallerId), + callbackUri: callbackUri?.AbsoluteUri, + operationContext: operationContext, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// + /// Remove participant from the call. + /// + /// The participant id. + /// The cancellation token. + public virtual Response RemoveParticipant(string participantId, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ServerCall)}.{nameof(RemoveParticipant)}"); + scope.Start(); + try + { + return RestClient.RemoveParticipant( + serverCallId: ServerCallId, + participantId: participantId, + cancellationToken: cancellationToken + ); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// + /// Remove participant from the call. + /// + /// The participant id. + /// The cancellation token. + public virtual async Task RemoveParticipantAsync(string participantId, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ServerCall)}.{nameof(RemoveParticipant)}"); + scope.Start(); + try + { + return await RestClient.RemoveParticipantAsync( + serverCallId: ServerCallId, + participantId: participantId, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// + /// Start recording of the call. + /// + /// The uri to send state change callbacks. + /// The cancellation token. + public virtual async Task> StartRecordingAsync(Uri recordingStateCallbackUri, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ServerCall)}.{nameof(StartRecording)}"); + scope.Start(); + try + { + return await RestClient.StartRecordingAsync( + serverCallId: ServerCallId, + recordingStateCallbackUri: recordingStateCallbackUri.AbsoluteUri, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// + /// Start recording of the call. + /// + /// The uri to send state change callbacks. + /// The cancellation token. + public virtual Response StartRecording(Uri recordingStateCallbackUri, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ServerCall)}.{nameof(StartRecording)}"); + scope.Start(); + try + { + return RestClient.StartRecording( + serverCallId: ServerCallId, + recordingStateCallbackUri: recordingStateCallbackUri.AbsoluteUri, + cancellationToken: cancellationToken + ); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// + /// Get the current recording state by recording id. + /// + /// The recording id to get the state of. + /// The cancellation token. + public virtual async Task> GetRecordingStateAsync(string recordingId, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ServerCall)}.{nameof(GetRecordingState)}"); + scope.Start(); + try + { + return await RestClient.GetRecordingPropertiesAsync( + serverCallId: ServerCallId, + recordingId: recordingId, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// + /// Get the current recording state by recording id. + /// + /// The recording id to get the state of. + /// The cancellation token. + public virtual Response GetRecordingState(string recordingId, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ServerCall)}.{nameof(GetRecordingState)}"); + scope.Start(); + try + { + return RestClient.GetRecordingProperties( + serverCallId: ServerCallId, + recordingId: recordingId, + cancellationToken: cancellationToken + ); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// + /// Stop recording of the call. + /// + /// The recording id to stop. + /// The cancellation token. + public virtual async Task StopRecordingAsync(string recordingId, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ServerCall)}.{nameof(StopRecording)}"); + scope.Start(); + try + { + return await RestClient.StopRecordingAsync( + serverCallId: ServerCallId, + recordingId: recordingId, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// + /// Stop recording of the call. + /// + /// The recording id to stop. + /// The cancellation token. + public virtual Response StopRecording(string recordingId, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ServerCall)}.{nameof(StopRecording)}"); + scope.Start(); + try + { + return RestClient.StopRecording( + serverCallId: ServerCallId, + recordingId: recordingId, + cancellationToken: cancellationToken + ); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// + /// Pause recording of the call. + /// + /// The recording id to pause. + /// The cancellation token. + public virtual async Task PauseRecordingAsync(string recordingId, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ServerCall)}.{nameof(PauseRecording)}"); + scope.Start(); + try + { + return await RestClient.PauseRecordingAsync( + serverCallId: ServerCallId, + recordingId: recordingId, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// + /// Pause recording of the call. + /// + /// The recording id to pause. + /// The cancellation token. + public virtual Response PauseRecording(string recordingId, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ServerCall)}.{nameof(PauseRecording)}"); + scope.Start(); + try + { + return RestClient.PauseRecording( + serverCallId: ServerCallId, + recordingId: recordingId, + cancellationToken: cancellationToken + ); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// + /// Resume recording of the call. + /// + /// The recording id to pause. + /// The cancellation token. + public virtual async Task ResumeRecordingAsync(string recordingId, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ServerCall)}.{nameof(ResumeRecording)}"); + scope.Start(); + try + { + return await RestClient.ResumeRecordingAsync( + serverCallId: ServerCallId, + recordingId: recordingId, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + + /// + /// resume recording of the call. + /// + /// The recording id to resume. + /// The cancellation token. + public virtual Response ResumeRecording(string recordingId, CancellationToken cancellationToken = default) + { + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(ServerCall)}.{nameof(ResumeRecording)}"); + scope.Start(); + try + { + return RestClient.ResumeRecording( + serverCallId: ServerCallId, + recordingId: recordingId, + cancellationToken: cancellationToken + ); + } + catch (Exception ex) + { + scope.Failed(ex); + throw; + } + } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/src/autorest.md b/sdk/communication/Azure.Communication.CallingServer/src/autorest.md index 065b6602448a..7f943bd1c644 100644 --- a/sdk/communication/Azure.Communication.CallingServer/src/autorest.md +++ b/sdk/communication/Azure.Communication.CallingServer/src/autorest.md @@ -8,15 +8,12 @@ If any of the new objects needs to be overwritten, add the required changes to t 3. Repeat 2 and 3 until the desided interface is reflected in the apiview.dev. -## General settings -> see https://aka.ms/autorest - -## Configuration -The following are the settings for generating this API with AutoRest. +### AutoRest Configuration +> see https://aka.ms/autorest ```yaml -tag: beta -input-file: https://github.com/Azure/azure-rest-api-specs/raw/9550e58c98dc0af9474d896493335bf0543b2b4d/specification/communication/data-plane/CallingServer/preview/2021-04-15-preview1/communicationservicescallingserver.json +require: + - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/b4b5fa5ee23f8cce9e1ade4a82076b4c34b25651/specification/communication/data-plane/CallingServer/readme.md payload-flattening-threshold: 10 clear-output-folder: true directive: diff --git a/sdk/communication/Azure.Communication.CallingServer/tests.yml b/sdk/communication/Azure.Communication.CallingServer/tests.yml index 6ba1986eb50f..fb84f5c27f25 100644 --- a/sdk/communication/Azure.Communication.CallingServer/tests.yml +++ b/sdk/communication/Azure.Communication.CallingServer/tests.yml @@ -15,7 +15,7 @@ extends: SubscriptionConfigurations: - $(sub-config-communication-int-test-resources-common) - $(sub-config-communication-int-test-resources-net) - Clouds: Public,Int + Clouds: Public EnvVars: - # SKIP_PHONENUMBER_LIVE_TESTS skips certain phone number tests such as purchase and release - SKIP_PHONENUMBER_LIVE_TESTS: TRUE \ No newline at end of file + # SKIP_CALLINGSERVER_INTERACTION_LIVE_TESTS skips certain callingserver tests that required human interaction + SKIP_CALLINGSERVER_INTERACTION_LIVE_TESTS: TRUE diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/Azure.Communication.CallingServer.Tests.csproj b/sdk/communication/Azure.Communication.CallingServer/tests/Azure.Communication.CallingServer.Tests.csproj index 061c17322b76..52bdf1f75f45 100644 --- a/sdk/communication/Azure.Communication.CallingServer/tests/Azure.Communication.CallingServer.Tests.csproj +++ b/sdk/communication/Azure.Communication.CallingServer/tests/Azure.Communication.CallingServer.Tests.csproj @@ -1,4 +1,4 @@ - + $(RequiredTargetFrameworks) enable @@ -14,12 +14,6 @@ - - - - - - diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/CallConnection/CallConnectionLiveTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/CallConnection/CallConnectionLiveTests.cs new file mode 100644 index 000000000000..3141d7d52efd --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/tests/CallConnection/CallConnectionLiveTests.cs @@ -0,0 +1,103 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#region Snippet:Azure_Communication_ServerCalling_Tests_UsingStatements +using System; +using System.Collections.Generic; +//@@ using Azure.Communication.CallingServer; +#endregion Snippet:Azure_Communication_ServerCalling_Tests_UsingStatements +using Azure.Communication.Identity; + +using NUnit.Framework; +using System.Threading.Tasks; + +namespace Azure.Communication.CallingServer.Tests +{ + /// + /// The suite of tests for the class. + /// + /// + /// These tests have a dependency on live Azure services and may incur costs for the associated + /// Azure subscription. + /// + public class CallConnectionLiveTests : CallingServerLiveTestBase + { + /// + /// Initializes a new instance of the class. + /// + /// A flag used by the Azure Core Test Framework to differentiate between tests for asynchronous and synchronous methods. + public CallConnectionLiveTests(bool isAsync) : base(isAsync) + { + } + + [Test] + public async Task RunCreatePlayCancelHangupScenarioTests() + { + if (SkipCallingServerInteractionLiveTests) + Assert.Ignore("Skip callingserver interaction live tests flag is on."); + + CallingServerClient client = CreateInstrumentedCallingServerClient(); + try + { + // Establish a Call + var callConnection = await CreateCallConnectionOperation(client).ConfigureAwait(false); + + // Play Prompt Audio + await SleepIfNotInPlaybackModeAsync().ConfigureAwait(false); + await PlayAudioOperation(callConnection).ConfigureAwait(false); + + // Cancel Prompt Audio + await SleepIfNotInPlaybackModeAsync().ConfigureAwait(false); + await CancelAllMediaOperationsOperation(callConnection).ConfigureAwait(false); + + // Hang up the Call, there is one call leg in this test case, hangup the call will also delete the call as the result. + await SleepIfNotInPlaybackModeAsync().ConfigureAwait(false); + await HangupOperation(callConnection).ConfigureAwait(false); + } + catch (RequestFailedException ex) + { + Console.WriteLine(ex.Message); + Assert.Fail($"Unexpected error: {ex}"); + } + catch (Exception ex) + { + Assert.Fail($"Unexpected error: {ex}"); + } + } + + [Test] + public async Task RunCreateAddRemoveHangupScenarioTests() + { + if (SkipCallingServerInteractionLiveTests) + Assert.Ignore("Skip callingserver interaction live tests flag is on."); + + CallingServerClient client = CreateInstrumentedCallingServerClient(); + try + { + // Establish a call + var callConnection = await CreateCallConnectionOperation(client).ConfigureAwait(false); + + // Add Participant + await SleepIfNotInPlaybackModeAsync().ConfigureAwait(false); + var participantId = await AddParticipantOperation(callConnection).ConfigureAwait(false); + + // Remove Participant + await SleepIfNotInPlaybackModeAsync().ConfigureAwait(false); + await RemoveParticipantOperation(callConnection, participantId).ConfigureAwait(false); + + // Hang up the Call, there is one call leg in this test case, hangup the call will also delete the call as the result. + await SleepIfNotInPlaybackModeAsync().ConfigureAwait(false); + await HangupOperation(callConnection).ConfigureAwait(false); + } + catch (RequestFailedException ex) + { + Console.WriteLine(ex.Message); + Assert.Fail($"Unexpected error: {ex}"); + } + catch (Exception ex) + { + Assert.Fail($"Unexpected error: {ex}"); + } + } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/CallConnection/CallConnectionTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/CallConnection/CallConnectionTests.cs new file mode 100644 index 000000000000..c4810d104ad4 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/tests/CallConnection/CallConnectionTests.cs @@ -0,0 +1,379 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.Net; +using System.Threading.Tasks; +using NUnit.Framework; + +namespace Azure.Communication.CallingServer.Tests +{ + public class CallConnectionTests : CallingServerTestBase + { + private const string CancelAllMediaOperaionsResponsePayload = "{" + + "\"operationId\": \"dummyId\"," + + "\"status\": \"completed\"," + + "\"operationContext\": \"dummyOperationContext\"," + + "\"resultInfo\": {" + + "\"code\": 200," + + "\"subcode\": 200," + + "\"message\": \"dummyMessage\"" + + "}" + + "}"; + + private const string PlayAudioResponsePayload = "{" + + "\"operationId\": \"dummyId\"," + + "\"status\": \"running\"," + + "\"operationContext\": \"dummyOperationContext\"," + + "\"resultInfo\": {" + + "\"code\": 200," + + "\"subcode\": 200," + + "\"message\": \"dummyMessage\"" + + "}" + + "}"; + + private const string AddParticipantResultPayload = "{" + + "\"participantId\": \"dummyparticipantid\"" + + "}"; + + [TestCaseSource(nameof(TestData_CallConnectionId))] + public async Task HangupCallAsync_Passes(string callConnectionId) + { + var callConnection = CreateMockCallConnection(202, callConnectionId: callConnectionId); + + var response = await callConnection.HangupAsync().ConfigureAwait(false); + Assert.AreEqual((int)HttpStatusCode.Accepted, response.Status); + } + + [TestCaseSource(nameof(TestData_CallConnectionId))] + public void HangupCall_Passes(string callConnectionId) + { + var callConnection = CreateMockCallConnection(202, callConnectionId: callConnectionId); + + var response = callConnection.Hangup(); + Assert.AreEqual((int)HttpStatusCode.Accepted, response.Status); + } + + [TestCaseSource(nameof(TestData_CallConnectionId))] + public void HangupCallAsync_Failed(string callConnectionId) + { + var callConnection = CreateMockCallConnection(404); + + RequestFailedException? ex = Assert.ThrowsAsync(async () => await callConnection.HangupAsync().ConfigureAwait(false)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_CallConnectionId))] + public void HangupCall_Failed(string callConnectionId) + { + var callConnection = CreateMockCallConnection(404); + + RequestFailedException? ex = Assert.Throws(() => callConnection.Hangup()); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_CallConnectionId))] + public async Task CancelAllMediaOperationsAsync_Passes(string callConnectionId) + { + var callConnection = CreateMockCallConnection(200, CancelAllMediaOperaionsResponsePayload, callConnectionId: callConnectionId); + + var result = await callConnection.CancelAllMediaOperationsAsync().ConfigureAwait(false); + VerifyCancelAllMediaOperationsResult(result); + } + + [TestCaseSource(nameof(TestData_CallConnectionId))] + public void CancelAllMediaOperations_Passes(string callConnectionId) + { + var callConnection = CreateMockCallConnection(200, CancelAllMediaOperaionsResponsePayload, callConnectionId: callConnectionId); + + var result = callConnection.CancelAllMediaOperations(); + VerifyCancelAllMediaOperationsResult(result); + } + + [TestCaseSource(nameof(TestData_CallConnectionId))] + public void CancelAllMediaOperationsAsync_Failed(string callConnectionId) + { + var callConnection = CreateMockCallConnection(404); + + RequestFailedException? ex = Assert.ThrowsAsync(async () => await callConnection.CancelAllMediaOperationsAsync().ConfigureAwait(false)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_CallConnectionId))] + public void CancelAllMediaOperations_Failed(string callConnectionId) + { + var callConnection = CreateMockCallConnection(404); + + RequestFailedException? ex = Assert.Throws(() => callConnection.CancelAllMediaOperations()); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_PlayAudio))] + public async Task PlayAudioAsync_Passes(Uri sampleAudioFileUri, string sampleAudioFileId, Uri sampleCallbackUri, string sampleOperationContext) + { + var callConnection = CreateMockCallConnection(202, PlayAudioResponsePayload); + + var result = await callConnection.PlayAudioAsync(sampleAudioFileUri, false, sampleAudioFileId, sampleCallbackUri, sampleOperationContext).ConfigureAwait(false); + VerifyPlayAudioResult(result); + } + + [TestCaseSource(nameof(TestData_PlayAudio))] + public void PlayAudio_Passes(Uri sampleAudioFileUri, string sampleAudioFileId, Uri sampleCallbackUri, string sampleOperationContext) + { + var callConnection = CreateMockCallConnection(202, PlayAudioResponsePayload); + + var result = callConnection.PlayAudio(sampleAudioFileUri, false, sampleAudioFileId, sampleCallbackUri, sampleOperationContext); + VerifyPlayAudioResult(result); + } + + [TestCaseSource(nameof(TestData_PlayAudio))] + public void PlayAudioAsync_Failed(Uri sampleAudioFileUri, string sampleAudioFileId, Uri sampleCallbackUri, string sampleOperationContext) + { + var callConnection = CreateMockCallConnection(404); + + RequestFailedException? ex = Assert.ThrowsAsync(async () => await callConnection.PlayAudioAsync(sampleAudioFileUri, false, sampleAudioFileId, sampleCallbackUri, sampleOperationContext).ConfigureAwait(false)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_PlayAudio))] + public void PlayAudio_Failed(Uri sampleAudioFileUri, string sampleAudioFileId, Uri sampleCallbackUri, string sampleOperationContext) + { + var callConnection = CreateMockCallConnection(404); + + RequestFailedException? ex = Assert.Throws(() => callConnection.PlayAudio(sampleAudioFileUri, false, sampleAudioFileId, sampleCallbackUri, sampleOperationContext)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_PlayAudio))] + public async Task PlayAudioAsyncOverload_Passes(Uri sampleAudioFileUri, string sampleAudioFileId, Uri sampleCallbackUri, string sampleOperationContext) + { + var callConnection = CreateMockCallConnection(202, PlayAudioResponsePayload); + + var playAudio = new PlayAudioOptions() + { + AudioFileUri = sampleAudioFileUri, + AudioFileId = sampleAudioFileId, + CallbackUri = sampleCallbackUri, + Loop = false, + OperationContext = sampleOperationContext + }; + + var result = await callConnection.PlayAudioAsync(playAudio).ConfigureAwait(false); + VerifyPlayAudioResult(result); + } + + [TestCaseSource(nameof(TestData_PlayAudio))] + public void PlayAudioOverload_Passes(Uri sampleAudioFileUri, string sampleAudioFileId, Uri sampleCallbackUri, string sampleOperationContext) + { + var callConnection = CreateMockCallConnection(202, PlayAudioResponsePayload); + + var playAudio = new PlayAudioOptions() + { + AudioFileUri = sampleAudioFileUri, + AudioFileId = sampleAudioFileId, + CallbackUri = sampleCallbackUri, + Loop = false, + OperationContext = sampleOperationContext + }; + + var result = callConnection.PlayAudio(playAudio); + VerifyPlayAudioResult(result); + } + + [TestCaseSource(nameof(TestData_PlayAudio))] + public void PlayAudioAsyncOverload_Failed(Uri sampleAudioFileUri, string sampleAudioFileId, Uri sampleCallbackUri, string sampleOperationContext) + { + var callConnection = CreateMockCallConnection(404); + + var playAudio = new PlayAudioOptions() + { + AudioFileUri = sampleAudioFileUri, + AudioFileId = sampleAudioFileId, + CallbackUri = sampleCallbackUri, + Loop = false, + OperationContext = sampleOperationContext + }; + + RequestFailedException? ex = Assert.ThrowsAsync(async () => await callConnection.PlayAudioAsync(playAudio).ConfigureAwait(false)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_PlayAudio))] + public void PlayAudioOverload_Failed(Uri sampleAudioFileUri, string sampleAudioFileId, Uri sampleCallbackUri, string sampleOperationContext) + { + var callConnection = CreateMockCallConnection(404); + + var playAudio = new PlayAudioOptions() + { + AudioFileUri = sampleAudioFileUri, + AudioFileId = sampleAudioFileId, + CallbackUri = sampleCallbackUri, + Loop = false, + OperationContext = sampleOperationContext + }; + + RequestFailedException? ex = Assert.Throws(() => callConnection.PlayAudio(playAudio)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_AddParticipant))] + public async Task AddParticipantsAsync_Passes(CommunicationIdentifier participant, string alternateCallerId, string operationContext) + { + var callConnection = CreateMockCallConnection(202, AddParticipantResultPayload); + + var response = await callConnection.AddParticipantAsync(participant, alternateCallerId, operationContext).ConfigureAwait(false); + Assert.AreEqual((int)HttpStatusCode.Accepted, response.GetRawResponse().Status); + Assert.AreEqual("dummyparticipantid", response.Value.ParticipantId); + } + + [TestCaseSource(nameof(TestData_AddParticipant))] + public void AddParticipants_Passes(CommunicationIdentifier participant, string alternateCallerId, string operationContext) + { + var callConnection = CreateMockCallConnection(202, AddParticipantResultPayload); + + var response = callConnection.AddParticipant(participant, alternateCallerId, operationContext); + Assert.AreEqual((int)HttpStatusCode.Accepted, response.GetRawResponse().Status); + Assert.AreEqual("dummyparticipantid", response.Value.ParticipantId); + } + + [TestCaseSource(nameof(TestData_AddParticipant))] + public void AddParticipantsAsync_Failed(CommunicationIdentifier participant, string alternateCallerId, string operationContext) + { + var callConnection = CreateMockCallConnection(404); + + RequestFailedException? ex = Assert.ThrowsAsync(async () => await callConnection.AddParticipantAsync(participant, alternateCallerId, operationContext).ConfigureAwait(false)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_AddParticipant))] + public void AddParticipants_Failed(CommunicationIdentifier participant, string alternateCallerId, string operationContext) + { + var callConnection = CreateMockCallConnection(404); + + RequestFailedException? ex = Assert.Throws(() => callConnection.AddParticipant(participant, alternateCallerId, operationContext)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_ParticipantId))] + public async Task RemoveParticipantsAsync_Passes(string callConnectionId, string participantId) + { + var callConnection = CreateMockCallConnection(202, callConnectionId: callConnectionId); + + var response = await callConnection.RemoveParticipantAsync(participantId).ConfigureAwait(false); + Assert.AreEqual((int)HttpStatusCode.Accepted, response.Status); + } + + [TestCaseSource(nameof(TestData_ParticipantId))] + public void RemoveParticipants_Passes(string callConnectionId, string participantId) + { + var callConnection = CreateMockCallConnection(202, callConnectionId: callConnectionId); + + var response = callConnection.RemoveParticipant(participantId); + Assert.AreEqual((int)HttpStatusCode.Accepted, response.Status); + } + + [TestCaseSource(nameof(TestData_ParticipantId))] + public void RemoveParticipantsAsync_Failed(string callConnectionId, string participantId) + { + var callConnection = CreateMockCallConnection(404); + + RequestFailedException? ex = Assert.ThrowsAsync(async () => await callConnection.RemoveParticipantAsync(participantId).ConfigureAwait(false)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_ParticipantId))] + public void RemoveParticipants_Failed(string callConnectionId, string participantId) + { + var callConnection = CreateMockCallConnection(404); + + RequestFailedException? ex = Assert.Throws(() => callConnection.RemoveParticipant(participantId)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + private void VerifyCancelAllMediaOperationsResult(CancelAllMediaOperationsResult result) + { + Assert.AreEqual("dummyId", result.OperationId); + Assert.AreEqual(OperationStatus.Completed, result.Status); + Assert.AreEqual("dummyOperationContext", result.OperationContext); + Assert.AreEqual(200, result.ResultInfo.Code); + Assert.AreEqual("dummyMessage", result.ResultInfo.Message); + } + + private void VerifyPlayAudioResult(PlayAudioResult result) + { + Assert.AreEqual("dummyId", result.OperationId); + Assert.AreEqual(OperationStatus.Running, result.Status); + Assert.AreEqual("dummyOperationContext", result.OperationContext); + Assert.AreEqual(200, result.ResultInfo.Code); + Assert.AreEqual("dummyMessage", result.ResultInfo.Message); + } + + private CallConnection CreateMockCallConnection(int responseCode, string? responseContent = null, string callConnectionId = "9ec7da16-30be-4e74-a941-285cfc4bffc5") + { + return CreateMockCallingServerClient(responseCode, responseContent).GetCallConnection(callConnectionId); + } + + private static IEnumerable TestData_CallConnectionId() + { + return new[] + { + new object?[] + { + "4ab31d78-a189-4e50-afaa-f9610975b6cb", + }, + }; + } + + private static IEnumerable TestData_PlayAudio() + { + return new[] + { + new object?[] + { + new Uri("https://bot.contoso.io/audio/sample-message.wav"), + "sampleAudioFileId", + new Uri("https://bot.contoso.io/callback"), + "sampleOperationContext", + } + }; + } + + private static IEnumerable TestData_AddParticipant() + { + return new[] + { + new object?[] + { + new CommunicationUserIdentifier("8:acs:acsuserid"), + "+14250000000", + "dummycontext" + }, + }; + } + + private static IEnumerable TestData_ParticipantId() + { + return new[] + { + new object?[] + { + "d09038e7-38f7-4aa1-9c5c-4bb07a65aa17", + "66c76529-3e58-45bf-9592-84eadd52bc81" + }, + }; + } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/CallingServerClient/CallingServerClientLiveTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/CallingServerClient/CallingServerClientLiveTests.cs new file mode 100644 index 000000000000..c8f63a6d782f --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/tests/CallingServerClient/CallingServerClientLiveTests.cs @@ -0,0 +1,29 @@ +// 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 NUnit.Framework; + +namespace Azure.Communication.CallingServer.Tests +{ + /// + /// The suite of tests for the class. + /// + /// + /// These tests have a dependency on live Azure services and may incur costs for the associated + /// Azure subscription. + /// + public class CallingServerClientLiveTests : CallingServerLiveTestBase + { + /// + /// Initializes a new instance of the class. + /// + /// A flag used by the Azure Core Test Framework to differentiate between tests for asynchronous and synchronous methods. + public CallingServerClientLiveTests(bool isAsync) : base(isAsync) + { + } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/CallingServerClient/CallingServerClientTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/CallingServerClient/CallingServerClientTests.cs new file mode 100644 index 000000000000..8e57a63958e5 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/tests/CallingServerClient/CallingServerClientTests.cs @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.Net; +using System.Threading.Tasks; +using NUnit.Framework; + +namespace Azure.Communication.CallingServer.Tests +{ + public class CallingServerClientTests : CallingServerTestBase + { + [TestCaseSource(nameof(TestData_CreateCall))] + public async Task CreateCallAsync_Returns201Created(CommunicationIdentifier source, IEnumerable targets, CreateCallOptions createCallOptions) + { + CallingServerClient callingServerClient = CreateMockCallingServerClient(201, CreateOrJoinCallPayload); + + var response = await callingServerClient.CreateCallConnectionAsync(source, targets, createCallOptions).ConfigureAwait(false); + Assert.AreEqual((int)HttpStatusCode.Created, response.GetRawResponse().Status); + Assert.AreEqual("cad9df7b-f3ac-4c53-96f7-c76e7437b3c1", response.Value.CallConnectionId); + } + + [TestCaseSource(nameof(TestData_CreateCall))] + public void CreateCall_Returns201Created(CommunicationIdentifier source, IEnumerable targets, CreateCallOptions createCallOptions) + { + CallingServerClient callingServerClient = CreateMockCallingServerClient(201, CreateOrJoinCallPayload); + + var response = callingServerClient.CreateCallConnection(source, targets, createCallOptions); + Assert.AreEqual((int)HttpStatusCode.Created, response.GetRawResponse().Status); + Assert.AreEqual("cad9df7b-f3ac-4c53-96f7-c76e7437b3c1", response.Value.CallConnectionId); + } + + [TestCaseSource(nameof(TestData_CreateCall))] + public void CreateCallAsync_Returns404NotFound(CommunicationIdentifier source, IEnumerable targets, CreateCallOptions createCallOptions) + { + CallingServerClient callingServerClient = CreateMockCallingServerClient(404); + + RequestFailedException? ex = Assert.ThrowsAsync(async () => await callingServerClient.CreateCallConnectionAsync(source, targets, createCallOptions).ConfigureAwait(false)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_CreateCall))] + public void CreateCall_Returns404NotFound(CommunicationIdentifier source, IEnumerable targets, CreateCallOptions createCallOptions) + { + CallingServerClient callingServerClient = CreateMockCallingServerClient(404); + + RequestFailedException? ex = Assert.Throws(() => callingServerClient.CreateCallConnection(source, targets, createCallOptions)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_JoinCall))] + public async Task JoinCallAsync_Returns202Accepted(string serverCallId, CommunicationIdentifier source, JoinCallOptions joinCallOptions) + { + CallingServerClient callingServerClient = CreateMockCallingServerClient(202, CreateOrJoinCallPayload); + + var response = await callingServerClient.JoinCallAsync(serverCallId, source, joinCallOptions).ConfigureAwait(false); + Assert.AreEqual((int)HttpStatusCode.Accepted, response.GetRawResponse().Status); + Assert.AreEqual("cad9df7b-f3ac-4c53-96f7-c76e7437b3c1", response.Value.CallConnectionId); + } + + [TestCaseSource(nameof(TestData_JoinCall))] + public void JoinCall_Returns202Accepted(string serverCallId, CommunicationIdentifier source, JoinCallOptions joinCallOptions) + { + CallingServerClient callingServerClient = CreateMockCallingServerClient(202, CreateOrJoinCallPayload); + + var response = callingServerClient.JoinCall(serverCallId, source, joinCallOptions); + Assert.AreEqual((int)HttpStatusCode.Accepted, response.GetRawResponse().Status); + Assert.AreEqual("cad9df7b-f3ac-4c53-96f7-c76e7437b3c1", response.Value.CallConnectionId); + } + + [TestCaseSource(nameof(TestData_JoinCall))] + public void JoinCallAsync_Returns404NotFound(string serverCallId, CommunicationIdentifier source, JoinCallOptions joinCallOptions) + { + CallingServerClient callingServerClient = CreateMockCallingServerClient(404); + + RequestFailedException? ex = Assert.ThrowsAsync(async () => await callingServerClient.JoinCallAsync(serverCallId, source, joinCallOptions).ConfigureAwait(false)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_JoinCall))] + public void JoinCall_Returns404NotFound(string serverCallId, CommunicationIdentifier source, JoinCallOptions joinCallOptions) + { + CallingServerClient callingServerClient = CreateMockCallingServerClient(404); + + RequestFailedException? ex = Assert.Throws(() => callingServerClient.JoinCall(serverCallId, source, joinCallOptions)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + private static IEnumerable TestData_CreateCall() + { + return new[] + { + new object?[] + { + new CommunicationUserIdentifier("8:acs:resource_source"), + new CommunicationIdentifier[] + { + new CommunicationUserIdentifier("8:acs:resource_target"), + new PhoneNumberIdentifier("+14255550123") + }, + new CreateCallOptions( + new Uri("https://bot.contoso.com/callback"), + new[] + { + MediaType.Video + }, + new[] + { + EventSubscriptionType.ParticipantsUpdated + } + ) + { + AlternateCallerId = new PhoneNumberIdentifier("+14255550123"), + Subject = "testsubject" + } + }, + }; + } + + private static IEnumerable TestData_JoinCall() + { + return new[] + { + new object?[] + { + "guid", + new CommunicationUserIdentifier("8:acs:resource_source"), + new JoinCallOptions( + new Uri("https://bot.contoso.com/callback"), + new[] + { + MediaType.Video + }, + new[] + { + EventSubscriptionType.ParticipantsUpdated + } + ) + { + Subject = "testsubject" + } + }, + }; + } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/ConversationClients/ContentDownloadTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/CallingServerClient/ContentDownloadTests.cs similarity index 64% rename from sdk/communication/Azure.Communication.CallingServer/tests/ConversationClients/ContentDownloadTests.cs rename to sdk/communication/Azure.Communication.CallingServer/tests/CallingServerClient/ContentDownloadTests.cs index e757de9e4e38..0db43535cc60 100644 --- a/sdk/communication/Azure.Communication.CallingServer/tests/ConversationClients/ContentDownloadTests.cs +++ b/sdk/communication/Azure.Communication.CallingServer/tests/CallingServerClient/ContentDownloadTests.cs @@ -9,12 +9,11 @@ using NUnit.Framework; using System.Linq; using Azure.Core.Pipeline; -using Azure.Communication.CallingServer.Tests.ConversationClients; using Azure.Core.TestFramework; namespace Azure.Communication.CallingServer.Tests.ContentDownloadTests { - public class ContentDownloadTests : ConversationClientBaseTests + public class ContentDownloadTests : CallingServerTestBase { private const string DummyRecordingMetadata = "{" + "\"chunkDocumentId\": \"dummyDocId\"," + @@ -50,9 +49,9 @@ public class ContentDownloadTests : ConversationClientBaseTests [Test] public void DownloadMetadata_Test() { - ConversationClient _convClient = CreateMockConversationClient(200, DummyRecordingMetadata); + CallingServerClient _callingserverClient = CreateMockCallingServerClient(200, DummyRecordingMetadata); - Stream metadata = _convClient.DownloadStreaming(_dummyMetadataLocation); + Stream metadata = _callingserverClient.DownloadStreaming(_dummyMetadataLocation); VerifyExpectedMetadata(metadata); } @@ -60,9 +59,9 @@ public void DownloadMetadata_Test() [Test] public async Task DownloadMetadataAsync_Test() { - ConversationClient _convClient = CreateMockConversationClient(200, DummyRecordingMetadata); + CallingServerClient _callingserverClient = CreateMockCallingServerClient(200, DummyRecordingMetadata); - Stream metadata = await _convClient.DownloadStreamingAsync(_dummyMetadataLocation); + Stream metadata = await _callingserverClient.DownloadStreamingAsync(_dummyMetadataLocation); VerifyExpectedMetadata(metadata); } @@ -70,9 +69,9 @@ public async Task DownloadMetadataAsync_Test() [Test] public void DownloadRecording_Test() { - ConversationClient _convClient = CreateMockConversationClient(200, _dummyRecordingStream); + CallingServerClient _callingserverClient = CreateMockCallingServerClient(200, _dummyRecordingStream); - Response recording = _convClient.DownloadStreaming(_dummyRecordingLocation); + Response recording = _callingserverClient.DownloadStreaming(_dummyRecordingLocation); VerifyExpectedRecording(recording, 10); } @@ -80,9 +79,9 @@ public void DownloadRecording_Test() [Test] public void DownloadRecordingByRanges_Test() { - ConversationClient _convClient = CreateMockConversationClient(206, _dummyRecordingStream.Take(5).ToArray(), _rangeResponseHeaders); + CallingServerClient _callingserverClient = CreateMockCallingServerClient(206, _dummyRecordingStream.Take(5).ToArray(), _rangeResponseHeaders); - Response recording = _convClient.DownloadStreaming(_dummyRecordingLocation, new HttpRange(0, 4)); + Response recording = _callingserverClient.DownloadStreaming(_dummyRecordingLocation, new HttpRange(0, 4)); VerifyExpectedRecording(recording, 5); } @@ -90,9 +89,9 @@ public void DownloadRecordingByRanges_Test() [Test] public async Task DownloadRecordingAsync_Test() { - ConversationClient _convClient = CreateMockConversationClient(200, _dummyRecordingStream); + CallingServerClient _callingserverClient = CreateMockCallingServerClient(200, _dummyRecordingStream); - Response recording = await _convClient.DownloadStreamingAsync(_dummyRecordingLocation); + Response recording = await _callingserverClient.DownloadStreamingAsync(_dummyRecordingLocation); VerifyExpectedRecording(recording, 10); } @@ -100,9 +99,9 @@ public async Task DownloadRecordingAsync_Test() [Test] public async Task DownloadRecordingByRangesAsync_Test() { - ConversationClient _convClient = CreateMockConversationClient(206, _dummyRecordingStream.Take(5).ToArray(), _rangeResponseHeaders); + CallingServerClient _callingserverClient = CreateMockCallingServerClient(206, _dummyRecordingStream.Take(5).ToArray(), _rangeResponseHeaders); - Response recording = await _convClient.DownloadStreamingAsync(_dummyRecordingLocation, new HttpRange(0, 4)); + Response recording = await _callingserverClient.DownloadStreamingAsync(_dummyRecordingLocation, new HttpRange(0, 4)); VerifyExpectedRecording(recording, 5); } @@ -119,19 +118,50 @@ public void DownloadRecordingToStream_Test() ContentTransferOptions options = new(); options.InitialTransferSize = 10; - ConversationClient _convClient = CreateMockConversationClient(206, _dummyRecordingStream, rangeHeaderResponse); + CallingServerClient _callingserverClient = CreateMockCallingServerClient(206, _dummyRecordingStream, rangeHeaderResponse); Stream destination = new MemoryStream(); - _convClient.DownloadTo(_dummyRecordingLocation, destination, options); + _callingserverClient.DownloadTo(_dummyRecordingLocation, destination, options); Assert.AreEqual(10, destination.Length); } + [Test] + public void DownloadRecordingToStream_ContentTransferOptions_Test() + { + ContentTransferOptions options = new() + { + InitialTransferSize = 10, + MaximumConcurrency = 1, + MaximumTransferSize = 5 + }; + + ContentTransferOptions options_copy = new() + { + InitialTransferSize = 10, + MaximumConcurrency = 1, + MaximumTransferSize = 5 + }; + + ContentTransferOptions options_updated = new() + { + InitialTransferSize = 11, + MaximumConcurrency = 1, + MaximumTransferSize = 5 + }; + + Assert.AreNotEqual(options.GetHashCode(), options_updated.GetHashCode()); + Assert.AreEqual(options.GetHashCode(), options_copy.GetHashCode()); + Assert.True(options.Equals(options_copy)); + Assert.True(options.Equals((object)options_copy)); + Assert.False(options.Equals(options_updated)); + } + [Test] public void DownloadNotExistentContent_Failure_Test() { - ConversationClient _convClient = CreateMockConversationClient(404); - RequestFailedException? ex = Assert.Throws(() => _convClient.DownloadStreaming(_dummyMetadataLocation)); + CallingServerClient _callingserverClient = CreateMockCallingServerClient(404); + RequestFailedException? ex = Assert.Throws(() => _callingserverClient.DownloadStreaming(_dummyMetadataLocation)); Assert.NotNull(ex); Assert.AreEqual(ex?.Status, 404); } @@ -139,8 +169,8 @@ public void DownloadNotExistentContent_Failure_Test() [Test] public void DownloadNotExistentContentAsync_Failure_Test() { - ConversationClient _convClient = CreateMockConversationClient(404); - RequestFailedException? ex = Assert.ThrowsAsync(async () => await _convClient.DownloadStreamingAsync(_dummyMetadataLocation)); + CallingServerClient _callingserverClient = CreateMockCallingServerClient(404); + RequestFailedException? ex = Assert.ThrowsAsync(async () => await _callingserverClient.DownloadStreamingAsync(_dummyMetadataLocation)); Assert.NotNull(ex); Assert.AreEqual(ex?.Status, 404); } @@ -148,8 +178,8 @@ public void DownloadNotExistentContentAsync_Failure_Test() [Test] public void AccessDenied_Failure_Test() { - ConversationClient _convClient = CreateMockConversationClient(401); - RequestFailedException? ex = Assert.Throws(() => _convClient.DownloadStreaming(_dummyMetadataLocation)); + CallingServerClient _callingserverClient = CreateMockCallingServerClient(401); + RequestFailedException? ex = Assert.Throws(() => _callingserverClient.DownloadStreaming(_dummyMetadataLocation)); Assert.NotNull(ex); Assert.AreEqual(ex?.Status, 401); } @@ -157,8 +187,8 @@ public void AccessDenied_Failure_Test() [Test] public void AccessDeniedAsync_Failure_Test() { - ConversationClient _convClient = CreateMockConversationClient(401); - RequestFailedException? ex = Assert.ThrowsAsync(async () => await _convClient.DownloadStreamingAsync(_dummyMetadataLocation)); + CallingServerClient _callingserverClient = CreateMockCallingServerClient(401); + RequestFailedException? ex = Assert.ThrowsAsync(async () => await _callingserverClient.DownloadStreamingAsync(_dummyMetadataLocation)); Assert.NotNull(ex); Assert.AreEqual(ex?.Status, 401); } @@ -183,9 +213,9 @@ public void ParallelDownloadWithInvalidRangeFirst() MaximumTransferSize = 5 }; - ConversationClient _convClient = CreateMockConversationClient(new MockResponse[] { invalidResponse, validResponse1, validResponse2 }); + CallingServerClient _callingserverClient = CreateMockCallingServerClient(new MockResponse[] { invalidResponse, validResponse1, validResponse2 }); Stream destination = new MemoryStream(); - _convClient.DownloadTo(_dummyRecordingLocation, destination, options); + _callingserverClient.DownloadTo(_dummyRecordingLocation, destination, options); Assert.AreEqual(10, destination.Length); } @@ -210,9 +240,9 @@ public async Task ParallelDownloadWithInvalidRangeFirstAsync() MaximumTransferSize = 5 }; - ConversationClient _convClient = CreateMockConversationClient(new MockResponse[] { invalidResponse, validResponse1, validResponse2 }); + CallingServerClient _callingserverClient = CreateMockCallingServerClient(new MockResponse[] { invalidResponse, validResponse1, validResponse2 }); Stream destination = new MemoryStream(); - await _convClient.DownloadToAsync(_dummyRecordingLocation, destination, options); + await _callingserverClient.DownloadToAsync(_dummyRecordingLocation, destination, options); Assert.AreEqual(10, destination.Length); } diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/ConversationClients/ConversationClientBaseTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/ConversationClients/ConversationClientBaseTests.cs deleted file mode 100644 index 00970201d3a6..000000000000 --- a/sdk/communication/Azure.Communication.CallingServer/tests/ConversationClients/ConversationClientBaseTests.cs +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System; -using Azure.Core; -using Azure.Core.TestFramework; - -namespace Azure.Communication.CallingServer.Tests.ConversationClients -{ - public class ConversationClientBaseTests - { - private const string dummyAccessKey = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9+eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ+SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV+adQssw5c="; - public ConversationClient CreateMockConversationClient(int statusCode, object? content = null, HttpHeader[]? httpHeaders = null) - { - var uri = new Uri("https://acs.dummyresource.com"); - var communicationTokenCredential = - new AzureKeyCredential(dummyAccessKey); - var mockResponse = new MockResponse(statusCode); - if (content != null) - { - if (content.GetType() == typeof(string)) - mockResponse.SetContent((string)content); - else if (content.GetType() == typeof(byte[])) - mockResponse.SetContent((byte[])content); - } - - if (httpHeaders != null) - { - for (int i = 0; i < httpHeaders.Length; i++) - { - mockResponse.AddHeader(httpHeaders[i]); - } - } - - var callClientOptions = new CallClientOptions - { - Transport = new MockTransport(mockResponse) - }; - - var convClient = new ConversationClient(uri, communicationTokenCredential, callClientOptions); - return convClient; - } - - public ConversationClient CreateMockConversationClient(MockResponse[] mockResponses) - { - var uri = new Uri("https://acs.dummyresource.com"); - var communicationTokenCredential = - new AzureKeyCredential(dummyAccessKey); - - var callClientOptions = new CallClientOptions - { - Transport = new MockTransport(mockResponses) - }; - - var convClient = new ConversationClient(uri, communicationTokenCredential, callClientOptions); - return convClient; - } - } -} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/ConversationClients/ConversationClientsTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/ConversationClients/ConversationClientsTests.cs deleted file mode 100644 index 7e127e3e16ec..000000000000 --- a/sdk/communication/Azure.Communication.CallingServer/tests/ConversationClients/ConversationClientsTests.cs +++ /dev/null @@ -1,208 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Net; -using System.Threading.Tasks; -using Azure.Communication.CallingServer.Tests.ConversationClients; -using Azure.Core; -using Azure.Core.TestFramework; -using NUnit.Framework; - -namespace Azure.Communication.CallingServer.Tests -{ - public class ConversationClientsTests : ConversationClientBaseTests - { - private const string DummyStartRecordingResponse = "{" + - "\"recordingId\": \"dummyRecordingId\"" + - "}"; - private const string DummyRecordingStateResponse = "{" + - "\"recordingState\": \"active\"" + - "}"; - - private const string DummyPlayAudioResponse = "{" + - "\"id\": \"dummyId\"," + - "\"status\": \"running\"," + - "\"operationContext\": \"dummyOperationContext\"," + - "\"resultInfo\": {" + - "\"code\": 200," + - "\"subcode\": 200," + - "\"message\": \"dummyMessage\"" + - "}" + - "}"; - - [TestCaseSource(nameof(TestData_StartRecording))] - public void StartRecording_Returns200Ok(string sampleConversationId, Uri sampleCallBackUri) - { - ConversationClient _convClient = CreateMockConversationClient(200, DummyStartRecordingResponse); - StartCallRecordingResponse response = _convClient.StartRecording(sampleConversationId, sampleCallBackUri); - Assert.AreEqual("dummyRecordingId", response.RecordingId); - } - - [TestCaseSource(nameof(TestData_StartRecording))] - public async Task StartRecordingAsync_Returns200Ok(string sampleConversationId, Uri sampleCallBackUri) - { - ConversationClient _convClient = CreateMockConversationClient(200, DummyStartRecordingResponse); - Response response = await _convClient.StartRecordingAsync(sampleConversationId, sampleCallBackUri); - Assert.AreEqual("dummyRecordingId", response.Value.RecordingId); - } - - [TestCaseSource(nameof(TestData_StopRecording))] - public void StopRecording_Return200Ok(string sampleConversationId, string sampleRecordingId) - { - ConversationClient _convClient = CreateMockConversationClient(200); - Response response = _convClient.StopRecording(sampleConversationId, sampleRecordingId); - var temp = response.Status; - Assert.AreEqual((int)HttpStatusCode.OK, response.Status); - } - - [TestCaseSource(nameof(TestData_StopRecording))] - public async Task StopRecordingAsync_Return200Ok(string sampleConversationId, string sampleRecordingId) - { - ConversationClient _convClient = CreateMockConversationClient(200); - Response response = await _convClient.StopRecordingAsync(sampleConversationId, sampleRecordingId); - Assert.AreEqual((int)HttpStatusCode.OK, response.Status); - } - - [TestCaseSource(nameof(TestData_PauseRecording))] - public void PauseRecording_Return200Ok(string sampleConversationId, string sampleRecordingId) - { - ConversationClient _convClient = CreateMockConversationClient(200); - Response response = _convClient.PauseRecording(sampleConversationId, sampleRecordingId); - Assert.AreEqual((int)HttpStatusCode.OK, response.Status); - } - - [TestCaseSource(nameof(TestData_PauseRecording))] - public async Task PauseRecordingAsync_Return200Ok(string sampleConversationId, string sampleRecordingId) - { - ConversationClient _convClient = CreateMockConversationClient(200); - Response response = await _convClient.PauseRecordingAsync(sampleConversationId, sampleRecordingId); - Assert.AreEqual((int)HttpStatusCode.OK, response.Status); - } - - [TestCaseSource(nameof(TestData_ResumeRecording))] - public void ResumeRecording_Return200Ok(string sampleConversationId, string sampleRecordingId) - { - ConversationClient _convClient = CreateMockConversationClient(200); - Response response = _convClient.ResumeRecording(sampleConversationId, sampleRecordingId); - Assert.AreEqual((int)HttpStatusCode.OK, response.Status); - } - - [TestCaseSource(nameof(TestData_ResumeRecording))] - public async Task ResumeRecordingAsync_Return200Ok(string sampleConversationId, string sampleRecordingId) - { - ConversationClient _convClient = CreateMockConversationClient(200); - Response response = await _convClient.ResumeRecordingAsync(sampleConversationId, sampleRecordingId); - Assert.AreEqual((int)HttpStatusCode.OK, response.Status); - } - - [TestCaseSource(nameof(TestData_GetRecordingState))] - public void GetRecordingState_Return200Ok(string sampleConversationId, string sampleRecordingId) - { - ConversationClient _convClient = CreateMockConversationClient(200, DummyRecordingStateResponse); - GetCallRecordingStateResponse response = _convClient.GetRecordingState(sampleConversationId, sampleRecordingId); - Assert.AreEqual(CallRecordingState.Active, response.RecordingState); - } - - [TestCaseSource(nameof(TestData_GetRecordingState))] - public async Task GetRecordingStateAsync_Return200Ok(string sampleConversationId, string sampleRecordingId) - { - ConversationClient _convClient = CreateMockConversationClient(200, DummyRecordingStateResponse); - Response response = await _convClient.GetRecordingStateAsync(sampleConversationId, sampleRecordingId); - Assert.AreEqual(CallRecordingState.Active, response.Value.RecordingState); - } - - [TestCaseSource(nameof(TestData_PlayAudio))] - public void PlayAudio_Return202Accepted(string sampleConversationId, Uri sampleAudioFileUri, string sampleAudioFileId, Uri sampleCallbackUri, string sampleOperationContext) - { - ConversationClient _convClient = CreateMockConversationClient(202, DummyPlayAudioResponse); - PlayAudioResponse response = _convClient.PlayAudio(sampleConversationId, sampleAudioFileUri, sampleAudioFileId, sampleCallbackUri, sampleOperationContext); - VerifyPlayAudioResponse(response); - } - - [TestCaseSource(nameof(TestData_PlayAudio))] - public async Task PlayAudioAsync_Return202Accepted(string sampleConversationId, Uri sampleAudioFileUri, string sampleAudioFileId, Uri sampleCallbackUri, string sampleOperationContext) - { - ConversationClient _convClient = CreateMockConversationClient(202, DummyPlayAudioResponse); - Response response = await _convClient.PlayAudioAsync(sampleConversationId, sampleAudioFileUri, sampleAudioFileId, sampleCallbackUri, sampleOperationContext); - VerifyPlayAudioResponse(response); - } - - private void VerifyPlayAudioResponse(PlayAudioResponse response) - { - Assert.AreEqual("dummyId", response.Id); - Assert.AreEqual(OperationStatus.Running, response.Status); - Assert.AreEqual("dummyOperationContext", response.OperationContext); - Assert.AreEqual(200, response.ResultInfo.Code); - Assert.AreEqual("dummyMessage", response.ResultInfo.Message); - } - - private static IEnumerable TestData_StartRecording() - { - return new List(){ - new object?[] { - "sampleConversationId", - new Uri("https://somecallbackurl"), - }, - }; - } - - private static IEnumerable TestData_StopRecording() - { - return new List(){ - new object?[] { - "sampleConversationId", - "sampleRecordingId", - }, - }; - } - - private static IEnumerable TestData_PauseRecording() - { - return new List(){ - new object?[] { - "sampleConversationId", - "sampleRecordingId", - }, - }; - } - - private static IEnumerable TestData_ResumeRecording() - { - return new List(){ - new object?[] { - "sampleConversationId", - "sampleRecordingId", - }, - }; - } - - private static IEnumerable TestData_GetRecordingState() - { - return new List(){ - new object?[] { - "sampleConversationId", - "sampleRecordingId", - }, - }; - } - - private static IEnumerable TestData_PlayAudio() - { - return new List(){ - new object?[] { - "sampleConversationId", - new Uri("https://av.ngrok.io/audio/sample-message.wav"), - "sampleAudioFileId", - new Uri("https://av.ngrok.io/someCallbackUri"), - "sampleOperationContext", - } - }; - } - - private static Expression> BuildExpression(Expression> expression) - => expression; - } -} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/Events/EventTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/Events/EventTests.cs new file mode 100644 index 000000000000..9fc788a8afb2 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/tests/Events/EventTests.cs @@ -0,0 +1,112 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Linq; +using NUnit.Framework; + +namespace Azure.Communication.CallingServer.Tests.Events +{ + public class EventTests : CallingServerTestBase + { + [Test] + public void CallRecordingStateChangeEventTest() + { + var json = "{\"recordingId\":\"id\",\"state\":\"active\",\"startDateTime\":\"2021-06-18T18:59:23.5718812-07:00\",\"serverCallId\":\"callServerId\"}"; + + var c = CallRecordingStateChangeEvent.Deserialize(json); + + Assert.AreEqual("id", c.RecordingId); + Assert.AreEqual(CallRecordingState.Active, c.State); + Assert.AreEqual("callServerId", c.ServerCallId); + Assert.AreEqual("2021-06-18", c.StartDateTime.ToString("yyyy-MM-dd")); + } + + [Test] + public void CallConnectionStateChangedEventTest() + { + var json = "{\"serverCallId\":\"serverCallId\",\"callConnectionId\":\"callConnectionId\",\"callConnectionState\":\"connected\"}"; + + var c = CallConnectionStateChangedEvent.Deserialize(json); + + Assert.AreEqual("serverCallId", c.ServerCallId); + Assert.AreEqual("callConnectionId", c.CallConnectionId); + Assert.AreEqual(CallConnectionState.Connected, c.CallConnectionState); + } + + [Test] + public void AddParticipantResultEventTest() + { + var json = "{\"resultInfo\":{\"code\":400,\"subcode\":415,\"message\":\"failure message\"},\"operationContext\":\"operatingContext\",\"status\":\"failed\"}"; + + var c = AddParticipantResultEvent.Deserialize(json); + + Assert.AreEqual("operatingContext", c.OperationContext); + Assert.AreEqual(OperationStatus.Failed, c.Status); + Assert.IsNotNull(c.ResultInfo); + Assert.AreEqual(400, c.ResultInfo.Code); + Assert.AreEqual(415, c.ResultInfo.Subcode); + Assert.AreEqual("failure message", c.ResultInfo.Message); + + json = "{\"operationContext\":\"operatingContext\",\"status\":\"running\"}"; + c = AddParticipantResultEvent.Deserialize(json); + + Assert.AreEqual("operatingContext", c.OperationContext); + Assert.AreEqual(OperationStatus.Running, c.Status); + Assert.IsNull(c.ResultInfo); + } + + [Test] + public void PlayAudioResultEventTest() + { + var json = "{\"resultInfo\":{\"code\":500,\"subcode\":505,\"message\":\"failure message\"},\"operationContext\":\"operatingContext\",\"status\":\"failed\"}"; + + var c = PlayAudioResultEvent.Deserialize(json); + + Assert.AreEqual("operatingContext", c.OperationContext); + Assert.AreEqual(OperationStatus.Failed, c.Status); + Assert.IsNotNull(c.ResultInfo); + Assert.AreEqual(500, c.ResultInfo.Code); + Assert.AreEqual(505, c.ResultInfo.Subcode); + Assert.AreEqual("failure message", c.ResultInfo.Message); + + json = "{\"operationContext\":\"operatingContext\",\"status\":\"completed\"}"; + c = PlayAudioResultEvent.Deserialize(json); + + Assert.AreEqual("operatingContext", c.OperationContext); + Assert.AreEqual(OperationStatus.Completed, c.Status); + Assert.IsNull(c.ResultInfo); + } + + [Test] + public void ToneReceivedEventTest() + { + var json = "{\"toneInfo\":{\"sequenceId\":1,\"tone\":\"A\"},\"callConnectionId\": \"8e6ff9fd-dd81-47f9-963a-1989bb95779c\"}"; + + var c = ToneReceivedEvent.Deserialize(json); + + Assert.AreEqual("8e6ff9fd-dd81-47f9-963a-1989bb95779c", c.CallConnectionId); + Assert.IsNotNull(c.ToneInfo); + Assert.AreEqual(1, c.ToneInfo.SequenceId); + Assert.AreEqual(ToneValue.A, c.ToneInfo.Tone); + } + + [Test] + [Ignore("Issue will fix later: A property 'phoneNumber' defined as non-nullable but received as null from the service.")] + public void ParticipantUpdatedEventTest() + { + var json = "{\"callConnectionId\":\"c0623fc9-f723-44e1-b18e-ec2da390fba0\",\"participants\":[{\"identifier\":{\"rawId\":\"8:acs:resource_guid1\",\"communicationUser\":{\"id\":\"8:acs:resource_guid1\"},\"phoneNumber\":null,\"microsoftTeamsUser\":null},\"participantId\":\"participant1\",\"isMuted\":false},{\"identifier\":{\"rawId\":\"8:acs:resource_guid2\",\"communicationUser\":null,\"phoneNumber\":{\"value\":\"\\u002B14250000000\"},\"microsoftTeamsUser\":null},\"participantId\":\"participant2\",\"isMuted\":true}]}"; + + var c = ParticipantsUpdatedEvent.Deserialize(json); + + Assert.AreEqual("c0623fc9-f723-44e1-b18e-ec2da390fba0", c.CallConnectionId); + Assert.IsNotNull(c.Participants); + Assert.AreEqual(2, c.Participants.Count()); + Assert.AreEqual("participant1", c.Participants.ElementAt(0).ParticipantId); + Assert.AreEqual(false, c.Participants.ElementAt(0).IsMuted); + Assert.AreEqual(new CommunicationUserIdentifier("8:acs:resource_guid1"), c.Participants.ElementAt(0).Identifier); + Assert.AreEqual("participant2", c.Participants.ElementAt(1).ParticipantId); + Assert.AreEqual(true, c.Participants.ElementAt(1).IsMuted); + Assert.AreEqual(new PhoneNumberIdentifier("+14250000000"), c.Participants.ElementAt(1).Identifier); + } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/Infrastructure/CallingServerLiveTestBase.cs b/sdk/communication/Azure.Communication.CallingServer/tests/Infrastructure/CallingServerLiveTestBase.cs index ee6201103ceb..40945c931f24 100644 --- a/sdk/communication/Azure.Communication.CallingServer/tests/Infrastructure/CallingServerLiveTestBase.cs +++ b/sdk/communication/Azure.Communication.CallingServer/tests/Infrastructure/CallingServerLiveTestBase.cs @@ -1,18 +1,92 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System; +using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using Azure.Communication.Identity; using Azure.Core.TestFramework; +using NUnit.Framework; namespace Azure.Communication.CallingServer.Tests { public class CallingServerLiveTestBase : RecordedTestBase { + // Random Gen Guid + protected const string FROM_USER_IDENTIFIER = "e3560385-776f-41d1-bf04-07ef738f2f23"; + + // Random Gen Guid + protected const string TO_USER_IDENTIFIER = "e3560385-776f-41d1-bf04-07ef738f2fc1"; + + // From ACS Resource "immutableResourceId". + protected const string RESOURCE_IDENTIFIER = "016a7064-0581-40b9-be73-6dde64d69d72"; + + // Random Gen Guid + protected const string GROUP_IDENTIFIER = "3500789f-e11b-4ceb-85cb-bc8df2a01768"; + + protected string GetResourceId() + { + if (Mode == RecordedTestMode.Live) + { + return TestEnvironment.ResourceIdentifier; + } + return RESOURCE_IDENTIFIER; + } + + protected string GetRandomUserId() + { + return "8:acs:" + GetResourceId() + "_" + Guid.NewGuid().ToString(); + } + + protected string GetFixedUserId(string userGuid) + { + return "8:acs:" + GetResourceId() + "_" + userGuid; + } + + protected string GetFromUserId() + { + if (Mode == RecordedTestMode.Live) + { + return GetRandomUserId(); + } + return GetFixedUserId(FROM_USER_IDENTIFIER); + } + + protected string GetToUserId() + { + if (Mode == RecordedTestMode.Live) + { + return GetRandomUserId(); + } + return GetFixedUserId(TO_USER_IDENTIFIER); + } + + protected string GetGroupId() + { + /** + * If tests are running in live mode, we want them to all + * have unique groupId's so they do not conflict with other + * recording tests running in live mode. + */ + if (Mode == RecordedTestMode.Live) + { + return Guid.NewGuid().ToString(); + } + + /** + * For recording tests we need to make sure the groupId + * matches the recorded groupId, or the call will fail. + */ + return GROUP_IDENTIFIER; + } + public CallingServerLiveTestBase(bool isAsync) : base(isAsync) => Sanitizer = new CallingServerRecordedTestSanitizer(); + public bool SkipCallingServerInteractionLiveTests + => TestEnvironment.Mode == RecordedTestMode.Live && Environment.GetEnvironmentVariable("SKIP_CALLINGSERVER_INTERACTION_LIVE_TESTS") == "TRUE"; + /// /// Creates a with the connectionstring via environment /// variables and instruments it to make use of the Azure Core Test Framework functionalities. @@ -21,36 +95,308 @@ public CallingServerLiveTestBase(bool isAsync) : base(isAsync) protected CommunicationIdentityClient CreateInstrumentedCommunicationIdentityClient() => InstrumentClient( new CommunicationIdentityClient( - TestEnvironment.LiveTestDynamicConnectionString, + TestEnvironment.LiveTestStaticConnectionString, InstrumentClientOptions(new CommunicationIdentityClientOptions(CommunicationIdentityClientOptions.ServiceVersion.V2021_03_07)))); /// - /// Creates a + /// Creates a /// - /// The instrumented . - protected CallClient CreateInstrumentedCallingServerClient() + /// The instrumented . + protected CallingServerClient CreateInstrumentedCallingServerClient() { var connectionString = TestEnvironment.LiveTestStaticConnectionString; - CallClient client = new CallClient(connectionString, CreateServerCallingClientOptionsWithCorrelationVectorLogs()); + CallingServerClient callingServerClient = new CallingServerClient(connectionString, CreateServerCallingClientOptionsWithCorrelationVectorLogs()); #region Snippet:Azure_Communication_ServerCalling_Tests_Samples_CreateServerCallingClient //@@var connectionString = ""; // Find your Communication Services resource in the Azure portal - //@@CallClient client = new CallClient(connectionString); + //@@CallingServerClient callingServerClient = new CallingServerClient(connectionString); #endregion Snippet:Azure_Communication_ServerCalling_Tests_Samples_CreateServerCallingClient - return InstrumentClient(client); + return InstrumentClient(callingServerClient); } - protected async Task SleepIfNotInPlaybackModeAsync() + + #region Api operation functions + #region Snippet:Azure_Communication_ServerCalling_Tests_CreateGroupCallOperation + internal async Task> CreateGroupCallOperation(CallingServerClient callingServerClient, string groupId, string from, string to, string callBackUri) + { + CallConnection? fromCallConnection = null; + CallConnection? toCallConnection = null; + + try + { + CommunicationIdentifier fromParticipant = new CommunicationUserIdentifier(from); + CommunicationIdentifier toParticipant = new CommunicationUserIdentifier(to); + + JoinCallOptions fromCallOptions = new JoinCallOptions( + new Uri(callBackUri), + new MediaType[] { MediaType.Audio }, + new EventSubscriptionType[] { EventSubscriptionType.ParticipantsUpdated }); + fromCallConnection = await callingServerClient.JoinCallAsync(groupId, fromParticipant, fromCallOptions).ConfigureAwait(false); + SleepInTest(1000); + Assert.IsFalse(string.IsNullOrWhiteSpace(fromCallConnection.CallConnectionId)); + + JoinCallOptions joinCallOptions = new JoinCallOptions( + new Uri(callBackUri), + new MediaType[] { MediaType.Audio }, + new EventSubscriptionType[] { EventSubscriptionType.ParticipantsUpdated}); + + toCallConnection = await callingServerClient.JoinCallAsync(groupId, toParticipant, joinCallOptions).ConfigureAwait(false); + SleepInTest(1000); + Assert.IsFalse(string.IsNullOrWhiteSpace(toCallConnection.CallConnectionId)); + + return new CallConnection[] { fromCallConnection, toCallConnection }; + } + catch (RequestFailedException ex) + { + Console.WriteLine(ex.Message); + Assert.Fail($"Unexpected error: {ex}"); + throw; + } + catch (Exception ex) + { + Assert.Fail($"Unexpected error: {ex}"); + + if (fromCallConnection != null) + { + await fromCallConnection.HangupAsync().ConfigureAwait(false); + } + + if (toCallConnection != null) + { + await toCallConnection.HangupAsync().ConfigureAwait(false); + } + throw; + } + } + #endregion Snippet:Azure_Communication_ServerCalling_Tests_CreateGroupCallOperation + + #region Snippet:Azure_Communication_ServerCalling_Tests_CreateCallConnectionOperation + internal async Task> CreateCallConnectionOperation(CallingServerClient client) + { + CommunicationIdentityClient communicationIdentityClient = CreateInstrumentedCommunicationIdentityClient(); + var source = await CreateUserAsync(communicationIdentityClient).ConfigureAwait(false); + + var targets = new[] { new PhoneNumberIdentifier(TestEnvironment.TargetPhoneNumber) }; + var createCallOption = new CreateCallOptions( + new Uri(TestEnvironment.AppCallbackUrl), + new[] { MediaType.Audio }, + new[] { EventSubscriptionType.ParticipantsUpdated, EventSubscriptionType.DtmfReceived }); + createCallOption.AlternateCallerId = new PhoneNumberIdentifier(TestEnvironment.SourcePhoneNumber); + + Console.WriteLine("Performing CreateCall operation"); + + var callConnection = await client.CreateCallConnectionAsync(source: source, targets: targets, options: createCallOption).ConfigureAwait(false); + + Console.WriteLine("Call initiated with Call connection id: {0}", callConnection.Value.CallConnectionId); + + Assert.IsFalse(string.IsNullOrWhiteSpace(callConnection.Value.CallConnectionId)); + return callConnection; + } + #endregion Snippet:Azure_Communication_ServerCalling_Tests_CreateCallConnectionOperation + + #region Snippet:Azure_Communication_ServerCalling_Tests_PlayAudioOperation + internal async Task PlayAudioOperation(CallConnection callConnection) + { + var playAudioOptions = new PlayAudioOptions() + { + AudioFileUri = new Uri(TestEnvironment.AudioFileUrl), + OperationContext = "de346f03-7f8d-41ab-a232-cc5e14990769", + Loop = false, + AudioFileId = "ebb1d98d-fd86-4204-800c-f7bdfc2e515c" + }; + + Console.WriteLine("Performing PlayAudio operation"); + + var response = await callConnection.PlayAudioAsync(playAudioOptions).ConfigureAwait(false); + + Assert.AreEqual(response.Value.Status, OperationStatus.Running); + } + + internal async Task PlayAudioOperation(ServerCall serverCall) + { + Console.WriteLine("Performing PlayAudio operation"); + + var response = await serverCall.PlayAudioAsync( + audioFileUri: new Uri(TestEnvironment.AudioFileUrl), + audioFileId: "ebb1d98d-fd86-4204-800c-f7bdfc2e515c", + callbackUri: new Uri(TestEnvironment.AppCallbackUrl), + operationContext: "de346f03-7f8d-41ab-a232-cc5e14990769" + ).ConfigureAwait(false); + + Assert.AreEqual(response.Value.Status, OperationStatus.Running); + } + #endregion Snippet:Azure_Communication_ServerCalling_Tests_PlayAudioOperation + + #region Snippet:Azure_Communication_ServerCalling_Tests_HangupCallOperation + internal async Task HangupOperation(CallConnection callConnection) + { + Console.WriteLine("Performing Hangup operation"); + + var response = await callConnection.HangupAsync().ConfigureAwait(false); + + Assert.AreEqual(202, response.Status); + } + #endregion Snippet:Azure_Communication_ServerCalling_Tests_HangupCallOperation + + #region Snippet:Azure_Communication_ServerCalling_Tests_CancelMediaOperationsOperation + internal async Task CancelAllMediaOperationsOperation(CallConnection callConnection) + { + Console.WriteLine("Performing cancel media processing operation to stop playing audio"); + + var response = await callConnection.CancelAllMediaOperationsAsync().ConfigureAwait(false); + + Assert.AreEqual(OperationStatus.Completed, response.Value.Status); + } + + internal async Task CancelAllMediaOperationsOperation(IEnumerable callConnections) + { + Console.WriteLine("Performing cancel media processing operation to stop playing audio"); + + if (callConnections == null) + { + return; + } + foreach (CallConnection callConnection in callConnections) + { + if (callConnection != null) + { + try + { + var response = await callConnection.CancelAllMediaOperationsAsync().ConfigureAwait(false); + Assert.AreEqual(OperationStatus.Completed, response.Value.Status); + } + catch (Exception ex) + { + Console.WriteLine("Error hanging up: " + ex.Message); + } + } + } + } + #endregion Snippet:Azure_Communication_ServerCalling_Tests_CancelMediaOperationsOperation + + #region Snippet:Azure_Communication_ServerCalling_Tests_AddParticipantOperation + internal async Task AddParticipantOperation(CallConnection callConnection) + { + Console.WriteLine("Performing add participant operation to add a participant"); + + string invitedUser = GetFixedUserId("0000000a-b200-7a0d-570c-113a0d00288d"); + + var response = await callConnection.AddParticipantAsync(new CommunicationUserIdentifier(invitedUser)).ConfigureAwait(false); + + Assert.AreEqual(false, string.IsNullOrEmpty(response.Value.ParticipantId)); + + return response.Value.ParticipantId; + } + + internal async Task AddParticipantOperation(ServerCall serverCall) + { + Console.WriteLine("Performing add participant operation to add a participant"); + + string invitedUser = GetFixedUserId("0000000a-b200-7a0d-570c-113a0d00288d"); + + var response = await serverCall.AddParticipantAsync( + new CommunicationUserIdentifier(invitedUser), + callbackUri: new Uri(TestEnvironment.AppCallbackUrl) + ).ConfigureAwait(false); + + Assert.AreEqual(false, string.IsNullOrEmpty(response.Value.ParticipantId)); + + return response.Value.ParticipantId; + } + #endregion Snippet:Azure_Communication_ServerCalling_Tests_AddParticipantOperation + + #region Snippet:Azure_Communication_ServerCalling_Tests_RemoveParticipantOperation + internal async Task RemoveParticipantOperation(CallConnection callConnection, string participantId) + { + Console.WriteLine("Performing remove participant operation to remove a participant"); + + var response = await callConnection.RemoveParticipantAsync(participantId).ConfigureAwait(false); + + Assert.AreEqual(202, response.Status); + } + + internal async Task RemoveParticipantOperation(ServerCall serverCall, string participantId) + { + Console.WriteLine("Performing remove participant operation to remove a participant"); + + var response = await serverCall.RemoveParticipantAsync(participantId).ConfigureAwait(false); + + Assert.AreEqual(202, response.Status); + } + #endregion Snippet:Azure_Communication_ServerCalling_Tests_RemoveParticipantOperation + #endregion Api operation functions + + #region Support functions + private CommunicationUserIdentifier CreateUser(CommunicationIdentityClient communicationIdentityClient) + { + // reserve for living test, expect adding more content in the future. + return communicationIdentityClient.CreateUser(); + } + + private async Task CreateUserAsync(CommunicationIdentityClient communicationIdentityClient) + { + // reserve for living test, expect adding more content in the future. + return await communicationIdentityClient.CreateUserAsync(); + } + + protected async Task CleanUpConnectionsAsync(IEnumerable connections) + { + if (connections == null) + { + return; + } + foreach (CallConnection connection in connections) + { + if (connection != null) + { + try + { + await connection.HangupAsync().ConfigureAwait(false); + } + catch (Exception ex) + { + Console.WriteLine("Error hanging up: " + ex.Message); + } + } + } + } + + protected async Task SleepIfNotInPlaybackModeAsync(int milliSeconds = 10000) { if (TestEnvironment.Mode != RecordedTestMode.Playback) await Task.Delay(10000); } - private CallClientOptions CreateServerCallingClientOptionsWithCorrelationVectorLogs() + protected void SleepInTest(int milliSeconds) + { + if (Mode == RecordedTestMode.Playback) + return; + Thread.Sleep(milliSeconds); + } + + protected async Task ValidateCallRecordingStateAsync(ServerCall serverCall, + string recordingId, + CallRecordingState expectedCallRecordingState) + { + Assert.NotNull(serverCall); + Assert.NotNull(recordingId); + + // There is a delay between the action and when the state is available. + // Waiting to make sure we get the updated state, when we are running + // against a live service. + SleepInTest(6000); + + CallRecordingProperties callRecordingProperties = await serverCall.GetRecordingStateAsync(recordingId).ConfigureAwait(false); + Assert.NotNull(callRecordingProperties); + Assert.AreEqual(callRecordingProperties.RecordingState, expectedCallRecordingState); + } + + private CallingServerClientOptions CreateServerCallingClientOptionsWithCorrelationVectorLogs() { - CallClientOptions callClientOptions = new CallClientOptions(); + CallingServerClientOptions callClientOptions = new CallingServerClientOptions(); callClientOptions.Diagnostics.LoggedHeaderNames.Add("MS-CV"); return InstrumentClientOptions(callClientOptions); } + #endregion Support functions } } diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/Infrastructure/CallingServerTestBase.cs b/sdk/communication/Azure.Communication.CallingServer/tests/Infrastructure/CallingServerTestBase.cs new file mode 100644 index 000000000000..ae899c237e40 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/tests/Infrastructure/CallingServerTestBase.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; +using Azure.Core.TestFramework; + +namespace Azure.Communication.CallingServer.Tests +{ + public class CallingServerTestBase + { + protected const string connectionString = "endpoint=https://contoso.azure.com/;accesskey=ZHVtbXlhY2Nlc3NrZXk="; + + protected const string CreateOrJoinCallPayload = "{" + + "\"callConnectionId\": \"cad9df7b-f3ac-4c53-96f7-c76e7437b3c1\"" + + "}"; + + internal CallingServerClient CreateMockCallingServerClient(int responseCode, object? responseContent = null, HttpHeader[]? httpHeaders = null) + { + var mockResponse = new MockResponse(responseCode); + + if (responseContent != null) + { + if (responseContent is string responseContentString) + { + mockResponse.SetContent(responseContentString); + } + else if (responseContent is byte[] responseContentObjectArr) + { + mockResponse.SetContent(responseContentObjectArr); + } + } + + if (httpHeaders != null) + { + for (int i = 0; i < httpHeaders.Length; i++) + { + mockResponse.AddHeader(httpHeaders[i]); + } + } + + var callingServerClientOptions = new CallingServerClientOptions + { + Transport = new MockTransport(mockResponse) + }; + + return new CallingServerClient(connectionString, callingServerClientOptions); + } + + internal CallingServerClient CreateMockCallingServerClient(params MockResponse[] mockResponses) + { + var callingServerClientOptions = new CallingServerClientOptions + { + Transport = new MockTransport(mockResponses) + }; + + return new CallingServerClient(connectionString, callingServerClientOptions); + } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/Infrastructure/CallingServerTestEnvironment.cs b/sdk/communication/Azure.Communication.CallingServer/tests/Infrastructure/CallingServerTestEnvironment.cs index fe5f29568918..7a24cbf54bd5 100644 --- a/sdk/communication/Azure.Communication.CallingServer/tests/Infrastructure/CallingServerTestEnvironment.cs +++ b/sdk/communication/Azure.Communication.CallingServer/tests/Infrastructure/CallingServerTestEnvironment.cs @@ -12,16 +12,25 @@ namespace Azure.Communication.CallingServer.Tests /// public class CallingServerTestEnvironment : CommunicationTestEnvironment { + public const string AlternateCallerId = "ALTERNATE_CALLERID"; + + public const string ResourceId = "COMMUNICATION_LIVETEST_STATIC_RESOURCE_IDENTIFIER"; + /// - /// The phone number associated with the source. + /// The phone number required to make a pstn call. /// - public string SourcePhoneNumber => GetRecordedVariable(AzurePhoneNumber, options => options.IsSecret()); + public string SourcePhoneNumber => GetRecordedVariable(AlternateCallerId, options => options.IsSecret()); /// /// The phone number associated with the source. /// public string TargetPhoneNumber => GetRecordedVariable(AzurePhoneNumber, options => options.IsSecret()); + /// + /// The resource identifier associated with the Azure Communication Service. + /// + public string ResourceIdentifier => GetRecordedVariable(ResourceId, options => options.IsSecret()); + /// /// The audio file name of the play prompt. /// diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/ServerCall/ServerCallLiveTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/ServerCall/ServerCallLiveTests.cs new file mode 100644 index 000000000000..a704c082f8ad --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/tests/ServerCall/ServerCallLiveTests.cs @@ -0,0 +1,144 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Linq; +using System.Threading.Tasks; +using NUnit.Framework; + +namespace Azure.Communication.CallingServer.Tests +{ + /// + /// The suite of tests for the class. + /// + /// + /// These tests have a dependency on live Azure services and may incur costs for the associated + /// Azure subscription. + /// + public class ServerCallLiveTests : CallingServerLiveTestBase + { + /// + /// Initializes a new instance of the class. + /// + /// A flag used by the Azure Core Test Framework to differentiate between tests for asynchronous and synchronous methods. + public ServerCallLiveTests(bool isAsync) : base(isAsync) + { + } + + [Test] + public async Task RunAllRecordingFunctionsScenarioTests() + { + CallingServerClient callingServerClient = CreateInstrumentedCallingServerClient(); + var groupId = GetGroupId(); + try + { + // Establish a Call + var callConnections = await CreateGroupCallOperation(callingServerClient, groupId, GetFromUserId(), GetToUserId(), TestEnvironment.AppCallbackUrl).ConfigureAwait(false); + var serverCall = callingServerClient.InitializeServerCall(groupId); + + // Start Recording + StartCallRecordingResult startCallRecordingResult = await serverCall.StartRecordingAsync(new Uri(TestEnvironment.AppCallbackUrl)).ConfigureAwait(false); + var recordingId = startCallRecordingResult.RecordingId; + await ValidateCallRecordingStateAsync(serverCall, recordingId, CallRecordingState.Active).ConfigureAwait(false); + + // Pause Recording + await serverCall.PauseRecordingAsync(recordingId).ConfigureAwait(false); + await ValidateCallRecordingStateAsync(serverCall, recordingId, CallRecordingState.Inactive).ConfigureAwait(false); + + // Resume Recording + await serverCall.ResumeRecordingAsync(recordingId).ConfigureAwait(false); + await ValidateCallRecordingStateAsync(serverCall, recordingId, CallRecordingState.Active).ConfigureAwait(false); + + // Stop Recording + await serverCall.StopRecordingAsync(recordingId).ConfigureAwait(false); + + // Get Recording StateAsync + Assert.ThrowsAsync(async () => await serverCall.GetRecordingStateAsync(recordingId).ConfigureAwait(false)); + + // Hang up the Call, there is one call leg in this test case, hangup the call will also delete the call as the result. + await SleepIfNotInPlaybackModeAsync().ConfigureAwait(false); + await CleanUpConnectionsAsync(callConnections).ConfigureAwait(false); + } + catch (RequestFailedException ex) + { + Console.WriteLine(ex.Message); + Assert.Fail($"Unexpected error: {ex}"); + } + catch (Exception ex) + { + Assert.Fail($"Unexpected error: {ex}"); + } + } + + [Test] + public async Task RunCreatePlayCancelHangupScenarioTests() + { + CallingServerClient callingServerClient = CreateInstrumentedCallingServerClient(); + var groupId = GetGroupId(); + try + { + // Establish a Call + var callConnections = await CreateGroupCallOperation(callingServerClient, groupId, GetFromUserId(), GetToUserId(), TestEnvironment.AppCallbackUrl).ConfigureAwait(false); + var serverCall = callingServerClient.InitializeServerCall(groupId); + + // Play Prompt Audio + await SleepIfNotInPlaybackModeAsync().ConfigureAwait(false); + await PlayAudioOperation(serverCall).ConfigureAwait(false); + + // Cancel Prompt Audio + await SleepIfNotInPlaybackModeAsync().ConfigureAwait(false); + await CancelAllMediaOperationsOperation(callConnections).ConfigureAwait(false); + + // Hang up the Call, there is one call leg in this test case, hangup the call will also delete the call as the result. + await SleepIfNotInPlaybackModeAsync().ConfigureAwait(false); + await CleanUpConnectionsAsync(callConnections).ConfigureAwait(false); + } + catch (RequestFailedException ex) + { + Console.WriteLine(ex.Message); + Assert.Fail($"Unexpected error: {ex}"); + } + catch (Exception ex) + { + Assert.Fail($"Unexpected error: {ex}"); + } + } + + [Test] + public async Task RunCreateAddRemoveHangupScenarioTests() + { + if (SkipCallingServerInteractionLiveTests) + Assert.Ignore("Skip callingserver interaction live tests flag is on."); + + CallingServerClient callingServerClient = CreateInstrumentedCallingServerClient(); + var groupId = GetGroupId(); + try + { + // Establish a Call + var callConnections = await CreateGroupCallOperation(callingServerClient, groupId, GetFromUserId(), GetToUserId(), TestEnvironment.AppCallbackUrl).ConfigureAwait(false); + var serverCall = callingServerClient.InitializeServerCall(groupId); + + // Add Participant + await SleepIfNotInPlaybackModeAsync().ConfigureAwait(false); + var participantId = await AddParticipantOperation(serverCall).ConfigureAwait(false); + + // Remove Participant + await SleepIfNotInPlaybackModeAsync().ConfigureAwait(false); + await RemoveParticipantOperation(serverCall, participantId).ConfigureAwait(false); + + // Hang up the Call, there is one call leg in this test case, hangup the call will also delete the call as the result. + await SleepIfNotInPlaybackModeAsync().ConfigureAwait(false); + await CleanUpConnectionsAsync(callConnections).ConfigureAwait(false); + } + catch (RequestFailedException ex) + { + Console.WriteLine(ex.Message); + Assert.Fail($"Unexpected error: {ex}"); + } + catch (Exception ex) + { + Assert.Fail($"Unexpected error: {ex}"); + } + } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/ServerCall/ServerCallTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/ServerCall/ServerCallTests.cs new file mode 100644 index 000000000000..090693c64f56 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/tests/ServerCall/ServerCallTests.cs @@ -0,0 +1,450 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.Net; +using System.Threading.Tasks; +using NUnit.Framework; + +namespace Azure.Communication.CallingServer.Tests +{ + public class ServerCallTests : CallingServerTestBase + { + private const string DummyStartRecordingResponse = "{" + + "\"recordingId\": \"dummyRecordingId\"" + + "}"; + private const string DummyRecordingStateResponse = "{" + + "\"recordingState\": \"active\"" + + "}"; + + private const string DummyPlayAudioResponse = "{" + + "\"operationId\": \"dummyId\"," + + "\"status\": \"running\"," + + "\"operationContext\": \"dummyOperationContext\"," + + "\"resultInfo\": {" + + "\"code\": 200," + + "\"subcode\": 200," + + "\"message\": \"dummyMessage\"" + + "}" + + "}"; + + private const string AddParticipantResultPayload = "{" + + "\"participantId\": \"dummyparticipantid\"" + + "}"; + + [TestCaseSource(nameof(TestData_StartRecording))] + public async Task StartRecordingAsync_Returns200Ok(Uri sampleCallBackUri) + { + ServerCall serverCall = CreateMockServerCall(200, responseContent: DummyStartRecordingResponse); + + Response result = await serverCall.StartRecordingAsync(sampleCallBackUri); + Assert.AreEqual("dummyRecordingId", result.Value.RecordingId); + } + + [TestCaseSource(nameof(TestData_StartRecording))] + public void StartRecording_Returns200Ok(Uri sampleCallBackUri) + { + ServerCall serverCall = CreateMockServerCall(200, responseContent: DummyStartRecordingResponse); + + StartCallRecordingResult result = serverCall.StartRecording(sampleCallBackUri); + Assert.AreEqual("dummyRecordingId", result.RecordingId); + } + + [TestCaseSource(nameof(TestData_StartRecording))] + public void StartRecordingAsync_Returns404NotFound(Uri sampleCallBackUri) + { + ServerCall serverCall = CreateMockServerCall(404); + + RequestFailedException? ex = Assert.ThrowsAsync(async () => await serverCall.StartRecordingAsync(sampleCallBackUri).ConfigureAwait(false)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_StartRecording))] + public void StartRecording_Returns404NotFound(Uri sampleCallBackUri) + { + ServerCall serverCall = CreateMockServerCall(404); + + RequestFailedException? ex = Assert.Throws(() => serverCall.StartRecording(sampleCallBackUri)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_StopRecording))] + public async Task StopRecordingAsync_Return200Ok(string sampleRecordingId) + { + ServerCall serverCall = CreateMockServerCall(200); + + Response response = await serverCall.StopRecordingAsync(sampleRecordingId); + Assert.AreEqual((int)HttpStatusCode.OK, response.Status); + } + + [TestCaseSource(nameof(TestData_StopRecording))] + public void StopRecording_Return200Ok(string sampleRecordingId) + { + ServerCall serverCall = CreateMockServerCall(200); + + Response response = serverCall.StopRecording(sampleRecordingId); + Assert.AreEqual((int)HttpStatusCode.OK, response.Status); + } + + [TestCaseSource(nameof(TestData_StopRecording))] + public void StopRecordingAsync_Returns404NotFound(string sampleRecordingId) + { + ServerCall serverCall = CreateMockServerCall(404); + + RequestFailedException? ex = Assert.ThrowsAsync(async () => await serverCall.StopRecordingAsync(sampleRecordingId).ConfigureAwait(false)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_StopRecording))] + public void StopRecording_Returns404NotFound(string sampleRecordingId) + { + ServerCall serverCall = CreateMockServerCall(404); + + RequestFailedException? ex = Assert.Throws(() => serverCall.StopRecording(sampleRecordingId)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_PauseRecording))] + public async Task PauseRecordingAsync_Return200Ok(string sampleRecordingId) + { + ServerCall serverCall = CreateMockServerCall(200); + + Response response = await serverCall.PauseRecordingAsync(sampleRecordingId); + Assert.AreEqual((int)HttpStatusCode.OK, response.Status); + } + + [TestCaseSource(nameof(TestData_PauseRecording))] + public void PauseRecording_Return200Ok(string sampleRecordingId) + { + ServerCall serverCall = CreateMockServerCall(200); + + Response response = serverCall.PauseRecording(sampleRecordingId); + Assert.AreEqual((int)HttpStatusCode.OK, response.Status); + } + + [TestCaseSource(nameof(TestData_PauseRecording))] + public void PauseRecordingAsync_Returns404NotFound(string sampleRecordingId) + { + ServerCall serverCall = CreateMockServerCall(404); + + RequestFailedException? ex = Assert.ThrowsAsync(async () => await serverCall.PauseRecordingAsync(sampleRecordingId).ConfigureAwait(false)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_PauseRecording))] + public void PauseRecording_Returns404NotFound(string sampleRecordingId) + { + ServerCall serverCall = CreateMockServerCall(404); + + RequestFailedException? ex = Assert.Throws(() => serverCall.PauseRecording(sampleRecordingId)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_ResumeRecording))] + public async Task ResumeRecordingAsync_Return200Ok(string sampleRecordingId) + { + ServerCall serverCall = CreateMockServerCall(200); + + Response response = await serverCall.ResumeRecordingAsync(sampleRecordingId); + Assert.AreEqual((int)HttpStatusCode.OK, response.Status); + } + + [TestCaseSource(nameof(TestData_ResumeRecording))] + public void ResumeRecording_Return200Ok(string sampleRecordingId) + { + ServerCall serverCall = CreateMockServerCall(200); + + Response response = serverCall.ResumeRecording(sampleRecordingId); + Assert.AreEqual((int)HttpStatusCode.OK, response.Status); + } + + [TestCaseSource(nameof(TestData_ResumeRecording))] + public void ResumeRecordingAsync_Returns404NotFound(string sampleRecordingId) + { + ServerCall serverCall = CreateMockServerCall(404); + + RequestFailedException? ex = Assert.ThrowsAsync(async () => await serverCall.ResumeRecordingAsync(sampleRecordingId).ConfigureAwait(false)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_ResumeRecording))] + public void ResumeRecording_Returns404NotFound(string sampleRecordingId) + { + ServerCall serverCall = CreateMockServerCall(404); + + RequestFailedException? ex = Assert.Throws(() => serverCall.ResumeRecording(sampleRecordingId)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_GetRecordingState))] + public async Task GetRecordingStateAsync_Return200Ok(string sampleRecordingId) + { + ServerCall serverCall = CreateMockServerCall(200, responseContent: DummyRecordingStateResponse); + + Response result = await serverCall.GetRecordingStateAsync(sampleRecordingId); + Assert.AreEqual(CallRecordingState.Active, result.Value.RecordingState); + } + + [TestCaseSource(nameof(TestData_GetRecordingState))] + public void GetRecordingState_Return200Ok(string sampleRecordingId) + { + ServerCall serverCall = CreateMockServerCall(200, responseContent: DummyRecordingStateResponse); + + CallRecordingProperties result = serverCall.GetRecordingState(sampleRecordingId); + Assert.AreEqual(CallRecordingState.Active, result.RecordingState); + } + + [TestCaseSource(nameof(TestData_GetRecordingState))] + public void GetRecordingStateAsync_Returns404NotFound(string sampleRecordingId) + { + ServerCall serverCall = CreateMockServerCall(404); + + RequestFailedException? ex = Assert.ThrowsAsync(async () => await serverCall.GetRecordingStateAsync(sampleRecordingId).ConfigureAwait(false)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_GetRecordingState))] + public void GetRecordingState_Returns404NotFound(string sampleRecordingId) + { + ServerCall serverCall = CreateMockServerCall(404); + + RequestFailedException? ex = Assert.Throws(() => serverCall.GetRecordingState(sampleRecordingId)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_PlayAudio))] + public async Task PlayAudioAsync_Return202Accepted(Uri sampleAudioFileUri, string sampleAudioFileId, Uri sampleCallbackUri, string sampleOperationContext) + { + ServerCall serverCall = CreateMockServerCall(202, responseContent: DummyPlayAudioResponse); + + Response result = await serverCall.PlayAudioAsync(sampleAudioFileUri, sampleAudioFileId, sampleCallbackUri, sampleOperationContext); + VerifyPlayAudioResult(result); + } + + [TestCaseSource(nameof(TestData_PlayAudio))] + public void PlayAudio_Return202Accepted(Uri sampleAudioFileUri, string sampleAudioFileId, Uri sampleCallbackUri, string sampleOperationContext) + { + ServerCall serverCall = CreateMockServerCall(202, responseContent: DummyPlayAudioResponse); + + PlayAudioResult result = serverCall.PlayAudio(sampleAudioFileUri, sampleAudioFileId, sampleCallbackUri, sampleOperationContext); + VerifyPlayAudioResult(result); + } + + [TestCaseSource(nameof(TestData_PlayAudio))] + public void PlayAudioAsync_Returns404NotFound(Uri sampleAudioFileUri, string sampleAudioFileId, Uri sampleCallbackUri, string sampleOperationContext) + { + ServerCall serverCall = CreateMockServerCall(404); + + RequestFailedException? ex = Assert.ThrowsAsync(async () => await serverCall.PlayAudioAsync(sampleAudioFileUri, sampleAudioFileId, sampleCallbackUri, sampleOperationContext).ConfigureAwait(false)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_PlayAudio))] + public void PlayAudio_Returns404NotFound(Uri sampleAudioFileUri, string sampleAudioFileId, Uri sampleCallbackUri, string sampleOperationContext) + { + ServerCall serverCall = CreateMockServerCall(404); + + RequestFailedException? ex = Assert.Throws(() => serverCall.PlayAudio(sampleAudioFileUri, sampleAudioFileId, sampleCallbackUri, sampleOperationContext)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_AddParticipant))] + public async Task AddParticipantsAsync_Return202Accepted(CommunicationIdentifier participant, Uri callBack, string alternateCallerId, string operationContext) + { + var serverCall = CreateMockServerCall(202, AddParticipantResultPayload); + + var response = await serverCall.AddParticipantAsync(participant, callBack, alternateCallerId, operationContext).ConfigureAwait(false); + Assert.AreEqual((int)HttpStatusCode.Accepted, response.GetRawResponse().Status); + Assert.AreEqual("dummyparticipantid", response.Value.ParticipantId); + } + + [TestCaseSource(nameof(TestData_AddParticipant))] + public void AddParticipants_Return202Accepted(CommunicationIdentifier participant, Uri callBack, string alternateCallerId, string operationContext) + { + var serverCall = CreateMockServerCall(202, AddParticipantResultPayload); + + var response = serverCall.AddParticipant(participant, callBack, alternateCallerId, operationContext); + Assert.AreEqual((int)HttpStatusCode.Accepted, response.GetRawResponse().Status); + Assert.AreEqual("dummyparticipantid", response.Value.ParticipantId); + } + + [TestCaseSource(nameof(TestData_AddParticipant))] + public void AddParticipantsAsync_Returns404NotFound(CommunicationIdentifier participant, Uri callBack, string alternateCallerId, string operationContext) + { + var serverCall = CreateMockServerCall(404); + + RequestFailedException? ex = Assert.ThrowsAsync(async () => await serverCall.AddParticipantAsync(participant, callBack, alternateCallerId, operationContext).ConfigureAwait(false)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_AddParticipant))] + public void AddParticipants_Returns404NotFound(CommunicationIdentifier participant, Uri callBack, string alternateCallerId, string operationContext) + { + var serverCall = CreateMockServerCall(404); + + RequestFailedException? ex = Assert.Throws(() => serverCall.AddParticipant(participant, callBack, alternateCallerId, operationContext)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_ParticipantId))] + public async Task RemoveParticipantsAsync_Return202Accepted(string participantId) + { + var serverCall = CreateMockServerCall(202); + + var response = await serverCall.RemoveParticipantAsync(participantId).ConfigureAwait(false); + Assert.AreEqual((int)HttpStatusCode.Accepted, response.Status); + } + + [TestCaseSource(nameof(TestData_ParticipantId))] + public void RemoveParticipants_Return202Accepted(string participantId) + { + var serverCall = CreateMockServerCall(202); + + var response = serverCall.RemoveParticipant(participantId); + Assert.AreEqual((int)HttpStatusCode.Accepted, response.Status); + } + + [TestCaseSource(nameof(TestData_ParticipantId))] + public void RemoveParticipantsAsync_Returns404NotFound(string participantId) + { + var serverCall = CreateMockServerCall(404); + + RequestFailedException? ex = Assert.ThrowsAsync(async () => await serverCall.RemoveParticipantAsync(participantId).ConfigureAwait(false)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + [TestCaseSource(nameof(TestData_ParticipantId))] + public void RemoveParticipants_Returns404NotFound(string participantId) + { + var serverCall = CreateMockServerCall(404); + + RequestFailedException? ex = Assert.Throws(() => serverCall.RemoveParticipant(participantId)); + Assert.NotNull(ex); + Assert.AreEqual(ex?.Status, 404); + } + + private void VerifyPlayAudioResult(PlayAudioResult response) + { + Assert.AreEqual("dummyId", response.OperationId); + Assert.AreEqual(OperationStatus.Running, response.Status); + Assert.AreEqual("dummyOperationContext", response.OperationContext); + Assert.AreEqual(200, response.ResultInfo.Code); + Assert.AreEqual("dummyMessage", response.ResultInfo.Message); + } + + private static IEnumerable TestData_StartRecording() + { + return new[] + { + new object?[] + { + new Uri("https://somecallbackurl"), + }, + }; + } + + private static IEnumerable TestData_StopRecording() + { + return new[] + { + new object?[] + { + "sampleRecordingId", + }, + }; + } + + private static IEnumerable TestData_PauseRecording() + { + return new[] + { + new object?[] + { + "sampleRecordingId", + }, + }; + } + + private static IEnumerable TestData_ResumeRecording() + { + return new[] + { + new object?[] + { + "sampleRecordingId", + }, + }; + } + + private static IEnumerable TestData_GetRecordingState() + { + return new[] + { + new object?[] + { + "sampleRecordingId", + }, + }; + } + + private static IEnumerable TestData_PlayAudio() + { + return new[] + { + new object?[] + { + new Uri("https://av.ngrok.io/audio/sample-message.wav"), + "sampleAudioFileId", + new Uri("https://av.ngrok.io/someCallbackUri"), + "sampleOperationContext", + } + }; + } + + private static IEnumerable TestData_AddParticipant() + { + return new[] + { + new object?[] + { + new CommunicationUserIdentifier("8:acs:acsuserid"), + new Uri("https://bot.contoso.com/callback"), + "+14250000000", + "dummycontext" + }, + }; + } + + private static IEnumerable TestData_ParticipantId() + { + return new[] + { + new object?[] + { + "66c76529-3e58-45bf-9592-84eadd52bc81" + }, + }; + } + + private ServerCall CreateMockServerCall(int responseCode, string? responseContent = null, string serverCallId = "sampleServerCallId") + { + return CreateMockCallingServerClient(responseCode, responseContent).InitializeServerCall(serverCallId); + } + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/ServerCallingClients/CallingServerClientsLiveTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/ServerCallingClients/CallingServerClientsLiveTests.cs deleted file mode 100644 index 7d411cb0844f..000000000000 --- a/sdk/communication/Azure.Communication.CallingServer/tests/ServerCallingClients/CallingServerClientsLiveTests.cs +++ /dev/null @@ -1,245 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -#region Snippet:Azure_Communication_ServerCalling_Tests_UsingStatements -using System; -using System.Collections.Generic; -//@@ using Azure.Communication.CallingServer; -#endregion Snippet:Azure_Communication_ServerCalling_Tests_UsingStatements -using Azure.Communication.Identity; - -using Azure.Core.TestFramework; -using NUnit.Framework; -using System.Threading.Tasks; - -namespace Azure.Communication.CallingServer.Tests -{ - /// - /// The suite of tests for the class. - /// - /// - /// These tests have a dependency on live Azure services and may incur costs for the associated - /// Azure subscription. - /// - public class CallingServerClientsLiveTests : CallingServerLiveTestBase - { - /// - /// Initializes a new instance of the class. - /// - /// A flag used by the Azure Core Test Framework to differentiate between tests for asynchronous and synchronous methods. - public CallingServerClientsLiveTests(bool isAsync) : base(isAsync) - { - } - - [Test] - public async Task CreateCallTest() - { - CallClient client = CreateInstrumentedCallingServerClient(); - try - { - await CreateCallOperation(client).ConfigureAwait(false); - } - catch (RequestFailedException ex) - { - Console.WriteLine(ex.Message); - Assert.Fail($"Unexpected error: {ex}"); - } - catch (Exception ex) - { - Assert.Fail($"Unexpected error: {ex}"); - } - } - - [Test] - public async Task DeteleCallTest() - { - CallClient client = CreateInstrumentedCallingServerClient(); - try - { - var createCallResponse = await CreateCallOperation(client).ConfigureAwait(false); - var callLegId = createCallResponse.Value.CallLegId; - - await DeteleCallOperation(client, callLegId).ConfigureAwait(false); - } - catch (RequestFailedException ex) - { - Console.WriteLine(ex.Message); - Assert.Fail($"Unexpected error: {ex}"); - } - catch (Exception ex) - { - Assert.Fail($"Unexpected error: {ex}"); - } - } - - [Test] - public async Task PlayAudioTest() - { - CallClient client = CreateInstrumentedCallingServerClient(); - try - { - var createCallResponse = await CreateCallOperation(client).ConfigureAwait(false); - var callLegId = createCallResponse.Value.CallLegId; - - await SleepIfNotInPlaybackModeAsync().ConfigureAwait(false); - await PlayAudioOperation(client, callLegId).ConfigureAwait(false); - - await DeteleCallOperation(client, callLegId).ConfigureAwait(false); - } - catch (RequestFailedException ex) - { - Console.WriteLine(ex.Message); - Assert.Fail($"Unexpected error: {ex}"); - } - catch (Exception ex) - { - Assert.Fail($"Unexpected error: {ex}"); - } - } - - [Test] - public async Task HangupCallTest() - { - CallClient client = CreateInstrumentedCallingServerClient(); - try - { - var createCallResponse = await CreateCallOperation(client).ConfigureAwait(false); - var callLegId = createCallResponse.Value.CallLegId; - - // There is one call leg in this test case, hangup the call will also delete the call as the result. - await HangupOperation(client, callLegId).ConfigureAwait(false); - } - catch (RequestFailedException ex) - { - Console.WriteLine(ex.Message); - Assert.Fail($"Unexpected error: {ex}"); - } - catch (Exception ex) - { - Assert.Fail($"Unexpected error: {ex}"); - } - } - - [Test] - public async Task CancelAllMediaOperationsTest() - { - CallClient client = CreateInstrumentedCallingServerClient(); - try - { - var createCallResponse = await CreateCallOperation(client).ConfigureAwait(false); - var callLegId = createCallResponse.Value.CallLegId; - - await SleepIfNotInPlaybackModeAsync().ConfigureAwait(false); - await PlayAudioOperation(client, callLegId).ConfigureAwait(false); - - await SleepIfNotInPlaybackModeAsync().ConfigureAwait(false); - await CancelAllMediaOperationsOperation(client, callLegId).ConfigureAwait(false); - - await DeteleCallOperation(client, callLegId).ConfigureAwait(false); - } - catch (RequestFailedException ex) - { - Console.WriteLine(ex.Message); - Assert.Fail($"Unexpected error: {ex}"); - } - catch (Exception ex) - { - Assert.Fail($"Unexpected error: {ex}"); - } - } - - #region Support functions - #region Snippet:Azure_Communication_ServerCalling_Tests_CreateCallOperation - private async Task> CreateCallOperation(CallClient client) - { - CommunicationIdentityClient communicationIdentityClient = CreateInstrumentedCommunicationIdentityClient(); - var source = await CreateUserAsync(communicationIdentityClient).ConfigureAwait(false); - - var targets = new List() { new PhoneNumberIdentifier(TestEnvironment.TargetPhoneNumber) }; - var createCallOption = new CreateCallOptions( - new Uri(TestEnvironment.AppCallbackUrl), - new List { CallModality.Audio }, - new List { EventSubscriptionType.ParticipantsUpdated, EventSubscriptionType.DtmfReceived }); - createCallOption.AlternateCallerId = new PhoneNumberIdentifier(TestEnvironment.SourcePhoneNumber); - - Console.WriteLine("Performing CreateCall operation"); - - var createCallResponse = await client.CreateCallAsync(source: source, targets: targets, options: createCallOption).ConfigureAwait(false); - - Console.WriteLine("Call initiated with Call Leg id: {0}", createCallResponse.Value.CallLegId); - - Assert.IsFalse(string.IsNullOrWhiteSpace(createCallResponse.Value.CallLegId)); - return createCallResponse; - } - #endregion Snippet:Azure_Communication_ServerCalling_Tests_CreateCallOperation - - #region Snippet:Azure_Communication_ServerCalling_Tests_DeteleCallOperation - private async Task DeteleCallOperation(CallClient client, string callLegId) - { - var response = await client.DeleteCallAsync(callLegId: callLegId).ConfigureAwait(false); - - Console.WriteLine("Delete Call with Call Leg id: {0}", callLegId); - - Assert.AreEqual(202, response.Status); - Assert.IsFalse(string.IsNullOrWhiteSpace(response.ClientRequestId)); - } - #endregion Snippet:Azure_Communication_ServerCalling_Tests_DeteleCallOperation - - #region Snippet:Azure_Communication_ServerCalling_Tests_PlayAudioOperation - private async Task PlayAudioOperation(CallClient client, string callLegId) - { - var playAudioOptions = new PlayAudioOptions() - { - AudioFileUri = new Uri(TestEnvironment.AudioFileUrl), - OperationContext = "de346f03-7f8d-41ab-a232-cc5e14990769", - Loop = true, - AudioFileId = "ebb1d98d-fd86-4204-800c-f7bdfc2e515c" - }; - - Console.WriteLine("Performing PlayAudio operation"); - - var response = await client.PlayAudioAsync(callLegId, playAudioOptions).ConfigureAwait(false); - - Assert.AreEqual(response.Value.Status, OperationStatus.Running); - } - #endregion Snippet:Azure_Communication_ServerCalling_Tests_PlayAudioOperation - - #region Snippet:Azure_Communication_ServerCalling_Tests_HangupCallOperation - private async Task HangupOperation(CallClient client, string callLegId) - { - Console.WriteLine("Performing Hangup operation"); - - var response = await client.HangupCallAsync(callLegId).ConfigureAwait(false); - - Assert.AreEqual(202, response.Status); - } - #endregion Snippet:Azure_Communication_ServerCalling_Tests_HangupCallOperation - - #region Snippet:Azure_Communication_ServerCalling_Tests_CancelMediaOperationsOperation - private async Task CancelAllMediaOperationsOperation(CallClient client, string callLegId) - { - Console.WriteLine("Performing cancel media processing operation to stop playing audio"); - - var response = await client.CancelAllMediaOperationsAsync(callLegId).ConfigureAwait(false); - - Assert.AreEqual(OperationStatus.Completed, response.Value.Status); - } - #endregion Snippet:Azure_Communication_ServerCalling_Tests_CancelMediaOperationsOperation - - #endregion - - #region Support functions - private CommunicationUserIdentifier CreateUser(CommunicationIdentityClient communicationIdentityClient) - { - // reserve for living test, expect adding more content in the future. - return communicationIdentityClient.CreateUser(); - } - - private async Task CreateUserAsync(CommunicationIdentityClient communicationIdentityClient) - { - // reserve for living test, expect adding more content in the future. - return await communicationIdentityClient.CreateUserAsync(); - } - #endregion Support functions - } -} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/ServerCallingClients/CallingServerClientsTests.cs b/sdk/communication/Azure.Communication.CallingServer/tests/ServerCallingClients/CallingServerClientsTests.cs deleted file mode 100644 index dd8d4d8bb522..000000000000 --- a/sdk/communication/Azure.Communication.CallingServer/tests/ServerCallingClients/CallingServerClientsTests.cs +++ /dev/null @@ -1,305 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Threading; -using System.Threading.Tasks; -using Moq; -using NUnit.Framework; - -namespace Azure.Communication.CallingServer.Tests -{ - public class CallingServerClientsTests - { - [TestCaseSource(nameof(TestData_CreateCall))] - public async Task CreateCallAsyncOverload_Passes(CommunicationIdentifier expectedSource, IEnumerable expectedTargets, CreateCallOptions expectedOptions) - { - Mock mockClient = new Mock() { CallBase = true }; - Response? expectedResponse = default; - CancellationToken cancellationToken = new CancellationTokenSource().Token; - var callExpression = BuildExpression(x => x.CreateCallAsync(It.IsAny(), It.IsAny>(), It.IsAny(), It.IsAny())); - - mockClient - .Setup(callExpression) - .ReturnsAsync((CommunicationIdentifier source, IEnumerable targets, CreateCallOptions options, CancellationToken token) => - { - Assert.AreEqual(expectedSource, source); - Assert.AreEqual(expectedTargets, targets); - Assert.AreEqual(expectedOptions, options); - Assert.AreEqual(cancellationToken, token); - return expectedResponse = new Mock>().Object; - }); - - Response actualResponse = await mockClient.Object.CreateCallAsync(expectedSource, expectedTargets, expectedOptions, cancellationToken); - - mockClient.Verify(callExpression, Times.Once()); - Assert.AreEqual(expectedResponse, actualResponse); - } - - [TestCaseSource(nameof(TestData_CommonOperationWithCallId))] - public async Task DeleteCallAsyncOverload_Passes(string expectedCallLegId) - { - Mock mockClient = new Mock() { CallBase = true }; - Response? expectedResponse = default; - CancellationToken cancellationToken = new CancellationTokenSource().Token; - var callExpression = BuildExpression(x => x.DeleteCallAsync(It.IsAny(), It.IsAny())); - - mockClient - .Setup(callExpression) - .ReturnsAsync((string callLegId, CancellationToken token) => - { - Assert.AreEqual(expectedCallLegId, callLegId); - Assert.AreEqual(cancellationToken, token); - return expectedResponse = new Mock().Object; - }); - - Response actualResponse = await mockClient.Object.DeleteCallAsync(expectedCallLegId, cancellationToken); - - mockClient.Verify(callExpression, Times.Once()); - Assert.AreEqual(expectedResponse, actualResponse); - } - - [TestCaseSource(nameof(TestData_CommonOperationWithCallId))] - public async Task HangupCallAsyncOverload_Passes(string expectedCallLegId) - { - Mock mockClient = new Mock() { CallBase = true }; - Response? expectedResponse = default; - CancellationToken cancellationToken = new CancellationTokenSource().Token; - var callExpression = BuildExpression(x => x.HangupCallAsync(It.IsAny(), It.IsAny())); - - mockClient - .Setup(callExpression) - .ReturnsAsync((string callLegId, CancellationToken token) => - { - Assert.AreEqual(expectedCallLegId, callLegId); - Assert.AreEqual(cancellationToken, token); - return expectedResponse = new Mock().Object; - }); - - Response actualResponse = await mockClient.Object.HangupCallAsync(expectedCallLegId, cancellationToken); - - mockClient.Verify(callExpression, Times.Once()); - Assert.AreEqual(expectedResponse, actualResponse); - } - - [TestCaseSource(nameof(TestData_CancelAllMediaOperations))] - public async Task CancelMediaOperationsAsyncOverload_Passes(string expectedCallLegId, string expectedOperationContext) - { - Mock mockClient = new Mock() { CallBase = true }; - Response? expectedResponse = default; - CancellationToken cancellationToken = new CancellationTokenSource().Token; - var callExpression = BuildExpression(x => x.CancelAllMediaOperationsAsync(It.IsAny(), It.IsAny(), It.IsAny())); - - mockClient - .Setup(callExpression) - .ReturnsAsync((string callLegId, string operationContext, CancellationToken token) => - { - Assert.AreEqual(expectedCallLegId, callLegId); - Assert.AreEqual(expectedOperationContext, operationContext); - Assert.AreEqual(cancellationToken, token); - return expectedResponse = new Mock>().Object; - }); - - Response actualResponse = await mockClient.Object.CancelAllMediaOperationsAsync(expectedCallLegId, expectedOperationContext, cancellationToken); - - mockClient.Verify(callExpression, Times.Once()); - Assert.AreEqual(expectedResponse, actualResponse); - } - - [TestCaseSource(nameof(TestData_PlayAudioWithRequest))] - public async Task PlayAudioAsyncOverload_Passes(string expectedCallLegId, PlayAudioOptions expectedRequest) - { - Mock mockClient = new Mock() { CallBase = true }; - Response? expectedResponse = default; - CancellationToken cancellationToken = new CancellationTokenSource().Token; - var callExpression = BuildExpression(x => x.PlayAudioAsync(It.IsAny(), It.IsAny(), It.IsAny())); - - mockClient - .Setup(callExpression) - .ReturnsAsync((string callLegId, PlayAudioOptions request, CancellationToken token) => - { - Assert.AreEqual(expectedCallLegId, callLegId); - Assert.AreEqual(expectedRequest, request); - Assert.AreEqual(cancellationToken, token); - return expectedResponse = new Mock>().Object; - }); - - Response actualResponse = await mockClient.Object.PlayAudioAsync(expectedCallLegId, expectedRequest, cancellationToken); - - mockClient.Verify(callExpression, Times.Once()); - Assert.AreEqual(expectedResponse, actualResponse); - } - - [TestCaseSource(nameof(TestData_PlayAudioWithoutRequest))] - public async Task PlayAudioAsyncOverload_Passes(string expectedCallLegId, Uri expectedAudioFileUri, bool expectedLoop, string expectedAudioFileId, Uri expectedCallbackUri, string expectedOperationContext) - { - Mock mockClient = new Mock() { CallBase = true }; - Response? expectedResponse = default; - CancellationToken cancellationToken = new CancellationTokenSource().Token; - var callExpression = BuildExpression(x => x.PlayAudioAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())); - - mockClient - .Setup(callExpression) - .ReturnsAsync((string callLegId, Uri audioFileUri, bool loop, string audioFileId, Uri callbackUri, string operationContext, CancellationToken token) => - { - Assert.AreEqual(expectedCallLegId, callLegId); - Assert.AreEqual(expectedAudioFileUri, audioFileUri); - Assert.AreEqual(expectedLoop, loop); - Assert.AreEqual(expectedAudioFileId, audioFileId); - Assert.AreEqual(expectedCallbackUri, callbackUri); - Assert.AreEqual(expectedOperationContext, operationContext); - Assert.AreEqual(cancellationToken, token); - return expectedResponse = new Mock>().Object; - }); - - Response actualResponse = await mockClient.Object.PlayAudioAsync(expectedCallLegId, expectedAudioFileUri, expectedLoop, expectedAudioFileId, expectedCallbackUri, expectedOperationContext, cancellationToken); - - mockClient.Verify(callExpression, Times.Once()); - Assert.AreEqual(expectedResponse, actualResponse); - } - - [TestCaseSource(nameof(TestData_InviteParticipants))] - public async Task InviteParticipantsAsyncOverload_Passes(string expectedCallLegId, CommunicationIdentifier expectedParticipant, string expectedAlternateCallerId, string expectedOperationContext) - { - Mock mockClient = new Mock() { CallBase = true }; - Response? expectedResponse = default; - CancellationToken cancellationToken = new CancellationTokenSource().Token; - var callExpression = BuildExpression(x => x.AddParticipantAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())); - - mockClient - .Setup(callExpression) - .ReturnsAsync((string callLegId, CommunicationIdentifier participants, string operationContext, string alternateCallerId, CancellationToken token) => - { - Assert.AreEqual(expectedCallLegId, callLegId); - Assert.AreEqual(expectedParticipant, participants); - Assert.AreEqual(expectedOperationContext, operationContext); - Assert.AreEqual(expectedAlternateCallerId, alternateCallerId); - Assert.AreEqual(cancellationToken, token); - return expectedResponse = new Mock().Object; - }); - - Response actualResponse = await mockClient.Object.AddParticipantAsync(expectedCallLegId, expectedParticipant, expectedOperationContext, expectedAlternateCallerId, cancellationToken); - - mockClient.Verify(callExpression, Times.Once()); - Assert.AreEqual(expectedResponse, actualResponse); - } - - [TestCaseSource(nameof(TestData_RemoveParticipant))] - public async Task RemoveParticipantAsyncOverload_Passes(string expectedCallLegId, string expectedParticipantId) - { - Mock mockClient = new Mock() { CallBase = true }; - Response? expectedResponse = default; - CancellationToken cancellationToken = new CancellationTokenSource().Token; - var callExpression = BuildExpression(x => x.RemoveParticipantAsync(It.IsAny(), It.IsAny(), It.IsAny())); - - mockClient - .Setup(callExpression) - .ReturnsAsync((string callLegId, string participantId, CancellationToken token) => - { - Assert.AreEqual(expectedCallLegId, callLegId); - Assert.AreEqual(expectedParticipantId, participantId); - Assert.AreEqual(cancellationToken, token); - return expectedResponse = new Mock().Object; - }); - - Response actualResponse = await mockClient.Object.RemoveParticipantAsync(expectedCallLegId, expectedParticipantId, cancellationToken); - - mockClient.Verify(callExpression, Times.Once()); - Assert.AreEqual(expectedResponse, actualResponse); - } - - private static IEnumerable TestData_CreateCall() - { - return new List(){ - new object?[] { - new CommunicationUserIdentifier("50125645-5dca-4193-877d-4608ed2a0bc2"), - new List() { new PhoneNumberIdentifier("+14052882361") }, - new CreateCallOptions(new Uri($"https://dummy.ngrok.io/api/incident/callback?secret=h3llowW0rld"), new List { CallModality.Audio }, new List { EventSubscriptionType.ParticipantsUpdated, EventSubscriptionType.DtmfReceived }) - }, - }; - } - - private static IEnumerable TestData_CancelAllMediaOperations() - { - return new List(){ - new object?[] { - "4ab31d78-a189-4e50-afaa-f9610975b6cb", - "af82480b-6df3-4f4c-a58c-a6a78b614b36" - }, - }; - } - - private static IEnumerable TestData_PlayAudioWithRequest() - { - return new List(){ - new object?[] { - "4ab31d78-a189-4e50-afaa-f9610975b6cb", - new PlayAudioOptions() - { - AudioFileUri = new Uri("https://av.ngrok.io/audio/sample-message.wav"), - Loop = true, - AudioFileId = Guid.NewGuid().ToString(), - CallbackUri = new Uri("https://av.ngrok.io/someCallbackUri"), - OperationContext = Guid.NewGuid().ToString(), - } - } - }; - } - - private static IEnumerable TestData_PlayAudioWithoutRequest() - { - return new List(){ - new object?[] { - "4ab31d78-a189-4e50-afaa-f9610975b6cb", - new Uri("https://av.ngrok.io/audio/sample-message.wav"), - true, - "b76993e4-1906-4967-9a9b-feecbbccc60e", - new Uri("http://foo.com/bar"), - "af82480b-6df3-4f4c-a58c-a6a78b614b36" - } - }; - } - - private static IEnumerable TestData_CommonOperationWithCallId() - { - return new List(){ - new object?[] { - "4ab31d78-a189-4e50-afaa-f9610975b6cb", - }, - }; - } - - private static IEnumerable TestData_InviteParticipants() - { - return new List(){ - new object?[] { - "4ab31d78-a189-4e50-afaa-f9610975b6cb", - new CommunicationUserIdentifier("50125645-5dca-4193-877d-4608ed2a0bc2"), - "+14052882362", - "af82480b-6df3-4f4c-a58c-a6a78b614b36" - }, - new object?[] { - "4ab31d78-a189-4e50-afaa-f9610975b6cb", - new CommunicationUserIdentifier("50125645-5dca-4193-877d-4608ed2a0bc2"), - null, - "af82480b-6df3-4f4c-a58c-a6a78b614b36" - }, - }; - } - - private static IEnumerable TestData_RemoveParticipant() - { - return new List(){ - new object?[] { - "4ab31d78-a189-4e50-afaa-f9610975b6cb", - "bb00cdef-9f34-408d-ae95-81bce082fff5" - } - }; - } - - private static Expression> BuildExpression(Expression> expression) - => expression; - } -} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/CallConnectionLiveTests/RunCreateAddRemoveHangupScenarioTests.json b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/CallConnectionLiveTests/RunCreateAddRemoveHangupScenarioTests.json new file mode 100644 index 000000000000..922dc8c71eba --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/CallConnectionLiveTests/RunCreateAddRemoveHangupScenarioTests.json @@ -0,0 +1,190 @@ +{ + "Entries": [ + { + "RequestUri": "https://acstestbot1.communication.azure.com/identities?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 00:52:24 GMT", + "traceparent": "00-ad453446efd144458f4030f69a85ca7b-f33ad15e795bbb4a-00", + "User-Agent": "azsdk-net-Communication.Identity/1.1.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "500420ef7b1dbfd0659302bbf1a9c676", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 00:52:24 GMT" + }, + "RequestBody": {}, + "StatusCode": 201, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 00:52:24 GMT", + "MS-CV": "162iTJ1JQUmpagjs6HDu9A.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0SEvJYAAAAABms56xYdZDS4KQbjqWKe9LV1NURURHRTA4MDgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "500420ef7b1dbfd0659302bbf1a9c676", + "X-Processing-Time": "24ms" + }, + "ResponseBody": { + "identity": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000a-b22f-b8c5-99c6-593a0d001c83" + } + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "388", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 00:52:25 GMT", + "traceparent": "00-e252cf67ca16c94999031824c913497d-0226fb31e8f2a14a-00", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "0c5cd4cbca7f230b8038e86378222800", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 00:52:25 GMT" + }, + "RequestBody": { + "alternateCallerId": { + "value": "Sanitized" + }, + "targets": [ + { + "phoneNumber": { + "value": "Sanitized" + } + } + ], + "source": { + "communicationUser": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000a-b22f-b8c5-99c6-593a0d001c83" + } + }, + "callbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld", + "requestedMediaTypes": [ + "audio" + ], + "requestedCallEvents": [ + "participantsUpdated", + "dtmfReceived" + ] + }, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "110", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 00:52:27 GMT", + "X-Azure-Ref": "0SUvJYAAAAABvPeAqait7QpnfZXwtymYSV1NURURHRTA4MDgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "14440d76-7512-4130-bacb-d558427658ab", + "x-ms-client-request-id": "0c5cd4cbca7f230b8038e86378222800" + }, + "ResponseBody": { + "callLegId": "b21f1300-058d-40e5-88e6-fb85f42be0c7", + "callConnectionId": "b21f1300-058d-40e5-88e6-fb85f42be0c7" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/b21f1300-058d-40e5-88e6-fb85f42be0c7/participants?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "126", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 00:52:43 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "37617bbd369c3124106ee1120009be04", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 00:52:43 GMT" + }, + "RequestBody": { + "participant": { + "communicationUser": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000a-b200-7a0d-570c-113a0d00288d" + } + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "56", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 00:52:43 GMT", + "X-Azure-Ref": "0W0vJYAAAAADA2hxujqGcRpofblFZl1IyV1NURURHRTA4MDgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "85234923-92c5-4e72-b593-880098baf571", + "x-ms-client-request-id": "37617bbd369c3124106ee1120009be04" + }, + "ResponseBody": { + "participantId": "ec6509bf-4263-4e92-ac07-7d08aaa2cb57" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/b21f1300-058d-40e5-88e6-fb85f42be0c7/participants/ec6509bf-4263-4e92-ac07-7d08aaa2cb57?api-version=2021-06-15-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 00:53:07 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "e1973e776e8a253114e1d0e5936c4642", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 00:53:07 GMT" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 00:53:07 GMT", + "X-Azure-Ref": "0c0vJYAAAAADqN7JST0F9RL5k\u002BHfjcV1yV1NURURHRTA4MDgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "c5f65d20-c723-4f82-9fa3-226ac4183418", + "x-ms-client-request-id": "e1973e776e8a253114e1d0e5936c4642" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/b21f1300-058d-40e5-88e6-fb85f42be0c7/:hangup?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 00:53:19 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "75fe026a8e4894dab02bfb10e8f82276", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 00:53:19 GMT" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 00:53:19 GMT", + "X-Azure-Ref": "0f0vJYAAAAAAo6ey4cUg7RpiGNenwL8PcV1NURURHRTA4MDgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "961ad1bd-531c-4316-9332-3b88b5252ab6", + "x-ms-client-request-id": "75fe026a8e4894dab02bfb10e8f82276" + }, + "ResponseBody": [] + } + ], + "Variables": { + "ALTERNATE_CALLERID": "Sanitized", + "AZURE_PHONE_NUMBER": "Sanitized", + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://acstestbot1.communication.azure.com/;accesskey=Kg==", + "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://acstestbot1.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "423820033" + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/CallConnectionLiveTests/RunCreateAddRemoveHangupScenarioTestsAsync.json b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/CallConnectionLiveTests/RunCreateAddRemoveHangupScenarioTestsAsync.json new file mode 100644 index 000000000000..f1e3483b56cd --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/CallConnectionLiveTests/RunCreateAddRemoveHangupScenarioTestsAsync.json @@ -0,0 +1,190 @@ +{ + "Entries": [ + { + "RequestUri": "https://acstestbot1.communication.azure.com/identities?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 02:47:03 GMT", + "traceparent": "00-292e0b1b32cc41429f3db26ae9429d80-ed5aa23c0bd10f4e-00", + "User-Agent": "azsdk-net-Communication.Identity/1.1.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "422c3910d41ce5e257913753e6baa3e8", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Mon, 16 Jun 2021 00:52:24 GMT" + }, + "RequestBody": {}, + "StatusCode": 201, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 02:47:03 GMT", + "MS-CV": "MPQMjXEhKEejHY13Eo8/rw.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0J2bJYAAAAABlu4TdTO22QZLXM7FyyTcWV1NURURHRTA4MTkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "422c3910d41ce5e257913753e6baa3e8", + "X-Processing-Time": "94ms" + }, + "ResponseBody": { + "identity": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000a-b298-aea0-51b9-a43a0d009a4f" + } + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "388", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 02:47:03 GMT", + "traceparent": "00-ba51f047e1f15e429b9be83dacc29835-0f2abd848170664a-00", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "fc233447fe1ab89e33898d8d73fc9858", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 02:47:03 GMT" + }, + "RequestBody": { + "alternateCallerId": { + "value": "Sanitized" + }, + "targets": [ + { + "phoneNumber": { + "value": "Sanitized" + } + } + ], + "source": { + "communicationUser": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000a-b298-aea0-51b9-a43a0d009a4f" + } + }, + "callbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld", + "requestedMediaTypes": [ + "audio" + ], + "requestedCallEvents": [ + "participantsUpdated", + "dtmfReceived" + ] + }, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "110", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 02:47:03 GMT", + "X-Azure-Ref": "0J2bJYAAAAAAcip9JfhFJR7bItClkkSSTV1NURURHRTA4MTkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "11c19dc6-753f-4e13-8448-6d594fae0ab9", + "x-ms-client-request-id": "fc233447fe1ab89e33898d8d73fc9858" + }, + "ResponseBody": { + "callLegId": "761f1300-7d9c-4f8b-9a12-89c8b8941063", + "callConnectionId": "761f1300-7d9c-4f8b-9a12-89c8b8941063" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/761f1300-7d9c-4f8b-9a12-89c8b8941063/participants?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "126", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 02:47:13 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "cb47f7341133b4af5a8fc2eb57796400", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 02:47:13 GMT" + }, + "RequestBody": { + "participant": { + "communicationUser": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000a-b200-7a0d-570c-113a0d00288d" + } + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "56", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 02:47:13 GMT", + "X-Azure-Ref": "0MWbJYAAAAAD3SA2ix3FTRK1EAxOwMLpeV1NURURHRTA4MTkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "393391fb-6811-4b6b-bfbc-6c481760f8cc", + "x-ms-client-request-id": "cb47f7341133b4af5a8fc2eb57796400" + }, + "ResponseBody": { + "participantId": "905aac00-45df-4869-8da7-23c3d86db1c4" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/761f1300-7d9c-4f8b-9a12-89c8b8941063/participants/905aac00-45df-4869-8da7-23c3d86db1c4?api-version=2021-06-15-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 02:47:24 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "02eebb81a11712169b730f934755715b", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 02:47:24 GMT" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 02:47:23 GMT", + "X-Azure-Ref": "0PGbJYAAAAAB0vjmsevIhQ6rY3dTzcjJ\u002BV1NURURHRTA4MTkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "7a7b3abc-9c90-4c51-9df6-833ea213a53a", + "x-ms-client-request-id": "02eebb81a11712169b730f934755715b" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/761f1300-7d9c-4f8b-9a12-89c8b8941063/:hangup?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 02:47:34 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ef1fdef8d77335b5856fa18b3cb360b9", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 02:47:34 GMT" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 02:47:33 GMT", + "X-Azure-Ref": "0RmbJYAAAAAClHElVugeoSprumTu1r80NV1NURURHRTA4MTkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "532007e9-5790-4c08-8442-fa39e73c85f7", + "x-ms-client-request-id": "ef1fdef8d77335b5856fa18b3cb360b9" + }, + "ResponseBody": [] + } + ], + "Variables": { + "ALTERNATE_CALLERID": "Sanitized", + "AZURE_PHONE_NUMBER": "Sanitized", + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://acstestbot1.communication.azure.com/;accesskey=Kg==", + "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://acstestbot1.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "398231748" + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/CallConnectionLiveTests/RunCreatePlayCancelHangupScenarioTests.json b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/CallConnectionLiveTests/RunCreatePlayCancelHangupScenarioTests.json new file mode 100644 index 000000000000..0f5067352591 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/CallConnectionLiveTests/RunCreatePlayCancelHangupScenarioTests.json @@ -0,0 +1,197 @@ +{ + "Entries": [ + { + "RequestUri": "https://acstestbot1.communication.azure.com/identities?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 02:50:24 GMT", + "traceparent": "00-a4935b7252145545817d1680c4827e3a-87bf3e667c68be4c-00", + "User-Agent": "azsdk-net-Communication.Identity/1.1.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "fbc68bc12c3dc3845fed5c7c01ffddd1", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 02:50:24 GMT" + }, + "RequestBody": {}, + "StatusCode": 201, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 02:50:23 GMT", + "MS-CV": "ekKTkoxIGUSgHaoVZHgOqQ.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "08GbJYAAAAABPf\u002BM1t1HRTIK54vGzT1XXV1NURURHRTA4MTYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "fbc68bc12c3dc3845fed5c7c01ffddd1", + "X-Processing-Time": "79ms" + }, + "ResponseBody": { + "identity": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000a-b29b-bde8-71bf-a43a0d00aaf1" + } + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "388", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 02:50:24 GMT", + "traceparent": "00-7a3f51d045d5a34ab9d82eae94b639db-fc2e806a88a7f144-00", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "51e8db5f086fd2d835fbe7ff672bf037", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 02:50:24 GMT" + }, + "RequestBody": { + "alternateCallerId": { + "value": "Sanitized" + }, + "targets": [ + { + "phoneNumber": { + "value": "Sanitized" + } + } + ], + "source": { + "communicationUser": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000a-b29b-bde8-71bf-a43a0d00aaf1" + } + }, + "callbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld", + "requestedMediaTypes": [ + "audio" + ], + "requestedCallEvents": [ + "participantsUpdated", + "dtmfReceived" + ] + }, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "110", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 02:50:23 GMT", + "X-Azure-Ref": "08GbJYAAAAADtwZp4\u002BpgqQYHlj5z6/mJLV1NURURHRTA4MTYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "09ee466e-f5c7-4654-aebc-f11bfcf30e2b", + "x-ms-client-request-id": "51e8db5f086fd2d835fbe7ff672bf037" + }, + "ResponseBody": { + "callLegId": "01201300-3da1-4b5a-a4a9-8a91311037b7", + "callConnectionId": "01201300-3da1-4b5a-a4a9-8a91311037b7" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/01201300-3da1-4b5a-a4a9-8a91311037b7/:playAudio?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "190", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 02:50:34 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3f82b20ca43688f39cc5acb3d7942525", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 02:50:34 GMT" + }, + "RequestBody": { + "audioFileUri": "https://dummy.ngrok.io/audio/sample-message.wav", + "loop": false, + "operationContext": "de346f03-7f8d-41ab-a232-cc5e14990769", + "audioFileId": "ebb1d98d-fd86-4204-800c-f7bdfc2e515c" + }, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "131", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 02:50:35 GMT", + "X-Azure-Ref": "0\u002BmbJYAAAAABJVJ32wLyhTJFAasbbuTSoV1NURURHRTA4MTYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "f4f5a7e9-4240-4a0c-b510-e30c27fbc358", + "x-ms-client-request-id": "3f82b20ca43688f39cc5acb3d7942525" + }, + "ResponseBody": { + "operationId": "c2123c45-5032-425a-9883-4742f8d74722", + "status": "running", + "operationContext": "de346f03-7f8d-41ab-a232-cc5e14990769" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/01201300-3da1-4b5a-a4a9-8a91311037b7/:cancelAllMediaOperations?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 02:50:46 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "bf654c2b80fbb95ab2f4c64144855b34", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 02:50:46 GMT" + }, + "RequestBody": {}, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "75", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 02:50:46 GMT", + "X-Azure-Ref": "0BmfJYAAAAADT6QQ\u002BcnYoSb4vevUypgooV1NURURHRTA4MTYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "323a1e39-8413-4e5b-9363-25f9e9add274", + "x-ms-client-request-id": "bf654c2b80fbb95ab2f4c64144855b34" + }, + "ResponseBody": { + "operationId": "819edd7b-e769-4f4f-a1de-084beb66d8fe", + "status": "completed" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/01201300-3da1-4b5a-a4a9-8a91311037b7/:hangup?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 02:50:56 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "4f7024fc9e7cbb9be85fb4a95c25faa0", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 02:50:56 GMT" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 02:50:56 GMT", + "X-Azure-Ref": "0EGfJYAAAAABIbhsKhzktR6b/JJVfRDuZV1NURURHRTA4MTYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "a08d69d9-faf1-4e30-997e-7894ba55d133", + "x-ms-client-request-id": "4f7024fc9e7cbb9be85fb4a95c25faa0" + }, + "ResponseBody": [] + } + ], + "Variables": { + "ALTERNATE_CALLERID": "Sanitized", + "AZURE_PHONE_NUMBER": "Sanitized", + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://acstestbot1.communication.azure.com/;accesskey=Kg==", + "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://acstestbot1.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "1479243591" + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/CallConnectionLiveTests/RunCreatePlayCancelHangupScenarioTestsAsync.json b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/CallConnectionLiveTests/RunCreatePlayCancelHangupScenarioTestsAsync.json new file mode 100644 index 000000000000..9a5b6ea567e4 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/CallConnectionLiveTests/RunCreatePlayCancelHangupScenarioTestsAsync.json @@ -0,0 +1,197 @@ +{ + "Entries": [ + { + "RequestUri": "https://acstestbot1.communication.azure.com/identities?api-version=2021-03-07", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 00:48:45 GMT", + "traceparent": "00-082a9606c14f804386d10d505e1bbb6f-ff8156e41829e04d-00", + "User-Agent": "azsdk-net-Communication.Identity/1.1.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d76df114f6a29e3f08e7928c322e3631", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 00:48:45 GMT" + }, + "RequestBody": {}, + "StatusCode": 201, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 00:48:45 GMT", + "MS-CV": "JrXBhw0XDkSH7sNgh1pzUQ.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0bUrJYAAAAACG7bx3iv/rS6uGrS2DaQt7V1NURURHRTA4MDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "x-ms-client-request-id": "d76df114f6a29e3f08e7928c322e3631", + "X-Processing-Time": "88ms" + }, + "ResponseBody": { + "identity": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000a-b22c-6155-290c-113a0d00f7de" + } + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "388", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 00:48:46 GMT", + "traceparent": "00-7570b7647491ec4c878a4ad91b88e96a-639e2d7a439d2847-00", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "568790ef80ccc0ab5f53da2e8862529c", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 00:48:46 GMT" + }, + "RequestBody": { + "alternateCallerId": { + "value": "Sanitized" + }, + "targets": [ + { + "phoneNumber": { + "value": "Sanitized" + } + } + ], + "source": { + "communicationUser": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000a-b22c-6155-290c-113a0d00f7de" + } + }, + "callbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld", + "requestedMediaTypes": [ + "audio" + ], + "requestedCallEvents": [ + "participantsUpdated", + "dtmfReceived" + ] + }, + "StatusCode": 201, + "ResponseHeaders": { + "Content-Length": "110", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 00:48:45 GMT", + "X-Azure-Ref": "0bkrJYAAAAAC6kVNv7ge0T5Io7lDRMarfV1NURURHRTA4MDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "73cc08e4-cbd1-4f8f-950e-913e2aa0ad8a", + "x-ms-client-request-id": "568790ef80ccc0ab5f53da2e8862529c" + }, + "ResponseBody": { + "callLegId": "f11f1300-160b-444e-af99-af3e7bfcadf7", + "callConnectionId": "f11f1300-160b-444e-af99-af3e7bfcadf7" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/f11f1300-160b-444e-af99-af3e7bfcadf7/:playAudio?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "190", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 00:48:56 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "0afd87e15d5ca65dc5d31a3c3dc1e896", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 00:48:56 GMT" + }, + "RequestBody": { + "audioFileUri": "https://dummy.ngrok.io/audio/sample-message.wav", + "loop": false, + "operationContext": "de346f03-7f8d-41ab-a232-cc5e14990769", + "audioFileId": "ebb1d98d-fd86-4204-800c-f7bdfc2e515c" + }, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "131", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 00:48:55 GMT", + "X-Azure-Ref": "0eErJYAAAAABt8OZpB3puTbyofhiChNM0V1NURURHRTA4MDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "eb19972f-dccd-4197-9b44-1a1cd278bda3", + "x-ms-client-request-id": "0afd87e15d5ca65dc5d31a3c3dc1e896" + }, + "ResponseBody": { + "operationId": "5ea3c453-7706-4aee-95c7-1e2ea0af1d36", + "status": "running", + "operationContext": "de346f03-7f8d-41ab-a232-cc5e14990769" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/f11f1300-160b-444e-af99-af3e7bfcadf7/:cancelAllMediaOperations?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 00:49:06 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "2245966dbd2794b646ad774f1c1116a6", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 00:49:06 GMT" + }, + "RequestBody": {}, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "75", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 00:49:05 GMT", + "X-Azure-Ref": "0gkrJYAAAAADunrHo2PRzSKFESx\u002BIqirkV1NURURHRTA4MDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "fa85a42d-0f62-4a44-8383-6dd852591cce", + "x-ms-client-request-id": "2245966dbd2794b646ad774f1c1116a6" + }, + "ResponseBody": { + "operationId": "cc81a010-55da-4ecf-9fce-5cc417a43aec", + "status": "completed" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/f11f1300-160b-444e-af99-af3e7bfcadf7/:hangup?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 00:49:16 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "abaaf5952c3191d533e191f8666e829d", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 00:49:16 GMT" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 00:49:15 GMT", + "X-Azure-Ref": "0jErJYAAAAACoR7Y/VapuTKF5Zc/bW/v3V1NURURHRTA4MDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "8f74d0c6-ba85-4c79-8255-9c5c541d01a1", + "x-ms-client-request-id": "abaaf5952c3191d533e191f8666e829d" + }, + "ResponseBody": [] + } + ], + "Variables": { + "ALTERNATE_CALLERID": "Sanitized", + "AZURE_PHONE_NUMBER": "Sanitized", + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://acstestbot1.communication.azure.com/;accesskey=Kg==", + "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://acstestbot1.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "34829153" + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/CallingServerClientsLiveTests/CancelAllMediaOperationsTest.json b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/CallingServerClientsLiveTests/CancelAllMediaOperationsTest.json deleted file mode 100644 index f6d58f5a85f1..000000000000 --- a/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/CallingServerClientsLiveTests/CancelAllMediaOperationsTest.json +++ /dev/null @@ -1,198 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://acstestbot3.communication.azure.com/identities?api-version=2021-03-07", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "2", - "Content-Type": "application/json", - "Date": "Mon, 07 Jun 2021 21:33:14 GMT", - "traceparent": "00-70ff82b91389e640b5cc378941aa7278-034203f41a895c40-00", - "User-Agent": "azsdk-net-Communication.Identity/1.1.0-alpha.20210607.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "3a91045fc3b28947c3bc6bb38d011636", - "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Mon, 07 Jun 2021 21:33:14 GMT", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": {}, - "StatusCode": 201, - "ResponseHeaders": { - "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 07 Jun 2021 21:33:14 GMT", - "MS-CV": "O6Rhb9vQlUaWuTXIuX9kPA.0", - "Request-Context": "appId=", - "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0m5C\u002BYAAAAACgUupLjIauQrtNt/7YYfruV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "3a91045fc3b28947c3bc6bb38d011636", - "X-Processing-Time": "89ms" - }, - "ResponseBody": { - "identity": { - "id": "8:acs:02665c56-277e-4c59-bab4-c475caa3ee80_0000000a-8846-8408-3ef0-8b3a0d002505" - } - } - }, - { - "RequestUri": "https://acstestbot3.communication.azure.com/calling/calls?api-version=2021-04-15-preview1", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "394", - "Content-Type": "application/json", - "Date": "Mon, 07 Jun 2021 21:33:16 GMT", - "traceparent": "00-25fd9d696df13644ae8cea5f2afda2f3-f58afde3f311ad4c-00", - "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210607.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "16f888f3262fb3425888af43511f9865", - "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Mon, 07 Jun 2021 21:33:16 GMT", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "sourceAlternateIdentity": { - "value": "Sanitized" - }, - "targets": [ - { - "phoneNumber": { - "value": "Sanitized" - } - } - ], - "source": { - "communicationUser": { - "id": "8:acs:02665c56-277e-4c59-bab4-c475caa3ee80_0000000a-8846-8408-3ef0-8b3a0d002505" - } - }, - "callbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld", - "requestedModalities": [ - "audio" - ], - "requestedCallEvents": [ - "participantsUpdated", - "dtmfReceived" - ] - }, - "StatusCode": 201, - "ResponseHeaders": { - "Client-Request-Id": "270077c7-7660-46ab-bc41-c2dc2e53d946", - "Content-Length": "52", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 07 Jun 2021 21:33:15 GMT", - "X-Azure-Ref": "0nJC\u002BYAAAAABPo1lpCog6T7fwfYRzWtJGV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "X-Cache": "CONFIG_NOCACHE", - "X-Microsoft-Skype-Chain-ID": "72273267-4def-43fc-8c34-3586fc69e2f4" - }, - "ResponseBody": { - "callLegId": "00000b80-b462-4411-b32a-c704e059f1c7" - } - }, - { - "RequestUri": "https://acstestbot3.communication.azure.com/calling/calls/00000b80-b462-4411-b32a-c704e059f1c7/PlayAudio?api-version=2021-04-15-preview1", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "189", - "Content-Type": "application/json", - "Date": "Mon, 07 Jun 2021 21:33:26 GMT", - "traceparent": "00-c2efbd308de11b47a827b3326bf1b27d-5e29db60a7534e46-00", - "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210607.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "d7a070c88562db1df7a3fef86f0a778d", - "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Mon, 07 Jun 2021 21:33:26 GMT", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "audioFileUri": "https://dummy.ngrok.io/audio/sample-message.wav", - "loop": true, - "operationContext": "de346f03-7f8d-41ab-a232-cc5e14990769", - "audioFileId": "ebb1d98d-fd86-4204-800c-f7bdfc2e515c" - }, - "StatusCode": 202, - "ResponseHeaders": { - "Client-Request-Id": "d6422823-e979-414c-b22d-a903821bd769", - "Content-Length": "122", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 07 Jun 2021 21:33:26 GMT", - "X-Azure-Ref": "0ppC\u002BYAAAAACfwgh7MHw6Sqw\u002BRtn3pz6HV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "X-Cache": "CONFIG_NOCACHE", - "X-Microsoft-Skype-Chain-ID": "f79370ff-9595-420b-ac80-3d773f898579" - }, - "ResponseBody": { - "id": "d32ac4dd-800f-4703-ac9e-cb2eba999b24", - "status": "running", - "operationContext": "de346f03-7f8d-41ab-a232-cc5e14990769" - } - }, - { - "RequestUri": "https://acstestbot3.communication.azure.com/calling/calls/00000b80-b462-4411-b32a-c704e059f1c7/CancelMediaProcessing?api-version=2021-04-15-preview1", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "2", - "Content-Type": "application/json", - "Date": "Mon, 07 Jun 2021 21:33:32 GMT", - "traceparent": "00-a11ec20337b7184f945d622a464e3456-914744677d3e7849-00", - "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210607.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "cd82999b133838b5c2dde129130437a3", - "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Mon, 07 Jun 2021 21:33:32 GMT", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Client-Request-Id": "34145f63-32be-406c-837d-08f45da19ee6", - "Content-Length": "66", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 07 Jun 2021 21:33:31 GMT", - "X-Azure-Ref": "0rJC\u002BYAAAAAAb8GLZxK31RoIddYT9ETjnV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "X-Cache": "CONFIG_NOCACHE", - "X-Microsoft-Skype-Chain-ID": "d6794596-646c-4457-8265-f56185996d41" - }, - "ResponseBody": { - "id": "9caedaea-d129-4875-8b32-403754f9bfd8", - "status": "completed" - } - }, - { - "RequestUri": "https://acstestbot3.communication.azure.com/calling/calls/00000b80-b462-4411-b32a-c704e059f1c7?api-version=2021-04-15-preview1", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Date": "Mon, 07 Jun 2021 21:33:40 GMT", - "traceparent": "00-06fd3b3b9a6965499644b273b94b3003-190d7b8c3ae5dd46-00", - "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210607.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "1deb06243e606ed36a1d1f8c2749434e", - "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Mon, 07 Jun 2021 21:33:40 GMT", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Client-Request-Id": "2be0c098-78a9-4b9c-aa40-83432b10c2ce", - "Content-Length": "0", - "Date": "Mon, 07 Jun 2021 21:33:39 GMT", - "X-Azure-Ref": "0tJC\u002BYAAAAADL\u002BNa0hATnQJK\u002BaaxYAoXAV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "X-Cache": "CONFIG_NOCACHE", - "X-Microsoft-Skype-Chain-ID": "d7647a97-8419-488b-b930-c858c7b20c78" - }, - "ResponseBody": [] - } - ], - "Variables": { - "AZURE_PHONE_NUMBER": "Sanitized", - "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://acstestbot3.communication.azure.com/;accesskey=Kg==", - "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://acstestbot3.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1959684932" - } -} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/CallingServerClientsLiveTests/CancelAllMediaOperationsTestAsync.json b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/CallingServerClientsLiveTests/CancelAllMediaOperationsTestAsync.json deleted file mode 100644 index b44372c6c07a..000000000000 --- a/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/CallingServerClientsLiveTests/CancelAllMediaOperationsTestAsync.json +++ /dev/null @@ -1,198 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://acstestbot3.communication.azure.com/identities?api-version=2021-03-07", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "2", - "Content-Type": "application/json", - "Date": "Mon, 07 Jun 2021 21:32:06 GMT", - "traceparent": "00-c851b7e5ed46814f9f81e9412452280e-33b734496067e247-00", - "User-Agent": "azsdk-net-Communication.Identity/1.1.0-alpha.20210607.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "85386b3453516484d0b733876273b734", - "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Mon, 07 Jun 2021 21:32:06 GMT", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": {}, - "StatusCode": 201, - "ResponseHeaders": { - "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 07 Jun 2021 21:32:06 GMT", - "MS-CV": "JOokOoj9w0aGYpJgvb2m5w.0", - "Request-Context": "appId=", - "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0V5C\u002BYAAAAACamtRHYCRkRpfR9ZiEMchbV1NURURHRTA4MjEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "85386b3453516484d0b733876273b734", - "X-Processing-Time": "30ms" - }, - "ResponseBody": { - "identity": { - "id": "8:acs:02665c56-277e-4c59-bab4-c475caa3ee80_0000000a-8845-793b-0e04-343a0d0050cf" - } - } - }, - { - "RequestUri": "https://acstestbot3.communication.azure.com/calling/calls?api-version=2021-04-15-preview1", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "394", - "Content-Type": "application/json", - "Date": "Mon, 07 Jun 2021 21:32:07 GMT", - "traceparent": "00-351cb0e323dcd743802a8088377ef236-c403d8318d4e244b-00", - "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210607.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "a7a015657f3a707ebeab76079b5db180", - "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Mon, 07 Jun 2021 21:32:07 GMT", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "sourceAlternateIdentity": { - "value": "Sanitized" - }, - "targets": [ - { - "phoneNumber": { - "value": "Sanitized" - } - } - ], - "source": { - "communicationUser": { - "id": "8:acs:02665c56-277e-4c59-bab4-c475caa3ee80_0000000a-8845-793b-0e04-343a0d0050cf" - } - }, - "callbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld", - "requestedModalities": [ - "audio" - ], - "requestedCallEvents": [ - "participantsUpdated", - "dtmfReceived" - ] - }, - "StatusCode": 201, - "ResponseHeaders": { - "Client-Request-Id": "41453c0c-905f-466c-80e7-d8b00aeca5f0", - "Content-Length": "52", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 07 Jun 2021 21:32:07 GMT", - "X-Azure-Ref": "0V5C\u002BYAAAAABq4uRWokpsRo67nRS/bVVFV1NURURHRTA4MjEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "X-Cache": "CONFIG_NOCACHE", - "X-Microsoft-Skype-Chain-ID": "c3b4f31a-b467-4cf7-b0ef-73360e149208" - }, - "ResponseBody": { - "callLegId": "04000b80-d37e-440a-b08a-5b0d3862bbfb" - } - }, - { - "RequestUri": "https://acstestbot3.communication.azure.com/calling/calls/04000b80-d37e-440a-b08a-5b0d3862bbfb/PlayAudio?api-version=2021-04-15-preview1", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "189", - "Content-Type": "application/json", - "Date": "Mon, 07 Jun 2021 21:32:18 GMT", - "traceparent": "00-f5d984ce0caa9548aa2c58f4262ae534-7f34d64a7dabf949-00", - "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210607.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "99014c3a65871596c72d30c2313cdd74", - "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Mon, 07 Jun 2021 21:32:18 GMT", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "audioFileUri": "https://dummy.ngrok.io/audio/sample-message.wav", - "loop": true, - "operationContext": "de346f03-7f8d-41ab-a232-cc5e14990769", - "audioFileId": "ebb1d98d-fd86-4204-800c-f7bdfc2e515c" - }, - "StatusCode": 202, - "ResponseHeaders": { - "Client-Request-Id": "d86ba053-cc2b-4ba6-a721-933d28c14ba3", - "Content-Length": "122", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 07 Jun 2021 21:32:17 GMT", - "X-Azure-Ref": "0YpC\u002BYAAAAAByhppb6Du0SpXmImkL6QujV1NURURHRTA4MjEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "X-Cache": "CONFIG_NOCACHE", - "X-Microsoft-Skype-Chain-ID": "9bda2bd2-9465-47e3-8778-dd98f1997d29" - }, - "ResponseBody": { - "id": "6257383a-1966-42b0-9509-2f66164744e8", - "status": "running", - "operationContext": "de346f03-7f8d-41ab-a232-cc5e14990769" - } - }, - { - "RequestUri": "https://acstestbot3.communication.azure.com/calling/calls/04000b80-d37e-440a-b08a-5b0d3862bbfb/CancelMediaProcessing?api-version=2021-04-15-preview1", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "2", - "Content-Type": "application/json", - "Date": "Mon, 07 Jun 2021 21:32:23 GMT", - "traceparent": "00-d71e866bb505f941808d1993c8af5b25-df76a380f902c647-00", - "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210607.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "83991d694137b407edc7c7a5dd7cc973", - "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Mon, 07 Jun 2021 21:32:23 GMT", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Client-Request-Id": "6ddcd3cf-7a3c-4291-8881-c3ba1f6739ce", - "Content-Length": "66", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 07 Jun 2021 21:32:23 GMT", - "X-Azure-Ref": "0Z5C\u002BYAAAAAAnBjtZVIp9R5a4HGN3WHFLV1NURURHRTA4MjEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "X-Cache": "CONFIG_NOCACHE", - "X-Microsoft-Skype-Chain-ID": "1a2e20c2-41c1-4a3f-bd94-8d5cc85fe1c7" - }, - "ResponseBody": { - "id": "bb2b8889-df0e-44ad-9513-4f3d1e698f37", - "status": "completed" - } - }, - { - "RequestUri": "https://acstestbot3.communication.azure.com/calling/calls/04000b80-d37e-440a-b08a-5b0d3862bbfb?api-version=2021-04-15-preview1", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Date": "Mon, 07 Jun 2021 21:32:32 GMT", - "traceparent": "00-7a42cdf4ebc9fe488d25de98f25b382e-51f3d6facc1a2345-00", - "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210607.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "154cb2061e71ffad7e8bdf0c4ebb3e81", - "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Mon, 07 Jun 2021 21:32:32 GMT", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Client-Request-Id": "a33479a1-fce1-49fe-8819-80a6eb270aaf", - "Content-Length": "0", - "Date": "Mon, 07 Jun 2021 21:32:31 GMT", - "X-Azure-Ref": "0b5C\u002BYAAAAAByvzMkFgeXRLhuW637U54FV1NURURHRTA4MjEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "X-Cache": "CONFIG_NOCACHE", - "X-Microsoft-Skype-Chain-ID": "8384df1a-783f-43c3-a393-1a725582cfdc" - }, - "ResponseBody": [] - } - ], - "Variables": { - "AZURE_PHONE_NUMBER": "Sanitized", - "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://acstestbot3.communication.azure.com/;accesskey=Kg==", - "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://acstestbot3.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "1859146728" - } -} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/CallingServerClientsLiveTests/CreateCallTest.json b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/CallingServerClientsLiveTests/CreateCallTest.json deleted file mode 100644 index 83f11d75e0f3..000000000000 --- a/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/CallingServerClientsLiveTests/CreateCallTest.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://acstestbot3.communication.azure.com/identities?api-version=2021-03-07", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "2", - "Content-Type": "application/json", - "Date": "Mon, 07 Jun 2021 18:11:47 GMT", - "traceparent": "00-dce5ab2dd9f9294da83c23c04c4b93a0-e5dfeb27fff23546-00", - "User-Agent": "azsdk-net-Communication.Identity/1.1.0-alpha.20210607.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "e96333c2a95914ae53be009620a86591", - "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Mon, 07 Jun 2021 18:11:47 GMT", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": {}, - "StatusCode": 201, - "ResponseHeaders": { - "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 07 Jun 2021 18:11:47 GMT", - "MS-CV": "U/fWzwghYESANtfT9fKQsw.0", - "Request-Context": "appId=", - "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "0ZGG\u002BYAAAAADBIiegi3spSa4qj6gzzMgsV1NURURHRTA4MTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "X-Cache": "CONFIG_NOCACHE", - "x-ms-client-request-id": "e96333c2a95914ae53be009620a86591", - "X-Processing-Time": "22ms" - }, - "ResponseBody": { - "identity": { - "id": "8:acs:02665c56-277e-4c59-bab4-c475caa3ee80_0000000a-878e-1315-ac00-343a0d006216" - } - } - }, - { - "RequestUri": "https://acstestbot3.communication.azure.com/calling/calls?api-version=2021-04-15-preview1", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "394", - "Content-Type": "application/json", - "Date": "Mon, 07 Jun 2021 18:11:48 GMT", - "traceparent": "00-1dd237a56fee6f46bd5451fd1b1615ea-9488b0af5c842e4c-00", - "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210607.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", - "x-ms-client-request-id": "a0a79d28c93a0d02342bb4975468973d", - "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Mon, 07 Jun 2021 18:11:48 GMT", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "sourceAlternateIdentity": { - "value": "Sanitized" - }, - "targets": [ - { - "phoneNumber": { - "value": "Sanitized" - } - } - ], - "source": { - "communicationUser": { - "id": "8:acs:02665c56-277e-4c59-bab4-c475caa3ee80_0000000a-878e-1315-ac00-343a0d006216" - } - }, - "callbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld", - "requestedModalities": [ - "audio" - ], - "requestedCallEvents": [ - "participantsUpdated", - "dtmfReceived" - ] - }, - "StatusCode": 201, - "ResponseHeaders": { - "Client-Request-Id": "c074b88e-804a-4ba7-85b8-197f25f415a5", - "Content-Length": "52", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 07 Jun 2021 18:11:48 GMT", - "X-Azure-Ref": "0ZGG\u002BYAAAAAB5blUKyCDlRrbcwUnWy8ZUV1NURURHRTA4MTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "X-Cache": "CONFIG_NOCACHE", - "X-Microsoft-Skype-Chain-ID": "ba9797a5-a5a3-4c2d-aa4c-e9ba84a2b38b" - }, - "ResponseBody": { - "callLegId": "01000b80-2fb2-4fc3-b9dd-56bb53310817" - } - } - ], - "Variables": { - "AZURE_PHONE_NUMBER": "Sanitized", - "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://acstestbot3.communication.azure.com/;accesskey=Kg==", - "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://acstestbot3.communication.azure.com/;accesskey=Kg==", - "RandomSeed": "220983724" - } -} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/Sample1_CallClient/CreateCall.json b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/Sample1_CallClient/CreateCall.json index 77a9872eeae2..2380f85b0202 100644 --- a/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/Sample1_CallClient/CreateCall.json +++ b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/Sample1_CallClient/CreateCall.json @@ -1,35 +1,71 @@ { "Entries": [ { - "RequestUri": "https://acstestbot3.communication.azure.com/calling/calls?api-version=2021-04-15-preview1", + "RequestUri": "https://acstestbot1.communication.azure.com/identities?api-version=2021-03-07", "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "354", - "Content-Type": "application/json", - "Date": "Wed, 02 Jun 2021 21:28:27 GMT", - "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210602.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 17:01:53 GMT", + "User-Agent": "azsdk-net-Communication.Identity/1.1.0-alpha.20210616.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f7c8910f9c6fa503ddd8b7582e6d4d17", + "x-ms-content-sha256": "Sanitized", + "x-ms-date": "Wed, 16 Jun 2021 17:01:53 GMT", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": {}, + "StatusCode": 201, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 17:01:54 GMT", + "MS-CV": "Waia\u002BH\u002BoTkSaqGl671wvsQ.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0gy7KYAAAAADwMwiEWDQYRLKBnAnlHKJOV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", "x-ms-client-request-id": "f7c8910f9c6fa503ddd8b7582e6d4d17", - "x-ms-content-sha256": "Sanitized", - "x-ms-date": "Wed, 02 Jun 2021 21:28:27 GMT", - "x-ms-return-client-request-id": "true" + "X-Processing-Time": "103ms" }, + "ResponseBody": { + "identity": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000a-b5a7-54a0-e3c7-593a0d008912" + } + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "346", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 17:01:55 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210616.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a585200bb309794fd62f46729d5801ec", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 17:01:55 GMT" + }, "RequestBody": { "targets": [ { "phoneNumber": { - "value": "\u002B15129104698" + "value": "Sanitized" } } ], "source": { "communicationUser": { - "id": "8:acs:02665c56-277e-4c59-bab4-c475caa3ee80_0000000a-6e82-5005-63b2-a43a0d00393c" + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000a-b5a7-54a0-e3c7-593a0d008912" } }, "callbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld", - "requestedModalities": [ + "requestedMediaTypes": [ "audio" ], "requestedCallEvents": [ @@ -39,23 +75,24 @@ }, "StatusCode": 201, "ResponseHeaders": { - "Client-Request-Id": "c4d55e4e-e491-434b-a9f1-37a9234d4f51", - "Content-Length": "52", + "Content-Length": "110", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 02 Jun 2021 21:28:27 GMT", - "X-Azure-Ref": "0\u002B/e3YAAAAAD7jnJZgiP4TKurZwfRajDbV1NURURHRTA4MTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Date": "Wed, 16 Jun 2021 17:01:55 GMT", + "X-Azure-Ref": "0gy7KYAAAAAA\u002BA4K9iGDhTZnNyh0Y6O5ZV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Microsoft-Skype-Chain-ID": "03025d96-60d3-4ff7-843b-3a4023911570" + "X-Microsoft-Skype-Chain-ID": "51e5fb62-e6b5-4656-9f21-95ab83fa83d1", + "x-ms-client-request-id": "a585200bb309794fd62f46729d5801ec" }, "ResponseBody": { - "callLegId": "6c1f6900-1fbd-4ee0-a4b9-2aa0b5f40ad1" + "callLegId": "4c201300-43e4-4471-9b5e-7988ff001cdd", + "callConnectionId": "4c201300-43e4-4471-9b5e-7988ff001cdd" } } ], "Variables": { - "AZURE_PHONE_NUMBER": "\u002B15129104698", - "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://acstestbot3.communication.azure.com/;accesskey=Kg==", - "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://acstestbot3.communication.azure.com/;accesskey=Kg==", + "AZURE_PHONE_NUMBER": "Sanitized", + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://acstestbot1.communication.azure.com/;accesskey=Kg==", + "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://acstestbot1.communication.azure.com/;accesskey=Kg==", "RandomSeed": "54266852" } } diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/Sample1_CallClient/CreateCallAsyncAsync.json b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/Sample1_CallClient/CreateCallAsyncAsync.json index 678367f9951b..14e3cab2d9b3 100644 --- a/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/Sample1_CallClient/CreateCallAsyncAsync.json +++ b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/Sample1_CallClient/CreateCallAsyncAsync.json @@ -1,35 +1,73 @@ { "Entries": [ { - "RequestUri": "https://acstestbot3.communication.azure.com/calling/calls?api-version=2021-04-15-preview1", + "RequestUri": "https://acstestbot1.communication.azure.com/identities?api-version=2021-03-07", "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "Content-Length": "354", - "Content-Type": "application/json", - "Date": "Wed, 02 Jun 2021 21:28:29 GMT", - "traceparent": "00-f03b3c0995adc24882d0cb3f6d4ef016-32e1ef3fa4d5b94d-00", - "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210602.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 17:01:57 GMT", + "traceparent": "00-563d4f660fb30b4ba0fdfc0025f17506-50f5c17400915e4e-00", + "User-Agent": "azsdk-net-Communication.Identity/1.1.0-alpha.20210616.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "750c6da09b80fc970cd7aa322fd6b1c9", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 17:01:57 GMT" + }, + "RequestBody": {}, + "StatusCode": 201, + "ResponseHeaders": { + "api-supported-versions": "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 17:01:56 GMT", + "MS-CV": "fbWazVRcpkOcx5Y2NiwPMw.0", + "Request-Context": "appId=", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0hS7KYAAAAAB\u002B/YJWZ6O4RJSV\u002B9QJ2nt9V1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", "x-ms-client-request-id": "750c6da09b80fc970cd7aa322fd6b1c9", - "x-ms-content-sha256": "Sanitized", - "x-ms-return-client-request-id": "true" + "X-Processing-Time": "22ms" }, + "ResponseBody": { + "identity": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000a-b5a7-5d10-e3c7-593a0d008917" + } + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "346", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 17:01:58 GMT", + "traceparent": "00-47ba21026d51af43b3b276bb9fb8fcb6-b915fd9d37c14f49-00", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210616.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f65700430c203efc039afdad51d467bb", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 17:01:58 GMT" + }, "RequestBody": { "targets": [ { "phoneNumber": { - "value": "\u002B15129104698" + "value": "Sanitized" } } ], "source": { "communicationUser": { - "id": "8:acs:02665c56-277e-4c59-bab4-c475caa3ee80_0000000a-6e82-5627-54b7-a43a0d00395f" + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000a-b5a7-5d10-e3c7-593a0d008917" } }, "callbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld", - "requestedModalities": [ + "requestedMediaTypes": [ "audio" ], "requestedCallEvents": [ @@ -39,23 +77,24 @@ }, "StatusCode": 201, "ResponseHeaders": { - "Client-Request-Id": "77074750-189c-4615-843f-b357d68fa3b5", - "Content-Length": "52", + "Content-Length": "110", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 02 Jun 2021 21:28:28 GMT", - "X-Azure-Ref": "0/Pe3YAAAAADZL\u002B\u002BDA03YQangI05vTMI1V1NURURHRTA4MTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Date": "Wed, 16 Jun 2021 17:01:57 GMT", + "X-Azure-Ref": "0hS7KYAAAAAD0hiiC1T7aRJrZmS4CLBuoV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "X-Cache": "CONFIG_NOCACHE", - "X-Microsoft-Skype-Chain-ID": "80b47d16-ed1f-4c8b-88b9-3f6d1de9b3f5" + "X-Microsoft-Skype-Chain-ID": "8cbc8bfe-863e-476e-85c8-a77b67a93cc4", + "x-ms-client-request-id": "f65700430c203efc039afdad51d467bb" }, "ResponseBody": { - "callLegId": "6c1f6900-5681-4271-9cf6-f5c1a3a64bc3" + "callLegId": "4c201300-eb1e-4e9f-8a0a-6aaf623fc9f3", + "callConnectionId": "4c201300-eb1e-4e9f-8a0a-6aaf623fc9f3" } } ], "Variables": { - "AZURE_PHONE_NUMBER": "\u002B15129104698", - "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://acstestbot3.communication.azure.com/;accesskey=Kg==", - "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://acstestbot3.communication.azure.com/;accesskey=Kg==", + "AZURE_PHONE_NUMBER": "Sanitized", + "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING": "endpoint=https://acstestbot1.communication.azure.com/;accesskey=Kg==", + "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://acstestbot1.communication.azure.com/;accesskey=Kg==", "RandomSeed": "303477573" } -} \ No newline at end of file +} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/ServerCallLiveTests/RunAllRecordingFunctionsScenarioTests.json b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/ServerCallLiveTests/RunAllRecordingFunctionsScenarioTests.json new file mode 100644 index 000000000000..28d97a9c09f8 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/ServerCallLiveTests/RunAllRecordingFunctionsScenarioTests.json @@ -0,0 +1,370 @@ +{ + "Entries": [ + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/:join?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "281", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 06:14:39 GMT", + "traceparent": "00-616dfbbf36772a46864bf7c08755624d-bcc64f263cee0042-00", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f49f5f0bf1da113c53240a529cfffbef", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:14:39 GMT" + }, + "RequestBody": { + "source": { + "communicationUser": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_e3560385-776f-41d1-bf04-07ef738f2f23" + } + }, + "callbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld", + "requestedMediaTypes": [ + "audio" + ], + "requestedCallEvents": [ + "participantsUpdated" + ] + }, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "110", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:14:40 GMT", + "X-Azure-Ref": "00JbJYAAAAABoXEnj\u002B/jNT6h9T9oEgjZlV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "63fffae3-74c2-4c76-bd52-d7e03c99814c", + "x-ms-client-request-id": "f49f5f0bf1da113c53240a529cfffbef" + }, + "ResponseBody": { + "callLegId": "1f201300-bfb0-4767-9e79-78154c5f075d", + "callConnectionId": "1f201300-bfb0-4767-9e79-78154c5f075d" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/:join?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "281", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 06:14:41 GMT", + "traceparent": "00-97b6c6b7e5d89e41a1954f50a2583670-b9ea8c9ae34aa643-00", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "37b43a95a006dde1b43b017473e2d7de", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:14:41 GMT" + }, + "RequestBody": { + "source": { + "communicationUser": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_e3560385-776f-41d1-bf04-07ef738f2fc1" + } + }, + "callbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld", + "requestedMediaTypes": [ + "audio" + ], + "requestedCallEvents": [ + "participantsUpdated" + ] + }, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "110", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:14:41 GMT", + "X-Azure-Ref": "00ZbJYAAAAAAWWBFl\u002BUa4Q4pAQfn83SdiV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "afd18997-36d8-4ea5-aaca-6fe5534394e0", + "x-ms-client-request-id": "37b43a95a006dde1b43b017473e2d7de" + }, + "ResponseBody": { + "callLegId": "1f201300-c64b-4d56-8b13-d2d249d66e51", + "callConnectionId": "1f201300-c64b-4d56-8b13-d2d249d66e51" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/recordings?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "97", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 06:14:43 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c9e4c88cc186738e15632a50b497a3fc", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:14:43 GMT" + }, + "RequestBody": { + "recordingStateCallbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld" + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "180", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:14:47 GMT", + "X-Azure-Ref": "005bJYAAAAAA1himOYEmwRKGBxioDEEsFV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "36fe1b85-d99c-4558-8f2e-82ce686480bb", + "x-ms-client-request-id": "c9e4c88cc186738e15632a50b497a3fc" + }, + "ResponseBody": { + "recordingId": "eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIxZjIwMTMwMC1kNDQ0LTRmODItOTNkNS1iMjFjMGI0N2Q0NGYiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3ODg1ZGNhYy0zOTU1LTRmNTEtODM1OC01MDNkZmYyZjZkZWIifQ" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/recordings/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIxZjIwMTMwMC1kNDQ0LTRmODItOTNkNS1iMjFjMGI0N2Q0NGYiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3ODg1ZGNhYy0zOTU1LTRmNTEtODM1OC01MDNkZmYyZjZkZWIifQ?api-version=2021-06-15-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:14:54 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "729d170df0726a9b7dc2409ff0c89e70", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:14:54 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "27", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:14:53 GMT", + "X-Azure-Ref": "03ZbJYAAAAAAgJG8VtzO1TrwwB9BOK5y1V1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "d10931d4-a019-450b-ba8c-7c12b69abfa5", + "x-ms-client-request-id": "729d170df0726a9b7dc2409ff0c89e70" + }, + "ResponseBody": { + "recordingState": "active" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/recordings/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIxZjIwMTMwMC1kNDQ0LTRmODItOTNkNS1iMjFjMGI0N2Q0NGYiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3ODg1ZGNhYy0zOTU1LTRmNTEtODM1OC01MDNkZmYyZjZkZWIifQ/:pause?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:14:54 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d3c52c4d311ad369ab4121a37691281d", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:14:54 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 06:14:54 GMT", + "X-Azure-Ref": "03pbJYAAAAABp62/ClNLRSKXU67cpwhpTV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "4794c1cc-8455-40f9-9376-18b6fff4565e", + "x-ms-client-request-id": "d3c52c4d311ad369ab4121a37691281d" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/recordings/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIxZjIwMTMwMC1kNDQ0LTRmODItOTNkNS1iMjFjMGI0N2Q0NGYiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3ODg1ZGNhYy0zOTU1LTRmNTEtODM1OC01MDNkZmYyZjZkZWIifQ?api-version=2021-06-15-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:15:00 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "5b67059864459b6c2d794bc481ef834d", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:15:00 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "29", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:15:00 GMT", + "X-Azure-Ref": "05JbJYAAAAACM6rwId1HSQLYyd1v2JmBPV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "aa9d90af-19a5-4b68-b398-b4e1297babf6", + "x-ms-client-request-id": "5b67059864459b6c2d794bc481ef834d" + }, + "ResponseBody": { + "recordingState": "inactive" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/recordings/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIxZjIwMTMwMC1kNDQ0LTRmODItOTNkNS1iMjFjMGI0N2Q0NGYiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3ODg1ZGNhYy0zOTU1LTRmNTEtODM1OC01MDNkZmYyZjZkZWIifQ/:resume?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:15:00 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "8803bac5d0d2dbe1aec9c730cff8f4eb", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:15:00 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 06:15:00 GMT", + "X-Azure-Ref": "05JbJYAAAAABe2s0EGy9XRaajwOIaoIGIV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "70b8fd92-9762-4252-8113-5ab171bd0fa1", + "x-ms-client-request-id": "8803bac5d0d2dbe1aec9c730cff8f4eb" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/recordings/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIxZjIwMTMwMC1kNDQ0LTRmODItOTNkNS1iMjFjMGI0N2Q0NGYiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3ODg1ZGNhYy0zOTU1LTRmNTEtODM1OC01MDNkZmYyZjZkZWIifQ?api-version=2021-06-15-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:15:06 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ea0623994260e82abf29a6a1e5a552bc", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:15:06 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "27", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:15:06 GMT", + "X-Azure-Ref": "06pbJYAAAAAAMilSk8NYKQI/3lphUmEdQV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "49208aef-1fdc-4dd2-aa6c-8673377f8e1d", + "x-ms-client-request-id": "ea0623994260e82abf29a6a1e5a552bc" + }, + "ResponseBody": { + "recordingState": "active" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/recordings/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIxZjIwMTMwMC1kNDQ0LTRmODItOTNkNS1iMjFjMGI0N2Q0NGYiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3ODg1ZGNhYy0zOTU1LTRmNTEtODM1OC01MDNkZmYyZjZkZWIifQ?api-version=2021-06-15-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:15:07 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "bbddd4be9f8ec84b238cad7c9d3bcc34", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:15:07 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 06:15:06 GMT", + "X-Azure-Ref": "06pbJYAAAAADt\u002Bvd3Ym54Tqz0ZriqLeKfV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "b07f60d0-be10-4c91-bd93-4a540be0d6a5", + "x-ms-client-request-id": "bbddd4be9f8ec84b238cad7c9d3bcc34" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/recordings/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIxZjIwMTMwMC1kNDQ0LTRmODItOTNkNS1iMjFjMGI0N2Q0NGYiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3ODg1ZGNhYy0zOTU1LTRmNTEtODM1OC01MDNkZmYyZjZkZWIifQ?api-version=2021-06-15-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:15:07 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "5e2a5f8598e882ec8f1ac9a82940f508", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:15:06 GMT" + }, + "RequestBody": null, + "StatusCode": 400, + "ResponseHeaders": { + "Content-Length": "93", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:15:06 GMT", + "X-Azure-Ref": "065bJYAAAAAC5fPwjZF8zQJTaqoIJiI\u002BbV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "b91d8469-13ed-4220-bd56-745e7b1d5e87", + "x-ms-client-request-id": "5e2a5f8598e882ec8f1ac9a82940f508" + }, + "ResponseBody": { + "error": { + "code": "8501", + "message": "Action is invalid when call is not in Established state" + } + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/1f201300-bfb0-4767-9e79-78154c5f075d/:hangup?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:15:17 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "fb720b77381af95dd83ec7d495ae4a83", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:15:17 GMT" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 06:15:17 GMT", + "X-Azure-Ref": "09ZbJYAAAAABvakfTfriAR41VW7CnhDyvV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "6d7fb8b8-f118-4157-b315-cb785079c3c2", + "x-ms-client-request-id": "fb720b77381af95dd83ec7d495ae4a83" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/1f201300-c64b-4d56-8b13-d2d249d66e51/:hangup?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:15:17 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "851b715df47a25d3e75b2c73d6a29ee3", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:15:17 GMT" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 06:15:17 GMT", + "X-Azure-Ref": "09ZbJYAAAAADMPDfgdmFDRpl/2PhlOTFNV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "98c8b906-d978-4b79-9ef4-ca0537cdc539", + "x-ms-client-request-id": "851b715df47a25d3e75b2c73d6a29ee3" + }, + "ResponseBody": [] + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://acstestbot1.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "502582709" + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/ServerCallLiveTests/RunAllRecordingFunctionsScenarioTestsAsync.json b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/ServerCallLiveTests/RunAllRecordingFunctionsScenarioTestsAsync.json new file mode 100644 index 000000000000..c28d5053f636 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/ServerCallLiveTests/RunAllRecordingFunctionsScenarioTestsAsync.json @@ -0,0 +1,370 @@ +{ + "Entries": [ + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/:join?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "281", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 06:14:39 GMT", + "traceparent": "00-616dfbbf36772a46864bf7c08755624d-bcc64f263cee0042-00", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f49f5f0bf1da113c53240a529cfffbef", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:14:39 GMT" + }, + "RequestBody": { + "source": { + "communicationUser": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_e3560385-776f-41d1-bf04-07ef738f2f23" + } + }, + "callbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld", + "requestedMediaTypes": [ + "audio" + ], + "requestedCallEvents": [ + "participantsUpdated" + ] + }, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "110", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:14:40 GMT", + "X-Azure-Ref": "00JbJYAAAAABoXEnj\u002B/jNT6h9T9oEgjZlV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "63fffae3-74c2-4c76-bd52-d7e03c99814c", + "x-ms-client-request-id": "f49f5f0bf1da113c53240a529cfffbef" + }, + "ResponseBody": { + "callLegId": "1f201300-bfb0-4767-9e79-78154c5f075d", + "callConnectionId": "1f201300-bfb0-4767-9e79-78154c5f075d" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/:join?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "281", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 06:14:41 GMT", + "traceparent": "00-97b6c6b7e5d89e41a1954f50a2583670-b9ea8c9ae34aa643-00", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "37b43a95a006dde1b43b017473e2d7de", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:14:41 GMT" + }, + "RequestBody": { + "source": { + "communicationUser": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_e3560385-776f-41d1-bf04-07ef738f2fc1" + } + }, + "callbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld", + "requestedMediaTypes": [ + "audio" + ], + "requestedCallEvents": [ + "participantsUpdated" + ] + }, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "110", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:14:41 GMT", + "X-Azure-Ref": "00ZbJYAAAAAAWWBFl\u002BUa4Q4pAQfn83SdiV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "afd18997-36d8-4ea5-aaca-6fe5534394e0", + "x-ms-client-request-id": "37b43a95a006dde1b43b017473e2d7de" + }, + "ResponseBody": { + "callLegId": "1f201300-c64b-4d56-8b13-d2d249d66e51", + "callConnectionId": "1f201300-c64b-4d56-8b13-d2d249d66e51" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/recordings?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "97", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 06:14:43 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c9e4c88cc186738e15632a50b497a3fc", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:14:43 GMT" + }, + "RequestBody": { + "recordingStateCallbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld" + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "180", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:14:47 GMT", + "X-Azure-Ref": "005bJYAAAAAA1himOYEmwRKGBxioDEEsFV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "36fe1b85-d99c-4558-8f2e-82ce686480bb", + "x-ms-client-request-id": "c9e4c88cc186738e15632a50b497a3fc" + }, + "ResponseBody": { + "recordingId": "eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIxZjIwMTMwMC1kNDQ0LTRmODItOTNkNS1iMjFjMGI0N2Q0NGYiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3ODg1ZGNhYy0zOTU1LTRmNTEtODM1OC01MDNkZmYyZjZkZWIifQ" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/recordings/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIxZjIwMTMwMC1kNDQ0LTRmODItOTNkNS1iMjFjMGI0N2Q0NGYiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3ODg1ZGNhYy0zOTU1LTRmNTEtODM1OC01MDNkZmYyZjZkZWIifQ?api-version=2021-06-15-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:14:54 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "729d170df0726a9b7dc2409ff0c89e70", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:14:54 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "27", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:14:53 GMT", + "X-Azure-Ref": "03ZbJYAAAAAAgJG8VtzO1TrwwB9BOK5y1V1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "d10931d4-a019-450b-ba8c-7c12b69abfa5", + "x-ms-client-request-id": "729d170df0726a9b7dc2409ff0c89e70" + }, + "ResponseBody": { + "recordingState": "active" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/recordings/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIxZjIwMTMwMC1kNDQ0LTRmODItOTNkNS1iMjFjMGI0N2Q0NGYiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3ODg1ZGNhYy0zOTU1LTRmNTEtODM1OC01MDNkZmYyZjZkZWIifQ/:pause?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:14:54 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "d3c52c4d311ad369ab4121a37691281d", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:14:54 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 06:14:54 GMT", + "X-Azure-Ref": "03pbJYAAAAABp62/ClNLRSKXU67cpwhpTV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "4794c1cc-8455-40f9-9376-18b6fff4565e", + "x-ms-client-request-id": "d3c52c4d311ad369ab4121a37691281d" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/recordings/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIxZjIwMTMwMC1kNDQ0LTRmODItOTNkNS1iMjFjMGI0N2Q0NGYiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3ODg1ZGNhYy0zOTU1LTRmNTEtODM1OC01MDNkZmYyZjZkZWIifQ?api-version=2021-06-15-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:15:00 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "5b67059864459b6c2d794bc481ef834d", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:15:00 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "29", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:15:00 GMT", + "X-Azure-Ref": "05JbJYAAAAACM6rwId1HSQLYyd1v2JmBPV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "aa9d90af-19a5-4b68-b398-b4e1297babf6", + "x-ms-client-request-id": "5b67059864459b6c2d794bc481ef834d" + }, + "ResponseBody": { + "recordingState": "inactive" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/recordings/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIxZjIwMTMwMC1kNDQ0LTRmODItOTNkNS1iMjFjMGI0N2Q0NGYiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3ODg1ZGNhYy0zOTU1LTRmNTEtODM1OC01MDNkZmYyZjZkZWIifQ/:resume?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:15:00 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "8803bac5d0d2dbe1aec9c730cff8f4eb", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:15:00 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 06:15:00 GMT", + "X-Azure-Ref": "05JbJYAAAAABe2s0EGy9XRaajwOIaoIGIV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "70b8fd92-9762-4252-8113-5ab171bd0fa1", + "x-ms-client-request-id": "8803bac5d0d2dbe1aec9c730cff8f4eb" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/recordings/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIxZjIwMTMwMC1kNDQ0LTRmODItOTNkNS1iMjFjMGI0N2Q0NGYiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3ODg1ZGNhYy0zOTU1LTRmNTEtODM1OC01MDNkZmYyZjZkZWIifQ?api-version=2021-06-15-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:15:06 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "ea0623994260e82abf29a6a1e5a552bc", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:15:06 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "27", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:15:06 GMT", + "X-Azure-Ref": "06pbJYAAAAAAMilSk8NYKQI/3lphUmEdQV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "49208aef-1fdc-4dd2-aa6c-8673377f8e1d", + "x-ms-client-request-id": "ea0623994260e82abf29a6a1e5a552bc" + }, + "ResponseBody": { + "recordingState": "active" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/recordings/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIxZjIwMTMwMC1kNDQ0LTRmODItOTNkNS1iMjFjMGI0N2Q0NGYiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3ODg1ZGNhYy0zOTU1LTRmNTEtODM1OC01MDNkZmYyZjZkZWIifQ?api-version=2021-06-15-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:15:07 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "bbddd4be9f8ec84b238cad7c9d3bcc34", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:15:07 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 06:15:06 GMT", + "X-Azure-Ref": "06pbJYAAAAADt\u002Bvd3Ym54Tqz0ZriqLeKfV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "b07f60d0-be10-4c91-bd93-4a540be0d6a5", + "x-ms-client-request-id": "bbddd4be9f8ec84b238cad7c9d3bcc34" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/recordings/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiIxZjIwMTMwMC1kNDQ0LTRmODItOTNkNS1iMjFjMGI0N2Q0NGYiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3ODg1ZGNhYy0zOTU1LTRmNTEtODM1OC01MDNkZmYyZjZkZWIifQ?api-version=2021-06-15-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:15:07 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "5e2a5f8598e882ec8f1ac9a82940f508", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:15:06 GMT" + }, + "RequestBody": null, + "StatusCode": 400, + "ResponseHeaders": { + "Content-Length": "93", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:15:06 GMT", + "X-Azure-Ref": "065bJYAAAAAC5fPwjZF8zQJTaqoIJiI\u002BbV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "b91d8469-13ed-4220-bd56-745e7b1d5e87", + "x-ms-client-request-id": "5e2a5f8598e882ec8f1ac9a82940f508" + }, + "ResponseBody": { + "error": { + "code": "8501", + "message": "Action is invalid when call is not in Established state" + } + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/1f201300-bfb0-4767-9e79-78154c5f075d/:hangup?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:15:17 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "fb720b77381af95dd83ec7d495ae4a83", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:15:17 GMT" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 06:15:17 GMT", + "X-Azure-Ref": "09ZbJYAAAAABvakfTfriAR41VW7CnhDyvV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "6d7fb8b8-f118-4157-b315-cb785079c3c2", + "x-ms-client-request-id": "fb720b77381af95dd83ec7d495ae4a83" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/1f201300-c64b-4d56-8b13-d2d249d66e51/:hangup?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:15:17 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "851b715df47a25d3e75b2c73d6a29ee3", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:15:17 GMT" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 06:15:17 GMT", + "X-Azure-Ref": "09ZbJYAAAAADMPDfgdmFDRpl/2PhlOTFNV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "98c8b906-d978-4b79-9ef4-ca0537cdc539", + "x-ms-client-request-id": "851b715df47a25d3e75b2c73d6a29ee3" + }, + "ResponseBody": [] + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://acstestbot1.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "502582709" + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/ServerCallLiveTests/RunCreateAddRemoveHangupScenarioTests.json b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/ServerCallLiveTests/RunCreateAddRemoveHangupScenarioTests.json new file mode 100644 index 000000000000..fc6295976b30 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/ServerCallLiveTests/RunCreateAddRemoveHangupScenarioTests.json @@ -0,0 +1,210 @@ +{ + "Entries": [ + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/:join?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "281", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 06:19:57 GMT", + "traceparent": "00-0cb5b4526f16344dabc81f983bdd33f8-c6457baa3ffaa342-00", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "5b1c21631872ba7c6eab805565cd5455", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:19:57 GMT" + }, + "RequestBody": { + "source": { + "communicationUser": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_e3560385-776f-41d1-bf04-07ef738f2f23" + } + }, + "callbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld", + "requestedMediaTypes": [ + "audio" + ], + "requestedCallEvents": [ + "participantsUpdated" + ] + }, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "110", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:19:57 GMT", + "X-Azure-Ref": "0DpjJYAAAAACsNdkW0upQTL\u002BwrOJMzDCHV1NURURHRTA4MDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "5a3dc9d6-3a58-4a91-a32b-aae81af84c36", + "x-ms-client-request-id": "5b1c21631872ba7c6eab805565cd5455" + }, + "ResponseBody": { + "callLegId": "86201300-42cd-440d-8c0c-9536b501ae43", + "callConnectionId": "86201300-42cd-440d-8c0c-9536b501ae43" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/:join?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "281", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 06:19:59 GMT", + "traceparent": "00-5220e669df7b314da391bac86927fdbe-1a9483565a5e7544-00", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "dc3c427de05f9908815bf920d2c33b02", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:19:59 GMT" + }, + "RequestBody": { + "source": { + "communicationUser": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_e3560385-776f-41d1-bf04-07ef738f2fc1" + } + }, + "callbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld", + "requestedMediaTypes": [ + "audio" + ], + "requestedCallEvents": [ + "participantsUpdated" + ] + }, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "110", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:19:59 GMT", + "X-Azure-Ref": "0D5jJYAAAAACAjX3iTmssRqXtdBC05sNSV1NURURHRTA4MDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "39a374e5-fd55-48a3-ad47-71290dfd6ee7", + "x-ms-client-request-id": "dc3c427de05f9908815bf920d2c33b02" + }, + "ResponseBody": { + "callLegId": "86201300-2cfb-4d0e-8db8-2e11a994b2ed", + "callConnectionId": "86201300-2cfb-4d0e-8db8-2e11a994b2ed" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/participants?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "208", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 06:20:11 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "903aec5eab806bc4938f9e74ab45934c", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:20:11 GMT" + }, + "RequestBody": { + "participant": { + "communicationUser": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000a-b200-7a0d-570c-113a0d00288d" + } + }, + "callbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld" + }, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "56", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:20:11 GMT", + "X-Azure-Ref": "0GpjJYAAAAADYA3qHM1aORan7rt3Q0JGTV1NURURHRTA4MDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "f2914421-4a9c-40c8-af49-c26181d7b1ec", + "x-ms-client-request-id": "903aec5eab806bc4938f9e74ab45934c" + }, + "ResponseBody": { + "participantId": "458cd853-3a2a-4cba-bb73-e86570c59f92" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/participants/458cd853-3a2a-4cba-bb73-e86570c59f92?api-version=2021-06-15-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:20:22 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "13e2df785e4883d71883da171f5ce8aa", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:20:22 GMT" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 06:20:23 GMT", + "X-Azure-Ref": "0JpjJYAAAAACZN8SExMrNQpJifKyXZ37TV1NURURHRTA4MDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "ac90b417-6b79-4f25-8082-187cef31bfc1", + "x-ms-client-request-id": "13e2df785e4883d71883da171f5ce8aa" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/86201300-42cd-440d-8c0c-9536b501ae43/:hangup?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:20:34 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "79f77e6fc393d1d57ed049cf4193ee3b", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:20:34 GMT" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 06:20:33 GMT", + "X-Azure-Ref": "0MpjJYAAAAAAjctD2KR8GQpby4gRy3IPBV1NURURHRTA4MDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "e0e90ba5-2f82-4e21-baf6-825be0611d19", + "x-ms-client-request-id": "79f77e6fc393d1d57ed049cf4193ee3b" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/86201300-2cfb-4d0e-8db8-2e11a994b2ed/:hangup?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:20:34 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f2a7acc728e1ffb914b777fdd1ad4c36", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:20:34 GMT" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 06:20:33 GMT", + "X-Azure-Ref": "0MpjJYAAAAABunbzxQG1rSq7EN/GQmG3ZV1NURURHRTA4MDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "ec709066-aef6-41c1-9764-3bafa857452d", + "x-ms-client-request-id": "f2a7acc728e1ffb914b777fdd1ad4c36" + }, + "ResponseBody": [] + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://acstestbot1.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "1522827907" + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/ServerCallLiveTests/RunCreateAddRemoveHangupScenarioTestsAsync.json b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/ServerCallLiveTests/RunCreateAddRemoveHangupScenarioTestsAsync.json new file mode 100644 index 000000000000..44af6db5a4a3 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/ServerCallLiveTests/RunCreateAddRemoveHangupScenarioTestsAsync.json @@ -0,0 +1,210 @@ +{ + "Entries": [ + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/:join?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "281", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 06:20:35 GMT", + "traceparent": "00-f5557c794173be4a800f3f8e5e51f6f5-26cb1b99b9cb9348-00", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "1cdb28d9a82f6a18a79aa8ce818fde86", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:20:35 GMT" + }, + "RequestBody": { + "source": { + "communicationUser": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_e3560385-776f-41d1-bf04-07ef738f2f23" + } + }, + "callbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld", + "requestedMediaTypes": [ + "audio" + ], + "requestedCallEvents": [ + "participantsUpdated" + ] + }, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "110", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:20:34 GMT", + "X-Azure-Ref": "0MpjJYAAAAABhEubOs9Y9SqXxYwfuovZNV1NURURHRTA4MDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "d190e51d-23a8-4a17-a741-0a2c8ea30d12", + "x-ms-client-request-id": "1cdb28d9a82f6a18a79aa8ce818fde86" + }, + "ResponseBody": { + "callLegId": "86201300-2d08-48c7-bdcf-af606c040f6d", + "callConnectionId": "86201300-2d08-48c7-bdcf-af606c040f6d" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/:join?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "281", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 06:20:36 GMT", + "traceparent": "00-72e30145c827ee4e9cb04cd030f8399d-c93bc30c2786a44b-00", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "c578aad863a3538dd12a8af51b75ea12", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:20:36 GMT" + }, + "RequestBody": { + "source": { + "communicationUser": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_e3560385-776f-41d1-bf04-07ef738f2fc1" + } + }, + "callbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld", + "requestedMediaTypes": [ + "audio" + ], + "requestedCallEvents": [ + "participantsUpdated" + ] + }, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "110", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:20:35 GMT", + "X-Azure-Ref": "0NJjJYAAAAABvqdnHxPu3RJEF6dgjpsWhV1NURURHRTA4MDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "d4b4695d-26e1-487b-bd7a-f1b7d848176a", + "x-ms-client-request-id": "c578aad863a3538dd12a8af51b75ea12" + }, + "ResponseBody": { + "callLegId": "86201300-879b-4661-9077-38685652597f", + "callConnectionId": "86201300-879b-4661-9077-38685652597f" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/participants?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "208", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 06:20:47 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "a31a89405456b2bdaf8b092b273fd2c1", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:20:47 GMT" + }, + "RequestBody": { + "participant": { + "communicationUser": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_0000000a-b200-7a0d-570c-113a0d00288d" + } + }, + "callbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld" + }, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "56", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:20:48 GMT", + "X-Azure-Ref": "0P5jJYAAAAAB1/E0yb6yRSJ6c/Ui8e57IV1NURURHRTA4MDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "6a2130ee-3730-435e-beae-e0cdb9c61025", + "x-ms-client-request-id": "a31a89405456b2bdaf8b092b273fd2c1" + }, + "ResponseBody": { + "participantId": "15b87b6d-5e0b-421e-b5ad-9dd2e389eb8d" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/participants/15b87b6d-5e0b-421e-b5ad-9dd2e389eb8d?api-version=2021-06-15-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:20:59 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "5de5d95fe3a475459b874b041d234e31", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:20:59 GMT" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 06:21:00 GMT", + "X-Azure-Ref": "0S5jJYAAAAAAAB7iunIIuQJ\u002B7ddnx4nfvV1NURURHRTA4MDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "1fa79fa2-68ee-40ea-b2f7-a7a3a7f7f631", + "x-ms-client-request-id": "5de5d95fe3a475459b874b041d234e31" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/86201300-2d08-48c7-bdcf-af606c040f6d/:hangup?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:21:12 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f88d96af3b748330ecc6161759612c91", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:21:12 GMT" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 06:21:12 GMT", + "X-Azure-Ref": "0WJjJYAAAAACpoBkeTocASY2zUGtq21ioV1NURURHRTA4MDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "626f001c-a86b-4a74-84f0-e8c4fc81774d", + "x-ms-client-request-id": "f88d96af3b748330ecc6161759612c91" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/86201300-879b-4661-9077-38685652597f/:hangup?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:21:12 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "4296c9588d8f5d6e43a508ce08b9948c", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:21:12 GMT" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 06:21:12 GMT", + "X-Azure-Ref": "0WJjJYAAAAAAgESxYLSQBQ6hXzOnXabtoV1NURURHRTA4MDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "b61c4230-eaa0-4b96-86e8-915c92bc6e3b", + "x-ms-client-request-id": "4296c9588d8f5d6e43a508ce08b9948c" + }, + "ResponseBody": [] + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://acstestbot1.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "38775367" + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/ServerCallLiveTests/RunCreatePlayCancelHangupScenarioTests.json b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/ServerCallLiveTests/RunCreatePlayCancelHangupScenarioTests.json new file mode 100644 index 000000000000..968caf9814d3 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/ServerCallLiveTests/RunCreatePlayCancelHangupScenarioTests.json @@ -0,0 +1,249 @@ +{ + "Entries": [ + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/:join?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "281", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 06:16:47 GMT", + "traceparent": "00-8be82162454b314698037a2f1bffffef-5f4432689b885c4e-00", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3eb76071115360cd27c4c26d83b4f8b4", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:16:47 GMT" + }, + "RequestBody": { + "source": { + "communicationUser": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_e3560385-776f-41d1-bf04-07ef738f2f23" + } + }, + "callbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld", + "requestedMediaTypes": [ + "audio" + ], + "requestedCallEvents": [ + "participantsUpdated" + ] + }, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "110", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:16:46 GMT", + "X-Azure-Ref": "0T5fJYAAAAAB3DWWnUVthQpm/9ECHREOJV1NURURHRTA4MDgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "eee23c88-b4c7-427b-a442-339e4b0f90df", + "x-ms-client-request-id": "3eb76071115360cd27c4c26d83b4f8b4" + }, + "ResponseBody": { + "callLegId": "cd1f1300-00e2-4622-a7a4-7a12d92409fb", + "callConnectionId": "cd1f1300-00e2-4622-a7a4-7a12d92409fb" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/:join?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "281", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 06:16:48 GMT", + "traceparent": "00-5fd283bbed687e45b0f37243d26b191a-0d540710af6f9248-00", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "7f29f5ce3a7b2111dd86b053335b9b2b", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:16:48 GMT" + }, + "RequestBody": { + "source": { + "communicationUser": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_e3560385-776f-41d1-bf04-07ef738f2fc1" + } + }, + "callbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld", + "requestedMediaTypes": [ + "audio" + ], + "requestedCallEvents": [ + "participantsUpdated" + ] + }, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "110", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:16:48 GMT", + "X-Azure-Ref": "0UJfJYAAAAAD34t/8WEepT7hELT6lf6j5V1NURURHRTA4MDgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "01f7653d-f6b3-43e4-9e99-3cd144b802b8", + "x-ms-client-request-id": "7f29f5ce3a7b2111dd86b053335b9b2b" + }, + "ResponseBody": { + "callLegId": "cd1f1300-6e70-47db-9150-db14bc073cd9", + "callConnectionId": "cd1f1300-6e70-47db-9150-db14bc073cd9" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/:playAudio?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "272", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 06:16:59 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "eed6d7747d179189096d4eee34e9d72d", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:16:59 GMT" + }, + "RequestBody": { + "audioFileUri": "https://dummy.ngrok.io/audio/sample-message.wav", + "loop": false, + "operationContext": "de346f03-7f8d-41ab-a232-cc5e14990769", + "audioFileId": "ebb1d98d-fd86-4204-800c-f7bdfc2e515c", + "callbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld" + }, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "131", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:16:59 GMT", + "X-Azure-Ref": "0W5fJYAAAAACcNRW1MFJqRLstwg8m7FDRV1NURURHRTA4MDgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "58361be6-6845-48bb-b935-c0d7bbbd8db1", + "x-ms-client-request-id": "eed6d7747d179189096d4eee34e9d72d" + }, + "ResponseBody": { + "operationId": "cd1f1300-590a-4aaf-a4ef-94e82a361403", + "status": "running", + "operationContext": "de346f03-7f8d-41ab-a232-cc5e14990769" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/cd1f1300-00e2-4622-a7a4-7a12d92409fb/:cancelAllMediaOperations?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 06:17:11 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "72afde20e9a137734f9561cc61792ccb", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:17:11 GMT" + }, + "RequestBody": {}, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "75", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:17:10 GMT", + "X-Azure-Ref": "0ZpfJYAAAAAD4xZGe86puRomNI0C/dJghV1NURURHRTA4MDgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "2da50efa-a0ea-47b5-af11-d5f19041c59a", + "x-ms-client-request-id": "72afde20e9a137734f9561cc61792ccb" + }, + "ResponseBody": { + "operationId": "27d17843-a7aa-48e3-9150-1cbb7161f95a", + "status": "completed" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/cd1f1300-6e70-47db-9150-db14bc073cd9/:cancelAllMediaOperations?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 06:17:11 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "acf9972809de519c6c98760eeb23edf3", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:17:11 GMT" + + }, + "RequestBody": {}, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "75", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:17:10 GMT", + "X-Azure-Ref": "0Z5fJYAAAAACsLZ9zs/TOTbGMkqANyzYAV1NURURHRTA4MDgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "fb45eace-0a3f-46e1-8325-6fd28d6e906c", + "x-ms-client-request-id": "acf9972809de519c6c98760eeb23edf3" + }, + "ResponseBody": { + "operationId": "19e87892-9e86-48e9-9fbe-7eec9cd87b08", + "status": "completed" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/cd1f1300-00e2-4622-a7a4-7a12d92409fb/:hangup?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:17:21 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "553382af29ab8a89649e9f811bbc308f", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:17:21 GMT" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 06:17:20 GMT", + "X-Azure-Ref": "0cZfJYAAAAAB0roZUcRQ9Q4Dx\u002BxyJI/f2V1NURURHRTA4MDgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "1a9b14d0-061a-4c60-9faa-74f4c18d31ac", + "x-ms-client-request-id": "553382af29ab8a89649e9f811bbc308f" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/cd1f1300-6e70-47db-9150-db14bc073cd9/:hangup?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:17:21 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "9cc583412bef164f415e050973644c2b", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:17:21 GMT" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 06:17:20 GMT", + "X-Azure-Ref": "0cZfJYAAAAABguzaZMdnPTZ77QW9PdIk3V1NURURHRTA4MDgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "252dba3f-afd9-403c-9026-5f1b093a166d", + "x-ms-client-request-id": "9cc583412bef164f415e050973644c2b" + }, + "ResponseBody": [] + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://acstestbot1.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "1656122379" + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/ServerCallLiveTests/RunCreatePlayCancelHangupScenarioTestsAsync.json b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/ServerCallLiveTests/RunCreatePlayCancelHangupScenarioTestsAsync.json new file mode 100644 index 000000000000..968caf9814d3 --- /dev/null +++ b/sdk/communication/Azure.Communication.CallingServer/tests/SessionRecords/ServerCallLiveTests/RunCreatePlayCancelHangupScenarioTestsAsync.json @@ -0,0 +1,249 @@ +{ + "Entries": [ + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/:join?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "281", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 06:16:47 GMT", + "traceparent": "00-8be82162454b314698037a2f1bffffef-5f4432689b885c4e-00", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3eb76071115360cd27c4c26d83b4f8b4", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:16:47 GMT" + }, + "RequestBody": { + "source": { + "communicationUser": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_e3560385-776f-41d1-bf04-07ef738f2f23" + } + }, + "callbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld", + "requestedMediaTypes": [ + "audio" + ], + "requestedCallEvents": [ + "participantsUpdated" + ] + }, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "110", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:16:46 GMT", + "X-Azure-Ref": "0T5fJYAAAAAB3DWWnUVthQpm/9ECHREOJV1NURURHRTA4MDgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "eee23c88-b4c7-427b-a442-339e4b0f90df", + "x-ms-client-request-id": "3eb76071115360cd27c4c26d83b4f8b4" + }, + "ResponseBody": { + "callLegId": "cd1f1300-00e2-4622-a7a4-7a12d92409fb", + "callConnectionId": "cd1f1300-00e2-4622-a7a4-7a12d92409fb" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/:join?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "281", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 06:16:48 GMT", + "traceparent": "00-5fd283bbed687e45b0f37243d26b191a-0d540710af6f9248-00", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "7f29f5ce3a7b2111dd86b053335b9b2b", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:16:48 GMT" + }, + "RequestBody": { + "source": { + "communicationUser": { + "id": "8:acs:016a7064-0581-40b9-be73-6dde64d69d72_e3560385-776f-41d1-bf04-07ef738f2fc1" + } + }, + "callbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld", + "requestedMediaTypes": [ + "audio" + ], + "requestedCallEvents": [ + "participantsUpdated" + ] + }, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "110", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:16:48 GMT", + "X-Azure-Ref": "0UJfJYAAAAAD34t/8WEepT7hELT6lf6j5V1NURURHRTA4MDgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "01f7653d-f6b3-43e4-9e99-3cd144b802b8", + "x-ms-client-request-id": "7f29f5ce3a7b2111dd86b053335b9b2b" + }, + "ResponseBody": { + "callLegId": "cd1f1300-6e70-47db-9150-db14bc073cd9", + "callConnectionId": "cd1f1300-6e70-47db-9150-db14bc073cd9" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/serverCalls/3500789f-e11b-4ceb-85cb-bc8df2a01768/:playAudio?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "272", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 06:16:59 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "eed6d7747d179189096d4eee34e9d72d", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:16:59 GMT" + }, + "RequestBody": { + "audioFileUri": "https://dummy.ngrok.io/audio/sample-message.wav", + "loop": false, + "operationContext": "de346f03-7f8d-41ab-a232-cc5e14990769", + "audioFileId": "ebb1d98d-fd86-4204-800c-f7bdfc2e515c", + "callbackUri": "https://dummy.ngrok.io/api/incident/callback?SecretKey=helloworld" + }, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "131", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:16:59 GMT", + "X-Azure-Ref": "0W5fJYAAAAACcNRW1MFJqRLstwg8m7FDRV1NURURHRTA4MDgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "58361be6-6845-48bb-b935-c0d7bbbd8db1", + "x-ms-client-request-id": "eed6d7747d179189096d4eee34e9d72d" + }, + "ResponseBody": { + "operationId": "cd1f1300-590a-4aaf-a4ef-94e82a361403", + "status": "running", + "operationContext": "de346f03-7f8d-41ab-a232-cc5e14990769" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/cd1f1300-00e2-4622-a7a4-7a12d92409fb/:cancelAllMediaOperations?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 06:17:11 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "72afde20e9a137734f9561cc61792ccb", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:17:11 GMT" + }, + "RequestBody": {}, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "75", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:17:10 GMT", + "X-Azure-Ref": "0ZpfJYAAAAAD4xZGe86puRomNI0C/dJghV1NURURHRTA4MDgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "2da50efa-a0ea-47b5-af11-d5f19041c59a", + "x-ms-client-request-id": "72afde20e9a137734f9561cc61792ccb" + }, + "ResponseBody": { + "operationId": "27d17843-a7aa-48e3-9150-1cbb7161f95a", + "status": "completed" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/cd1f1300-6e70-47db-9150-db14bc073cd9/:cancelAllMediaOperations?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "2", + "Content-Type": "application/json", + "Date": "Wed, 16 Jun 2021 06:17:11 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "acf9972809de519c6c98760eeb23edf3", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:17:11 GMT" + + }, + "RequestBody": {}, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "75", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Jun 2021 06:17:10 GMT", + "X-Azure-Ref": "0Z5fJYAAAAACsLZ9zs/TOTbGMkqANyzYAV1NURURHRTA4MDgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "fb45eace-0a3f-46e1-8325-6fd28d6e906c", + "x-ms-client-request-id": "acf9972809de519c6c98760eeb23edf3" + }, + "ResponseBody": { + "operationId": "19e87892-9e86-48e9-9fbe-7eec9cd87b08", + "status": "completed" + } + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/cd1f1300-00e2-4622-a7a4-7a12d92409fb/:hangup?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:17:21 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "553382af29ab8a89649e9f811bbc308f", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:17:21 GMT" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 06:17:20 GMT", + "X-Azure-Ref": "0cZfJYAAAAAB0roZUcRQ9Q4Dx\u002BxyJI/f2V1NURURHRTA4MDgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "1a9b14d0-061a-4c60-9faa-74f4c18d31ac", + "x-ms-client-request-id": "553382af29ab8a89649e9f811bbc308f" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://acstestbot1.communication.azure.com/calling/callConnections/cd1f1300-6e70-47db-9150-db14bc073cd9/:hangup?api-version=2021-06-15-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Date": "Wed, 16 Jun 2021 06:17:21 GMT", + "User-Agent": "azsdk-net-Communication.CallingServer/1.0.0-alpha.20210615.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "9cc583412bef164f415e050973644c2b", + "x-ms-content-sha256": "Sanitized", + "x-ms-return-client-request-id": "true", + "x-ms-date": "Wed, 16 Jun 2021 06:17:21 GMT" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Content-Length": "0", + "Date": "Wed, 16 Jun 2021 06:17:20 GMT", + "X-Azure-Ref": "0cZfJYAAAAABguzaZMdnPTZ77QW9PdIk3V1NURURHRTA4MDgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Microsoft-Skype-Chain-ID": "252dba3f-afd9-403c-9026-5f1b093a166d", + "x-ms-client-request-id": "9cc583412bef164f415e050973644c2b" + }, + "ResponseBody": [] + } + ], + "Variables": { + "COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING": "endpoint=https://acstestbot1.communication.azure.com/;accesskey=Kg==", + "RandomSeed": "1656122379" + } +} diff --git a/sdk/communication/Azure.Communication.CallingServer/tests/samples/Sample1_CallClient.cs b/sdk/communication/Azure.Communication.CallingServer/tests/samples/Sample1_CallClient.cs index 34f38b4eebee..900129d47850 100644 --- a/sdk/communication/Azure.Communication.CallingServer/tests/samples/Sample1_CallClient.cs +++ b/sdk/communication/Azure.Communication.CallingServer/tests/samples/Sample1_CallClient.cs @@ -2,7 +2,6 @@ // Licensed under the MIT License. using System; -using System.Collections.Generic; using System.Threading.Tasks; using Azure.Communication.Identity; using Azure.Core.TestFramework; @@ -21,26 +20,25 @@ public Sample1_CallClient(bool isAsync) : base(isAsync) [Test] [AsyncOnly] - [Ignore("Ignore for now as we get build errors that block checkingin.")] public async Task CreateCallAsync() { - CommunicationIdentityClient communicationIdentityClient = new CommunicationIdentityClient(TestEnvironment.LiveTestDynamicConnectionString); + CommunicationIdentityClient communicationIdentityClient = CreateInstrumentedCommunicationIdentityClient(); var source = await communicationIdentityClient.CreateUserAsync(); - var targets = new List() { new PhoneNumberIdentifier(TestEnvironment.SourcePhoneNumber) }; + var targets = new[] { new PhoneNumberIdentifier(TestEnvironment.TargetPhoneNumber) }; #region Snippet:Azure_Communication_Call_Tests_CreateCallOptions var createCallOption = new CreateCallOptions( new Uri(TestEnvironment.AppCallbackUrl), - new List { CallModality.Audio }, - new List + new[] { MediaType.Audio }, + new[] { EventSubscriptionType.ParticipantsUpdated, EventSubscriptionType.DtmfReceived }); #endregion Snippet:Azure_Communication_Call_Tests_CreateCallOptions - CallClient callClient = CreateInstrumentedCallingServerClient(); - Console.WriteLine("Performing CreateCall operation"); + CallingServerClient callingServerClient = CreateInstrumentedCallingServerClient(); + Console.WriteLine("Performing CreateCallConnection operation"); #region Snippet:Azure_Communication_Call_Tests_CreateCallAsync - CreateCallResponse createCallResponse = await callClient.CreateCallAsync( + var callConnection = await callingServerClient.CreateCallConnectionAsync( //@@ source: new CommunicationUserIdentifier(""), // Your Azure Communication Resource Guid Id used to make a Call //@@ targets: new List() { new PhoneNumberIdentifier("") }, // E.164 formatted recipient phone number //@@ options: createCallOption // The options for creating a call. @@ -48,29 +46,28 @@ public async Task CreateCallAsync() /*@@*/ targets: targets, /*@@*/ options: createCallOption ); - Console.WriteLine($"Call Leg id: {createCallResponse.CallLegId}"); + Console.WriteLine($"Call connection id: {callConnection.Value.CallConnectionId}"); #endregion Snippet:Azure_Communication_Call_Tests_CreateCallAsync } [Test] [SyncOnly] - [Ignore("Ignore for now as we get build errors that block checkingin.")] public void CreateCall() { - CommunicationIdentityClient communicationIdentityClient = new CommunicationIdentityClient(TestEnvironment.LiveTestDynamicConnectionString); + CommunicationIdentityClient communicationIdentityClient = CreateInstrumentedCommunicationIdentityClient(); var source = communicationIdentityClient.CreateUser(); - var targets = new List() { new PhoneNumberIdentifier(TestEnvironment.SourcePhoneNumber) }; + var targets = new[] { new PhoneNumberIdentifier(TestEnvironment.TargetPhoneNumber) }; var createCallOption = new CreateCallOptions( new Uri(TestEnvironment.AppCallbackUrl), - new List { CallModality.Audio }, - new List { + new[] { MediaType.Audio }, + new[] { EventSubscriptionType.ParticipantsUpdated, EventSubscriptionType.DtmfReceived }); - CallClient callClient = CreateInstrumentedCallingServerClient(); - Console.WriteLine("Performing CreateCall operation"); + CallingServerClient callingServerClient = CreateInstrumentedCallingServerClient(); + Console.WriteLine("Performing CreateCallConnection operation"); #region Snippet:Azure_Communication_Call_Tests_CreateCall - CreateCallResponse createCallResponse = callClient.CreateCall( + var callConnection = callingServerClient.CreateCallConnection( //@@ source: new CommunicationUserIdentifier(""), // Your Azure Communication Resource Guid Id used to make a Call //@@ targets: new List() { new PhoneNumberIdentifier("") }, // E.164 formatted recipient phone number //@@ options: createCallOption // The options for creating a call. @@ -78,7 +75,7 @@ public void CreateCall() /*@@*/ targets: targets, /*@@*/ options: createCallOption ); - Console.WriteLine($"Call Leg id: {createCallResponse.CallLegId}"); + Console.WriteLine($"Call connection id: {callConnection.Value.CallConnectionId}"); #endregion Snippet:Azure_Communication_Call_Tests_CreateCall } } diff --git a/sdk/communication/Azure.Communication.Chat/CHANGELOG.md b/sdk/communication/Azure.Communication.Chat/CHANGELOG.md index 66261b78d7ea..c32f01d3b5cd 100644 --- a/sdk/communication/Azure.Communication.Chat/CHANGELOG.md +++ b/sdk/communication/Azure.Communication.Chat/CHANGELOG.md @@ -72,6 +72,6 @@ This is the first release of Azure Communication Services for chat. For more inf This is a Public Preview version, so breaking changes are possible in subsequent releases as we improve the product. To provide feedback, please submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). -[read_me]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.Chat/README.md +[read_me]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/communication/Azure.Communication.Chat/README.md [documentation]: https://docs.microsoft.com/azure/communication-services/quickstarts/chat/get-started?pivots=programming-language-csharp diff --git a/sdk/communication/Azure.Communication.Chat/README.md b/sdk/communication/Azure.Communication.Chat/README.md index 54992400c734..daad4c506a5e 100644 --- a/sdk/communication/Azure.Communication.Chat/README.md +++ b/sdk/communication/Azure.Communication.Chat/README.md @@ -138,12 +138,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -382,6 +382,6 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m [communication_resource_create_power_shell]: https://docs.microsoft.com/powershell/module/az.communication/new-azcommunicationservice [communication_resource_create_net]: https://docs.microsoft.com/azure/communication-services/quickstarts/create-communication-resource?tabs=windows&pivots=platform-net [nextsteps]:https://docs.microsoft.com/azure/communication-services/quickstarts/chat/get-started?pivots=programming-language-csharp -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/communication/Azure.Communication.Chat/src +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/communication/Azure.Communication.Chat/src [product_docs]: https://docs.microsoft.com/azure/communication-services/overview [package]: https://www.nuget.org/packages/Azure.Communication.Chat diff --git a/sdk/communication/Azure.Communication.Common/CHANGELOG.md b/sdk/communication/Azure.Communication.Common/CHANGELOG.md index c493bd2faf7c..35e83e951c50 100644 --- a/sdk/communication/Azure.Communication.Common/CHANGELOG.md +++ b/sdk/communication/Azure.Communication.Common/CHANGELOG.md @@ -42,5 +42,5 @@ This package contains common code for Azure Communication Service libraries. For This is a Public Preview version, so breaking changes are possible in subsequent releases as we improve the product. To provide feedback, please submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). -[read_me]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.Common/README.md +[read_me]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/communication/Azure.Communication.Common/README.md diff --git a/sdk/communication/Azure.Communication.Common/README.md b/sdk/communication/Azure.Communication.Common/README.md index 68a43fc902a1..ec6213847db8 100644 --- a/sdk/communication/Azure.Communication.Common/README.md +++ b/sdk/communication/Azure.Communication.Common/README.md @@ -41,12 +41,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -111,7 +111,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ [coc_contact]: mailto:opencode@microsoft.com [azure_sub]: https://azure.microsoft.com/free/ -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/communication/Azure.Communication.Common/src +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/communication/Azure.Communication.Common/src [package]: https://www.nuget.org/packages/Azure.Communication.Common/ [product_docs]: https://docs.microsoft.com/azure/communication-services/overview [nuget]: https://www.nuget.org/ diff --git a/sdk/communication/Azure.Communication.Identity/CHANGELOG.md b/sdk/communication/Azure.Communication.Identity/CHANGELOG.md index b9d5d9039eaa..a0aae47a7ee4 100644 --- a/sdk/communication/Azure.Communication.Identity/CHANGELOG.md +++ b/sdk/communication/Azure.Communication.Identity/CHANGELOG.md @@ -29,5 +29,5 @@ Updated `Azure.Communication.Identity` version. - CommunicationIdentityClient.IssueToken returns an instance of `Azure.Core.AccessToken` instead of `CommunicationUserToken`. -[read_me]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.Identity/README.md +[read_me]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/communication/Azure.Communication.Identity/README.md [documentation]: https://docs.microsoft.com/azure/communication-services/quickstarts/access-tokens?pivots=programming-language-csharp diff --git a/sdk/communication/Azure.Communication.Identity/README.md b/sdk/communication/Azure.Communication.Identity/README.md index ff52cbef21b2..7a3384bbe395 100644 --- a/sdk/communication/Azure.Communication.Identity/README.md +++ b/sdk/communication/Azure.Communication.Identity/README.md @@ -63,12 +63,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -156,8 +156,8 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m [azure_sub]: https://azure.microsoft.com/free/ [azure_portal]: https://portal.azure.com -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/communication/Azure.Communication.Identity/src -[source_samples]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.Identity/samples +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/communication/Azure.Communication.Identity/src +[source_samples]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/communication/Azure.Communication.Identity/samples [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/communication/Azure.Communication.Identity/samples/README.md b/sdk/communication/Azure.Communication.Identity/samples/README.md index 25f8aa7f5153..884c5f093458 100644 --- a/sdk/communication/Azure.Communication.Identity/samples/README.md +++ b/sdk/communication/Azure.Communication.Identity/samples/README.md @@ -22,5 +22,5 @@ This client library allows to do following operations: - Generate user tokens [synchronously][sample_identity] or [asynchronously][sample_identity_async] -[sample_identity]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/communication/Azure.Communication.Identity/samples/Sample1_CommunicationIdentityClient.md -[sample_identity_async]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/communication/Azure.Communication.Identity/samples/Sample1_CommunicationIdentityClientAsync.md +[sample_identity]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/communication/Azure.Communication.Identity/samples/Sample1_CommunicationIdentityClient.md +[sample_identity_async]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/communication/Azure.Communication.Identity/samples/Sample1_CommunicationIdentityClientAsync.md diff --git a/sdk/communication/Azure.Communication.Identity/samples/Sample1_CommunicationIdentityClient.md b/sdk/communication/Azure.Communication.Identity/samples/Sample1_CommunicationIdentityClient.md index 607f2cc1a1f5..8953e5bfeb7e 100644 --- a/sdk/communication/Azure.Communication.Identity/samples/Sample1_CommunicationIdentityClient.md +++ b/sdk/communication/Azure.Communication.Identity/samples/Sample1_CommunicationIdentityClient.md @@ -70,7 +70,7 @@ To see the full example source files, see: diff --git a/sdk/communication/Azure.Communication.Identity/samples/Sample1_CommunicationIdentityClientAsync.md b/sdk/communication/Azure.Communication.Identity/samples/Sample1_CommunicationIdentityClientAsync.md index 0901e673dbde..508788f45898 100644 --- a/sdk/communication/Azure.Communication.Identity/samples/Sample1_CommunicationIdentityClientAsync.md +++ b/sdk/communication/Azure.Communication.Identity/samples/Sample1_CommunicationIdentityClientAsync.md @@ -72,6 +72,6 @@ To see the full example source files, see: diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/CHANGELOG.md b/sdk/communication/Azure.Communication.NetworkTraversal/CHANGELOG.md index 78082e336712..0cc84ea08a04 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/CHANGELOG.md +++ b/sdk/communication/Azure.Communication.NetworkTraversal/CHANGELOG.md @@ -10,4 +10,4 @@ This is the first release of Azure Communication Services for Network Traversal. This is a Public Preview version, so breaking changes are possible in subsequent releases as we improve the product. To provide feedback, please submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). -[read_me]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.NetworkTraversal/README.md +[read_me]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/communication/Azure.Communication.NetworkTraversal/README.md diff --git a/sdk/communication/Azure.Communication.NetworkTraversal/README.md b/sdk/communication/Azure.Communication.NetworkTraversal/README.md index a597661c8893..0aa9c76aa18d 100644 --- a/sdk/communication/Azure.Communication.NetworkTraversal/README.md +++ b/sdk/communication/Azure.Communication.NetworkTraversal/README.md @@ -54,12 +54,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -101,8 +101,8 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m [azure_sub]: https://azure.microsoft.com/free/ [azure_portal]: https://portal.azure.com -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/communication/Azure.Communication.NetworkTraversal/src - +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/communication/Azure.Communication.NetworkTraversal/src + [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/CHANGELOG.md b/sdk/communication/Azure.Communication.PhoneNumbers/CHANGELOG.md index da452d145aae..6f7f4f1c62a9 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/CHANGELOG.md +++ b/sdk/communication/Azure.Communication.PhoneNumbers/CHANGELOG.md @@ -38,5 +38,5 @@ Updated `Azure.Communication.PhoneNumbers` version. - PhoneNumberAdministrationClient has been replaced with PhoneNumbersClient, which has the same functionality but different APIs. To learn more about how PhoneNumbersClient works, refer to the [README.md][read_me] -[read_me]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.PhoneNumbers/README.md +[read_me]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/communication/Azure.Communication.PhoneNumbers/README.md [documentation]: https://docs.microsoft.com/azure/communication-services/quickstarts/access-tokens?pivots=programming-language-csharp diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/README.md b/sdk/communication/Azure.Communication.PhoneNumbers/README.md index b5890a633f44..a356feb87af3 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/README.md +++ b/sdk/communication/Azure.Communication.PhoneNumbers/README.md @@ -68,12 +68,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -151,8 +151,8 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m [azure_sub]: https://azure.microsoft.com/free/ [azure_portal]: https://portal.azure.com -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/communication/Azure.Communication.PhoneNumbers/src -[source_samples]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.PhoneNumbers/samples +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/communication/Azure.Communication.PhoneNumbers/src +[source_samples]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/communication/Azure.Communication.PhoneNumbers/samples [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/samples/README.md b/sdk/communication/Azure.Communication.PhoneNumbers/samples/README.md index f911ebdc8a88..4422334f6284 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/samples/README.md +++ b/sdk/communication/Azure.Communication.PhoneNumbers/samples/README.md @@ -21,5 +21,5 @@ This client library allows to do following operations: - Manage phone numbers [synchronously][sample_phonenumbers] or [asynchronously][sample_phonenumbers_async] -[sample_phonenumbers]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.PhoneNumbers/samples/Sample_PhoneNumbersClient.md -[sample_phonenumbers_async]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.PhoneNumbers/samples/Sample_PhoneNumbersClientAsync.md +[sample_phonenumbers]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/communication/Azure.Communication.PhoneNumbers/samples/Sample_PhoneNumbersClient.md +[sample_phonenumbers_async]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/communication/Azure.Communication.PhoneNumbers/samples/Sample_PhoneNumbersClientAsync.md diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/samples/Sample_PhoneNumbersClient.md b/sdk/communication/Azure.Communication.PhoneNumbers/samples/Sample_PhoneNumbersClient.md index 190ec497f67a..52486d8d4153 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/samples/Sample_PhoneNumbersClient.md +++ b/sdk/communication/Azure.Communication.PhoneNumbers/samples/Sample_PhoneNumbersClient.md @@ -1,7 +1,7 @@ # Searching, reserving, purchasing, releasing phone numbers This sample demonstrates how to search, reserve, purchase and release phone numbers in Azure Communication Services. -To get started, you'll need a URI to an Azure Communication Services. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.PhoneNumbers/README.md) for links and instructions. +To get started, you'll need a URI to an Azure Communication Services. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/communication/Azure.Communication.PhoneNumbers/README.md) for links and instructions. ## Creating a PhoneNumbersClient diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/samples/Sample_PhoneNumbersClientAsync.md b/sdk/communication/Azure.Communication.PhoneNumbers/samples/Sample_PhoneNumbersClientAsync.md index 55871b01535e..7111457d41a8 100644 --- a/sdk/communication/Azure.Communication.PhoneNumbers/samples/Sample_PhoneNumbersClientAsync.md +++ b/sdk/communication/Azure.Communication.PhoneNumbers/samples/Sample_PhoneNumbersClientAsync.md @@ -1,7 +1,7 @@ # Searching, reserving, purchasing, releasing phone numbers (Async) This sample demonstrates how to search, reserve, purchase and release phone numbers in Azure Communication Services. -To get started, you'll need a URI to an Azure Communication Services. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.PhoneNumbers/README.md) for links and instructions. +To get started, you'll need a URI to an Azure Communication Services. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/communication/Azure.Communication.PhoneNumbers/README.md) for links and instructions. ## Creating a PhoneNumbersClient diff --git a/sdk/communication/Azure.Communication.Sms/CHANGELOG.md b/sdk/communication/Azure.Communication.Sms/CHANGELOG.md index ef5f85515a28..30e579e8b3ec 100644 --- a/sdk/communication/Azure.Communication.Sms/CHANGELOG.md +++ b/sdk/communication/Azure.Communication.Sms/CHANGELOG.md @@ -37,7 +37,7 @@ This is the first release of Azure Communication Services for Telephony and SMS. This is a Public Preview version, so breaking changes are possible in subsequent releases as we improve the product. To provide feedback, please submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). -[read_me]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.Sms/README.md +[read_me]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/communication/Azure.Communication.Sms/README.md [documentation]:https://docs.microsoft.com/azure/communication-services/quickstarts/telephony-sms/send?pivots=programming-language-csharp diff --git a/sdk/communication/Azure.Communication.Sms/README.md b/sdk/communication/Azure.Communication.Sms/README.md index 36d327a87862..baf87baef812 100644 --- a/sdk/communication/Azure.Communication.Sms/README.md +++ b/sdk/communication/Azure.Communication.Sms/README.md @@ -131,4 +131,4 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m [product_docs]: https://docs.microsoft.com/azure/communication-services/overview [nextsteps]:https://docs.microsoft.com/azure/communication-services/quickstarts/telephony-sms/send?pivots=programming-language-csharp [nuget]: https://www.nuget.org/ -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/communication/Azure.Communication.Sms/src +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/communication/Azure.Communication.Sms/src diff --git a/sdk/communication/Azure.Communication.Sms/samples/README.md b/sdk/communication/Azure.Communication.Sms/samples/README.md index ce4ff0c5d141..2759af3036d3 100644 --- a/sdk/communication/Azure.Communication.Sms/samples/README.md +++ b/sdk/communication/Azure.Communication.Sms/samples/README.md @@ -22,5 +22,5 @@ This client library allows to do following operations: - Send SMS Messages [synchronously][sample_sms] or [asynchronously][sample_sms_async] -[sample_sms]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/communication/Azure.Communication.Sms/samples/Sample1_SendSms.md -[sample_sms_async]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/communication/Azure.Communication.Sms/samples/Sample1_SendSmsAsync.md +[sample_sms]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/communication/Azure.Communication.Sms/samples/Sample1_SendSms.md +[sample_sms_async]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/communication/Azure.Communication.Sms/samples/Sample1_SendSmsAsync.md diff --git a/sdk/communication/Azure.Communication.Sms/samples/Sample1_SendSms.md b/sdk/communication/Azure.Communication.Sms/samples/Sample1_SendSms.md index 6201d89315cd..a9a990bb0550 100644 --- a/sdk/communication/Azure.Communication.Sms/samples/Sample1_SendSms.md +++ b/sdk/communication/Azure.Communication.Sms/samples/Sample1_SendSms.md @@ -45,7 +45,7 @@ foreach (SmsSendResult result in response.Value) Console.WriteLine($"Send Result Successful: {result.Successful}"); } ``` -* [Send SMS to single recipient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.Sms/tests/samples/Sample1_SmsClient.cs) -* [Send SMS to multiple recipients with options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.Sms/tests/samples/Sample1_SmsClient.cs) +* [Send SMS to single recipient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/communication/Azure.Communication.Sms/tests/samples/Sample1_SmsClient.cs) +* [Send SMS to multiple recipients with options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/communication/Azure.Communication.Sms/tests/samples/Sample1_SmsClient.cs) -[README]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.Sms/README.md#getting-started +[README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/communication/Azure.Communication.Sms/README.md#getting-started diff --git a/sdk/communication/Azure.Communication.Sms/samples/Sample1_SendSmsAsync.md b/sdk/communication/Azure.Communication.Sms/samples/Sample1_SendSmsAsync.md index be67223586c0..f5b4321af700 100644 --- a/sdk/communication/Azure.Communication.Sms/samples/Sample1_SendSmsAsync.md +++ b/sdk/communication/Azure.Communication.Sms/samples/Sample1_SendSmsAsync.md @@ -48,7 +48,7 @@ foreach (SmsSendResult result in response.Value) To see the full example source files, see: -* [Send SMS to single recipient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.Sms/tests/samples/Sample1_SmsClient.cs) -* [Send SMS to multiple recipients with options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.Sms/tests/samples/Sample1_SmsClient.cs) +* [Send SMS to single recipient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/communication/Azure.Communication.Sms/tests/samples/Sample1_SmsClient.cs) +* [Send SMS to multiple recipients with options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/communication/Azure.Communication.Sms/tests/samples/Sample1_SmsClient.cs) -[README]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.Sms/README.md#getting-started +[README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/communication/Azure.Communication.Sms/README.md#getting-started diff --git a/sdk/communication/Azure.ResourceManager.Communication/CHANGELOG.md b/sdk/communication/Azure.ResourceManager.Communication/CHANGELOG.md index 8577b239e70c..8028bcb661d8 100644 --- a/sdk/communication/Azure.ResourceManager.Communication/CHANGELOG.md +++ b/sdk/communication/Azure.ResourceManager.Communication/CHANGELOG.md @@ -35,5 +35,5 @@ For more information, please see the README. This is a Public Preview version, so breaking changes are possible in subsequent releases as we improve the product. To provide feedback, please submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). -[read_me]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.ResourceManager.Communication/README.md +[read_me]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/communication/Azure.ResourceManager.Communication/README.md diff --git a/sdk/communication/Azure.ResourceManager.Communication/README.md b/sdk/communication/Azure.ResourceManager.Communication/README.md index da96e85c9ec9..e9e155154f86 100644 --- a/sdk/communication/Azure.ResourceManager.Communication/README.md +++ b/sdk/communication/Azure.ResourceManager.Communication/README.md @@ -52,7 +52,7 @@ You will need to have a resource group to put your Azure Communication Services group, create one by using the [Azure portal](https://docs.microsoft.com/azure/azure-resource-manager/management/manage-resource-groups-portal) or the [ARM Management -SDK](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md). +SDK](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md). ### Authenticate the client diff --git a/sdk/communication/CONTRIBUTING.md b/sdk/communication/CONTRIBUTING.md index 3b9a2994d94a..f2a86f839e45 100644 --- a/sdk/communication/CONTRIBUTING.md +++ b/sdk/communication/CONTRIBUTING.md @@ -1,6 +1,6 @@ # Contributing Guide -This a contributing guide made specifically for the Azure Communication Services SDK. The Azure SDK repo also has a contributing guide that might help you in some other general processes this guide assumes you have done. If you haven't checked that one out yet, you can find it [here](https://github.com/Azure/azure-sdk-for-net/blob/master/CONTRIBUTING.md) +This a contributing guide made specifically for the Azure Communication Services SDK. The Azure SDK repo also has a contributing guide that might help you in some other general processes this guide assumes you have done. If you haven't checked that one out yet, you can find it [here](https://github.com/Azure/azure-sdk-for-net/blob/main/CONTRIBUTING.md) The Azure Communication Services SDK for .Net currently consists of six different packages. While each package has its own set of environment variables to make their tests run successfully, all of them follow a similar structure that allows a smooth onboarding process. @@ -14,7 +14,7 @@ Once the package has been built, let's jump on how to run the tests to see that ## Testing -Make sure to check out the general contributing guide the Azure SDK repo has for a more in-depth look at testing and setting up your dev environment. You can check out the contributing file [here](https://github.com/Azure/azure-sdk-for-net/blob/master/CONTRIBUTING.md) +Make sure to check out the general contributing guide the Azure SDK repo has for a more in-depth look at testing and setting up your dev environment. You can check out the contributing file [here](https://github.com/Azure/azure-sdk-for-net/blob/main/CONTRIBUTING.md) When you go inside the tests folder of the package you are working with, you will see a folder called `SessionRecords\`. This folder contains, as its name suggests, recordings of successful calls to the API that allow us to run the tests in PLAYBACK mode and remove the necessity of hitting the actual resources every time we may want to test. diff --git a/sdk/communication/ci.yml b/sdk/communication/ci.yml index c9434a21a1de..fd80f4dc7fa3 100644 --- a/sdk/communication/ci.yml +++ b/sdk/communication/ci.yml @@ -2,7 +2,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -13,7 +12,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/compute/Azure.ResourceManager.Compute/README.md b/sdk/compute/Azure.ResourceManager.Compute/README.md index b865ea2b1212..ebdef28eba52 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/README.md +++ b/sdk/compute/Azure.ResourceManager.Compute/README.md @@ -18,7 +18,7 @@ Install-Package Azure.ResourceManager.Compute -Version 1.0.0-preview.2 ### Authenticate the Client -To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) ## Key concepts @@ -28,9 +28,9 @@ Key concepts of the Azure .NET SDK can be found [here](https://azure.github.io/a Documentation is available to help you learn how to use this package -- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) - [API References](https://docs.microsoft.com/dotnet/api/?view=azure-dotnet) -- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md) +- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md) ## Examples diff --git a/sdk/compute/ci.yml b/sdk/compute/ci.yml index 7144adcb2023..88192ffb2b4c 100644 --- a/sdk/compute/ci.yml +++ b/sdk/compute/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/confidentialledger/Azure.Security.ConfidentialLedger/README.md b/sdk/confidentialledger/Azure.Security.ConfidentialLedger/README.md index aee8861f6d16..5502c0efca99 100644 --- a/sdk/confidentialledger/Azure.Security.ConfidentialLedger/README.md +++ b/sdk/confidentialledger/Azure.Security.ConfidentialLedger/README.md @@ -404,12 +404,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -452,16 +452,16 @@ For more information see the [Code of Conduct FAQ][coc_faq] or contact [style-guide-msft]: https://docs.microsoft.com/style-guide/capitalization [style-guide-cloud]: https://aka.ms/azsdk/cloud-style-guide -[client_src]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/confidentialledger/Azure.Security.ConfidentialLedger +[client_src]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/confidentialledger/Azure.Security.ConfidentialLedger [client_nuget_package]: https://www.nuget.org/packages?q=Azure.Security.ConfidentialLedger [azure_cli]: https://docs.microsoft.com/cli/azure [azure_cloud_shell]: https://shell.azure.com/bash [azure_confidential_computing]: https://azure.microsoft.com/solutions/confidential-compute [azure_sub]: https://azure.microsoft.com/free [ccf]: https://github.com/Microsoft/CCF -[azure_identity]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity -[default_cred_ref]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md#defaultazurecredential -[logging]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md +[azure_identity]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity +[default_cred_ref]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md#defaultazurecredential +[logging]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq [cla]: https://cla.microsoft.com diff --git a/sdk/confidentialledger/Azure.Security.ConfidentialLedger/api/Azure.Security.ConfidentialLedger.netstandard2.0.cs b/sdk/confidentialledger/Azure.Security.ConfidentialLedger/api/Azure.Security.ConfidentialLedger.netstandard2.0.cs index c60ad3e41986..3fd690026f24 100644 --- a/sdk/confidentialledger/Azure.Security.ConfidentialLedger/api/Azure.Security.ConfidentialLedger.netstandard2.0.cs +++ b/sdk/confidentialledger/Azure.Security.ConfidentialLedger/api/Azure.Security.ConfidentialLedger.netstandard2.0.cs @@ -5,30 +5,30 @@ public partial class ConfidentialLedgerClient protected ConfidentialLedgerClient() { } public ConfidentialLedgerClient(System.Uri ledgerUri, Azure.Core.TokenCredential credential, Azure.Security.ConfidentialLedger.ConfidentialLedgerClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateOrUpdateUser(string userId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateUserAsync(string userId, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response DeleteUser(string userId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteUserAsync(string userId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetConsortiumMembers(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetConsortiumMembersAsync(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetConstitution(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetConstitutionAsync(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetCurrentLedgerEntry(string subLedgerId = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCurrentLedgerEntryAsync(string subLedgerId = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetEnclaveQuotes(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetEnclaveQuotesAsync(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetLedgerEntries(string subLedgerId = null, string fromTransactionId = null, string toTransactionId = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetLedgerEntriesAsync(string subLedgerId = null, string fromTransactionId = null, string toTransactionId = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetLedgerEntry(string transactionId, string subLedgerId = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetLedgerEntryAsync(string transactionId, string subLedgerId = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetReceipt(string transactionId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetReceiptAsync(string transactionId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetTransactionStatus(string transactionId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetTransactionStatusAsync(string transactionId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetUser(string userId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetUserAsync(string userId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response PostLedgerEntry(Azure.Core.RequestContent requestBody, string subLedgerId = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task PostLedgerEntryAsync(Azure.Core.RequestContent requestBody, string subLedgerId = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateOrUpdateUser(string userId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateUserAsync(string userId, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response DeleteUser(string userId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteUserAsync(string userId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetConsortiumMembers(Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetConsortiumMembersAsync(Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetConstitution(Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetConstitutionAsync(Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetCurrentLedgerEntry(string subLedgerId = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetCurrentLedgerEntryAsync(string subLedgerId = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetEnclaveQuotes(Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetEnclaveQuotesAsync(Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetLedgerEntries(string subLedgerId = null, string fromTransactionId = null, string toTransactionId = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetLedgerEntriesAsync(string subLedgerId = null, string fromTransactionId = null, string toTransactionId = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetLedgerEntry(string transactionId, string subLedgerId = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetLedgerEntryAsync(string transactionId, string subLedgerId = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetReceipt(string transactionId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetReceiptAsync(string transactionId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetTransactionStatus(string transactionId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetTransactionStatusAsync(string transactionId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetUser(string userId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetUserAsync(string userId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response PostLedgerEntry(Azure.Core.RequestContent content, string subLedgerId = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task PostLedgerEntryAsync(Azure.Core.RequestContent content, string subLedgerId = null, Azure.RequestOptions options = null) { throw null; } } public partial class ConfidentialLedgerClientOptions : Azure.Core.ClientOptions { @@ -47,7 +47,7 @@ public partial class ConfidentialLedgerIdentityServiceClient protected ConfidentialLedgerIdentityServiceClient() { } public ConfidentialLedgerIdentityServiceClient(System.Uri identityServiceUri, Azure.Security.ConfidentialLedger.ConfidentialLedgerClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response GetLedgerIdentity(string ledgerId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetLedgerIdentityAsync(string ledgerId, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response GetLedgerIdentity(string ledgerId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetLedgerIdentityAsync(string ledgerId, Azure.RequestOptions options = null) { throw null; } } } diff --git a/sdk/confidentialledger/Azure.Security.ConfidentialLedger/src/Generated/ConfidentialLedgerClient.cs b/sdk/confidentialledger/Azure.Security.ConfidentialLedger/src/Generated/ConfidentialLedgerClient.cs index 15770510a02f..1bf10e3bf54d 100644 --- a/sdk/confidentialledger/Azure.Security.ConfidentialLedger/src/Generated/ConfidentialLedgerClient.cs +++ b/sdk/confidentialledger/Azure.Security.ConfidentialLedger/src/Generated/ConfidentialLedgerClient.cs @@ -54,23 +54,23 @@ public ConfidentialLedgerClient(Uri ledgerUri, TokenCredential credential, Confi } /// The constitution is a script that assesses and applies proposals from consortium members. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetConstitutionAsync(RequestOptions requestOptions = null) + public virtual async Task GetConstitutionAsync(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetConstitutionRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetConstitutionRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerClient.GetConstitution"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -93,23 +93,23 @@ public virtual async Task GetConstitutionAsync(RequestOptions requestO } /// The constitution is a script that assesses and applies proposals from consortium members. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetConstitution(RequestOptions requestOptions = null) + public virtual Response GetConstitution(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetConstitutionRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetConstitutionRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerClient.GetConstitution"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -132,8 +132,8 @@ public virtual Response GetConstitution(RequestOptions requestOptions = null) } /// Create Request for and operations. - /// The request options. - private HttpMessage CreateGetConstitutionRequest(RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetConstitutionRequest(RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -148,23 +148,23 @@ private HttpMessage CreateGetConstitutionRequest(RequestOptions requestOptions = } /// Consortium members can manage the Confidential Ledger. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetConsortiumMembersAsync(RequestOptions requestOptions = null) + public virtual async Task GetConsortiumMembersAsync(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetConsortiumMembersRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetConsortiumMembersRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerClient.GetConsortiumMembers"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -187,23 +187,23 @@ public virtual async Task GetConsortiumMembersAsync(RequestOptions req } /// Consortium members can manage the Confidential Ledger. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetConsortiumMembers(RequestOptions requestOptions = null) + public virtual Response GetConsortiumMembers(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetConsortiumMembersRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetConsortiumMembersRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerClient.GetConsortiumMembers"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -226,8 +226,8 @@ public virtual Response GetConsortiumMembers(RequestOptions requestOptions = nul } /// Create Request for and operations. - /// The request options. - private HttpMessage CreateGetConsortiumMembersRequest(RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetConsortiumMembersRequest(RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -242,23 +242,23 @@ private HttpMessage CreateGetConsortiumMembersRequest(RequestOptions requestOpti } /// A quote is an SGX enclave measurement that can be used to verify the validity of a node and its enclave. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetEnclaveQuotesAsync(RequestOptions requestOptions = null) + public virtual async Task GetEnclaveQuotesAsync(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetEnclaveQuotesRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetEnclaveQuotesRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerClient.GetEnclaveQuotes"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -281,23 +281,23 @@ public virtual async Task GetEnclaveQuotesAsync(RequestOptions request } /// A quote is an SGX enclave measurement that can be used to verify the validity of a node and its enclave. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetEnclaveQuotes(RequestOptions requestOptions = null) + public virtual Response GetEnclaveQuotes(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetEnclaveQuotesRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetEnclaveQuotesRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerClient.GetEnclaveQuotes"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -320,8 +320,8 @@ public virtual Response GetEnclaveQuotes(RequestOptions requestOptions = null) } /// Create Request for and operations. - /// The request options. - private HttpMessage CreateGetEnclaveQuotesRequest(RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetEnclaveQuotesRequest(RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -339,23 +339,23 @@ private HttpMessage CreateGetEnclaveQuotesRequest(RequestOptions requestOptions /// The sub-ledger id. /// Specify the first transaction ID in a range. /// Specify the last transaction ID in a range. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetLedgerEntriesAsync(string subLedgerId = null, string fromTransactionId = null, string toTransactionId = null, RequestOptions requestOptions = null) + public virtual async Task GetLedgerEntriesAsync(string subLedgerId = null, string fromTransactionId = null, string toTransactionId = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetLedgerEntriesRequest(subLedgerId, fromTransactionId, toTransactionId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetLedgerEntriesRequest(subLedgerId, fromTransactionId, toTransactionId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerClient.GetLedgerEntries"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -381,23 +381,23 @@ public virtual async Task GetLedgerEntriesAsync(string subLedgerId = n /// The sub-ledger id. /// Specify the first transaction ID in a range. /// Specify the last transaction ID in a range. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetLedgerEntries(string subLedgerId = null, string fromTransactionId = null, string toTransactionId = null, RequestOptions requestOptions = null) + public virtual Response GetLedgerEntries(string subLedgerId = null, string fromTransactionId = null, string toTransactionId = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetLedgerEntriesRequest(subLedgerId, fromTransactionId, toTransactionId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetLedgerEntriesRequest(subLedgerId, fromTransactionId, toTransactionId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerClient.GetLedgerEntries"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -423,8 +423,8 @@ public virtual Response GetLedgerEntries(string subLedgerId = null, string fromT /// The sub-ledger id. /// Specify the first transaction ID in a range. /// Specify the last transaction ID in a range. - /// The request options. - private HttpMessage CreateGetLedgerEntriesRequest(string subLedgerId = null, string fromTransactionId = null, string toTransactionId = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetLedgerEntriesRequest(string subLedgerId = null, string fromTransactionId = null, string toTransactionId = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -454,12 +454,12 @@ private HttpMessage CreateGetLedgerEntriesRequest(string subLedgerId = null, str /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// contents /// string @@ -480,25 +480,25 @@ private HttpMessage CreateGetLedgerEntriesRequest(string subLedgerId = null, str /// /// /// - /// The request body. + /// The content to send as the body of the request. /// The sub-ledger id. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task PostLedgerEntryAsync(RequestContent requestBody, string subLedgerId = null, RequestOptions requestOptions = null) + public virtual async Task PostLedgerEntryAsync(RequestContent content, string subLedgerId = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreatePostLedgerEntryRequest(requestBody, subLedgerId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreatePostLedgerEntryRequest(content, subLedgerId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerClient.PostLedgerEntry"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -524,12 +524,12 @@ public virtual async Task PostLedgerEntryAsync(RequestContent requestB /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// contents /// string @@ -550,25 +550,25 @@ public virtual async Task PostLedgerEntryAsync(RequestContent requestB /// /// /// - /// The request body. + /// The content to send as the body of the request. /// The sub-ledger id. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response PostLedgerEntry(RequestContent requestBody, string subLedgerId = null, RequestOptions requestOptions = null) + public virtual Response PostLedgerEntry(RequestContent content, string subLedgerId = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreatePostLedgerEntryRequest(requestBody, subLedgerId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreatePostLedgerEntryRequest(content, subLedgerId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerClient.PostLedgerEntry"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -591,10 +591,10 @@ public virtual Response PostLedgerEntry(RequestContent requestBody, string subLe } /// Create Request for and operations. - /// The request body. + /// The content to send as the body of the request. /// The sub-ledger id. - /// The request options. - private HttpMessage CreatePostLedgerEntryRequest(RequestContent requestBody, string subLedgerId = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreatePostLedgerEntryRequest(RequestContent content, string subLedgerId = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -610,30 +610,30 @@ private HttpMessage CreatePostLedgerEntryRequest(RequestContent requestBody, str request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } /// To return older ledger entries, the relevant sections of the ledger must be read from disk and validated. To prevent blocking within the enclave, the response will indicate whether the entry is ready and part of the response, or if the loading is still ongoing. /// Identifies a write transaction. /// The sub-ledger id. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetLedgerEntryAsync(string transactionId, string subLedgerId = null, RequestOptions requestOptions = null) + public virtual async Task GetLedgerEntryAsync(string transactionId, string subLedgerId = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetLedgerEntryRequest(transactionId, subLedgerId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetLedgerEntryRequest(transactionId, subLedgerId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerClient.GetLedgerEntry"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -658,23 +658,23 @@ public virtual async Task GetLedgerEntryAsync(string transactionId, st /// To return older ledger entries, the relevant sections of the ledger must be read from disk and validated. To prevent blocking within the enclave, the response will indicate whether the entry is ready and part of the response, or if the loading is still ongoing. /// Identifies a write transaction. /// The sub-ledger id. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetLedgerEntry(string transactionId, string subLedgerId = null, RequestOptions requestOptions = null) + public virtual Response GetLedgerEntry(string transactionId, string subLedgerId = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetLedgerEntryRequest(transactionId, subLedgerId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetLedgerEntryRequest(transactionId, subLedgerId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerClient.GetLedgerEntry"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -699,8 +699,8 @@ public virtual Response GetLedgerEntry(string transactionId, string subLedgerId /// Create Request for and operations. /// Identifies a write transaction. /// The sub-ledger id. - /// The request options. - private HttpMessage CreateGetLedgerEntryRequest(string transactionId, string subLedgerId = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetLedgerEntryRequest(string transactionId, string subLedgerId = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -721,23 +721,23 @@ private HttpMessage CreateGetLedgerEntryRequest(string transactionId, string sub /// Gets a receipt certifying ledger contents at a particular transaction id. /// Identifies a write transaction. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetReceiptAsync(string transactionId, RequestOptions requestOptions = null) + public virtual async Task GetReceiptAsync(string transactionId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetReceiptRequest(transactionId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetReceiptRequest(transactionId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerClient.GetReceipt"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -761,23 +761,23 @@ public virtual async Task GetReceiptAsync(string transactionId, Reques /// Gets a receipt certifying ledger contents at a particular transaction id. /// Identifies a write transaction. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetReceipt(string transactionId, RequestOptions requestOptions = null) + public virtual Response GetReceipt(string transactionId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetReceiptRequest(transactionId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetReceiptRequest(transactionId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerClient.GetReceipt"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -801,8 +801,8 @@ public virtual Response GetReceipt(string transactionId, RequestOptions requestO /// Create Request for and operations. /// Identifies a write transaction. - /// The request options. - private HttpMessage CreateGetReceiptRequest(string transactionId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetReceiptRequest(string transactionId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -820,23 +820,23 @@ private HttpMessage CreateGetReceiptRequest(string transactionId, RequestOptions /// Gets the status of an entry identified by a transaction id. /// Identifies a write transaction. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetTransactionStatusAsync(string transactionId, RequestOptions requestOptions = null) + public virtual async Task GetTransactionStatusAsync(string transactionId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetTransactionStatusRequest(transactionId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetTransactionStatusRequest(transactionId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerClient.GetTransactionStatus"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -860,23 +860,23 @@ public virtual async Task GetTransactionStatusAsync(string transaction /// Gets the status of an entry identified by a transaction id. /// Identifies a write transaction. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetTransactionStatus(string transactionId, RequestOptions requestOptions = null) + public virtual Response GetTransactionStatus(string transactionId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetTransactionStatusRequest(transactionId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetTransactionStatusRequest(transactionId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerClient.GetTransactionStatus"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -900,8 +900,8 @@ public virtual Response GetTransactionStatus(string transactionId, RequestOption /// Create Request for and operations. /// Identifies a write transaction. - /// The request options. - private HttpMessage CreateGetTransactionStatusRequest(string transactionId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetTransactionStatusRequest(string transactionId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -919,23 +919,23 @@ private HttpMessage CreateGetTransactionStatusRequest(string transactionId, Requ /// A sub-ledger id may optionally be specified. /// The sub-ledger id. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetCurrentLedgerEntryAsync(string subLedgerId = null, RequestOptions requestOptions = null) + public virtual async Task GetCurrentLedgerEntryAsync(string subLedgerId = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetCurrentLedgerEntryRequest(subLedgerId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetCurrentLedgerEntryRequest(subLedgerId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerClient.GetCurrentLedgerEntry"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -959,23 +959,23 @@ public virtual async Task GetCurrentLedgerEntryAsync(string subLedgerI /// A sub-ledger id may optionally be specified. /// The sub-ledger id. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetCurrentLedgerEntry(string subLedgerId = null, RequestOptions requestOptions = null) + public virtual Response GetCurrentLedgerEntry(string subLedgerId = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetCurrentLedgerEntryRequest(subLedgerId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetCurrentLedgerEntryRequest(subLedgerId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerClient.GetCurrentLedgerEntry"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -999,8 +999,8 @@ public virtual Response GetCurrentLedgerEntry(string subLedgerId = null, Request /// Create Request for and operations. /// The sub-ledger id. - /// The request options. - private HttpMessage CreateGetCurrentLedgerEntryRequest(string subLedgerId = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetCurrentLedgerEntryRequest(string subLedgerId = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1020,23 +1020,23 @@ private HttpMessage CreateGetCurrentLedgerEntryRequest(string subLedgerId = null /// Deletes a user from the Confidential Ledger. /// The user id, either an AAD object ID or certificate fingerprint. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteUserAsync(string userId, RequestOptions requestOptions = null) + public virtual async Task DeleteUserAsync(string userId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteUserRequest(userId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteUserRequest(userId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerClient.DeleteUser"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1060,23 +1060,23 @@ public virtual async Task DeleteUserAsync(string userId, RequestOption /// Deletes a user from the Confidential Ledger. /// The user id, either an AAD object ID or certificate fingerprint. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response DeleteUser(string userId, RequestOptions requestOptions = null) + public virtual Response DeleteUser(string userId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteUserRequest(userId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteUserRequest(userId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerClient.DeleteUser"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1100,8 +1100,8 @@ public virtual Response DeleteUser(string userId, RequestOptions requestOptions /// Create Request for and operations. /// The user id, either an AAD object ID or certificate fingerprint. - /// The request options. - private HttpMessage CreateDeleteUserRequest(string userId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteUserRequest(string userId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1118,23 +1118,23 @@ private HttpMessage CreateDeleteUserRequest(string userId, RequestOptions reques /// Gets a user. /// The user id, either an AAD object ID or certificate fingerprint. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetUserAsync(string userId, RequestOptions requestOptions = null) + public virtual async Task GetUserAsync(string userId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetUserRequest(userId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetUserRequest(userId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerClient.GetUser"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1158,23 +1158,23 @@ public virtual async Task GetUserAsync(string userId, RequestOptions r /// Gets a user. /// The user id, either an AAD object ID or certificate fingerprint. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetUser(string userId, RequestOptions requestOptions = null) + public virtual Response GetUser(string userId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetUserRequest(userId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetUserRequest(userId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerClient.GetUser"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1198,8 +1198,8 @@ public virtual Response GetUser(string userId, RequestOptions requestOptions = n /// Create Request for and operations. /// The user id, either an AAD object ID or certificate fingerprint. - /// The request options. - private HttpMessage CreateGetUserRequest(string userId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetUserRequest(string userId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1218,12 +1218,12 @@ private HttpMessage CreateGetUserRequest(string userId, RequestOptions requestOp /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// assignedRole /// "Administrator" | "Contributor" | "Reader" @@ -1239,24 +1239,24 @@ private HttpMessage CreateGetUserRequest(string userId, RequestOptions requestOp /// /// /// The user id, either an AAD object ID or certificate fingerprint. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateOrUpdateUserAsync(string userId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateOrUpdateUserAsync(string userId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateUserRequest(userId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateUserRequest(userId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerClient.CreateOrUpdateUser"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1282,12 +1282,12 @@ public virtual async Task CreateOrUpdateUserAsync(string userId, Reque /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// assignedRole /// "Administrator" | "Contributor" | "Reader" @@ -1303,24 +1303,24 @@ public virtual async Task CreateOrUpdateUserAsync(string userId, Reque /// /// /// The user id, either an AAD object ID or certificate fingerprint. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateOrUpdateUser(string userId, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateOrUpdateUser(string userId, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateUserRequest(userId, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateUserRequest(userId, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerClient.CreateOrUpdateUser"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1344,9 +1344,9 @@ public virtual Response CreateOrUpdateUser(string userId, RequestContent request /// Create Request for and operations. /// The user id, either an AAD object ID or certificate fingerprint. - /// The request body. - /// The request options. - private HttpMessage CreateCreateOrUpdateUserRequest(string userId, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateOrUpdateUserRequest(string userId, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1359,7 +1359,7 @@ private HttpMessage CreateCreateOrUpdateUserRequest(string userId, RequestConten request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } } diff --git a/sdk/confidentialledger/Azure.Security.ConfidentialLedger/src/Generated/ConfidentialLedgerIdentityServiceClient.cs b/sdk/confidentialledger/Azure.Security.ConfidentialLedger/src/Generated/ConfidentialLedgerIdentityServiceClient.cs index 0b844cc90e06..3bfee8e50238 100644 --- a/sdk/confidentialledger/Azure.Security.ConfidentialLedger/src/Generated/ConfidentialLedgerIdentityServiceClient.cs +++ b/sdk/confidentialledger/Azure.Security.ConfidentialLedger/src/Generated/ConfidentialLedgerIdentityServiceClient.cs @@ -31,23 +31,23 @@ protected ConfidentialLedgerIdentityServiceClient() /// Gets identity information for a Confidential Ledger instance. /// Id of the Confidential Ledger instance to get information for. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetLedgerIdentityAsync(string ledgerId, RequestOptions requestOptions = null) + public virtual async Task GetLedgerIdentityAsync(string ledgerId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetLedgerIdentityRequest(ledgerId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetLedgerIdentityRequest(ledgerId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerIdentityServiceClient.GetLedgerIdentity"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -71,23 +71,23 @@ public virtual async Task GetLedgerIdentityAsync(string ledgerId, Requ /// Gets identity information for a Confidential Ledger instance. /// Id of the Confidential Ledger instance to get information for. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetLedgerIdentity(string ledgerId, RequestOptions requestOptions = null) + public virtual Response GetLedgerIdentity(string ledgerId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetLedgerIdentityRequest(ledgerId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetLedgerIdentityRequest(ledgerId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("ConfidentialLedgerIdentityServiceClient.GetLedgerIdentity"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -111,8 +111,8 @@ public virtual Response GetLedgerIdentity(string ledgerId, RequestOptions reques /// Create Request for and operations. /// Id of the Confidential Ledger instance to get information for. - /// The request options. - private HttpMessage CreateGetLedgerIdentityRequest(string ledgerId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetLedgerIdentityRequest(string ledgerId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/confidentialledger/ci.yml b/sdk/confidentialledger/ci.yml index 8d877aa9f229..c8ae6f615477 100644 --- a/sdk/confidentialledger/ci.yml +++ b/sdk/confidentialledger/ci.yml @@ -2,7 +2,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -13,7 +12,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/containerinstance/ci.yml b/sdk/containerinstance/ci.yml index 387988b04f32..ff4ae0c73ef6 100644 --- a/sdk/containerinstance/ci.yml +++ b/sdk/containerinstance/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/README.md b/sdk/containerregistry/Azure.Containers.ContainerRegistry/README.md index 6b6e07c11eda..63556b13626b 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/README.md +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/README.md @@ -39,7 +39,7 @@ az acr create --name myregistry --resource-group myresourcegroup --location west For your application to connect to your registry, you'll need to create a `ContainerRegistryClient` that can authenticate with it. The [Azure Identity library][identity] makes it easy to add Azure Active Directory support for authenticating Azure SDK clients with their corresponding Azure services. -When you're developing and debugging your application locally, you can use your own user to authenticate with your registry. One way to accomplish this is to [authenticate your user with the Azure CLI](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity#authenticating-via-the-azure-cli) and run your application from this environment. If your application is using a client that has been constructed to authenticate with `DefaultAzureCredential`, it will correctly authenticate with the registry at the specified endpoint. +When you're developing and debugging your application locally, you can use your own user to authenticate with your registry. One way to accomplish this is to [authenticate your user with the Azure CLI](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity#authenticating-via-the-azure-cli) and run your application from this environment. If your application is using a client that has been constructed to authenticate with `DefaultAzureCredential`, it will correctly authenticate with the registry at the specified endpoint. ```C# // Create a ContainerRegistryClient that will authenticate to your registry through Azure Active Directory @@ -63,12 +63,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -326,7 +326,7 @@ catch (RequestFailedException ex) when (ex.Status == 404) } ``` -You can also easily [enable console logging](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md#logging) if you want to dig +You can also easily [enable console logging](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md#logging) if you want to dig deeper into the requests you're making against the service. ## Next steps @@ -350,7 +350,7 @@ additional questions or comments. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fcontainerregistry%2FAzure.Containers.ContainerRegistry%2FREADME.png) -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/containerregistry/Azure.Containers.ContainerRegistry/src +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/containerregistry/Azure.Containers.ContainerRegistry/src [package]: https://www.nuget.org/packages/Azure.Containers.ContainerRegistry/ [docs]: https://docs.microsoft.com/dotnet/api/azure.containers.containerregistry [rest_docs]: https://docs.microsoft.com/rest/api/containerregistry/ @@ -363,9 +363,9 @@ additional questions or comments. [container_registry_concepts]: https://docs.microsoft.com/azure/container-registry/container-registry-concepts [azure_cli]: https://docs.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ -[identity]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity/README.md -[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core/src/RequestFailedException.cs -[samples]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/ +[identity]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity/README.md +[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core/src/RequestFailedException.cs +[samples]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/ [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/perf/Azure.Containers.ContainerRegistry.Perf/README.md b/sdk/containerregistry/Azure.Containers.ContainerRegistry/perf/Azure.Containers.ContainerRegistry.Perf/README.md index 95c354559dc1..d1a6390eaec6 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/perf/Azure.Containers.ContainerRegistry.Perf/README.md +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/perf/Azure.Containers.ContainerRegistry.Perf/README.md @@ -1,6 +1,6 @@ -# Azure Container Registry performance tests +# Azure Container Registry performance tests -This folder contains performance tests for the [Azure Container Registry client library for .NET](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/containerregistry/Azure.Containers.ContainerRegistry) and its associated ecosystem. The artifacts in this library are intended to be used primarily with the Azure SDK engineering system's testing infrastructure, but may also be run as stand-alone applications from the command line. +This folder contains performance tests for the [Azure Container Registry client library for .NET](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/containerregistry/Azure.Containers.ContainerRegistry) and its associated ecosystem. The artifacts in this library are intended to be used primarily with the Azure SDK engineering system's testing infrastructure, but may also be run as stand-alone applications from the command line. ## Contributing @@ -10,6 +10,6 @@ When you submit a pull request, a CLA-bot will automatically determine whether y This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. -Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/master/CONTRIBUTING.md) for more information. +Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/main/CONTRIBUTING.md) for more information. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fcontainerregistry%2FAzure.Containers.ContainerRegistry.Perf%2FREADME.png) diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/README.md b/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/README.md index b66b2d0ea952..5e80d4f9cda0 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/README.md +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/README.md @@ -11,7 +11,7 @@ description: Samples for the Azure.Containers.ContainerRegistry client library # Azure.Containers.ContainerRegistry Samples -- Get started with the HelloWorld sample either [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample01a_HelloWorld.md) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample01b_HelloWorldAsync.md). -- Manage a registry by deleting old images [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample02a_DeleteImages.md) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample02b_DeleteImagesAsync.md). -- Set read/write/delete properties on an image [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample03a_SetImageProperties.md) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample03b_SetImagePropertiesAsync.md). -- List tags on an image using an anonymous access client [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample04a_AnonymousListTags.md) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample04b_AnonymousListTagsAsync.md). +- Get started with the HelloWorld sample either [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample01a_HelloWorld.md) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample01b_HelloWorldAsync.md). +- Manage a registry by deleting old images [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample02a_DeleteImages.md) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample02b_DeleteImagesAsync.md). +- Set read/write/delete properties on an image [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample03a_SetImageProperties.md) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample03b_SetImagePropertiesAsync.md). +- List tags on an image using an anonymous access client [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample04a_AnonymousListTags.md) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/Sample04b_AnonymousListTagsAsync.md). diff --git a/sdk/containerregistry/ci.data.yml b/sdk/containerregistry/ci.data.yml index de1c677c26e2..48a46eb05486 100644 --- a/sdk/containerregistry/ci.data.yml +++ b/sdk/containerregistry/ci.data.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/containerregistry/ci.yml b/sdk/containerregistry/ci.yml index 312bca494704..b0a538d27929 100644 --- a/sdk/containerregistry/ci.yml +++ b/sdk/containerregistry/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/core/Azure.Core.Amqp/tests/AmqpMessageBodyTests.cs b/sdk/core/Azure.Core.Amqp/tests/AmqpMessageBodyTests.cs index 88fab2f88df2..b2a7560d0745 100644 --- a/sdk/core/Azure.Core.Amqp/tests/AmqpMessageBodyTests.cs +++ b/sdk/core/Azure.Core.Amqp/tests/AmqpMessageBodyTests.cs @@ -27,10 +27,10 @@ public class AmqpMessageBodyTests new double[] { 3.1415926 }, new decimal(3.1415926), new decimal[] { new decimal(3.1415926) }, - DateTimeOffset.Parse("3/24/21").UtcDateTime, - new DateTime[] {DateTimeOffset.Parse("3/24/21").UtcDateTime }, - DateTimeOffset.Parse("3/24/21"), - new DateTimeOffset[] {DateTimeOffset.Parse("3/24/21") }, + new DateTimeOffset(2021, 3, 24, 0, 0, 0, TimeSpan.Zero).UtcDateTime, + new DateTime[] { new DateTimeOffset(2021, 3, 24, 0, 0, 0, TimeSpan.Zero).UtcDateTime }, + new DateTimeOffset(2021, 3, 24, 0, 0, 0, TimeSpan.Zero), + new DateTimeOffset[] { new DateTimeOffset(2021, 3, 24, 0, 0, 0, TimeSpan.Zero) }, TimeSpan.FromSeconds(5), new TimeSpan[] {TimeSpan.FromSeconds(5)}, new Uri("http://localHost"), @@ -45,8 +45,8 @@ public class AmqpMessageBodyTests new Dictionary {{ "key", 1 } }, new Dictionary {{ "key", 3.1415926 } }, new Dictionary {{ "key", new decimal(3.1415926) } }, - new Dictionary {{ "key", DateTimeOffset.Parse("3/24/21").UtcDateTime } }, - new Dictionary {{ "key", DateTimeOffset.Parse("3/24/21") } }, + new Dictionary {{ "key", new DateTimeOffset(2021, 3, 24, 0, 0, 0, TimeSpan.Zero).UtcDateTime } }, + new Dictionary {{ "key", new DateTimeOffset(2021, 3, 24, 0, 0, 0, TimeSpan.Zero) } }, new Dictionary {{ "key", TimeSpan.FromSeconds(5) } }, new Dictionary {{ "key", new Uri("http://localHost") } }, new Dictionary {{ "key", new Guid("55f239a6-5d50-4f6d-8f84-deed326e4554") } }, diff --git a/sdk/core/Azure.Core.TestFramework/README.md b/sdk/core/Azure.Core.TestFramework/README.md index 83591462cee1..407a63fe1709 100644 --- a/sdk/core/Azure.Core.TestFramework/README.md +++ b/sdk/core/Azure.Core.TestFramework/README.md @@ -11,7 +11,7 @@ To start using the Test Framework, add a project reference using the alias `Azur ``` -As an example, see the [Template](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/template/Azure.Template/tests/Azure.Template.Tests.csproj#L15) project. +As an example, see the [Template](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/template/Azure.Template/tests/Azure.Template.Tests.csproj#L15) project. ## Sync-async tests @@ -151,11 +151,11 @@ public class AppConfigurationTestEnvironment : TestEnvironment ## Test settings -Test settings can be configured via `.runsettings` files. See [nunit.runsettings](https://github.com/Azure/azure-sdk-for-net/blob/master/eng/nunit.runsettings) for available knobs. +Test settings can be configured via `.runsettings` files. See [nunit.runsettings](https://github.com/Azure/azure-sdk-for-net/blob/main/eng/nunit.runsettings) for available knobs. There are two ways to work with `.runsettings`. Both are picked up by Visual Studio without restart. -- You can edit [nunit.runsettings](https://github.com/Azure/azure-sdk-for-net/blob/master/eng/nunit.runsettings) locally to achieve desired configuration. -- You can prepare few copies of `.runsettings` by cloning [nunit.runsettings](https://github.com/Azure/azure-sdk-for-net/blob/master/eng/nunit.runsettings). +- You can edit [nunit.runsettings](https://github.com/Azure/azure-sdk-for-net/blob/main/eng/nunit.runsettings) locally to achieve desired configuration. +- You can prepare few copies of `.runsettings` by cloning [nunit.runsettings](https://github.com/Azure/azure-sdk-for-net/blob/main/eng/nunit.runsettings). Load them in Visual Studio (`Test>Configure Run Settings` menu) and switch between them. This option requires setting an environment variable `AZURE_SKIP_DEFAULT_RUN_SETTINGS=true`. ## TokenCredential @@ -420,7 +420,7 @@ For example: ## Management libraries -Testing of management libraries uses the Test Framework and should generally be very similar to tests that you write for data plane libraries. There is an intermediate test class that you will likely want to derive from that lives within the management code base - [ManagementRecordedTestBase](https://github.com/Azure/azure-sdk-for-net/blob/babee31b3151e4512ac5a77a55c426c136335fbb/common/ManagementTestShared/ManagementRecordedTestBase.cs). To see examples of Track 2 Management tests using the Test Framework, take a look at the [Storage tests](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Azure.ResourceManager.Storage/tests/Tests). +Testing of management libraries uses the Test Framework and should generally be very similar to tests that you write for data plane libraries. There is an intermediate test class that you will likely want to derive from that lives within the management code base - [ManagementRecordedTestBase](https://github.com/Azure/azure-sdk-for-net/blob/babee31b3151e4512ac5a77a55c426c136335fbb/common/ManagementTestShared/ManagementRecordedTestBase.cs). To see examples of Track 2 Management tests using the Test Framework, take a look at the [Storage tests](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.ResourceManager.Storage/tests/Tests). ## Recording tests on CI @@ -482,7 +482,7 @@ There are various helpful classes that assist in writing tests for the Azure SDK ### TestEnvVar -[TestEnvVar](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core.TestFramework/src/TestEnvVar.cs) allows you to wrap a block of code with a using statement inside which the configured Environment variables will be set to your supplied values. +[TestEnvVar](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core.TestFramework/src/TestEnvVar.cs) allows you to wrap a block of code with a using statement inside which the configured Environment variables will be set to your supplied values. It ensures that the existing value of any configured environment variables are preserved before they are set them and restores them outside the scope of the using block. #### Example usage @@ -498,7 +498,7 @@ using (var _ = new TestEnvVar("AZURE_TENANT_ID", "foo")) ### TestAppContextSwitch -[TestAppContextSwitch](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core.TestFramework/src/TestAppContextSwitch.cs) allows you to wrap a block of code with a using statement inside which the configured [AppContext](https://docs.microsoft.com/dotnet/api/system.appcontext) switch will be set to your supplied values. +[TestAppContextSwitch](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core.TestFramework/src/TestAppContextSwitch.cs) allows you to wrap a block of code with a using statement inside which the configured [AppContext](https://docs.microsoft.com/dotnet/api/system.appcontext) switch will be set to your supplied values. It ensures that the existing value of any configured switches are preserved before they are set them and restores them outside the scope of the using block. Note: Even if an `AppContext` switch was un-set prior to setting it via `TestAppContextSwitch`, it will be unset after leaving the scope of the using block. diff --git a/sdk/core/Azure.Core/README.md b/sdk/core/Azure.Core/README.md index 3778ab8e2acc..1739478847c6 100644 --- a/sdk/core/Azure.Core/README.md +++ b/sdk/core/Azure.Core/README.md @@ -35,12 +35,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -80,7 +80,7 @@ SecretClientOptions options = new SecretClientOptions() SecretClient client = new SecretClient(new Uri("http://example.com"), new DefaultAzureCredential(), options); ``` -More on client configuration in [client configuration samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Configuration.md) +More on client configuration in [client configuration samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Configuration.md) ### Accessing HTTP Response Details Using ```Response``` _Service clients_ have methods that can be used to call Azure services. @@ -113,7 +113,7 @@ foreach (HttpHeader header in http.Headers) } ``` -More on response types in [response samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Response.md) +More on response types in [response samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Response.md) ### Setting up console logging @@ -124,7 +124,7 @@ To create an Azure SDK log listener that outputs messages to console use `AzureE using AzureEventSourceListener listener = AzureEventSourceListener.CreateConsoleLogger(); ``` -More on logging in [diagnostics samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) +More on logging in [diagnostics samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) ### Reporting Errors ```RequestFailedException``` @@ -143,7 +143,7 @@ catch (RequestFailedException e) when (e.Status == 404) } ``` -More on handling responses in [response samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Response.md) +More on handling responses in [response samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Response.md) ### Consuming Service Methods Returning ```AsyncPageable``` @@ -160,7 +160,7 @@ await foreach (SecretProperties secretProperties in allSecretProperties) } ``` -More on paged responses in [response samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Response.md) +More on paged responses in [response samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Response.md) ### Consuming Long-Running Operations Using ```Operation``` @@ -182,7 +182,7 @@ Console.WriteLine(value.Name); Console.WriteLine(value.ScheduledPurgeDate); ``` -More on long-running operations in [long-running operation samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/LongRunningOperations.md) +More on long-running operations in [long-running operation samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/LongRunningOperations.md) ### Mocking One of the most important cross-cutting features of our new client libraries using Azure.Core is that they are designed for mocking. @@ -215,11 +215,11 @@ SecretClient client = mock.Object; KeyVaultSecret secret = client.GetSecret("Name"); ``` -More on mocking in [mocking samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Mocking.md) +More on mocking in [mocking samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Mocking.md) ## Troubleshooting -Three main ways of troubleshooting failures are [inspecting exceptions](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Response.md#handling-exceptions), enabling [logging](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md#Logging), and [distributed tracing](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md#Distributed-tracing) +Three main ways of troubleshooting failures are [inspecting exceptions](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Response.md#handling-exceptions), enabling [logging](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md#Logging), and [distributed tracing](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md#Distributed-tracing) ## Next steps @@ -235,7 +235,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fcore%2FAzure.Core%2FREADME.png) -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core/src +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core/src [package]: https://www.nuget.org/packages/Azure.Core/ [docs]: https://azure.github.io/azure-sdk-for-net/core.html [code_of_conduct]: https://opensource.microsoft.com/codeofconduct diff --git a/sdk/core/Azure.Core/samples/Diagnostics.md b/sdk/core/Azure.Core/samples/Diagnostics.md index ada438817ace..44154fca1c61 100644 --- a/sdk/core/Azure.Core/samples/Diagnostics.md +++ b/sdk/core/Azure.Core/samples/Diagnostics.md @@ -1,6 +1,6 @@ # Azure SDK diagnostics -**NOTE:** Samples in this file apply only to packages that follow [Azure SDK Design Guidelines](https://azure.github.io/azure-sdk/dotnet_introduction.html). Names of such packages usually start with `Azure`. The samples make use of the `SecretClientOptions` type, but the same functionality is available for any of the `Azure.` packages that contain client options types that derive from [ClientOptions](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/src/ClientOptions.cs), e.g. `BlobClientOptions`, `TextAnalyticsClientOptions`, etc. +**NOTE:** Samples in this file apply only to packages that follow [Azure SDK Design Guidelines](https://azure.github.io/azure-sdk/dotnet_introduction.html). Names of such packages usually start with `Azure`. The samples make use of the `SecretClientOptions` type, but the same functionality is available for any of the `Azure.` packages that contain client options types that derive from [ClientOptions](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/src/ClientOptions.cs), e.g. `BlobClientOptions`, `TextAnalyticsClientOptions`, etc. ## Logging @@ -70,7 +70,7 @@ SecretClientOptions options = new SecretClientOptions() ### ASP.NET Core applications -If your are using Azure SDK libraries in ASP.NET Core application consider using the `Microsoft.Extensions.Azure` package that provides integration with `Microsoft.Extensions.Logging` library. See [Microsoft.Extensions.Azure readme](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/extensions/Microsoft.Extensions.Azure/README.md) for more details. +If your are using Azure SDK libraries in ASP.NET Core application consider using the `Microsoft.Extensions.Azure` package that provides integration with `Microsoft.Extensions.Logging` library. See [Microsoft.Extensions.Azure readme](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/extensions/Microsoft.Extensions.Azure/README.md) for more details. ### Custom logging callback @@ -103,7 +103,7 @@ To setup ApplicationInsights tracking for your application follow the [Start Mon Follow the [OpenTelemetry configuration guide](https://github.com/open-telemetry/opentelemetry-dotnet#configuration-with-microsoftextensionsdependencyinjection) to configure collecting distribute tracing event collection using the OpenTelemetry library. ### Sample -To see an example of distributed tracing in action, take a look at our [sample app](https://github.com/Azure/azure-sdk-for-net/blob/master/samples/linecounter/README.md) that combines several Azure SDKs. +To see an example of distributed tracing in action, take a look at our [sample app](https://github.com/Azure/azure-sdk-for-net/blob/main/samples/linecounter/README.md) that combines several Azure SDKs. ## Setting x-ms-client-request-id value sent with requests diff --git a/sdk/core/Azure.Core/samples/Events.md b/sdk/core/Azure.Core/samples/Events.md index 97007b5f80ae..4e578321f8bb 100644 --- a/sdk/core/Azure.Core/samples/Events.md +++ b/sdk/core/Azure.Core/samples/Events.md @@ -59,7 +59,7 @@ handlers are still raised if cancellation occurs. You should both pass synchronous operations and consider calling `CancellationToken.ThrowIfCancellationRequested` in compute heavy handlers. -A [distributed tracing span](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md#distributed-tracing) +A [distributed tracing span](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md#distributed-tracing) is wrapped around your handlers using the event name so you can see how long your handlers took to run, whether they made other calls to Azure services, and details about any exceptions that were thrown. diff --git a/sdk/core/Azure.Core/samples/LongRunningOperations.md b/sdk/core/Azure.Core/samples/LongRunningOperations.md index d01c48d07255..68a7672a894b 100644 --- a/sdk/core/Azure.Core/samples/LongRunningOperations.md +++ b/sdk/core/Azure.Core/samples/LongRunningOperations.md @@ -43,7 +43,7 @@ Console.WriteLine(operation.HasValue); A Pageable Operation is use when the service call returns multiple values in pages after the Long Running Operation completes. The results can be access with the `GetValues()`, `GetValuesAsync()` methods which return `Pageable/AsyncPageable` respectively. -To access the result you can iterate over the `Pageable/AsyncPageable`. For more information see [Consuming Service Methods Returning Pageable/AsyncPageable](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core#consuming-service-methods-returning-asyncpageablet). +To access the result you can iterate over the `Pageable/AsyncPageable`. For more information see [Consuming Service Methods Returning Pageable/AsyncPageable](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core#consuming-service-methods-returning-asyncpageablet). ### Using `GetValuesAsync()` The `GetValuesAsync` method will contain the `AsyncPageable` results. diff --git a/sdk/core/Azure.Core/samples/Pipeline.md b/sdk/core/Azure.Core/samples/Pipeline.md index 51e7c152e706..3338806e9450 100644 --- a/sdk/core/Azure.Core/samples/Pipeline.md +++ b/sdk/core/Azure.Core/samples/Pipeline.md @@ -9,7 +9,7 @@ Before request is sent to the service it travels through the pipeline which cons Azure SDKs provides a way to add policies to the pipeline at two positions: - per-call policies get executed once per request - - per-retry policies get executed every time request is retried, see [Retries samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Configuration.md#configuring-retry-options) for how to configure retries. + - per-retry policies get executed every time request is retried, see [Retries samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Configuration.md#configuring-retry-options) for how to configure retries. ```C# Snippet:AddingPerCallPolicy SecretClientOptions options = new SecretClientOptions(); diff --git a/sdk/core/Azure.Core/samples/README.md b/sdk/core/Azure.Core/samples/README.md index eb285acc03a6..ee643d0e9222 100644 --- a/sdk/core/Azure.Core/samples/README.md +++ b/sdk/core/Azure.Core/samples/README.md @@ -10,11 +10,11 @@ description: Samples for the Azure.Core client library # Azure.Core Samples -- [Configuration](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Configuration.md) -- [Response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Response.md) -- [Pipeline](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Pipeline.md) -- [Long Running Operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/LongRunningOperations.md) -- [Events](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Events.md) -- [Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) -- [Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Mocking.md) -- [Protocol Methods](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/ProtocolMethods.md) +- [Configuration](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Configuration.md) +- [Response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Response.md) +- [Pipeline](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Pipeline.md) +- [Long Running Operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/LongRunningOperations.md) +- [Events](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Events.md) +- [Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) +- [Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Mocking.md) +- [Protocol Methods](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/ProtocolMethods.md) diff --git a/sdk/core/Azure.Core/samples/Response.md b/sdk/core/Azure.Core/samples/Response.md index f79d4ff98b1e..cbe5293c5742 100644 --- a/sdk/core/Azure.Core/samples/Response.md +++ b/sdk/core/Azure.Core/samples/Response.md @@ -7,7 +7,7 @@ Most client methods return one of the following types: - `Response` - a value and HTTP response - `Pageable` - a collection of values retrieved in pages - `AsyncPageable` - a collection of values asynchronously retrieved in pages - - `*Operation` - a long-running operation see [long running operation samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/LongRunningOperations.md) + - `*Operation` - a long-running operation see [long running operation samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/LongRunningOperations.md) ## Accessing HTTP response propreties diff --git a/sdk/core/Azure.Core/tests/BearerTokenAuthenticationPolicyTests.cs b/sdk/core/Azure.Core/tests/BearerTokenAuthenticationPolicyTests.cs index 83f455daf52e..2be24500fa20 100644 --- a/sdk/core/Azure.Core/tests/BearerTokenAuthenticationPolicyTests.cs +++ b/sdk/core/Azure.Core/tests/BearerTokenAuthenticationPolicyTests.cs @@ -464,7 +464,8 @@ public async Task BearerTokenAuthenticationPolicy_TokenExpiredThenFailed() Assert.AreEqual(firstRequestTask.Exception.InnerException, secondRequestTask.Exception.InnerException); } - [Test] + [Test] + [Ignore("https://github.com/Azure/azure-sdk-for-net/issues/14612")] public async Task BearerTokenAuthenticationPolicy_TokenAlmostExpiredThenFailed() { var requestMre = new ManualResetEventSlim(true); diff --git a/sdk/core/Microsoft.Azure.Core.NewtonsoftJson/README.md b/sdk/core/Microsoft.Azure.Core.NewtonsoftJson/README.md index f917cea2da39..1625f1c35d29 100644 --- a/sdk/core/Microsoft.Azure.Core.NewtonsoftJson/README.md +++ b/sdk/core/Microsoft.Azure.Core.NewtonsoftJson/README.md @@ -119,7 +119,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con [azure_core_package]: https://www.nuget.org/packages/Azure.Core/ [azure_search_documents_package]: https://www.nuget.org/packages/Azure.Search.Documents/ -[azure_search_documents_readme]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/search/Azure.Search.Documents/README.md +[azure_search_documents_readme]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/search/Azure.Search.Documents/README.md [code_of_conduct]: https://opensource.microsoft.com/codeofconduct [code_of_conduct_faq]: https://opensource.microsoft.com/codeofconduct/faq/ [newtonsoft_json_package]: https://www.nuget.org/packages/Newtonsoft.Json/ diff --git a/sdk/core/Microsoft.Azure.Core.Spatial.NewtonsoftJson/README.md b/sdk/core/Microsoft.Azure.Core.Spatial.NewtonsoftJson/README.md index 1ee009082ebb..7e678cca37af 100644 --- a/sdk/core/Microsoft.Azure.Core.Spatial.NewtonsoftJson/README.md +++ b/sdk/core/Microsoft.Azure.Core.Spatial.NewtonsoftJson/README.md @@ -92,7 +92,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fcore%2FMicrosoft.Azure.Core.NewtonsoftJson%2FREADME.png) [azure_search_documents_package]: https://www.nuget.org/packages/Azure.Search.Documents/ -[azure_search_documents_readme]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/search/Azure.Search.Documents/README.md +[azure_search_documents_readme]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/search/Azure.Search.Documents/README.md [code_of_conduct]: https://opensource.microsoft.com/codeofconduct [code_of_conduct_faq]: https://opensource.microsoft.com/codeofconduct/faq/ [JsonSerializerSettings]: https://www.newtonsoft.com/json/help/html/T_Newtonsoft_Json_JsonSerializerSettings.htm diff --git a/sdk/core/Microsoft.Azure.Core.Spatial/README.md b/sdk/core/Microsoft.Azure.Core.Spatial/README.md index 9046d279da78..b5b755b70f2a 100644 --- a/sdk/core/Microsoft.Azure.Core.Spatial/README.md +++ b/sdk/core/Microsoft.Azure.Core.Spatial/README.md @@ -92,7 +92,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fcore%2FMicrosoft.Azure.Core.NewtonsoftJson%2FREADME.png) [azure_search_documents_package]: https://www.nuget.org/packages/Azure.Search.Documents/ -[azure_search_documents_readme]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/search/Azure.Search.Documents/README.md +[azure_search_documents_readme]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/search/Azure.Search.Documents/README.md [code_of_conduct]: https://opensource.microsoft.com/codeofconduct [code_of_conduct_faq]: https://opensource.microsoft.com/codeofconduct/faq/ [JsonSerializerOptions]: https://docs.microsoft.com/dotnet/api/system.text.json.jsonserializeroptions diff --git a/sdk/core/ci.yml b/sdk/core/ci.yml index c5ec531a7ea9..748d2ad52a54 100644 --- a/sdk/core/ci.yml +++ b/sdk/core/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -17,7 +16,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/README.md b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/README.md index aeeb1a42d8a8..bd7e86bfb32c 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/README.md +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/README.md @@ -18,7 +18,7 @@ Install-Package Azure.ResourceManager.CosmosDB -Version 1.0.0-preview.1 ### Authenticate the Client -To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) ## Key concepts @@ -28,9 +28,9 @@ Key concepts of the Azure .NET SDK can be found [here](https://azure.github.io/a Documentation is available to help you learn how to use this package -- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) - [API References](https://docs.microsoft.com/dotnet/api/?view=azure-dotnet) -- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md) +- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md) ## Examples diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/AzSdk.RP.props b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/AzSdk.RP.props index 0c984b8893f1..c479893ed2ab 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/AzSdk.RP.props +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/AzSdk.RP.props @@ -1,7 +1,7 @@  - CosmosDB_2021-04-15 + CosmosDB_2021-06-15 $(PackageTags);$(CommonTags);$(AzureApiTag); diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/CassandraResourcesOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/CassandraResourcesOperations.cs index 3f02a6250fe7..ae3d1c82d4e3 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/CassandraResourcesOperations.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/CassandraResourcesOperations.cs @@ -108,10 +108,6 @@ internal CassandraResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -352,10 +348,6 @@ internal CassandraResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -655,10 +647,6 @@ internal CassandraResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -986,10 +974,6 @@ internal CassandraResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -1239,10 +1223,6 @@ internal CassandraResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -1557,10 +1537,6 @@ internal CassandraResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -1905,10 +1881,6 @@ internal CassandraResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -2166,10 +2138,6 @@ internal CassandraResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -2401,10 +2369,6 @@ internal CassandraResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -2666,10 +2630,6 @@ internal CassandraResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -2916,10 +2876,6 @@ internal CassandraResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -3171,10 +3127,6 @@ internal CassandraResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -3441,10 +3393,6 @@ internal CassandraResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -3685,10 +3633,6 @@ internal CassandraResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -3959,10 +3903,6 @@ internal CassandraResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -4218,10 +4158,6 @@ internal CassandraResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/CollectionOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/CollectionOperations.cs index 9895b247cbbb..034262f0468e 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/CollectionOperations.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/CollectionOperations.cs @@ -120,10 +120,6 @@ internal CollectionOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -392,10 +388,6 @@ internal CollectionOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -655,10 +647,6 @@ internal CollectionOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/CollectionPartitionOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/CollectionPartitionOperations.cs index 19e56cbd3001..6e2217dd5eae 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/CollectionPartitionOperations.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/CollectionPartitionOperations.cs @@ -120,10 +120,6 @@ internal CollectionPartitionOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -393,10 +389,6 @@ internal CollectionPartitionOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/CollectionPartitionRegionOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/CollectionPartitionRegionOperations.cs index 920539d777ec..0dbae254a8ec 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/CollectionPartitionRegionOperations.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/CollectionPartitionRegionOperations.cs @@ -123,10 +123,6 @@ internal CollectionPartitionRegionOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/CollectionRegionOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/CollectionRegionOperations.cs index 02ff8134dfe1..99bfdd323a00 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/CollectionRegionOperations.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/CollectionRegionOperations.cs @@ -123,10 +123,6 @@ internal CollectionRegionOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/CosmosDBManagementClient.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/CosmosDBManagementClient.cs index 25b7694ddf45..22336683cb88 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/CosmosDBManagementClient.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/CosmosDBManagementClient.cs @@ -166,15 +166,50 @@ public partial class CosmosDBManagementClient : ServiceClient public virtual INotebookWorkspacesOperations NotebookWorkspaces { get; private set; } + /// + /// Gets the IPrivateEndpointConnectionsOperations. + /// + public virtual IPrivateEndpointConnectionsOperations PrivateEndpointConnections { get; private set; } + /// /// Gets the IPrivateLinkResourcesOperations. /// public virtual IPrivateLinkResourcesOperations PrivateLinkResources { get; private set; } /// - /// Gets the IPrivateEndpointConnectionsOperations. + /// Gets the IRestorableDatabaseAccountsOperations. /// - public virtual IPrivateEndpointConnectionsOperations PrivateEndpointConnections { get; private set; } + public virtual IRestorableDatabaseAccountsOperations RestorableDatabaseAccounts { get; private set; } + + /// + /// Gets the IRestorableSqlDatabasesOperations. + /// + public virtual IRestorableSqlDatabasesOperations RestorableSqlDatabases { get; private set; } + + /// + /// Gets the IRestorableSqlContainersOperations. + /// + public virtual IRestorableSqlContainersOperations RestorableSqlContainers { get; private set; } + + /// + /// Gets the IRestorableSqlResourcesOperations. + /// + public virtual IRestorableSqlResourcesOperations RestorableSqlResources { get; private set; } + + /// + /// Gets the IRestorableMongodbDatabasesOperations. + /// + public virtual IRestorableMongodbDatabasesOperations RestorableMongodbDatabases { get; private set; } + + /// + /// Gets the IRestorableMongodbCollectionsOperations. + /// + public virtual IRestorableMongodbCollectionsOperations RestorableMongodbCollections { get; private set; } + + /// + /// Gets the IRestorableMongodbResourcesOperations. + /// + public virtual IRestorableMongodbResourcesOperations RestorableMongodbResources { get; private set; } /// /// Initializes a new instance of the CosmosDBManagementClient class. @@ -436,10 +471,17 @@ private void Initialize() CassandraResources = new CassandraResourcesOperations(this); GremlinResources = new GremlinResourcesOperations(this); NotebookWorkspaces = new NotebookWorkspacesOperations(this); - PrivateLinkResources = new PrivateLinkResourcesOperations(this); PrivateEndpointConnections = new PrivateEndpointConnectionsOperations(this); + PrivateLinkResources = new PrivateLinkResourcesOperations(this); + RestorableDatabaseAccounts = new RestorableDatabaseAccountsOperations(this); + RestorableSqlDatabases = new RestorableSqlDatabasesOperations(this); + RestorableSqlContainers = new RestorableSqlContainersOperations(this); + RestorableSqlResources = new RestorableSqlResourcesOperations(this); + RestorableMongodbDatabases = new RestorableMongodbDatabasesOperations(this); + RestorableMongodbCollections = new RestorableMongodbCollectionsOperations(this); + RestorableMongodbResources = new RestorableMongodbResourcesOperations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2021-04-15"; + ApiVersion = "2021-06-15"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/DatabaseAccountRegionOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/DatabaseAccountRegionOperations.cs index 49d1bc40cb2c..17f4943dcb72 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/DatabaseAccountRegionOperations.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/DatabaseAccountRegionOperations.cs @@ -117,10 +117,6 @@ internal DatabaseAccountRegionOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/DatabaseAccountsOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/DatabaseAccountsOperations.cs index 22bfa79fb675..07a55df535a2 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/DatabaseAccountsOperations.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/DatabaseAccountsOperations.cs @@ -107,10 +107,6 @@ internal DatabaseAccountsOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -629,10 +625,6 @@ internal DatabaseAccountsOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (Client.ApiVersion == null) { @@ -859,10 +851,6 @@ internal DatabaseAccountsOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -1100,10 +1088,6 @@ internal DatabaseAccountsOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -1393,10 +1377,6 @@ internal DatabaseAccountsOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -1634,10 +1614,6 @@ internal DatabaseAccountsOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -2093,10 +2069,6 @@ internal DatabaseAccountsOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -2347,10 +2319,6 @@ internal DatabaseAccountsOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -2592,10 +2560,6 @@ internal DatabaseAccountsOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -2835,10 +2799,6 @@ internal DatabaseAccountsOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -3090,10 +3050,6 @@ internal DatabaseAccountsOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -3342,10 +3298,6 @@ internal DatabaseAccountsOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -3568,10 +3520,6 @@ internal DatabaseAccountsOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -3806,10 +3754,6 @@ internal DatabaseAccountsOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -4039,10 +3983,6 @@ internal DatabaseAccountsOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -4272,10 +4212,6 @@ internal DatabaseAccountsOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/DatabaseOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/DatabaseOperations.cs index 9355f5c552ba..541d6775a12d 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/DatabaseOperations.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/DatabaseOperations.cs @@ -117,10 +117,6 @@ internal DatabaseOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -380,10 +376,6 @@ internal DatabaseOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -634,10 +626,6 @@ internal DatabaseOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/GremlinResourcesOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/GremlinResourcesOperations.cs index fd62ef24aac7..d18fa497c4a8 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/GremlinResourcesOperations.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/GremlinResourcesOperations.cs @@ -108,10 +108,6 @@ internal GremlinResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -352,10 +348,6 @@ internal GremlinResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -655,10 +647,6 @@ internal GremlinResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -985,10 +973,6 @@ internal GremlinResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -1237,10 +1221,6 @@ internal GremlinResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -1555,10 +1535,6 @@ internal GremlinResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -1903,10 +1879,6 @@ internal GremlinResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -2164,10 +2136,6 @@ internal GremlinResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -2399,10 +2367,6 @@ internal GremlinResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -2664,10 +2628,6 @@ internal GremlinResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -2914,10 +2874,6 @@ internal GremlinResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -3169,10 +3125,6 @@ internal GremlinResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -3439,10 +3391,6 @@ internal GremlinResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -3683,10 +3631,6 @@ internal GremlinResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -3957,10 +3901,6 @@ internal GremlinResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -4216,10 +4156,6 @@ internal GremlinResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/ICosmosDBManagementClient.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/ICosmosDBManagementClient.cs index 6825f20dff2a..70be011f245b 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/ICosmosDBManagementClient.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/ICosmosDBManagementClient.cs @@ -163,15 +163,50 @@ public partial interface ICosmosDBManagementClient : System.IDisposable /// INotebookWorkspacesOperations NotebookWorkspaces { get; } + /// + /// Gets the IPrivateEndpointConnectionsOperations. + /// + IPrivateEndpointConnectionsOperations PrivateEndpointConnections { get; } + /// /// Gets the IPrivateLinkResourcesOperations. /// IPrivateLinkResourcesOperations PrivateLinkResources { get; } /// - /// Gets the IPrivateEndpointConnectionsOperations. + /// Gets the IRestorableDatabaseAccountsOperations. /// - IPrivateEndpointConnectionsOperations PrivateEndpointConnections { get; } + IRestorableDatabaseAccountsOperations RestorableDatabaseAccounts { get; } + + /// + /// Gets the IRestorableSqlDatabasesOperations. + /// + IRestorableSqlDatabasesOperations RestorableSqlDatabases { get; } + + /// + /// Gets the IRestorableSqlContainersOperations. + /// + IRestorableSqlContainersOperations RestorableSqlContainers { get; } + + /// + /// Gets the IRestorableSqlResourcesOperations. + /// + IRestorableSqlResourcesOperations RestorableSqlResources { get; } + + /// + /// Gets the IRestorableMongodbDatabasesOperations. + /// + IRestorableMongodbDatabasesOperations RestorableMongodbDatabases { get; } + + /// + /// Gets the IRestorableMongodbCollectionsOperations. + /// + IRestorableMongodbCollectionsOperations RestorableMongodbCollections { get; } + + /// + /// Gets the IRestorableMongodbResourcesOperations. + /// + IRestorableMongodbResourcesOperations RestorableMongodbResources { get; } } } diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/IRestorableDatabaseAccountsOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/IRestorableDatabaseAccountsOperations.cs new file mode 100644 index 000000000000..e1a26f87e10b --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/IRestorableDatabaseAccountsOperations.cs @@ -0,0 +1,105 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// RestorableDatabaseAccountsOperations operations. + /// + public partial interface IRestorableDatabaseAccountsOperations + { + /// + /// Lists all the restorable Azure Cosmos DB database accounts + /// available under the subscription and in a region. This call + /// requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' + /// permission. + /// + /// + /// Cosmos DB region, with spaces between words and each word + /// capitalized. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByLocationWithHttpMessagesAsync(string location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all the restorable Azure Cosmos DB database accounts + /// available under the subscription. This call requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' + /// permission. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves the properties of an existing Azure Cosmos DB restorable + /// database account. This call requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' + /// permission. + /// + /// + /// Cosmos DB region, with spaces between words and each word + /// capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetByLocationWithHttpMessagesAsync(string location, string instanceId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/IRestorableMongodbCollectionsOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/IRestorableMongodbCollectionsOperations.cs new file mode 100644 index 000000000000..b37c85352e82 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/IRestorableMongodbCollectionsOperations.cs @@ -0,0 +1,61 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// RestorableMongodbCollectionsOperations operations. + /// + public partial interface IRestorableMongodbCollectionsOperations + { + /// + /// Show the event feed of all mutations done on all the Azure Cosmos + /// DB MongoDB collections under a specific database. This helps in + /// scenario where container was accidentally deleted. This API + /// requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + /// permission + /// + /// + /// Cosmos DB region, with spaces between words and each word + /// capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + /// + /// The resource ID of the MongoDB database. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, string instanceId, string restorableMongodbDatabaseRid = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/IRestorableMongodbDatabasesOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/IRestorableMongodbDatabasesOperations.cs new file mode 100644 index 000000000000..e448a153744b --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/IRestorableMongodbDatabasesOperations.cs @@ -0,0 +1,58 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// RestorableMongodbDatabasesOperations operations. + /// + public partial interface IRestorableMongodbDatabasesOperations + { + /// + /// Show the event feed of all mutations done on all the Azure Cosmos + /// DB MongoDB databases under the restorable account. This helps in + /// scenario where database was accidentally deleted to get the + /// deletion time. This API requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + /// permission + /// + /// + /// Cosmos DB region, with spaces between words and each word + /// capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, string instanceId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/IRestorableMongodbResourcesOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/IRestorableMongodbResourcesOperations.cs new file mode 100644 index 000000000000..c218372523e0 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/IRestorableMongodbResourcesOperations.cs @@ -0,0 +1,64 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// RestorableMongodbResourcesOperations operations. + /// + public partial interface IRestorableMongodbResourcesOperations + { + /// + /// Return a list of database and collection combo that exist on the + /// account at the given timestamp and location. This helps in + /// scenarios to validate what resources exist at given timestamp and + /// location. This API requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + /// permission. + /// + /// + /// Cosmos DB region, with spaces between words and each word + /// capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + /// + /// The location where the restorable resources are located. + /// + /// + /// The timestamp when the restorable resources existed. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, string instanceId, string restoreLocation = default(string), string restoreTimestampInUtc = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/IRestorableSqlContainersOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/IRestorableSqlContainersOperations.cs new file mode 100644 index 000000000000..703b77b68312 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/IRestorableSqlContainersOperations.cs @@ -0,0 +1,69 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// RestorableSqlContainersOperations operations. + /// + public partial interface IRestorableSqlContainersOperations + { + /// + /// Show the event feed of all mutations done on all the Azure Cosmos + /// DB SQL containers under a specific database. This helps in + /// scenario where container was accidentally deleted. This API + /// requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + /// permission + /// + /// + /// Cosmos DB region, with spaces between words and each word + /// capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + /// + /// The resource ID of the SQL database. + /// + /// + /// The snapshot create timestamp after which snapshots need to be + /// listed. + /// + /// + /// The snapshot create timestamp before which snapshots need to be + /// listed. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, string instanceId, string restorableSqlDatabaseRid = default(string), string startTime = default(string), string endTime = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/IRestorableSqlDatabasesOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/IRestorableSqlDatabasesOperations.cs new file mode 100644 index 000000000000..9e5f0df87d0f --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/IRestorableSqlDatabasesOperations.cs @@ -0,0 +1,58 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// RestorableSqlDatabasesOperations operations. + /// + public partial interface IRestorableSqlDatabasesOperations + { + /// + /// Show the event feed of all mutations done on all the Azure Cosmos + /// DB SQL databases under the restorable account. This helps in + /// scenario where database was accidentally deleted to get the + /// deletion time. This API requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + /// permission + /// + /// + /// Cosmos DB region, with spaces between words and each word + /// capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, string instanceId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/IRestorableSqlResourcesOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/IRestorableSqlResourcesOperations.cs new file mode 100644 index 000000000000..096ec270e22a --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/IRestorableSqlResourcesOperations.cs @@ -0,0 +1,64 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// RestorableSqlResourcesOperations operations. + /// + public partial interface IRestorableSqlResourcesOperations + { + /// + /// Return a list of database and container combo that exist on the + /// account at the given timestamp and location. This helps in + /// scenarios to validate what resources exist at given timestamp and + /// location. This API requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + /// permission. + /// + /// + /// Cosmos DB region, with spaces between words and each word + /// capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + /// + /// The location where the restorable resources are located. + /// + /// + /// The timestamp when the restorable resources existed. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string location, string instanceId, string restoreLocation = default(string), string restoreTimestampInUtc = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/ISqlResourcesOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/ISqlResourcesOperations.cs index 1c70deb2f903..81ce9991bc6a 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/ISqlResourcesOperations.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/ISqlResourcesOperations.cs @@ -1133,6 +1133,40 @@ public partial interface ISqlResourcesOperations /// Task>> ListSqlRoleAssignmentsWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Retrieves continuous backup information for a container resource. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Cosmos DB database account name. + /// + /// + /// Cosmos DB database name. + /// + /// + /// Cosmos DB container name. + /// + /// + /// The name of the continuous backup restore location. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> RetrieveContinuousBackupInformationWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, ContinuousBackupRestoreLocation location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Create or update an Azure Cosmos DB SQL database /// /// @@ -1755,5 +1789,39 @@ public partial interface ISqlResourcesOperations /// Thrown when a required parameter is null /// Task BeginDeleteSqlRoleAssignmentWithHttpMessagesAsync(string roleAssignmentId, string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves continuous backup information for a container resource. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Cosmos DB database account name. + /// + /// + /// Cosmos DB database name. + /// + /// + /// Cosmos DB container name. + /// + /// + /// The name of the continuous backup restore location. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginRetrieveContinuousBackupInformationWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, ContinuousBackupRestoreLocation location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/AnalyticalStorageConfiguration.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/AnalyticalStorageConfiguration.cs new file mode 100644 index 000000000000..e2f25b399e7d --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/AnalyticalStorageConfiguration.cs @@ -0,0 +1,54 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Analytical storage specific properties. + /// + public partial class AnalyticalStorageConfiguration + { + /// + /// Initializes a new instance of the AnalyticalStorageConfiguration + /// class. + /// + public AnalyticalStorageConfiguration() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AnalyticalStorageConfiguration + /// class. + /// + /// Possible values include: 'WellDefined', + /// 'FullFidelity' + public AnalyticalStorageConfiguration(string schemaType = default(string)) + { + SchemaType = schemaType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets possible values include: 'WellDefined', 'FullFidelity' + /// + [JsonProperty(PropertyName = "schemaType")] + public string SchemaType { get; set; } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/AnalyticalStorageSchemaType.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/AnalyticalStorageSchemaType.cs new file mode 100644 index 000000000000..4ae73b6f2567 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/AnalyticalStorageSchemaType.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + + /// + /// Defines values for AnalyticalStorageSchemaType. + /// + public static class AnalyticalStorageSchemaType + { + public const string WellDefined = "WellDefined"; + public const string FullFidelity = "FullFidelity"; + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/ApiType.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/ApiType.cs new file mode 100644 index 000000000000..b263e9b9ec11 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/ApiType.cs @@ -0,0 +1,26 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + + /// + /// Defines values for ApiType. + /// + public static class ApiType + { + public const string MongoDB = "MongoDB"; + public const string Gremlin = "Gremlin"; + public const string Cassandra = "Cassandra"; + public const string Table = "Table"; + public const string Sql = "Sql"; + public const string GremlinV2 = "GremlinV2"; + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/BackupInformation.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/BackupInformation.cs new file mode 100644 index 000000000000..fd6ce1be799a --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/BackupInformation.cs @@ -0,0 +1,52 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Backup information of a resource. + /// + public partial class BackupInformation + { + /// + /// Initializes a new instance of the BackupInformation class. + /// + public BackupInformation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the BackupInformation class. + /// + /// Information about the + /// status of continuous backups. + public BackupInformation(ContinuousBackupInformation continuousBackupInformation = default(ContinuousBackupInformation)) + { + ContinuousBackupInformation = continuousBackupInformation; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets information about the status of continuous backups. + /// + [JsonProperty(PropertyName = "continuousBackupInformation")] + public ContinuousBackupInformation ContinuousBackupInformation { get; set; } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/BackupPolicy.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/BackupPolicy.cs index 867cca31c5c9..f7840d7f6c17 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/BackupPolicy.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/BackupPolicy.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.CosmosDB.Models { + using Newtonsoft.Json; using System.Linq; /// @@ -25,11 +26,28 @@ public BackupPolicy() CustomInit(); } + /// + /// Initializes a new instance of the BackupPolicy class. + /// + /// The object representing the state of + /// the migration between the backup policies. + public BackupPolicy(BackupPolicyMigrationState migrationState = default(BackupPolicyMigrationState)) + { + MigrationState = migrationState; + CustomInit(); + } /// /// An initialization method that performs custom operations like setting defaults /// partial void CustomInit(); + /// + /// Gets or sets the object representing the state of the migration + /// between the backup policies. + /// + [JsonProperty(PropertyName = "migrationState")] + public BackupPolicyMigrationState MigrationState { get; set; } + } } diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/BackupPolicyMigrationState.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/BackupPolicyMigrationState.cs new file mode 100644 index 000000000000..b063b6fc10b2 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/BackupPolicyMigrationState.cs @@ -0,0 +1,77 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The object representing the state of the migration between the backup + /// policies. + /// + public partial class BackupPolicyMigrationState + { + /// + /// Initializes a new instance of the BackupPolicyMigrationState class. + /// + public BackupPolicyMigrationState() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the BackupPolicyMigrationState class. + /// + /// Describes the status of migration between + /// backup policy types. Possible values include: 'Invalid', + /// 'InProgress', 'Completed', 'Failed' + /// Describes the target backup policy type of + /// the backup policy migration. Possible values include: 'Periodic', + /// 'Continuous' + /// Time at which the backup policy migration + /// started (ISO-8601 format). + public BackupPolicyMigrationState(string status = default(string), string targetType = default(string), System.DateTime? startTime = default(System.DateTime?)) + { + Status = status; + TargetType = targetType; + StartTime = startTime; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets describes the status of migration between backup + /// policy types. Possible values include: 'Invalid', 'InProgress', + /// 'Completed', 'Failed' + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets describes the target backup policy type of the backup + /// policy migration. Possible values include: 'Periodic', 'Continuous' + /// + [JsonProperty(PropertyName = "targetType")] + public string TargetType { get; set; } + + /// + /// Gets or sets time at which the backup policy migration started + /// (ISO-8601 format). + /// + [JsonProperty(PropertyName = "startTime")] + public System.DateTime? StartTime { get; set; } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/BackupPolicyMigrationStatus.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/BackupPolicyMigrationStatus.cs new file mode 100644 index 000000000000..c44e7638dbdb --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/BackupPolicyMigrationStatus.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + + /// + /// Defines values for BackupPolicyMigrationStatus. + /// + public static class BackupPolicyMigrationStatus + { + public const string Invalid = "Invalid"; + public const string InProgress = "InProgress"; + public const string Completed = "Completed"; + public const string Failed = "Failed"; + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/ContinuousBackupInformation.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/ContinuousBackupInformation.cs new file mode 100644 index 000000000000..d3e1d0b8cbc4 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/ContinuousBackupInformation.cs @@ -0,0 +1,54 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Information about the status of continuous backups. + /// + public partial class ContinuousBackupInformation + { + /// + /// Initializes a new instance of the ContinuousBackupInformation + /// class. + /// + public ContinuousBackupInformation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ContinuousBackupInformation + /// class. + /// + /// The latest restorable + /// timestamp for a resource. + public ContinuousBackupInformation(string latestRestorableTimestamp = default(string)) + { + LatestRestorableTimestamp = latestRestorableTimestamp; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the latest restorable timestamp for a resource. + /// + [JsonProperty(PropertyName = "latestRestorableTimestamp")] + public string LatestRestorableTimestamp { get; set; } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/ContinuousBackupRestoreLocation.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/ContinuousBackupRestoreLocation.cs new file mode 100644 index 000000000000..7025ac59194e --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/ContinuousBackupRestoreLocation.cs @@ -0,0 +1,54 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Properties of the regional restorable account. + /// + public partial class ContinuousBackupRestoreLocation + { + /// + /// Initializes a new instance of the ContinuousBackupRestoreLocation + /// class. + /// + public ContinuousBackupRestoreLocation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ContinuousBackupRestoreLocation + /// class. + /// + /// The name of the continuous backup restore + /// location. + public ContinuousBackupRestoreLocation(string location = default(string)) + { + Location = location; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the continuous backup restore location. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/ContinuousModeBackupPolicy.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/ContinuousModeBackupPolicy.cs index 0c4e775c04e5..c581ca350658 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/ContinuousModeBackupPolicy.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/ContinuousModeBackupPolicy.cs @@ -27,6 +27,16 @@ public ContinuousModeBackupPolicy() CustomInit(); } + /// + /// Initializes a new instance of the ContinuousModeBackupPolicy class. + /// + /// The object representing the state of + /// the migration between the backup policies. + public ContinuousModeBackupPolicy(BackupPolicyMigrationState migrationState = default(BackupPolicyMigrationState)) + : base(migrationState) + { + CustomInit(); + } /// /// An initialization method that performs custom operations like setting defaults diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/CreateMode.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/CreateMode.cs new file mode 100644 index 000000000000..59efcacc2735 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/CreateMode.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + + /// + /// Defines values for CreateMode. + /// + public static class CreateMode + { + public const string Default = "Default"; + public const string Restore = "Restore"; + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/CreatedByType.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/CreatedByType.cs new file mode 100644 index 000000000000..53a064c23e09 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/CreatedByType.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + + /// + /// Defines values for CreatedByType. + /// + public static class CreatedByType + { + public const string User = "User"; + public const string Application = "Application"; + public const string ManagedIdentity = "ManagedIdentity"; + public const string Key = "Key"; + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/DatabaseAccountCreateUpdateParameters.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/DatabaseAccountCreateUpdateParameters.cs index e46e5b0b74bd..7e62fd3f2ca0 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/DatabaseAccountCreateUpdateParameters.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/DatabaseAccountCreateUpdateParameters.cs @@ -85,6 +85,10 @@ public DatabaseAccountCreateUpdateParameters() /// supported only for MongoDB API. /// Flag to indicate whether to /// enable storage analytics. + /// Analytical storage + /// specific properties. + /// Enum to indicate the mode of account + /// creation. Possible values include: 'Default', 'Restore' /// The object representing the policy for /// taking backups on an account. /// The CORS policy for the Cosmos DB database @@ -95,7 +99,12 @@ public DatabaseAccountCreateUpdateParameters() /// An array that contains /// the Resource Ids for Network Acl Bypass for the Cosmos DB /// account. - public DatabaseAccountCreateUpdateParameters(IList locations, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string kind = default(string), ManagedServiceIdentity identity = default(ManagedServiceIdentity), ConsistencyPolicy consistencyPolicy = default(ConsistencyPolicy), IList ipRules = default(IList), bool? isVirtualNetworkFilterEnabled = default(bool?), bool? enableAutomaticFailover = default(bool?), IList capabilities = default(IList), IList virtualNetworkRules = default(IList), bool? enableMultipleWriteLocations = default(bool?), bool? enableCassandraConnector = default(bool?), string connectorOffer = default(string), bool? disableKeyBasedMetadataWriteAccess = default(bool?), string keyVaultKeyUri = default(string), string defaultIdentity = default(string), string publicNetworkAccess = default(string), bool? enableFreeTier = default(bool?), ApiProperties apiProperties = default(ApiProperties), bool? enableAnalyticalStorage = default(bool?), BackupPolicy backupPolicy = default(BackupPolicy), IList cors = default(IList), NetworkAclBypass? networkAclBypass = default(NetworkAclBypass?), IList networkAclBypassResourceIds = default(IList)) + /// Opt-out of local authentication and + /// ensure only MSI and AAD can be used exclusively for + /// authentication. + /// Parameters to indicate the + /// information about the restore. + public DatabaseAccountCreateUpdateParameters(IList locations, string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string kind = default(string), ManagedServiceIdentity identity = default(ManagedServiceIdentity), ConsistencyPolicy consistencyPolicy = default(ConsistencyPolicy), IList ipRules = default(IList), bool? isVirtualNetworkFilterEnabled = default(bool?), bool? enableAutomaticFailover = default(bool?), IList capabilities = default(IList), IList virtualNetworkRules = default(IList), bool? enableMultipleWriteLocations = default(bool?), bool? enableCassandraConnector = default(bool?), string connectorOffer = default(string), bool? disableKeyBasedMetadataWriteAccess = default(bool?), string keyVaultKeyUri = default(string), string defaultIdentity = default(string), string publicNetworkAccess = default(string), bool? enableFreeTier = default(bool?), ApiProperties apiProperties = default(ApiProperties), bool? enableAnalyticalStorage = default(bool?), AnalyticalStorageConfiguration analyticalStorageConfiguration = default(AnalyticalStorageConfiguration), string createMode = default(string), BackupPolicy backupPolicy = default(BackupPolicy), IList cors = default(IList), NetworkAclBypass? networkAclBypass = default(NetworkAclBypass?), IList networkAclBypassResourceIds = default(IList), bool? disableLocalAuth = default(bool?), RestoreParameters restoreParameters = default(RestoreParameters)) : base(id, name, type, location, tags) { Kind = kind; @@ -117,10 +126,14 @@ public DatabaseAccountCreateUpdateParameters() EnableFreeTier = enableFreeTier; ApiProperties = apiProperties; EnableAnalyticalStorage = enableAnalyticalStorage; + AnalyticalStorageConfiguration = analyticalStorageConfiguration; + CreateMode = createMode; BackupPolicy = backupPolicy; Cors = cors; NetworkAclBypass = networkAclBypass; NetworkAclBypassResourceIds = networkAclBypassResourceIds; + DisableLocalAuth = disableLocalAuth; + RestoreParameters = restoreParameters; CustomInit(); } /// @@ -266,6 +279,19 @@ static DatabaseAccountCreateUpdateParameters() [JsonProperty(PropertyName = "properties.enableAnalyticalStorage")] public bool? EnableAnalyticalStorage { get; set; } + /// + /// Gets or sets analytical storage specific properties. + /// + [JsonProperty(PropertyName = "properties.analyticalStorageConfiguration")] + public AnalyticalStorageConfiguration AnalyticalStorageConfiguration { get; set; } + + /// + /// Gets or sets enum to indicate the mode of account creation. + /// Possible values include: 'Default', 'Restore' + /// + [JsonProperty(PropertyName = "properties.createMode")] + public string CreateMode { get; set; } + /// /// Gets or sets the object representing the policy for taking backups /// on an account. @@ -293,6 +319,20 @@ static DatabaseAccountCreateUpdateParameters() [JsonProperty(PropertyName = "properties.networkAclBypassResourceIds")] public IList NetworkAclBypassResourceIds { get; set; } + /// + /// Gets or sets opt-out of local authentication and ensure only MSI + /// and AAD can be used exclusively for authentication. + /// + [JsonProperty(PropertyName = "properties.disableLocalAuth")] + public bool? DisableLocalAuth { get; set; } + + /// + /// Gets or sets parameters to indicate the information about the + /// restore. + /// + [JsonProperty(PropertyName = "properties.restoreParameters")] + public RestoreParameters RestoreParameters { get; set; } + /// /// The offer type for the database /// diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/DatabaseAccountGetResults.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/DatabaseAccountGetResults.cs index 279ee25e4518..35d7da5ca574 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/DatabaseAccountGetResults.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/DatabaseAccountGetResults.cs @@ -95,6 +95,14 @@ public DatabaseAccountGetResults() /// API specific properties. /// Flag to indicate whether to /// enable storage analytics. + /// Analytical storage + /// specific properties. + /// A unique identifier assigned to the + /// database account + /// Enum to indicate the mode of account + /// creation. Possible values include: 'Default', 'Restore' + /// Parameters to indicate the + /// information about the restore. /// The object representing the policy for /// taking backups on an account. /// The CORS policy for the Cosmos DB database @@ -105,7 +113,12 @@ public DatabaseAccountGetResults() /// An array that contains /// the Resource Ids for Network Acl Bypass for the Cosmos DB /// account. - public DatabaseAccountGetResults(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string kind = default(string), ManagedServiceIdentity identity = default(ManagedServiceIdentity), string provisioningState = default(string), string documentEndpoint = default(string), DatabaseAccountOfferType? databaseAccountOfferType = default(DatabaseAccountOfferType?), IList ipRules = default(IList), bool? isVirtualNetworkFilterEnabled = default(bool?), bool? enableAutomaticFailover = default(bool?), ConsistencyPolicy consistencyPolicy = default(ConsistencyPolicy), IList capabilities = default(IList), IList writeLocations = default(IList), IList readLocations = default(IList), IList locations = default(IList), IList failoverPolicies = default(IList), IList virtualNetworkRules = default(IList), IList privateEndpointConnections = default(IList), bool? enableMultipleWriteLocations = default(bool?), bool? enableCassandraConnector = default(bool?), string connectorOffer = default(string), bool? disableKeyBasedMetadataWriteAccess = default(bool?), string keyVaultKeyUri = default(string), string defaultIdentity = default(string), string publicNetworkAccess = default(string), bool? enableFreeTier = default(bool?), ApiProperties apiProperties = default(ApiProperties), bool? enableAnalyticalStorage = default(bool?), BackupPolicy backupPolicy = default(BackupPolicy), IList cors = default(IList), NetworkAclBypass? networkAclBypass = default(NetworkAclBypass?), IList networkAclBypassResourceIds = default(IList)) + /// Opt-out of local authentication and + /// ensure only MSI and AAD can be used exclusively for + /// authentication. + /// The system meta data relating to this + /// resource. + public DatabaseAccountGetResults(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), string kind = default(string), ManagedServiceIdentity identity = default(ManagedServiceIdentity), string provisioningState = default(string), string documentEndpoint = default(string), DatabaseAccountOfferType? databaseAccountOfferType = default(DatabaseAccountOfferType?), IList ipRules = default(IList), bool? isVirtualNetworkFilterEnabled = default(bool?), bool? enableAutomaticFailover = default(bool?), ConsistencyPolicy consistencyPolicy = default(ConsistencyPolicy), IList capabilities = default(IList), IList writeLocations = default(IList), IList readLocations = default(IList), IList locations = default(IList), IList failoverPolicies = default(IList), IList virtualNetworkRules = default(IList), IList privateEndpointConnections = default(IList), bool? enableMultipleWriteLocations = default(bool?), bool? enableCassandraConnector = default(bool?), string connectorOffer = default(string), bool? disableKeyBasedMetadataWriteAccess = default(bool?), string keyVaultKeyUri = default(string), string defaultIdentity = default(string), string publicNetworkAccess = default(string), bool? enableFreeTier = default(bool?), ApiProperties apiProperties = default(ApiProperties), bool? enableAnalyticalStorage = default(bool?), AnalyticalStorageConfiguration analyticalStorageConfiguration = default(AnalyticalStorageConfiguration), string instanceId = default(string), string createMode = default(string), RestoreParameters restoreParameters = default(RestoreParameters), BackupPolicy backupPolicy = default(BackupPolicy), IList cors = default(IList), NetworkAclBypass? networkAclBypass = default(NetworkAclBypass?), IList networkAclBypassResourceIds = default(IList), bool? disableLocalAuth = default(bool?), SystemData systemData = default(SystemData)) : base(id, name, type, location, tags) { Kind = kind; @@ -134,10 +147,16 @@ public DatabaseAccountGetResults() EnableFreeTier = enableFreeTier; ApiProperties = apiProperties; EnableAnalyticalStorage = enableAnalyticalStorage; + AnalyticalStorageConfiguration = analyticalStorageConfiguration; + InstanceId = instanceId; + CreateMode = createMode; + RestoreParameters = restoreParameters; BackupPolicy = backupPolicy; Cors = cors; NetworkAclBypass = networkAclBypass; NetworkAclBypassResourceIds = networkAclBypassResourceIds; + DisableLocalAuth = disableLocalAuth; + SystemData = systemData; CustomInit(); } @@ -322,6 +341,32 @@ public DatabaseAccountGetResults() [JsonProperty(PropertyName = "properties.enableAnalyticalStorage")] public bool? EnableAnalyticalStorage { get; set; } + /// + /// Gets or sets analytical storage specific properties. + /// + [JsonProperty(PropertyName = "properties.analyticalStorageConfiguration")] + public AnalyticalStorageConfiguration AnalyticalStorageConfiguration { get; set; } + + /// + /// Gets a unique identifier assigned to the database account + /// + [JsonProperty(PropertyName = "properties.instanceId")] + public string InstanceId { get; private set; } + + /// + /// Gets or sets enum to indicate the mode of account creation. + /// Possible values include: 'Default', 'Restore' + /// + [JsonProperty(PropertyName = "properties.createMode")] + public string CreateMode { get; set; } + + /// + /// Gets or sets parameters to indicate the information about the + /// restore. + /// + [JsonProperty(PropertyName = "properties.restoreParameters")] + public RestoreParameters RestoreParameters { get; set; } + /// /// Gets or sets the object representing the policy for taking backups /// on an account. @@ -349,6 +394,19 @@ public DatabaseAccountGetResults() [JsonProperty(PropertyName = "properties.networkAclBypassResourceIds")] public IList NetworkAclBypassResourceIds { get; set; } + /// + /// Gets or sets opt-out of local authentication and ensure only MSI + /// and AAD can be used exclusively for authentication. + /// + [JsonProperty(PropertyName = "properties.disableLocalAuth")] + public bool? DisableLocalAuth { get; set; } + + /// + /// Gets the system meta data relating to this resource. + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/DatabaseAccountUpdateParameters.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/DatabaseAccountUpdateParameters.cs index 024a4c9e8ed0..b105d623d6b1 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/DatabaseAccountUpdateParameters.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/DatabaseAccountUpdateParameters.cs @@ -78,6 +78,8 @@ public DatabaseAccountUpdateParameters() /// supported only for MongoDB API. /// Flag to indicate whether to /// enable storage analytics. + /// Analytical storage + /// specific properties. /// The object representing the policy for /// taking backups on an account. /// The CORS policy for the Cosmos DB database @@ -88,7 +90,10 @@ public DatabaseAccountUpdateParameters() /// An array that contains /// the Resource Ids for Network Acl Bypass for the Cosmos DB /// account. - public DatabaseAccountUpdateParameters(IDictionary tags = default(IDictionary), string location = default(string), ManagedServiceIdentity identity = default(ManagedServiceIdentity), ConsistencyPolicy consistencyPolicy = default(ConsistencyPolicy), IList locations = default(IList), IList ipRules = default(IList), bool? isVirtualNetworkFilterEnabled = default(bool?), bool? enableAutomaticFailover = default(bool?), IList capabilities = default(IList), IList virtualNetworkRules = default(IList), bool? enableMultipleWriteLocations = default(bool?), bool? enableCassandraConnector = default(bool?), string connectorOffer = default(string), bool? disableKeyBasedMetadataWriteAccess = default(bool?), string keyVaultKeyUri = default(string), string defaultIdentity = default(string), string publicNetworkAccess = default(string), bool? enableFreeTier = default(bool?), ApiProperties apiProperties = default(ApiProperties), bool? enableAnalyticalStorage = default(bool?), BackupPolicy backupPolicy = default(BackupPolicy), IList cors = default(IList), NetworkAclBypass? networkAclBypass = default(NetworkAclBypass?), IList networkAclBypassResourceIds = default(IList)) + /// Opt-out of local authentication and + /// ensure only MSI and AAD can be used exclusively for + /// authentication. + public DatabaseAccountUpdateParameters(IDictionary tags = default(IDictionary), string location = default(string), ManagedServiceIdentity identity = default(ManagedServiceIdentity), ConsistencyPolicy consistencyPolicy = default(ConsistencyPolicy), IList locations = default(IList), IList ipRules = default(IList), bool? isVirtualNetworkFilterEnabled = default(bool?), bool? enableAutomaticFailover = default(bool?), IList capabilities = default(IList), IList virtualNetworkRules = default(IList), bool? enableMultipleWriteLocations = default(bool?), bool? enableCassandraConnector = default(bool?), string connectorOffer = default(string), bool? disableKeyBasedMetadataWriteAccess = default(bool?), string keyVaultKeyUri = default(string), string defaultIdentity = default(string), string publicNetworkAccess = default(string), bool? enableFreeTier = default(bool?), ApiProperties apiProperties = default(ApiProperties), bool? enableAnalyticalStorage = default(bool?), AnalyticalStorageConfiguration analyticalStorageConfiguration = default(AnalyticalStorageConfiguration), BackupPolicy backupPolicy = default(BackupPolicy), IList cors = default(IList), NetworkAclBypass? networkAclBypass = default(NetworkAclBypass?), IList networkAclBypassResourceIds = default(IList), bool? disableLocalAuth = default(bool?)) { Tags = tags; Location = location; @@ -110,10 +115,12 @@ public DatabaseAccountUpdateParameters() EnableFreeTier = enableFreeTier; ApiProperties = apiProperties; EnableAnalyticalStorage = enableAnalyticalStorage; + AnalyticalStorageConfiguration = analyticalStorageConfiguration; BackupPolicy = backupPolicy; Cors = cors; NetworkAclBypass = networkAclBypass; NetworkAclBypassResourceIds = networkAclBypassResourceIds; + DisableLocalAuth = disableLocalAuth; CustomInit(); } @@ -256,6 +263,12 @@ public DatabaseAccountUpdateParameters() [JsonProperty(PropertyName = "properties.enableAnalyticalStorage")] public bool? EnableAnalyticalStorage { get; set; } + /// + /// Gets or sets analytical storage specific properties. + /// + [JsonProperty(PropertyName = "properties.analyticalStorageConfiguration")] + public AnalyticalStorageConfiguration AnalyticalStorageConfiguration { get; set; } + /// /// Gets or sets the object representing the policy for taking backups /// on an account. @@ -283,6 +296,13 @@ public DatabaseAccountUpdateParameters() [JsonProperty(PropertyName = "properties.networkAclBypassResourceIds")] public IList NetworkAclBypassResourceIds { get; set; } + /// + /// Gets or sets opt-out of local authentication and ensure only MSI + /// and AAD can be used exclusively for authentication. + /// + [JsonProperty(PropertyName = "properties.disableLocalAuth")] + public bool? DisableLocalAuth { get; set; } + /// /// Validate the object. /// diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/DatabaseRestoreResource.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/DatabaseRestoreResource.cs new file mode 100644 index 000000000000..1a34d450130d --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/DatabaseRestoreResource.cs @@ -0,0 +1,63 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Specific Databases to restore. + /// + public partial class DatabaseRestoreResource + { + /// + /// Initializes a new instance of the DatabaseRestoreResource class. + /// + public DatabaseRestoreResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DatabaseRestoreResource class. + /// + /// The name of the database available for + /// restore. + /// The names of the collections + /// available for restore. + public DatabaseRestoreResource(string databaseName = default(string), IList collectionNames = default(IList)) + { + DatabaseName = databaseName; + CollectionNames = collectionNames; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the database available for restore. + /// + [JsonProperty(PropertyName = "databaseName")] + public string DatabaseName { get; set; } + + /// + /// Gets or sets the names of the collections available for restore. + /// + [JsonProperty(PropertyName = "collectionNames")] + public IList CollectionNames { get; set; } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/OperationType.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/OperationType.cs new file mode 100644 index 000000000000..8fd9dcaeff9b --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/OperationType.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + + /// + /// Defines values for OperationType. + /// + public static class OperationType + { + public const string Create = "Create"; + public const string Replace = "Replace"; + public const string Delete = "Delete"; + public const string SystemOperation = "SystemOperation"; + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/PeriodicModeBackupPolicy.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/PeriodicModeBackupPolicy.cs index 5415b93fbf75..348975c8a669 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/PeriodicModeBackupPolicy.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/PeriodicModeBackupPolicy.cs @@ -30,9 +30,12 @@ public PeriodicModeBackupPolicy() /// /// Initializes a new instance of the PeriodicModeBackupPolicy class. /// + /// The object representing the state of + /// the migration between the backup policies. /// Configuration values for /// periodic mode backup - public PeriodicModeBackupPolicy(PeriodicModeProperties periodicModeProperties = default(PeriodicModeProperties)) + public PeriodicModeBackupPolicy(BackupPolicyMigrationState migrationState = default(BackupPolicyMigrationState), PeriodicModeProperties periodicModeProperties = default(PeriodicModeProperties)) + : base(migrationState) { PeriodicModeProperties = periodicModeProperties; CustomInit(); diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableDatabaseAccountGetResult.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableDatabaseAccountGetResult.cs new file mode 100644 index 000000000000..6b06cc51ff4d --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableDatabaseAccountGetResult.cs @@ -0,0 +1,136 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A Azure Cosmos DB restorable database account. + /// + [Rest.Serialization.JsonTransformation] + public partial class RestorableDatabaseAccountGetResult + { + /// + /// Initializes a new instance of the + /// RestorableDatabaseAccountGetResult class. + /// + public RestorableDatabaseAccountGetResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// RestorableDatabaseAccountGetResult class. + /// + /// The name of the global database + /// account + /// The creation time of the restorable + /// database account (ISO-8601 format). + /// The time at which the restorable + /// database account has been deleted (ISO-8601 format). + /// The API type of the restorable database + /// account. Possible values include: 'MongoDB', 'Gremlin', + /// 'Cassandra', 'Table', 'Sql', 'GremlinV2' + /// List of regions where the of the + /// database account can be restored from. + /// The unique resource identifier of the ARM + /// resource. + /// The name of the ARM resource. + /// The type of Azure resource. + /// The location of the resource group to which + /// the resource belongs. + public RestorableDatabaseAccountGetResult(string accountName = default(string), System.DateTime? creationTime = default(System.DateTime?), System.DateTime? deletionTime = default(System.DateTime?), string apiType = default(string), IList restorableLocations = default(IList), string id = default(string), string name = default(string), string type = default(string), string location = default(string)) + { + AccountName = accountName; + CreationTime = creationTime; + DeletionTime = deletionTime; + ApiType = apiType; + RestorableLocations = restorableLocations; + Id = id; + Name = name; + Type = type; + Location = location; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the global database account + /// + [JsonProperty(PropertyName = "properties.accountName")] + public string AccountName { get; set; } + + /// + /// Gets or sets the creation time of the restorable database account + /// (ISO-8601 format). + /// + [JsonProperty(PropertyName = "properties.creationTime")] + public System.DateTime? CreationTime { get; set; } + + /// + /// Gets or sets the time at which the restorable database account has + /// been deleted (ISO-8601 format). + /// + [JsonProperty(PropertyName = "properties.deletionTime")] + public System.DateTime? DeletionTime { get; set; } + + /// + /// Gets the API type of the restorable database account. Possible + /// values include: 'MongoDB', 'Gremlin', 'Cassandra', 'Table', 'Sql', + /// 'GremlinV2' + /// + [JsonProperty(PropertyName = "properties.apiType")] + public string ApiType { get; private set; } + + /// + /// Gets list of regions where the of the database account can be + /// restored from. + /// + [JsonProperty(PropertyName = "properties.restorableLocations")] + public IList RestorableLocations { get; private set; } + + /// + /// Gets the unique resource identifier of the ARM resource. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the name of the ARM resource. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the type of Azure resource. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets or sets the location of the resource group to which the + /// resource belongs. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableLocationResource.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableLocationResource.cs new file mode 100644 index 000000000000..0c942ae55b61 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableLocationResource.cs @@ -0,0 +1,82 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Properties of the regional restorable account. + /// + public partial class RestorableLocationResource + { + /// + /// Initializes a new instance of the RestorableLocationResource class. + /// + public RestorableLocationResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the RestorableLocationResource class. + /// + /// The location of the regional restorable + /// account. + /// The instance id of + /// the regional restorable account. + /// The creation time of the regional + /// restorable database account (ISO-8601 format). + /// The time at which the regional + /// restorable database account has been deleted (ISO-8601 + /// format). + public RestorableLocationResource(string locationName = default(string), string regionalDatabaseAccountInstanceId = default(string), System.DateTime? creationTime = default(System.DateTime?), System.DateTime? deletionTime = default(System.DateTime?)) + { + LocationName = locationName; + RegionalDatabaseAccountInstanceId = regionalDatabaseAccountInstanceId; + CreationTime = creationTime; + DeletionTime = deletionTime; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the location of the regional restorable account. + /// + [JsonProperty(PropertyName = "locationName")] + public string LocationName { get; private set; } + + /// + /// Gets the instance id of the regional restorable account. + /// + [JsonProperty(PropertyName = "regionalDatabaseAccountInstanceId")] + public string RegionalDatabaseAccountInstanceId { get; private set; } + + /// + /// Gets the creation time of the regional restorable database account + /// (ISO-8601 format). + /// + [JsonProperty(PropertyName = "creationTime")] + public System.DateTime? CreationTime { get; private set; } + + /// + /// Gets the time at which the regional restorable database account has + /// been deleted (ISO-8601 format). + /// + [JsonProperty(PropertyName = "deletionTime")] + public System.DateTime? DeletionTime { get; private set; } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableMongodbCollectionGetResult.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableMongodbCollectionGetResult.cs new file mode 100644 index 000000000000..4b39c95048b5 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableMongodbCollectionGetResult.cs @@ -0,0 +1,83 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// An Azure Cosmos DB MongoDB collection event + /// + [Rest.Serialization.JsonTransformation] + public partial class RestorableMongodbCollectionGetResult + { + /// + /// Initializes a new instance of the + /// RestorableMongodbCollectionGetResult class. + /// + public RestorableMongodbCollectionGetResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// RestorableMongodbCollectionGetResult class. + /// + /// The resource of an Azure Cosmos DB MongoDB + /// collection event + /// The unique resource Identifier of the ARM + /// resource. + /// The name of the ARM resource. + /// The type of Azure resource. + public RestorableMongodbCollectionGetResult(RestorableMongodbCollectionPropertiesResource resource = default(RestorableMongodbCollectionPropertiesResource), string id = default(string), string name = default(string), string type = default(string)) + { + Resource = resource; + Id = id; + Name = name; + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the resource of an Azure Cosmos DB MongoDB collection + /// event + /// + [JsonProperty(PropertyName = "properties.resource")] + public RestorableMongodbCollectionPropertiesResource Resource { get; set; } + + /// + /// Gets the unique resource Identifier of the ARM resource. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the name of the ARM resource. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the type of Azure resource. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableMongodbCollectionPropertiesResource.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableMongodbCollectionPropertiesResource.cs new file mode 100644 index 000000000000..463b850ec05e --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableMongodbCollectionPropertiesResource.cs @@ -0,0 +1,91 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The resource of an Azure Cosmos DB MongoDB collection event + /// + public partial class RestorableMongodbCollectionPropertiesResource + { + /// + /// Initializes a new instance of the + /// RestorableMongodbCollectionPropertiesResource class. + /// + public RestorableMongodbCollectionPropertiesResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// RestorableMongodbCollectionPropertiesResource class. + /// + /// A system generated property. A unique + /// identifier. + /// The operation type of this collection + /// event. Possible values include: 'Create', 'Replace', 'Delete', + /// 'SystemOperation' + /// The time when this collection event + /// happened. + /// The name of this MongoDB collection. + /// The resource ID of this MongoDB + /// collection. + public RestorableMongodbCollectionPropertiesResource(string _rid = default(string), string operationType = default(string), string eventTimestamp = default(string), string ownerId = default(string), string ownerResourceId = default(string)) + { + this._rid = _rid; + OperationType = operationType; + EventTimestamp = eventTimestamp; + OwnerId = ownerId; + OwnerResourceId = ownerResourceId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets a system generated property. A unique identifier. + /// + [JsonProperty(PropertyName = "_rid")] + public string _rid { get; private set; } + + /// + /// Gets the operation type of this collection event. Possible values + /// include: 'Create', 'Replace', 'Delete', 'SystemOperation' + /// + [JsonProperty(PropertyName = "operationType")] + public string OperationType { get; private set; } + + /// + /// Gets the time when this collection event happened. + /// + [JsonProperty(PropertyName = "eventTimestamp")] + public string EventTimestamp { get; private set; } + + /// + /// Gets the name of this MongoDB collection. + /// + [JsonProperty(PropertyName = "ownerId")] + public string OwnerId { get; private set; } + + /// + /// Gets the resource ID of this MongoDB collection. + /// + [JsonProperty(PropertyName = "ownerResourceId")] + public string OwnerResourceId { get; private set; } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableMongodbDatabaseGetResult.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableMongodbDatabaseGetResult.cs new file mode 100644 index 000000000000..b002f0197c38 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableMongodbDatabaseGetResult.cs @@ -0,0 +1,83 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// An Azure Cosmos DB MongoDB database event + /// + [Rest.Serialization.JsonTransformation] + public partial class RestorableMongodbDatabaseGetResult + { + /// + /// Initializes a new instance of the + /// RestorableMongodbDatabaseGetResult class. + /// + public RestorableMongodbDatabaseGetResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// RestorableMongodbDatabaseGetResult class. + /// + /// The resource of an Azure Cosmos DB MongoDB + /// database event + /// The unique resource Identifier of the ARM + /// resource. + /// The name of the ARM resource. + /// The type of Azure resource. + public RestorableMongodbDatabaseGetResult(RestorableMongodbDatabasePropertiesResource resource = default(RestorableMongodbDatabasePropertiesResource), string id = default(string), string name = default(string), string type = default(string)) + { + Resource = resource; + Id = id; + Name = name; + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the resource of an Azure Cosmos DB MongoDB database + /// event + /// + [JsonProperty(PropertyName = "properties.resource")] + public RestorableMongodbDatabasePropertiesResource Resource { get; set; } + + /// + /// Gets the unique resource Identifier of the ARM resource. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the name of the ARM resource. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the type of Azure resource. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableMongodbDatabasePropertiesResource.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableMongodbDatabasePropertiesResource.cs new file mode 100644 index 000000000000..7c06c8643d71 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableMongodbDatabasePropertiesResource.cs @@ -0,0 +1,91 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The resource of an Azure Cosmos DB MongoDB database event + /// + public partial class RestorableMongodbDatabasePropertiesResource + { + /// + /// Initializes a new instance of the + /// RestorableMongodbDatabasePropertiesResource class. + /// + public RestorableMongodbDatabasePropertiesResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// RestorableMongodbDatabasePropertiesResource class. + /// + /// A system generated property. A unique + /// identifier. + /// The operation type of this database + /// event. Possible values include: 'Create', 'Replace', 'Delete', + /// 'SystemOperation' + /// The time when this database event + /// happened. + /// The name of this MongoDB database. + /// The resource ID of this MongoDB + /// database. + public RestorableMongodbDatabasePropertiesResource(string _rid = default(string), string operationType = default(string), string eventTimestamp = default(string), string ownerId = default(string), string ownerResourceId = default(string)) + { + this._rid = _rid; + OperationType = operationType; + EventTimestamp = eventTimestamp; + OwnerId = ownerId; + OwnerResourceId = ownerResourceId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets a system generated property. A unique identifier. + /// + [JsonProperty(PropertyName = "_rid")] + public string _rid { get; private set; } + + /// + /// Gets the operation type of this database event. Possible values + /// include: 'Create', 'Replace', 'Delete', 'SystemOperation' + /// + [JsonProperty(PropertyName = "operationType")] + public string OperationType { get; private set; } + + /// + /// Gets the time when this database event happened. + /// + [JsonProperty(PropertyName = "eventTimestamp")] + public string EventTimestamp { get; private set; } + + /// + /// Gets the name of this MongoDB database. + /// + [JsonProperty(PropertyName = "ownerId")] + public string OwnerId { get; private set; } + + /// + /// Gets the resource ID of this MongoDB database. + /// + [JsonProperty(PropertyName = "ownerResourceId")] + public string OwnerResourceId { get; private set; } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableSqlContainerGetResult.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableSqlContainerGetResult.cs new file mode 100644 index 000000000000..fa5bf9dc46d2 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableSqlContainerGetResult.cs @@ -0,0 +1,95 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// An Azure Cosmos DB SQL container event + /// + [Rest.Serialization.JsonTransformation] + public partial class RestorableSqlContainerGetResult + { + /// + /// Initializes a new instance of the RestorableSqlContainerGetResult + /// class. + /// + public RestorableSqlContainerGetResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the RestorableSqlContainerGetResult + /// class. + /// + /// The resource of an Azure Cosmos DB SQL + /// container event + /// The unique resource Identifier of the ARM + /// resource. + /// The name of the ARM resource. + /// The type of Azure resource. + public RestorableSqlContainerGetResult(RestorableSqlContainerPropertiesResource resource = default(RestorableSqlContainerPropertiesResource), string id = default(string), string name = default(string), string type = default(string)) + { + Resource = resource; + Id = id; + Name = name; + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the resource of an Azure Cosmos DB SQL container event + /// + [JsonProperty(PropertyName = "properties.resource")] + public RestorableSqlContainerPropertiesResource Resource { get; set; } + + /// + /// Gets the unique resource Identifier of the ARM resource. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the name of the ARM resource. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the type of Azure resource. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Resource != null) + { + Resource.Validate(); + } + } + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableSqlContainerPropertiesResource.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableSqlContainerPropertiesResource.cs new file mode 100644 index 000000000000..511fea7331af --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableSqlContainerPropertiesResource.cs @@ -0,0 +1,113 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The resource of an Azure Cosmos DB SQL container event + /// + public partial class RestorableSqlContainerPropertiesResource + { + /// + /// Initializes a new instance of the + /// RestorableSqlContainerPropertiesResource class. + /// + public RestorableSqlContainerPropertiesResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// RestorableSqlContainerPropertiesResource class. + /// + /// A system generated property. A unique + /// identifier. + /// The operation type of this container + /// event. Possible values include: 'Create', 'Replace', 'Delete', + /// 'SystemOperation' + /// The when this container event + /// happened. + /// The name of this SQL container. + /// The resource ID of this SQL + /// container. + /// Cosmos DB SQL container resource + /// object + public RestorableSqlContainerPropertiesResource(string _rid = default(string), string operationType = default(string), string eventTimestamp = default(string), string ownerId = default(string), string ownerResourceId = default(string), RestorableSqlContainerPropertiesResourceContainer container = default(RestorableSqlContainerPropertiesResourceContainer)) + { + this._rid = _rid; + OperationType = operationType; + EventTimestamp = eventTimestamp; + OwnerId = ownerId; + OwnerResourceId = ownerResourceId; + Container = container; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets a system generated property. A unique identifier. + /// + [JsonProperty(PropertyName = "_rid")] + public string _rid { get; private set; } + + /// + /// Gets the operation type of this container event. Possible values + /// include: 'Create', 'Replace', 'Delete', 'SystemOperation' + /// + [JsonProperty(PropertyName = "operationType")] + public string OperationType { get; private set; } + + /// + /// Gets the when this container event happened. + /// + [JsonProperty(PropertyName = "eventTimestamp")] + public string EventTimestamp { get; private set; } + + /// + /// Gets the name of this SQL container. + /// + [JsonProperty(PropertyName = "ownerId")] + public string OwnerId { get; private set; } + + /// + /// Gets the resource ID of this SQL container. + /// + [JsonProperty(PropertyName = "ownerResourceId")] + public string OwnerResourceId { get; private set; } + + /// + /// Gets or sets cosmos DB SQL container resource object + /// + [JsonProperty(PropertyName = "container")] + public RestorableSqlContainerPropertiesResourceContainer Container { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Container != null) + { + Container.Validate(); + } + } + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableSqlContainerPropertiesResourceContainer.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableSqlContainerPropertiesResourceContainer.cs new file mode 100644 index 000000000000..57f76559317f --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableSqlContainerPropertiesResourceContainer.cs @@ -0,0 +1,169 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Cosmos DB SQL container resource object + /// + public partial class RestorableSqlContainerPropertiesResourceContainer + { + /// + /// Initializes a new instance of the + /// RestorableSqlContainerPropertiesResourceContainer class. + /// + public RestorableSqlContainerPropertiesResourceContainer() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// RestorableSqlContainerPropertiesResourceContainer class. + /// + /// Name of the Cosmos DB SQL container + /// The configuration of the indexing + /// policy. By default, the indexing is automatic for all document + /// paths within the container + /// The configuration of the partition key + /// to be used for partitioning data into multiple partitions + /// Default time to live + /// The unique key policy configuration + /// for specifying uniqueness constraints on documents in the + /// collection in the Azure Cosmos DB service. + /// The conflict resolution + /// policy for the container. + /// Analytical TTL. + /// A system generated property. A unique + /// identifier. + /// A system generated property that denotes the last + /// updated timestamp of the resource. + /// A system generated property representing the + /// resource etag required for optimistic concurrency control. + /// A system generated property that specifies the + /// addressable path of the container resource. + public RestorableSqlContainerPropertiesResourceContainer(string id, IndexingPolicy indexingPolicy = default(IndexingPolicy), ContainerPartitionKey partitionKey = default(ContainerPartitionKey), int? defaultTtl = default(int?), UniqueKeyPolicy uniqueKeyPolicy = default(UniqueKeyPolicy), ConflictResolutionPolicy conflictResolutionPolicy = default(ConflictResolutionPolicy), long? analyticalStorageTtl = default(long?), string _rid = default(string), double? _ts = default(double?), string _etag = default(string), string _self = default(string)) + { + Id = id; + IndexingPolicy = indexingPolicy; + PartitionKey = partitionKey; + DefaultTtl = defaultTtl; + UniqueKeyPolicy = uniqueKeyPolicy; + ConflictResolutionPolicy = conflictResolutionPolicy; + AnalyticalStorageTtl = analyticalStorageTtl; + this._rid = _rid; + this._ts = _ts; + this._etag = _etag; + this._self = _self; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets name of the Cosmos DB SQL container + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Gets or sets the configuration of the indexing policy. By default, + /// the indexing is automatic for all document paths within the + /// container + /// + [JsonProperty(PropertyName = "indexingPolicy")] + public IndexingPolicy IndexingPolicy { get; set; } + + /// + /// Gets or sets the configuration of the partition key to be used for + /// partitioning data into multiple partitions + /// + [JsonProperty(PropertyName = "partitionKey")] + public ContainerPartitionKey PartitionKey { get; set; } + + /// + /// Gets or sets default time to live + /// + [JsonProperty(PropertyName = "defaultTtl")] + public int? DefaultTtl { get; set; } + + /// + /// Gets or sets the unique key policy configuration for specifying + /// uniqueness constraints on documents in the collection in the Azure + /// Cosmos DB service. + /// + [JsonProperty(PropertyName = "uniqueKeyPolicy")] + public UniqueKeyPolicy UniqueKeyPolicy { get; set; } + + /// + /// Gets or sets the conflict resolution policy for the container. + /// + [JsonProperty(PropertyName = "conflictResolutionPolicy")] + public ConflictResolutionPolicy ConflictResolutionPolicy { get; set; } + + /// + /// Gets or sets analytical TTL. + /// + [JsonProperty(PropertyName = "analyticalStorageTtl")] + public long? AnalyticalStorageTtl { get; set; } + + /// + /// Gets a system generated property. A unique identifier. + /// + [JsonProperty(PropertyName = "_rid")] + public string _rid { get; private set; } + + /// + /// Gets a system generated property that denotes the last updated + /// timestamp of the resource. + /// + [JsonProperty(PropertyName = "_ts")] + public double? _ts { get; private set; } + + /// + /// Gets a system generated property representing the resource etag + /// required for optimistic concurrency control. + /// + [JsonProperty(PropertyName = "_etag")] + public string _etag { get; private set; } + + /// + /// Gets a system generated property that specifies the addressable + /// path of the container resource. + /// + [JsonProperty(PropertyName = "_self")] + public string _self { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Id == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Id"); + } + if (PartitionKey != null) + { + PartitionKey.Validate(); + } + } + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableSqlDatabaseGetResult.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableSqlDatabaseGetResult.cs new file mode 100644 index 000000000000..b9b9a715c381 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableSqlDatabaseGetResult.cs @@ -0,0 +1,95 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// An Azure Cosmos DB SQL database event + /// + [Rest.Serialization.JsonTransformation] + public partial class RestorableSqlDatabaseGetResult + { + /// + /// Initializes a new instance of the RestorableSqlDatabaseGetResult + /// class. + /// + public RestorableSqlDatabaseGetResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the RestorableSqlDatabaseGetResult + /// class. + /// + /// The resource of an Azure Cosmos DB SQL + /// database event + /// The unique resource Identifier of the ARM + /// resource. + /// The name of the ARM resource. + /// The type of Azure resource. + public RestorableSqlDatabaseGetResult(RestorableSqlDatabasePropertiesResource resource = default(RestorableSqlDatabasePropertiesResource), string id = default(string), string name = default(string), string type = default(string)) + { + Resource = resource; + Id = id; + Name = name; + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the resource of an Azure Cosmos DB SQL database event + /// + [JsonProperty(PropertyName = "properties.resource")] + public RestorableSqlDatabasePropertiesResource Resource { get; set; } + + /// + /// Gets the unique resource Identifier of the ARM resource. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the name of the ARM resource. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the type of Azure resource. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Resource != null) + { + Resource.Validate(); + } + } + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableSqlDatabasePropertiesResource.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableSqlDatabasePropertiesResource.cs new file mode 100644 index 000000000000..ba9bbcbdb6f9 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableSqlDatabasePropertiesResource.cs @@ -0,0 +1,113 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The resource of an Azure Cosmos DB SQL database event + /// + public partial class RestorableSqlDatabasePropertiesResource + { + /// + /// Initializes a new instance of the + /// RestorableSqlDatabasePropertiesResource class. + /// + public RestorableSqlDatabasePropertiesResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// RestorableSqlDatabasePropertiesResource class. + /// + /// A system generated property. A unique + /// identifier. + /// The operation type of this database + /// event. Possible values include: 'Create', 'Replace', 'Delete', + /// 'SystemOperation' + /// The time when this database event + /// happened. + /// The name of the SQL database. + /// The resource ID of the SQL + /// database. + /// Cosmos DB SQL database resource + /// object + public RestorableSqlDatabasePropertiesResource(string _rid = default(string), string operationType = default(string), string eventTimestamp = default(string), string ownerId = default(string), string ownerResourceId = default(string), RestorableSqlDatabasePropertiesResourceDatabase database = default(RestorableSqlDatabasePropertiesResourceDatabase)) + { + this._rid = _rid; + OperationType = operationType; + EventTimestamp = eventTimestamp; + OwnerId = ownerId; + OwnerResourceId = ownerResourceId; + Database = database; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets a system generated property. A unique identifier. + /// + [JsonProperty(PropertyName = "_rid")] + public string _rid { get; private set; } + + /// + /// Gets the operation type of this database event. Possible values + /// include: 'Create', 'Replace', 'Delete', 'SystemOperation' + /// + [JsonProperty(PropertyName = "operationType")] + public string OperationType { get; private set; } + + /// + /// Gets the time when this database event happened. + /// + [JsonProperty(PropertyName = "eventTimestamp")] + public string EventTimestamp { get; private set; } + + /// + /// Gets the name of the SQL database. + /// + [JsonProperty(PropertyName = "ownerId")] + public string OwnerId { get; private set; } + + /// + /// Gets the resource ID of the SQL database. + /// + [JsonProperty(PropertyName = "ownerResourceId")] + public string OwnerResourceId { get; private set; } + + /// + /// Gets or sets cosmos DB SQL database resource object + /// + [JsonProperty(PropertyName = "database")] + public RestorableSqlDatabasePropertiesResourceDatabase Database { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Database != null) + { + Database.Validate(); + } + } + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableSqlDatabasePropertiesResourceDatabase.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableSqlDatabasePropertiesResourceDatabase.cs new file mode 100644 index 000000000000..d17a30ea4a3e --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestorableSqlDatabasePropertiesResourceDatabase.cs @@ -0,0 +1,126 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Cosmos DB SQL database resource object + /// + public partial class RestorableSqlDatabasePropertiesResourceDatabase + { + /// + /// Initializes a new instance of the + /// RestorableSqlDatabasePropertiesResourceDatabase class. + /// + public RestorableSqlDatabasePropertiesResourceDatabase() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// RestorableSqlDatabasePropertiesResourceDatabase class. + /// + /// Name of the Cosmos DB SQL database + /// A system generated property. A unique + /// identifier. + /// A system generated property that denotes the last + /// updated timestamp of the resource. + /// A system generated property representing the + /// resource etag required for optimistic concurrency control. + /// A system generated property that specified the + /// addressable path of the collections resource. + /// A system generated property that specifies the + /// addressable path of the users resource. + /// A system generated property that specifies the + /// addressable path of the database resource. + public RestorableSqlDatabasePropertiesResourceDatabase(string id, string _rid = default(string), double? _ts = default(double?), string _etag = default(string), string _colls = default(string), string _users = default(string), string _self = default(string)) + { + Id = id; + this._rid = _rid; + this._ts = _ts; + this._etag = _etag; + this._colls = _colls; + this._users = _users; + this._self = _self; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets name of the Cosmos DB SQL database + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Gets a system generated property. A unique identifier. + /// + [JsonProperty(PropertyName = "_rid")] + public string _rid { get; private set; } + + /// + /// Gets a system generated property that denotes the last updated + /// timestamp of the resource. + /// + [JsonProperty(PropertyName = "_ts")] + public double? _ts { get; private set; } + + /// + /// Gets a system generated property representing the resource etag + /// required for optimistic concurrency control. + /// + [JsonProperty(PropertyName = "_etag")] + public string _etag { get; private set; } + + /// + /// Gets a system generated property that specified the addressable + /// path of the collections resource. + /// + [JsonProperty(PropertyName = "_colls")] + public string _colls { get; private set; } + + /// + /// Gets a system generated property that specifies the addressable + /// path of the users resource. + /// + [JsonProperty(PropertyName = "_users")] + public string _users { get; private set; } + + /// + /// Gets a system generated property that specifies the addressable + /// path of the database resource. + /// + [JsonProperty(PropertyName = "_self")] + public string _self { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Id == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Id"); + } + } + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestoreMode.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestoreMode.cs new file mode 100644 index 000000000000..347b1a4033f2 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestoreMode.cs @@ -0,0 +1,21 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + + /// + /// Defines values for RestoreMode. + /// + public static class RestoreMode + { + public const string PointInTime = "PointInTime"; + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestoreParameters.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestoreParameters.cs new file mode 100644 index 000000000000..2fd078b19f03 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/RestoreParameters.cs @@ -0,0 +1,86 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Parameters to indicate the information about the restore. + /// + public partial class RestoreParameters + { + /// + /// Initializes a new instance of the RestoreParameters class. + /// + public RestoreParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the RestoreParameters class. + /// + /// Describes the mode of the restore. + /// Possible values include: 'PointInTime' + /// The id of the restorable database + /// account from which the restore has to be initiated. For example: + /// /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName} + /// Time to which the account has + /// to be restored (ISO-8601 format). + /// List of specific databases + /// available for restore. + public RestoreParameters(string restoreMode = default(string), string restoreSource = default(string), System.DateTime? restoreTimestampInUtc = default(System.DateTime?), IList databasesToRestore = default(IList)) + { + RestoreMode = restoreMode; + RestoreSource = restoreSource; + RestoreTimestampInUtc = restoreTimestampInUtc; + DatabasesToRestore = databasesToRestore; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets describes the mode of the restore. Possible values + /// include: 'PointInTime' + /// + [JsonProperty(PropertyName = "restoreMode")] + public string RestoreMode { get; set; } + + /// + /// Gets or sets the id of the restorable database account from which + /// the restore has to be initiated. For example: + /// /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName} + /// + [JsonProperty(PropertyName = "restoreSource")] + public string RestoreSource { get; set; } + + /// + /// Gets or sets time to which the account has to be restored (ISO-8601 + /// format). + /// + [JsonProperty(PropertyName = "restoreTimestampInUtc")] + public System.DateTime? RestoreTimestampInUtc { get; set; } + + /// + /// Gets or sets list of specific databases available for restore. + /// + [JsonProperty(PropertyName = "databasesToRestore")] + public IList DatabasesToRestore { get; set; } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/SystemData.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/SystemData.cs new file mode 100644 index 000000000000..9cb1fb8254a0 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/Models/SystemData.cs @@ -0,0 +1,103 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Metadata pertaining to creation and last modification of the resource. + /// + public partial class SystemData + { + /// + /// Initializes a new instance of the SystemData class. + /// + public SystemData() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SystemData class. + /// + /// The identity that created the + /// resource. + /// The type of identity that created the + /// resource. Possible values include: 'User', 'Application', + /// 'ManagedIdentity', 'Key' + /// The timestamp of resource creation + /// (UTC). + /// The identity that last modified the + /// resource. + /// The type of identity that last + /// modified the resource. Possible values include: 'User', + /// 'Application', 'ManagedIdentity', 'Key' + /// The timestamp of resource last + /// modification (UTC) + public SystemData(string createdBy = default(string), string createdByType = default(string), System.DateTime? createdAt = default(System.DateTime?), string lastModifiedBy = default(string), string lastModifiedByType = default(string), System.DateTime? lastModifiedAt = default(System.DateTime?)) + { + CreatedBy = createdBy; + CreatedByType = createdByType; + CreatedAt = createdAt; + LastModifiedBy = lastModifiedBy; + LastModifiedByType = lastModifiedByType; + LastModifiedAt = lastModifiedAt; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the identity that created the resource. + /// + [JsonProperty(PropertyName = "createdBy")] + public string CreatedBy { get; set; } + + /// + /// Gets or sets the type of identity that created the resource. + /// Possible values include: 'User', 'Application', 'ManagedIdentity', + /// 'Key' + /// + [JsonProperty(PropertyName = "createdByType")] + public string CreatedByType { get; set; } + + /// + /// Gets or sets the timestamp of resource creation (UTC). + /// + [JsonProperty(PropertyName = "createdAt")] + public System.DateTime? CreatedAt { get; set; } + + /// + /// Gets or sets the identity that last modified the resource. + /// + [JsonProperty(PropertyName = "lastModifiedBy")] + public string LastModifiedBy { get; set; } + + /// + /// Gets or sets the type of identity that last modified the resource. + /// Possible values include: 'User', 'Application', 'ManagedIdentity', + /// 'Key' + /// + [JsonProperty(PropertyName = "lastModifiedByType")] + public string LastModifiedByType { get; set; } + + /// + /// Gets or sets the timestamp of resource last modification (UTC) + /// + [JsonProperty(PropertyName = "lastModifiedAt")] + public System.DateTime? LastModifiedAt { get; set; } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/MongoDBResourcesOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/MongoDBResourcesOperations.cs index 465fb26b1ef6..18646bec6c93 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/MongoDBResourcesOperations.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/MongoDBResourcesOperations.cs @@ -108,10 +108,6 @@ internal MongoDBResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -352,10 +348,6 @@ internal MongoDBResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -655,10 +647,6 @@ internal MongoDBResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -986,10 +974,6 @@ internal MongoDBResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -1239,10 +1223,6 @@ internal MongoDBResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -1557,10 +1537,6 @@ internal MongoDBResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -1905,10 +1881,6 @@ internal MongoDBResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -2166,10 +2138,6 @@ internal MongoDBResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -2401,10 +2369,6 @@ internal MongoDBResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -2666,10 +2630,6 @@ internal MongoDBResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -2916,10 +2876,6 @@ internal MongoDBResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -3171,10 +3127,6 @@ internal MongoDBResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -3441,10 +3393,6 @@ internal MongoDBResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -3685,10 +3633,6 @@ internal MongoDBResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -3959,10 +3903,6 @@ internal MongoDBResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -4218,10 +4158,6 @@ internal MongoDBResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/NotebookWorkspacesOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/NotebookWorkspacesOperations.cs index cd345eace5e0..44f42b376404 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/NotebookWorkspacesOperations.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/NotebookWorkspacesOperations.cs @@ -107,10 +107,6 @@ internal NotebookWorkspacesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (Client.ApiVersion == null) { @@ -342,10 +338,6 @@ internal NotebookWorkspacesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (Client.ApiVersion == null) { @@ -624,10 +616,6 @@ internal NotebookWorkspacesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (Client.ApiVersion == null) { @@ -906,10 +894,6 @@ internal NotebookWorkspacesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (Client.ApiVersion == null) { @@ -1149,10 +1133,6 @@ internal NotebookWorkspacesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (Client.ApiVersion == null) { @@ -1366,10 +1346,6 @@ internal NotebookWorkspacesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (Client.ApiVersion == null) { @@ -1583,10 +1559,6 @@ internal NotebookWorkspacesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (Client.ApiVersion == null) { diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PartitionKeyRangeIdOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PartitionKeyRangeIdOperations.cs index 1590e2151a3a..911e686adeae 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PartitionKeyRangeIdOperations.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PartitionKeyRangeIdOperations.cs @@ -123,10 +123,6 @@ internal PartitionKeyRangeIdOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PartitionKeyRangeIdRegionOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PartitionKeyRangeIdRegionOperations.cs index 6a118c9fda03..1214ed73af45 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PartitionKeyRangeIdRegionOperations.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PartitionKeyRangeIdRegionOperations.cs @@ -126,10 +126,6 @@ internal PartitionKeyRangeIdRegionOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PercentileOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PercentileOperations.cs index 8c37a40f2cb1..85cf19d0558a 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PercentileOperations.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PercentileOperations.cs @@ -114,10 +114,6 @@ internal PercentileOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PercentileSourceTargetOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PercentileSourceTargetOperations.cs index 125a8300bd6a..80dc89af3033 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PercentileSourceTargetOperations.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PercentileSourceTargetOperations.cs @@ -123,10 +123,6 @@ internal PercentileSourceTargetOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PercentileTargetOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PercentileTargetOperations.cs index 3170cdfc1754..8fdead41d1f2 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PercentileTargetOperations.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PercentileTargetOperations.cs @@ -118,10 +118,6 @@ internal PercentileTargetOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PrivateEndpointConnectionsOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PrivateEndpointConnectionsOperations.cs index 04d3107596df..f0312253fad4 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PrivateEndpointConnectionsOperations.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PrivateEndpointConnectionsOperations.cs @@ -107,10 +107,6 @@ internal PrivateEndpointConnectionsOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (Client.ApiVersion == null) { @@ -350,10 +346,6 @@ internal PrivateEndpointConnectionsOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (Client.ApiVersion == null) { @@ -653,10 +645,6 @@ internal PrivateEndpointConnectionsOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (Client.ApiVersion == null) { @@ -905,10 +893,6 @@ internal PrivateEndpointConnectionsOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (Client.ApiVersion == null) { diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PrivateLinkResourcesOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PrivateLinkResourcesOperations.cs index 254571ca6f4d..68094748b27b 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PrivateLinkResourcesOperations.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PrivateLinkResourcesOperations.cs @@ -108,10 +108,6 @@ internal PrivateLinkResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (Client.ApiVersion == null) { @@ -352,10 +348,6 @@ internal PrivateLinkResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (Client.ApiVersion == null) { diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableDatabaseAccountsOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableDatabaseAccountsOperations.cs new file mode 100644 index 000000000000..ff6c0c1e5ac1 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableDatabaseAccountsOperations.cs @@ -0,0 +1,666 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// RestorableDatabaseAccountsOperations operations. + /// + internal partial class RestorableDatabaseAccountsOperations : IServiceOperations, IRestorableDatabaseAccountsOperations + { + /// + /// Initializes a new instance of the RestorableDatabaseAccountsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal RestorableDatabaseAccountsOperations(CosmosDBManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the CosmosDBManagementClient + /// + public CosmosDBManagementClient Client { get; private set; } + + /// + /// Lists all the restorable Azure Cosmos DB database accounts available under + /// the subscription and in a region. This call requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' + /// permission. + /// + /// + /// Cosmos DB region, with spaces between words and each word capitalized. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByLocationWithHttpMessagesAsync(string location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByLocation", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all the restorable Azure Cosmos DB database accounts available under + /// the subscription. This call requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' + /// permission. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/restorableDatabaseAccounts").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves the properties of an existing Azure Cosmos DB restorable database + /// account. This call requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' + /// permission. + /// + /// + /// Cosmos DB region, with spaces between words and each word capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetByLocationWithHttpMessagesAsync(string location, string instanceId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (instanceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "instanceId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("instanceId", instanceId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetByLocation", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{instanceId}", System.Uri.EscapeDataString(instanceId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableDatabaseAccountsOperationsExtensions.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableDatabaseAccountsOperationsExtensions.cs new file mode 100644 index 000000000000..3de1f9e51ec1 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableDatabaseAccountsOperationsExtensions.cs @@ -0,0 +1,147 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for RestorableDatabaseAccountsOperations. + /// + public static partial class RestorableDatabaseAccountsOperationsExtensions + { + /// + /// Lists all the restorable Azure Cosmos DB database accounts available under + /// the subscription and in a region. This call requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' + /// permission. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Cosmos DB region, with spaces between words and each word capitalized. + /// + public static IEnumerable ListByLocation(this IRestorableDatabaseAccountsOperations operations, string location) + { + return operations.ListByLocationAsync(location).GetAwaiter().GetResult(); + } + + /// + /// Lists all the restorable Azure Cosmos DB database accounts available under + /// the subscription and in a region. This call requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' + /// permission. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Cosmos DB region, with spaces between words and each word capitalized. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByLocationAsync(this IRestorableDatabaseAccountsOperations operations, string location, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByLocationWithHttpMessagesAsync(location, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all the restorable Azure Cosmos DB database accounts available under + /// the subscription. This call requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' + /// permission. + /// + /// + /// The operations group for this extension method. + /// + public static IEnumerable List(this IRestorableDatabaseAccountsOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Lists all the restorable Azure Cosmos DB database accounts available under + /// the subscription. This call requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' + /// permission. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IRestorableDatabaseAccountsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves the properties of an existing Azure Cosmos DB restorable database + /// account. This call requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' + /// permission. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Cosmos DB region, with spaces between words and each word capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + public static RestorableDatabaseAccountGetResult GetByLocation(this IRestorableDatabaseAccountsOperations operations, string location, string instanceId) + { + return operations.GetByLocationAsync(location, instanceId).GetAwaiter().GetResult(); + } + + /// + /// Retrieves the properties of an existing Azure Cosmos DB restorable database + /// account. This call requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' + /// permission. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Cosmos DB region, with spaces between words and each word capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + /// + /// The cancellation token. + /// + public static async Task GetByLocationAsync(this IRestorableDatabaseAccountsOperations operations, string location, string instanceId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetByLocationWithHttpMessagesAsync(location, instanceId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableMongodbCollectionsOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableMongodbCollectionsOperations.cs new file mode 100644 index 000000000000..d2ba923127ec --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableMongodbCollectionsOperations.cs @@ -0,0 +1,276 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// RestorableMongodbCollectionsOperations operations. + /// + internal partial class RestorableMongodbCollectionsOperations : IServiceOperations, IRestorableMongodbCollectionsOperations + { + /// + /// Initializes a new instance of the RestorableMongodbCollectionsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal RestorableMongodbCollectionsOperations(CosmosDBManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the CosmosDBManagementClient + /// + public CosmosDBManagementClient Client { get; private set; } + + /// + /// Show the event feed of all mutations done on all the Azure Cosmos DB + /// MongoDB collections under a specific database. This helps in scenario + /// where container was accidentally deleted. This API requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + /// permission + /// + /// + /// Cosmos DB region, with spaces between words and each word capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + /// + /// The resource ID of the MongoDB database. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, string instanceId, string restorableMongodbDatabaseRid = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (instanceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "instanceId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("instanceId", instanceId); + tracingParameters.Add("restorableMongodbDatabaseRid", restorableMongodbDatabaseRid); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbCollections").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{instanceId}", System.Uri.EscapeDataString(instanceId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (restorableMongodbDatabaseRid != null) + { + _queryParameters.Add(string.Format("restorableMongodbDatabaseRid={0}", System.Uri.EscapeDataString(restorableMongodbDatabaseRid))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableMongodbCollectionsOperationsExtensions.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableMongodbCollectionsOperationsExtensions.cs new file mode 100644 index 000000000000..65d92af706a9 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableMongodbCollectionsOperationsExtensions.cs @@ -0,0 +1,81 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for RestorableMongodbCollectionsOperations. + /// + public static partial class RestorableMongodbCollectionsOperationsExtensions + { + /// + /// Show the event feed of all mutations done on all the Azure Cosmos DB + /// MongoDB collections under a specific database. This helps in scenario + /// where container was accidentally deleted. This API requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + /// permission + /// + /// + /// The operations group for this extension method. + /// + /// + /// Cosmos DB region, with spaces between words and each word capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + /// + /// The resource ID of the MongoDB database. + /// + public static IEnumerable List(this IRestorableMongodbCollectionsOperations operations, string location, string instanceId, string restorableMongodbDatabaseRid = default(string)) + { + return operations.ListAsync(location, instanceId, restorableMongodbDatabaseRid).GetAwaiter().GetResult(); + } + + /// + /// Show the event feed of all mutations done on all the Azure Cosmos DB + /// MongoDB collections under a specific database. This helps in scenario + /// where container was accidentally deleted. This API requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + /// permission + /// + /// + /// The operations group for this extension method. + /// + /// + /// Cosmos DB region, with spaces between words and each word capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + /// + /// The resource ID of the MongoDB database. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IRestorableMongodbCollectionsOperations operations, string location, string instanceId, string restorableMongodbDatabaseRid = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, instanceId, restorableMongodbDatabaseRid, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableMongodbDatabasesOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableMongodbDatabasesOperations.cs new file mode 100644 index 000000000000..873426f77faf --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableMongodbDatabasesOperations.cs @@ -0,0 +1,269 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// RestorableMongodbDatabasesOperations operations. + /// + internal partial class RestorableMongodbDatabasesOperations : IServiceOperations, IRestorableMongodbDatabasesOperations + { + /// + /// Initializes a new instance of the RestorableMongodbDatabasesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal RestorableMongodbDatabasesOperations(CosmosDBManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the CosmosDBManagementClient + /// + public CosmosDBManagementClient Client { get; private set; } + + /// + /// Show the event feed of all mutations done on all the Azure Cosmos DB + /// MongoDB databases under the restorable account. This helps in scenario + /// where database was accidentally deleted to get the deletion time. This API + /// requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + /// permission + /// + /// + /// Cosmos DB region, with spaces between words and each word capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, string instanceId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (instanceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "instanceId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("instanceId", instanceId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbDatabases").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{instanceId}", System.Uri.EscapeDataString(instanceId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableMongodbDatabasesOperationsExtensions.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableMongodbDatabasesOperationsExtensions.cs new file mode 100644 index 000000000000..60d7154789b1 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableMongodbDatabasesOperationsExtensions.cs @@ -0,0 +1,77 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for RestorableMongodbDatabasesOperations. + /// + public static partial class RestorableMongodbDatabasesOperationsExtensions + { + /// + /// Show the event feed of all mutations done on all the Azure Cosmos DB + /// MongoDB databases under the restorable account. This helps in scenario + /// where database was accidentally deleted to get the deletion time. This API + /// requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + /// permission + /// + /// + /// The operations group for this extension method. + /// + /// + /// Cosmos DB region, with spaces between words and each word capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + public static IEnumerable List(this IRestorableMongodbDatabasesOperations operations, string location, string instanceId) + { + return operations.ListAsync(location, instanceId).GetAwaiter().GetResult(); + } + + /// + /// Show the event feed of all mutations done on all the Azure Cosmos DB + /// MongoDB databases under the restorable account. This helps in scenario + /// where database was accidentally deleted to get the deletion time. This API + /// requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + /// permission + /// + /// + /// The operations group for this extension method. + /// + /// + /// Cosmos DB region, with spaces between words and each word capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IRestorableMongodbDatabasesOperations operations, string location, string instanceId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, instanceId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableMongodbResourcesOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableMongodbResourcesOperations.cs new file mode 100644 index 000000000000..2ee2f8209e4f --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableMongodbResourcesOperations.cs @@ -0,0 +1,284 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// RestorableMongodbResourcesOperations operations. + /// + internal partial class RestorableMongodbResourcesOperations : IServiceOperations, IRestorableMongodbResourcesOperations + { + /// + /// Initializes a new instance of the RestorableMongodbResourcesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal RestorableMongodbResourcesOperations(CosmosDBManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the CosmosDBManagementClient + /// + public CosmosDBManagementClient Client { get; private set; } + + /// + /// Return a list of database and collection combo that exist on the account at + /// the given timestamp and location. This helps in scenarios to validate what + /// resources exist at given timestamp and location. This API requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + /// permission. + /// + /// + /// Cosmos DB region, with spaces between words and each word capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + /// + /// The location where the restorable resources are located. + /// + /// + /// The timestamp when the restorable resources existed. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, string instanceId, string restoreLocation = default(string), string restoreTimestampInUtc = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (instanceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "instanceId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("instanceId", instanceId); + tracingParameters.Add("restoreLocation", restoreLocation); + tracingParameters.Add("restoreTimestampInUtc", restoreTimestampInUtc); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbResources").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{instanceId}", System.Uri.EscapeDataString(instanceId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (restoreLocation != null) + { + _queryParameters.Add(string.Format("restoreLocation={0}", System.Uri.EscapeDataString(restoreLocation))); + } + if (restoreTimestampInUtc != null) + { + _queryParameters.Add(string.Format("restoreTimestampInUtc={0}", System.Uri.EscapeDataString(restoreTimestampInUtc))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableMongodbResourcesOperationsExtensions.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableMongodbResourcesOperationsExtensions.cs new file mode 100644 index 000000000000..52725d0a663c --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableMongodbResourcesOperationsExtensions.cs @@ -0,0 +1,87 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for RestorableMongodbResourcesOperations. + /// + public static partial class RestorableMongodbResourcesOperationsExtensions + { + /// + /// Return a list of database and collection combo that exist on the account at + /// the given timestamp and location. This helps in scenarios to validate what + /// resources exist at given timestamp and location. This API requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + /// permission. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Cosmos DB region, with spaces between words and each word capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + /// + /// The location where the restorable resources are located. + /// + /// + /// The timestamp when the restorable resources existed. + /// + public static IEnumerable List(this IRestorableMongodbResourcesOperations operations, string location, string instanceId, string restoreLocation = default(string), string restoreTimestampInUtc = default(string)) + { + return operations.ListAsync(location, instanceId, restoreLocation, restoreTimestampInUtc).GetAwaiter().GetResult(); + } + + /// + /// Return a list of database and collection combo that exist on the account at + /// the given timestamp and location. This helps in scenarios to validate what + /// resources exist at given timestamp and location. This API requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + /// permission. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Cosmos DB region, with spaces between words and each word capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + /// + /// The location where the restorable resources are located. + /// + /// + /// The timestamp when the restorable resources existed. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IRestorableMongodbResourcesOperations operations, string location, string instanceId, string restoreLocation = default(string), string restoreTimestampInUtc = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, instanceId, restoreLocation, restoreTimestampInUtc, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableSqlContainersOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableSqlContainersOperations.cs new file mode 100644 index 000000000000..67279345471b --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableSqlContainersOperations.cs @@ -0,0 +1,292 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// RestorableSqlContainersOperations operations. + /// + internal partial class RestorableSqlContainersOperations : IServiceOperations, IRestorableSqlContainersOperations + { + /// + /// Initializes a new instance of the RestorableSqlContainersOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal RestorableSqlContainersOperations(CosmosDBManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the CosmosDBManagementClient + /// + public CosmosDBManagementClient Client { get; private set; } + + /// + /// Show the event feed of all mutations done on all the Azure Cosmos DB SQL + /// containers under a specific database. This helps in scenario where + /// container was accidentally deleted. This API requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + /// permission + /// + /// + /// Cosmos DB region, with spaces between words and each word capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + /// + /// The resource ID of the SQL database. + /// + /// + /// The snapshot create timestamp after which snapshots need to be listed. + /// + /// + /// The snapshot create timestamp before which snapshots need to be listed. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, string instanceId, string restorableSqlDatabaseRid = default(string), string startTime = default(string), string endTime = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (instanceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "instanceId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("instanceId", instanceId); + tracingParameters.Add("restorableSqlDatabaseRid", restorableSqlDatabaseRid); + tracingParameters.Add("startTime", startTime); + tracingParameters.Add("endTime", endTime); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableSqlContainers").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{instanceId}", System.Uri.EscapeDataString(instanceId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (restorableSqlDatabaseRid != null) + { + _queryParameters.Add(string.Format("restorableSqlDatabaseRid={0}", System.Uri.EscapeDataString(restorableSqlDatabaseRid))); + } + if (startTime != null) + { + _queryParameters.Add(string.Format("startTime={0}", System.Uri.EscapeDataString(startTime))); + } + if (endTime != null) + { + _queryParameters.Add(string.Format("endTime={0}", System.Uri.EscapeDataString(endTime))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableSqlContainersOperationsExtensions.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableSqlContainersOperationsExtensions.cs new file mode 100644 index 000000000000..d0798f918273 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableSqlContainersOperationsExtensions.cs @@ -0,0 +1,93 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for RestorableSqlContainersOperations. + /// + public static partial class RestorableSqlContainersOperationsExtensions + { + /// + /// Show the event feed of all mutations done on all the Azure Cosmos DB SQL + /// containers under a specific database. This helps in scenario where + /// container was accidentally deleted. This API requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + /// permission + /// + /// + /// The operations group for this extension method. + /// + /// + /// Cosmos DB region, with spaces between words and each word capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + /// + /// The resource ID of the SQL database. + /// + /// + /// The snapshot create timestamp after which snapshots need to be listed. + /// + /// + /// The snapshot create timestamp before which snapshots need to be listed. + /// + public static IEnumerable List(this IRestorableSqlContainersOperations operations, string location, string instanceId, string restorableSqlDatabaseRid = default(string), string startTime = default(string), string endTime = default(string)) + { + return operations.ListAsync(location, instanceId, restorableSqlDatabaseRid, startTime, endTime).GetAwaiter().GetResult(); + } + + /// + /// Show the event feed of all mutations done on all the Azure Cosmos DB SQL + /// containers under a specific database. This helps in scenario where + /// container was accidentally deleted. This API requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + /// permission + /// + /// + /// The operations group for this extension method. + /// + /// + /// Cosmos DB region, with spaces between words and each word capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + /// + /// The resource ID of the SQL database. + /// + /// + /// The snapshot create timestamp after which snapshots need to be listed. + /// + /// + /// The snapshot create timestamp before which snapshots need to be listed. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IRestorableSqlContainersOperations operations, string location, string instanceId, string restorableSqlDatabaseRid = default(string), string startTime = default(string), string endTime = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, instanceId, restorableSqlDatabaseRid, startTime, endTime, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableSqlDatabasesOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableSqlDatabasesOperations.cs new file mode 100644 index 000000000000..db23ce64f1b8 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableSqlDatabasesOperations.cs @@ -0,0 +1,269 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// RestorableSqlDatabasesOperations operations. + /// + internal partial class RestorableSqlDatabasesOperations : IServiceOperations, IRestorableSqlDatabasesOperations + { + /// + /// Initializes a new instance of the RestorableSqlDatabasesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal RestorableSqlDatabasesOperations(CosmosDBManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the CosmosDBManagementClient + /// + public CosmosDBManagementClient Client { get; private set; } + + /// + /// Show the event feed of all mutations done on all the Azure Cosmos DB SQL + /// databases under the restorable account. This helps in scenario where + /// database was accidentally deleted to get the deletion time. This API + /// requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + /// permission + /// + /// + /// Cosmos DB region, with spaces between words and each word capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, string instanceId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (instanceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "instanceId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("instanceId", instanceId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableSqlDatabases").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{instanceId}", System.Uri.EscapeDataString(instanceId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableSqlDatabasesOperationsExtensions.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableSqlDatabasesOperationsExtensions.cs new file mode 100644 index 000000000000..1466ae87bed7 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableSqlDatabasesOperationsExtensions.cs @@ -0,0 +1,77 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for RestorableSqlDatabasesOperations. + /// + public static partial class RestorableSqlDatabasesOperationsExtensions + { + /// + /// Show the event feed of all mutations done on all the Azure Cosmos DB SQL + /// databases under the restorable account. This helps in scenario where + /// database was accidentally deleted to get the deletion time. This API + /// requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + /// permission + /// + /// + /// The operations group for this extension method. + /// + /// + /// Cosmos DB region, with spaces between words and each word capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + public static IEnumerable List(this IRestorableSqlDatabasesOperations operations, string location, string instanceId) + { + return operations.ListAsync(location, instanceId).GetAwaiter().GetResult(); + } + + /// + /// Show the event feed of all mutations done on all the Azure Cosmos DB SQL + /// databases under the restorable account. This helps in scenario where + /// database was accidentally deleted to get the deletion time. This API + /// requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + /// permission + /// + /// + /// The operations group for this extension method. + /// + /// + /// Cosmos DB region, with spaces between words and each word capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IRestorableSqlDatabasesOperations operations, string location, string instanceId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, instanceId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableSqlResourcesOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableSqlResourcesOperations.cs new file mode 100644 index 000000000000..e59fb7d25429 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableSqlResourcesOperations.cs @@ -0,0 +1,284 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// RestorableSqlResourcesOperations operations. + /// + internal partial class RestorableSqlResourcesOperations : IServiceOperations, IRestorableSqlResourcesOperations + { + /// + /// Initializes a new instance of the RestorableSqlResourcesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal RestorableSqlResourcesOperations(CosmosDBManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the CosmosDBManagementClient + /// + public CosmosDBManagementClient Client { get; private set; } + + /// + /// Return a list of database and container combo that exist on the account at + /// the given timestamp and location. This helps in scenarios to validate what + /// resources exist at given timestamp and location. This API requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + /// permission. + /// + /// + /// Cosmos DB region, with spaces between words and each word capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + /// + /// The location where the restorable resources are located. + /// + /// + /// The timestamp when the restorable resources existed. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string location, string instanceId, string restoreLocation = default(string), string restoreTimestampInUtc = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (instanceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "instanceId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("instanceId", instanceId); + tracingParameters.Add("restoreLocation", restoreLocation); + tracingParameters.Add("restoreTimestampInUtc", restoreTimestampInUtc); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableSqlResources").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{instanceId}", System.Uri.EscapeDataString(instanceId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (restoreLocation != null) + { + _queryParameters.Add(string.Format("restoreLocation={0}", System.Uri.EscapeDataString(restoreLocation))); + } + if (restoreTimestampInUtc != null) + { + _queryParameters.Add(string.Format("restoreTimestampInUtc={0}", System.Uri.EscapeDataString(restoreTimestampInUtc))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableSqlResourcesOperationsExtensions.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableSqlResourcesOperationsExtensions.cs new file mode 100644 index 000000000000..367fe6bce803 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/RestorableSqlResourcesOperationsExtensions.cs @@ -0,0 +1,87 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.CosmosDB +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for RestorableSqlResourcesOperations. + /// + public static partial class RestorableSqlResourcesOperationsExtensions + { + /// + /// Return a list of database and container combo that exist on the account at + /// the given timestamp and location. This helps in scenarios to validate what + /// resources exist at given timestamp and location. This API requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + /// permission. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Cosmos DB region, with spaces between words and each word capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + /// + /// The location where the restorable resources are located. + /// + /// + /// The timestamp when the restorable resources existed. + /// + public static IEnumerable List(this IRestorableSqlResourcesOperations operations, string location, string instanceId, string restoreLocation = default(string), string restoreTimestampInUtc = default(string)) + { + return operations.ListAsync(location, instanceId, restoreLocation, restoreTimestampInUtc).GetAwaiter().GetResult(); + } + + /// + /// Return a list of database and container combo that exist on the account at + /// the given timestamp and location. This helps in scenarios to validate what + /// resources exist at given timestamp and location. This API requires + /// 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + /// permission. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Cosmos DB region, with spaces between words and each word capitalized. + /// + /// + /// The instanceId GUID of a restorable database account. + /// + /// + /// The location where the restorable resources are located. + /// + /// + /// The timestamp when the restorable resources existed. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IRestorableSqlResourcesOperations operations, string location, string instanceId, string restoreLocation = default(string), string restoreTimestampInUtc = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(location, instanceId, restoreLocation, restoreTimestampInUtc, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/SdkInfo_CosmosDBManagementClient.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/SdkInfo_CosmosDBManagementClient.cs index dbd05d2ed84a..9b41da805a54 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/SdkInfo_CosmosDBManagementClient.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/SdkInfo_CosmosDBManagementClient.cs @@ -19,37 +19,44 @@ public static IEnumerable> ApiInfo_CosmosDBManagem { return new Tuple[] { - new Tuple("DocumentDB", "CassandraResources", "2021-04-15"), - new Tuple("DocumentDB", "Collection", "2021-04-15"), - new Tuple("DocumentDB", "CollectionPartition", "2021-04-15"), - new Tuple("DocumentDB", "CollectionPartitionRegion", "2021-04-15"), - new Tuple("DocumentDB", "CollectionRegion", "2021-04-15"), - new Tuple("DocumentDB", "Database", "2021-04-15"), - new Tuple("DocumentDB", "DatabaseAccountRegion", "2021-04-15"), - new Tuple("DocumentDB", "DatabaseAccounts", "2021-04-15"), - new Tuple("DocumentDB", "GremlinResources", "2021-04-15"), - new Tuple("DocumentDB", "MongoDBResources", "2021-04-15"), - new Tuple("DocumentDB", "NotebookWorkspaces", "2021-04-15"), - new Tuple("DocumentDB", "Operations", "2021-04-15"), - new Tuple("DocumentDB", "PartitionKeyRangeId", "2021-04-15"), - new Tuple("DocumentDB", "PartitionKeyRangeIdRegion", "2021-04-15"), - new Tuple("DocumentDB", "Percentile", "2021-04-15"), - new Tuple("DocumentDB", "PercentileSourceTarget", "2021-04-15"), - new Tuple("DocumentDB", "PercentileTarget", "2021-04-15"), - new Tuple("DocumentDB", "PrivateEndpointConnections", "2021-04-15"), - new Tuple("DocumentDB", "PrivateLinkResources", "2021-04-15"), - new Tuple("DocumentDB", "SqlResources", "2021-04-15"), - new Tuple("DocumentDB", "TableResources", "2021-04-15"), + new Tuple("DocumentDB", "CassandraResources", "2021-06-15"), + new Tuple("DocumentDB", "Collection", "2021-06-15"), + new Tuple("DocumentDB", "CollectionPartition", "2021-06-15"), + new Tuple("DocumentDB", "CollectionPartitionRegion", "2021-06-15"), + new Tuple("DocumentDB", "CollectionRegion", "2021-06-15"), + new Tuple("DocumentDB", "Database", "2021-06-15"), + new Tuple("DocumentDB", "DatabaseAccountRegion", "2021-06-15"), + new Tuple("DocumentDB", "DatabaseAccounts", "2021-06-15"), + new Tuple("DocumentDB", "GremlinResources", "2021-06-15"), + new Tuple("DocumentDB", "MongoDBResources", "2021-06-15"), + new Tuple("DocumentDB", "NotebookWorkspaces", "2021-06-15"), + new Tuple("DocumentDB", "Operations", "2021-06-15"), + new Tuple("DocumentDB", "PartitionKeyRangeId", "2021-06-15"), + new Tuple("DocumentDB", "PartitionKeyRangeIdRegion", "2021-06-15"), + new Tuple("DocumentDB", "Percentile", "2021-06-15"), + new Tuple("DocumentDB", "PercentileSourceTarget", "2021-06-15"), + new Tuple("DocumentDB", "PercentileTarget", "2021-06-15"), + new Tuple("DocumentDB", "PrivateEndpointConnections", "2021-06-15"), + new Tuple("DocumentDB", "PrivateLinkResources", "2021-06-15"), + new Tuple("DocumentDB", "RestorableDatabaseAccounts", "2021-06-15"), + new Tuple("DocumentDB", "RestorableMongodbCollections", "2021-06-15"), + new Tuple("DocumentDB", "RestorableMongodbDatabases", "2021-06-15"), + new Tuple("DocumentDB", "RestorableMongodbResources", "2021-06-15"), + new Tuple("DocumentDB", "RestorableSqlContainers", "2021-06-15"), + new Tuple("DocumentDB", "RestorableSqlDatabases", "2021-06-15"), + new Tuple("DocumentDB", "RestorableSqlResources", "2021-06-15"), + new Tuple("DocumentDB", "SqlResources", "2021-06-15"), + new Tuple("DocumentDB", "TableResources", "2021-06-15"), }.AsEnumerable(); } } // BEGIN: Code Generation Metadata Section public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@3.1.4"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cosmos-db/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\\azure-sdk-for-net\\sdk"; + public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; + public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cosmos-db/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=E:\\azure-sdk-for-net\\sdk"; public static readonly String GithubForkName = "Azure"; public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "c1f66424b3b3636ec4cdb6c911dc75ca9abbe146"; + public static readonly String GithubCommidId = "b392b4e5d04c73acde2c02ed034247ac55b8892f"; public static readonly String CodeGenerationErrors = ""; public static readonly String GithubRepoName = "azure-rest-api-specs"; // END: Code Generation Metadata Section diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/SqlResourcesOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/SqlResourcesOperations.cs index b54bc2524efb..6e3f933018e9 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/SqlResourcesOperations.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/SqlResourcesOperations.cs @@ -107,10 +107,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -351,10 +347,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -654,10 +646,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -982,10 +970,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -1234,10 +1218,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -1552,10 +1532,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -1901,10 +1877,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -2163,10 +2135,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -2493,10 +2461,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -2755,10 +2719,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -3084,10 +3044,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -3345,10 +3301,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -3676,10 +3628,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -3971,10 +3919,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -4219,10 +4163,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -4514,10 +4454,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -4697,6 +4633,37 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) return _result; } + /// + /// Retrieves continuous backup information for a container resource. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Cosmos DB database account name. + /// + /// + /// Cosmos DB database name. + /// + /// + /// Cosmos DB container name. + /// + /// + /// The name of the continuous backup restore location. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> RetrieveContinuousBackupInformationWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, ContinuousBackupRestoreLocation location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginRetrieveContinuousBackupInformationWithHttpMessagesAsync(resourceGroupName, accountName, databaseName, containerName, location, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Create or update an Azure Cosmos DB SQL database /// @@ -4760,10 +4727,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -5021,10 +4984,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -5256,10 +5215,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -5520,10 +5475,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -5769,10 +5720,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -6024,10 +5971,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -6294,10 +6237,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -6538,10 +6477,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -6812,10 +6747,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -7071,10 +7002,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -7335,10 +7262,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -7614,10 +7537,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -7866,10 +7785,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -8145,10 +8060,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -8397,10 +8308,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -8676,10 +8583,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -8926,10 +8829,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -9183,10 +9082,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -9417,10 +9312,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -9674,10 +9565,6 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -9841,5 +9728,273 @@ internal SqlResourcesOperations(CosmosDBManagementClient client) return _result; } + /// + /// Retrieves continuous backup information for a container resource. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Cosmos DB database account name. + /// + /// + /// Cosmos DB database name. + /// + /// + /// Cosmos DB container name. + /// + /// + /// The name of the continuous backup restore location. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginRetrieveContinuousBackupInformationWithHttpMessagesAsync(string resourceGroupName, string accountName, string databaseName, string containerName, ContinuousBackupRestoreLocation location, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.SubscriptionId != null) + { + if (Client.SubscriptionId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1); + } + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (accountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); + } + if (accountName != null) + { + if (accountName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "accountName", 50); + } + if (accountName.Length < 3) + { + throw new ValidationException(ValidationRules.MinLength, "accountName", 3); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+(-[a-z0-9]+)*")) + { + throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+(-[a-z0-9]+)*"); + } + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (containerName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "containerName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("accountName", accountName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("containerName", containerName); + tracingParameters.Add("location", location); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginRetrieveContinuousBackupInformation", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/retrieveContinuousBackupInformation").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{containerName}", System.Uri.EscapeDataString(containerName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(location != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(location, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + } } diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/SqlResourcesOperationsExtensions.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/SqlResourcesOperationsExtensions.cs index ad4e54282b50..d5a5b04bcf08 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/SqlResourcesOperationsExtensions.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/SqlResourcesOperationsExtensions.cs @@ -1888,6 +1888,64 @@ public static IEnumerable ListSqlRoleAssignments(th } } + /// + /// Retrieves continuous backup information for a container resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Cosmos DB database account name. + /// + /// + /// Cosmos DB database name. + /// + /// + /// Cosmos DB container name. + /// + /// + /// The name of the continuous backup restore location. + /// + public static BackupInformation RetrieveContinuousBackupInformation(this ISqlResourcesOperations operations, string resourceGroupName, string accountName, string databaseName, string containerName, ContinuousBackupRestoreLocation location) + { + return operations.RetrieveContinuousBackupInformationAsync(resourceGroupName, accountName, databaseName, containerName, location).GetAwaiter().GetResult(); + } + + /// + /// Retrieves continuous backup information for a container resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Cosmos DB database account name. + /// + /// + /// Cosmos DB database name. + /// + /// + /// Cosmos DB container name. + /// + /// + /// The name of the continuous backup restore location. + /// + /// + /// The cancellation token. + /// + public static async Task RetrieveContinuousBackupInformationAsync(this ISqlResourcesOperations operations, string resourceGroupName, string accountName, string databaseName, string containerName, ContinuousBackupRestoreLocation location, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.RetrieveContinuousBackupInformationWithHttpMessagesAsync(resourceGroupName, accountName, databaseName, containerName, location, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Create or update an Azure Cosmos DB SQL database /// @@ -2951,5 +3009,63 @@ public static void BeginDeleteSqlRoleAssignment(this ISqlResourcesOperations ope (await operations.BeginDeleteSqlRoleAssignmentWithHttpMessagesAsync(roleAssignmentId, resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Retrieves continuous backup information for a container resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Cosmos DB database account name. + /// + /// + /// Cosmos DB database name. + /// + /// + /// Cosmos DB container name. + /// + /// + /// The name of the continuous backup restore location. + /// + public static BackupInformation BeginRetrieveContinuousBackupInformation(this ISqlResourcesOperations operations, string resourceGroupName, string accountName, string databaseName, string containerName, ContinuousBackupRestoreLocation location) + { + return operations.BeginRetrieveContinuousBackupInformationAsync(resourceGroupName, accountName, databaseName, containerName, location).GetAwaiter().GetResult(); + } + + /// + /// Retrieves continuous backup information for a container resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Cosmos DB database account name. + /// + /// + /// Cosmos DB database name. + /// + /// + /// Cosmos DB container name. + /// + /// + /// The name of the continuous backup restore location. + /// + /// + /// The cancellation token. + /// + public static async Task BeginRetrieveContinuousBackupInformationAsync(this ISqlResourcesOperations operations, string resourceGroupName, string accountName, string databaseName, string containerName, ContinuousBackupRestoreLocation location, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginRetrieveContinuousBackupInformationWithHttpMessagesAsync(resourceGroupName, accountName, databaseName, containerName, location, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + } } diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/TableResourcesOperations.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/TableResourcesOperations.cs index 845ebc2fbc90..86e9525cb65f 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/TableResourcesOperations.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/TableResourcesOperations.cs @@ -107,10 +107,6 @@ internal TableResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -351,10 +347,6 @@ internal TableResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -654,10 +646,6 @@ internal TableResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -984,10 +972,6 @@ internal TableResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -1245,10 +1229,6 @@ internal TableResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -1479,10 +1459,6 @@ internal TableResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -1743,10 +1719,6 @@ internal TableResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { @@ -1992,10 +1964,6 @@ internal TableResourcesOperations(CosmosDBManagementClient client) { throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); } - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) - { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); - } } if (accountName == null) { diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Microsoft.Azure.Management.CosmosDB.csproj b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Microsoft.Azure.Management.CosmosDB.csproj index 35990cef7157..062e2c50372e 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Microsoft.Azure.Management.CosmosDB.csproj +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Microsoft.Azure.Management.CosmosDB.csproj @@ -6,20 +6,15 @@ Microsoft.Azure.Management.CosmosDB Provides developers with libraries for the CosmosDB under Azure Resource manager to manage CosmosDB Account, Databases and child resources and their available management capabilities. Create, Delete, Update CosmosDB Account, Databases and child resources. Note: This client library is for CosmosDB under Azure Resource Manager. - 3.0.0 + 3.1.0 Microsoft.Azure.Management.CosmosDB management;cosmosdb; diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Properties/AssemblyInfo.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Properties/AssemblyInfo.cs index 22678ff34239..da6bbe1e35a6 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Properties/AssemblyInfo.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Properties/AssemblyInfo.cs @@ -7,8 +7,8 @@ [assembly: AssemblyTitle("Microsoft Azure CosmosDB Management Library")] [assembly: AssemblyDescription("Provides management functionality for Microsoft Azure CosmosDB Resources.")] -[assembly: AssemblyVersion("3.0.0.0")] -[assembly: AssemblyFileVersion("3.0.0.0")] +[assembly: AssemblyVersion("3.1.0.0")] +[assembly: AssemblyFileVersion("3.1.0.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("Microsoft Azure .NET SDK")] diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/ScenarioTests/DatabaseAccountOperationsTest.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/ScenarioTests/DatabaseAccountOperationsTest.cs index a4c54ab0d409..a852e2c3eb78 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/ScenarioTests/DatabaseAccountOperationsTest.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/ScenarioTests/DatabaseAccountOperationsTest.cs @@ -9,6 +9,7 @@ using Microsoft.Rest.ClientRuntime.Azure.TestFramework; using Microsoft.Azure.Management.CosmosDB.Models; using System.Collections.Generic; +using System.Threading.Tasks; namespace CosmosDB.Tests.ScenarioTests { @@ -54,8 +55,6 @@ public void DatabaseAccountCRUDTests() IsVirtualNetworkFilterEnabled = true, EnableAutomaticFailover = false, EnableMultipleWriteLocations = true, - EnableCassandraConnector = true, - ConnectorOffer = "Small", DisableKeyBasedMetadataWriteAccess = false, NetworkAclBypass = NetworkAclBypass.AzureServices, NetworkAclBypassResourceIds = new List @@ -94,8 +93,6 @@ public void DatabaseAccountCRUDTests() }, IsVirtualNetworkFilterEnabled = false, EnableAutomaticFailover = true, - EnableCassandraConnector = true, - ConnectorOffer = "Small", DisableKeyBasedMetadataWriteAccess = true, NetworkAclBypass = NetworkAclBypass.AzureServices, NetworkAclBypassResourceIds = new List @@ -143,6 +140,86 @@ public void DatabaseAccountCRUDTests() } } + [Fact] + public async Task RestorableSqlDatabaseResourceFeedTest() + { + var handler1 = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + var handler2 = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType())) + { + // Create client + CosmosDBManagementClient cosmosDBManagementClient = CosmosDBTestUtilities.GetCosmosDBClient(context, handler1); + ResourceManagementClient resourcesClient = CosmosDBTestUtilities.GetResourceManagementClient(context, handler2); + + string resourceGroupName = CosmosDBTestUtilities.CreateResourceGroup(resourcesClient); + string databaseAccountName = TestUtilities.GenerateName(prefix: "accountname"); + + List locations = new List(); + locations.Add(new Location(locationName: "East US 2")); + DatabaseAccountCreateUpdateParameters databaseAccountCreateUpdateParameters = new DatabaseAccountCreateUpdateParameters + { + Location = "EAST US 2", + Tags = new Dictionary + { + {"key1","value1"}, + {"key2","value2"} + }, + Kind = "MongoDB", + ConsistencyPolicy = new ConsistencyPolicy + { + DefaultConsistencyLevel = DefaultConsistencyLevel.BoundedStaleness, + MaxStalenessPrefix = 300, + MaxIntervalInSeconds = 1000 + }, + Locations = locations + }; + + DatabaseAccountGetResults databaseAccount = cosmosDBManagementClient.DatabaseAccounts.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, databaseAccountName, databaseAccountCreateUpdateParameters).GetAwaiter().GetResult().Body; + Assert.NotNull(databaseAccount); + + List databaseFeedResult = (await cosmosDBManagementClient.DatabaseAccounts.ListByResourceGroupAsync(resourceGroupName)).ToList(); + Assert.Single(databaseFeedResult); + + DatabaseAccountUpdateParameters databaseAccountUpdateParameters = new DatabaseAccountUpdateParameters + { + Location = "EAST US 2", + Tags = new Dictionary + { + {"key3","value3"}, + {"key4","value4"} + }, + ConsistencyPolicy = new ConsistencyPolicy + { + DefaultConsistencyLevel = DefaultConsistencyLevel.Session, + MaxStalenessPrefix = 1300, + MaxIntervalInSeconds = 12000 + }, + Locations = locations, + IpRules = new List + { + new IpAddressOrRange("23.43.230.120") + }, + IsVirtualNetworkFilterEnabled = false, + EnableAutomaticFailover = true, + DisableKeyBasedMetadataWriteAccess = true, + NetworkAclBypass = NetworkAclBypass.AzureServices, + NetworkAclBypassResourceIds = new List + { + "/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName", + "/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName2" + } + }; + DatabaseAccountGetResults updatedDatabaseAccount = cosmosDBManagementClient.DatabaseAccounts.UpdateWithHttpMessagesAsync(resourceGroupName, databaseAccountName, databaseAccountUpdateParameters).GetAwaiter().GetResult().Body; + Assert.NotNull(updatedDatabaseAccount); + + databaseFeedResult = (await cosmosDBManagementClient.DatabaseAccounts.ListByResourceGroupAsync(resourceGroupName)).ToList(); + Assert.Single(databaseFeedResult); + + await cosmosDBManagementClient.DatabaseAccounts.DeleteWithHttpMessagesAsync(resourceGroupName, databaseAccountName); + } + } + private static void VerifyCosmosDBAccount(DatabaseAccountGetResults databaseAccount, DatabaseAccountCreateUpdateParameters parameters) { Assert.Equal(databaseAccount.Location.ToLower(), parameters.Location.ToLower()); @@ -153,8 +230,6 @@ private static void VerifyCosmosDBAccount(DatabaseAccountGetResults databaseAcco Assert.Equal(databaseAccount.IsVirtualNetworkFilterEnabled, parameters.IsVirtualNetworkFilterEnabled); Assert.Equal(databaseAccount.EnableAutomaticFailover, parameters.EnableAutomaticFailover); Assert.Equal(databaseAccount.EnableMultipleWriteLocations, parameters.EnableMultipleWriteLocations); - Assert.Equal(databaseAccount.EnableCassandraConnector, parameters.EnableCassandraConnector); - Assert.Equal(databaseAccount.ConnectorOffer, parameters.ConnectorOffer); Assert.Equal(databaseAccount.DisableKeyBasedMetadataWriteAccess, parameters.DisableKeyBasedMetadataWriteAccess); Assert.Equal(databaseAccount.NetworkAclBypassResourceIds.Count, parameters.NetworkAclBypassResourceIds.Count); } @@ -167,8 +242,6 @@ private static void VerifyCosmosDBAccount(DatabaseAccountGetResults databaseAcco VerifyConsistencyPolicy(databaseAccount.ConsistencyPolicy, parameters.ConsistencyPolicy); Assert.Equal(databaseAccount.IsVirtualNetworkFilterEnabled, parameters.IsVirtualNetworkFilterEnabled); Assert.Equal(databaseAccount.EnableAutomaticFailover, parameters.EnableAutomaticFailover); - Assert.Equal(databaseAccount.EnableCassandraConnector, parameters.EnableCassandraConnector); - Assert.Equal(databaseAccount.ConnectorOffer, parameters.ConnectorOffer); Assert.Equal(databaseAccount.DisableKeyBasedMetadataWriteAccess, parameters.DisableKeyBasedMetadataWriteAccess); } diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/ScenarioTests/MongoResourcesOperationsTests.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/ScenarioTests/MongoResourcesOperationsTests.cs index a14f3214f7d0..d240446e45f5 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/ScenarioTests/MongoResourcesOperationsTests.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/ScenarioTests/MongoResourcesOperationsTests.cs @@ -18,7 +18,7 @@ public class MongoResourcesOperationsTests const string location = "EAST US 2"; // using an existing DB account, since Account provisioning takes 10-15 minutes const string resourceGroupName = "CosmosDBResourceGroup3668"; - const string databaseAccountName = "db001"; + const string databaseAccountName = "db003"; const string databaseName = "databaseName3668"; const string databaseName2 = "databaseName23668"; @@ -62,7 +62,7 @@ public void MongoCRUDTests() } }; - databaseAccount = cosmosDBManagementClient.DatabaseAccounts.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, databaseAccountName, databaseAccountCreateUpdateParameters).GetAwaiter().GetResult().Body; + databaseAccount = cosmosDBManagementClient.DatabaseAccounts.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, databaseAccountName, databaseAccountCreateUpdateParameters).GetAwaiter().GetResult().Body; Assert.Equal(databaseAccount.Name, databaseAccountName); } diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/ScenarioTests/RestoreDatabaseAccountOperationsTests.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/ScenarioTests/RestoreDatabaseAccountOperationsTests.cs new file mode 100644 index 000000000000..28eb84670bd2 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/ScenarioTests/RestoreDatabaseAccountOperationsTests.cs @@ -0,0 +1,186 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using Microsoft.Azure.Management.CosmosDB; +using Microsoft.Azure.Management.CosmosDB.Models; +using Microsoft.Azure.Management.Resources; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Threading.Tasks; +using Xunit; + +namespace CosmosDB.Tests.ScenarioTests +{ + public class RestoreDatabaseAccountOperationsTests + { + const string location = "eastus2"; + // using an existing DB account, since Account provisioning takes 10-15 minutes + const string resourceGroupName = "CosmosDBResourceGroup3668"; + const string sourceDatabaseAccountName = "sqltestaccount124"; + + [Fact] + public async Task RestoreDatabaseAccountTests() + { + var handler1 = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + using (MockContext context = MockContext.Start(this.GetType())) + { + // Create client + CosmosDBManagementClient cosmosDBManagementClient = CosmosDBTestUtilities.GetCosmosDBClient(context, handler1); + ResourceManagementClient resourcesClient = CosmosDBTestUtilities.GetResourceManagementClient(context, handler1); + string restoredatabaseAccountName = TestUtilities.GenerateName(prefix: "restoredaccountname"); + + DatabaseAccountGetResults databaseAccount = null; + bool isDatabaseNameExists = cosmosDBManagementClient.DatabaseAccounts.CheckNameExistsWithHttpMessagesAsync(sourceDatabaseAccountName).GetAwaiter().GetResult().Body; + if (!isDatabaseNameExists) + { + DatabaseAccountCreateUpdateParameters databaseAccountCreateUpdateParameters1 = new DatabaseAccountCreateUpdateParameters + { + Location = location, + Kind = DatabaseAccountKind.GlobalDocumentDB, + Locations = new List { new Location { LocationName = location } }, + BackupPolicy = new ContinuousModeBackupPolicy(), + }; + + databaseAccount = cosmosDBManagementClient.DatabaseAccounts.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, sourceDatabaseAccountName, databaseAccountCreateUpdateParameters1).GetAwaiter().GetResult().Body; + Assert.Equal(databaseAccount.Name, sourceDatabaseAccountName); + } + databaseAccount = await cosmosDBManagementClient.DatabaseAccounts.GetAsync(resourceGroupName, sourceDatabaseAccountName); + + DateTime restoreTs = DateTime.UtcNow; + + List restorableAccounts = (await cosmosDBManagementClient.RestorableDatabaseAccounts.ListByLocationAsync(location)).ToList(); + RestorableDatabaseAccountGetResult restorableDatabaseAccount = restorableAccounts. + SingleOrDefault(account => account.AccountName.Equals(databaseAccount.Name, StringComparison.OrdinalIgnoreCase)); + + DatabaseAccountCreateUpdateParameters databaseAccountCreateUpdateParameters = new DatabaseAccountCreateUpdateParameters + { + Location = location, + Tags = new Dictionary + { + {"key1","value1"}, + {"key2","value2"} + }, + Kind = "GlobalDocumentDB", + Locations = new List + { + new Location(locationName: location) + }, + CreateMode = CreateMode.Restore, + RestoreParameters = new RestoreParameters() + { + RestoreMode = "PointInTime", + RestoreTimestampInUtc = restoreTs, + RestoreSource = restorableDatabaseAccount.Id + } + }; + + DatabaseAccountGetResults restoredDatabaseAccount = (await cosmosDBManagementClient.DatabaseAccounts.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, restoredatabaseAccountName, databaseAccountCreateUpdateParameters)).Body; + Assert.NotNull(restoredDatabaseAccount); + Assert.NotNull(restoredDatabaseAccount.RestoreParameters); + Assert.Equal(restoredDatabaseAccount.RestoreParameters.RestoreSource.ToLower(), restorableDatabaseAccount.Id.ToLower()); + Assert.True(restoredDatabaseAccount.BackupPolicy is ContinuousModeBackupPolicy); + } + } + + [Fact] + public async Task RestoreDatabaseAccountFeedTests() + { + RecordedDelegatingHandler handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + + using (MockContext context = MockContext.Start(this.GetType())) + { + // Create client + CosmosDBManagementClient cosmosDBManagementClient = CosmosDBTestUtilities.GetCosmosDBClient(context, handler); + + await RestoreDatabaseAccountFeedTestHelperAsync(cosmosDBManagementClient, "pitr-sql-stage-source", ApiType.Sql, 1); + await RestoreDatabaseAccountFeedTestHelperAsync(cosmosDBManagementClient, "pitr-mongo32-stage-source", ApiType.MongoDB, 1); + await RestoreDatabaseAccountFeedTestHelperAsync(cosmosDBManagementClient, "pitr-mongo36-stage-source", ApiType.MongoDB, 1); + } + } + + private async Task RestoreDatabaseAccountFeedTestHelperAsync( + CosmosDBManagementClient cosmosDBManagementClient, + string sourceDatabaseAccountName, + string sourceApiType, + int expectedRestorableLocationCount) + { + DatabaseAccountGetResults sourceDatabaseAccount = await CreateDatabaseAccountIfNotExists(cosmosDBManagementClient, sourceDatabaseAccountName, location, sourceApiType); + + List restorableAccountsFromGlobalFeed = (await cosmosDBManagementClient.RestorableDatabaseAccounts.ListByLocationAsync(location)).ToList(); + + //List restorableAccounts = (await cosmosDBManagementClient.RestorableDatabaseAccounts.ListByLocationAsync(westus2)).ToList(); + RestorableDatabaseAccountGetResult restorableDatabaseAccount = restorableAccountsFromGlobalFeed. + Single(account => account.Name.Equals(sourceDatabaseAccount.InstanceId, StringComparison.OrdinalIgnoreCase)); + + ValidateRestorableDatabaseAccount(restorableDatabaseAccount, sourceDatabaseAccount, sourceApiType, expectedRestorableLocationCount); + + List restorableAccountsFromRegionalFeed = + (await cosmosDBManagementClient.RestorableDatabaseAccounts.ListByLocationAsync(location)).ToList(); + + restorableDatabaseAccount = restorableAccountsFromRegionalFeed. + Single(account => account.Name.Equals(sourceDatabaseAccount.InstanceId, StringComparison.OrdinalIgnoreCase)); + + ValidateRestorableDatabaseAccount(restorableDatabaseAccount, sourceDatabaseAccount, sourceApiType, expectedRestorableLocationCount); + + restorableDatabaseAccount = + await cosmosDBManagementClient.RestorableDatabaseAccounts.GetByLocationAsync(location, sourceDatabaseAccount.InstanceId); + + ValidateRestorableDatabaseAccount(restorableDatabaseAccount, sourceDatabaseAccount, sourceApiType, expectedRestorableLocationCount); + } + + private static void ValidateRestorableDatabaseAccount( + RestorableDatabaseAccountGetResult restorableDatabaseAccount, + DatabaseAccountGetResults sourceDatabaseAccount, + string expectedApiType, + int expectedRestorableLocations) + { + Assert.Equal(expectedApiType, restorableDatabaseAccount.ApiType); + Assert.Equal(expectedRestorableLocations, restorableDatabaseAccount.RestorableLocations.Count); + Assert.Equal("Microsoft.DocumentDB/locations/restorableDatabaseAccounts", restorableDatabaseAccount.Type); + Assert.Equal(sourceDatabaseAccount.Location, restorableDatabaseAccount.Location); + Assert.Equal(sourceDatabaseAccount.Name, restorableDatabaseAccount.AccountName); + } + + private static async Task CreateDatabaseAccountIfNotExists( + CosmosDBManagementClient cosmosDBManagementClient, + string databaseAccountName, + string armLocation, + string kind) + { + bool isDatabaseNameExists = cosmosDBManagementClient.DatabaseAccounts.CheckNameExistsWithHttpMessagesAsync(databaseAccountName).GetAwaiter().GetResult().Body; + String databaseKind = null; + List locations = null; + if (kind == ApiType.Sql) + { + databaseKind = DatabaseAccountKind.GlobalDocumentDB; + locations = new List { new Location { LocationName = "westus" }, new Location { LocationName = "eastus" }, new Location { LocationName = "eastus2" } }; + } + else if (kind == ApiType.MongoDB) + { + databaseKind = DatabaseAccountKind.MongoDB; + locations = new List { new Location { LocationName = "westus" }, new Location { LocationName = "eastus" } }; + } + + DatabaseAccountGetResults databaseAccount = null; + if (!isDatabaseNameExists) + { + DatabaseAccountCreateUpdateParameters databaseAccountCreateUpdateParameters = new DatabaseAccountCreateUpdateParameters + { + Location = armLocation, + Kind = databaseKind, + Locations = locations, + BackupPolicy = new ContinuousModeBackupPolicy() + }; + + databaseAccount = cosmosDBManagementClient.DatabaseAccounts.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, databaseAccountName, databaseAccountCreateUpdateParameters).GetAwaiter().GetResult().Body; + Assert.Equal(databaseAccount.Name, databaseAccountName); + } + databaseAccount = await cosmosDBManagementClient.DatabaseAccounts.GetAsync(resourceGroupName, databaseAccountName); + + return databaseAccount; + } + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/ScenarioTests/RetrieveSqlContainerBackupInformationTests.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/ScenarioTests/RetrieveSqlContainerBackupInformationTests.cs new file mode 100644 index 000000000000..d0a14669c79d --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/ScenarioTests/RetrieveSqlContainerBackupInformationTests.cs @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System; +using System.Net; +using System.Collections.Generic; +using Xunit; +using Microsoft.Azure.Management.CosmosDB; +using Microsoft.Azure.Management.CosmosDB.Models; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; + +namespace CosmosDB.Tests.ScenarioTests +{ + public class RetrieveSqlContainerBackupInformationTests + { + const string location = "eastus2"; + const string resourceGroupName = "CosmosDBResourceGroup3668"; + const string databaseAccountName = "sqltestaccount124"; + const string databaseName = "TestDB1"; + const string containerName = "TestContainer2"; + + [Fact] + public void RetrieveContinuousBackupInfoTest() + { + var handler1 = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; + using (MockContext context = MockContext.Start(this.GetType())) + { + // Create client + CosmosDBManagementClient cosmosDBManagementClient = CosmosDBTestUtilities.GetCosmosDBClient(context, handler1); + ContinuousBackupRestoreLocation restoreLocation = new ContinuousBackupRestoreLocation(location); + + SqlContainerCreateUpdateParameters sqlContainerCreateUpdateParameters = new SqlContainerCreateUpdateParameters() + { + Resource = new SqlContainerResource(containerName, partitionKey: new ContainerPartitionKey(new List() { "/id" })), + Options = new CreateUpdateOptions + { + Throughput = 400 + } + }; + + SqlContainerGetResults createContainerResult = cosmosDBManagementClient.SqlResources.CreateUpdateSqlContainer( + resourceGroupName, + databaseAccountName, + databaseName, + containerName, + sqlContainerCreateUpdateParameters); + Assert.NotNull(createContainerResult); + Assert.NotNull(createContainerResult.Id); + + BackupInformation backupInformation = cosmosDBManagementClient.SqlResources.RetrieveContinuousBackupInformation( + resourceGroupName, + databaseAccountName, + databaseName, + containerName, + restoreLocation); + + Assert.NotNull(backupInformation); + Assert.NotNull(backupInformation.ContinuousBackupInformation); + Assert.True(Int32.Parse(backupInformation.ContinuousBackupInformation.LatestRestorableTimestamp) > 0); + int prevRestoreTime = Int32.Parse(backupInformation.ContinuousBackupInformation.LatestRestorableTimestamp); + + ThroughputSettingsUpdateParameters throughputSettingsUpdateParameters = new ThroughputSettingsUpdateParameters() + { + Resource = new ThroughputSettingsResource() + { + Throughput = 4000 + } + }; + ThroughputSettingsGetResults throughputSettingsGetResults = cosmosDBManagementClient.SqlResources.UpdateSqlContainerThroughput( + resourceGroupName, + databaseAccountName, + databaseName, + containerName, + throughputSettingsUpdateParameters); + Assert.NotNull(throughputSettingsGetResults); + Assert.NotNull(throughputSettingsGetResults.Id); + + backupInformation = cosmosDBManagementClient.SqlResources.RetrieveContinuousBackupInformation( + resourceGroupName, + databaseAccountName, + databaseName, + containerName, + restoreLocation); + + Assert.NotNull(backupInformation); + Assert.NotNull(backupInformation.ContinuousBackupInformation); + Assert.True(Int32.Parse(backupInformation.ContinuousBackupInformation.LatestRestorableTimestamp) >= prevRestoreTime); + + cosmosDBManagementClient.SqlResources.DeleteSqlContainer(resourceGroupName, databaseAccountName, databaseName, containerName); + } + } + } +} diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/ScenarioTests/SqlResourcesOperationsTests.cs b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/ScenarioTests/SqlResourcesOperationsTests.cs index 7c47904d3b1c..efa6be18679b 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/ScenarioTests/SqlResourcesOperationsTests.cs +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/ScenarioTests/SqlResourcesOperationsTests.cs @@ -17,12 +17,13 @@ public class SqlResourcesOperationsTests // using an existing DB account, since Account provisioning takes 10-15 minutes const string resourceGroupName = "CosmosDBResourceGroup3668"; - const string databaseAccountName = "cli124"; - const string databaseAccountName2 = "rbac"; + const string databaseAccountName = "cli126"; + const string databaseAccountName2 = "rbac126"; const string databaseName = "databaseName"; const string databaseName2 = "databaseName2"; const string containerName = "containerName"; + const string containerName2 = "containerName2"; const string storedProcedureName = "storedProcedureName"; const string triggerName = "triggerName"; const string userDefinedFunctionName = "userDefinedFunctionName"; @@ -71,9 +72,9 @@ public void SqlCRUDTests() { {new Location(locationName: location) } } - }; + }; - databaseAccount = cosmosDBManagementClient.DatabaseAccounts.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, databaseAccountName, databaseAccountCreateUpdateParameters).GetAwaiter().GetResult().Body; + databaseAccount = cosmosDBManagementClient.DatabaseAccounts.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, databaseAccountName, databaseAccountCreateUpdateParameters).GetAwaiter().GetResult().Body; Assert.Equal(databaseAccount.Name, databaseAccountName); } @@ -118,12 +119,13 @@ public void SqlCRUDTests() SqlContainerCreateUpdateParameters sqlContainerCreateUpdateParameters = new SqlContainerCreateUpdateParameters { - Resource = new SqlContainerResource { - Id = containerName, + Resource = new SqlContainerResource + { + Id = containerName2, PartitionKey = new ContainerPartitionKey { Kind = "Hash", - Paths = new List { "/address/zipCode"} + Paths = new List { "/address/zipCode" } }, IndexingPolicy = new IndexingPolicy { @@ -158,7 +160,7 @@ public void SqlCRUDTests() } }; - SqlContainerGetResults sqlContainerGetResults = cosmosDBManagementClient.SqlResources.CreateUpdateSqlContainerWithHttpMessagesAsync(resourceGroupName, databaseAccountName, databaseName, containerName, sqlContainerCreateUpdateParameters).GetAwaiter().GetResult().Body; + SqlContainerGetResults sqlContainerGetResults = cosmosDBManagementClient.SqlResources.CreateUpdateSqlContainerWithHttpMessagesAsync(resourceGroupName, databaseAccountName, databaseName, containerName2, sqlContainerCreateUpdateParameters).GetAwaiter().GetResult().Body; Assert.NotNull(sqlContainerGetResults); IEnumerable sqlContainers = cosmosDBManagementClient.SqlResources.ListSqlContainersWithHttpMessagesAsync(resourceGroupName, databaseAccountName, databaseName).GetAwaiter().GetResult().Body; @@ -177,7 +179,7 @@ public void SqlCRUDTests() Options = new CreateUpdateOptions() }; - SqlStoredProcedureGetResults sqlStoredProcedureGetResults = cosmosDBManagementClient.SqlResources.CreateUpdateSqlStoredProcedureWithHttpMessagesAsync(resourceGroupName, databaseAccountName, databaseName, containerName, storedProcedureName, sqlStoredProcedureCreateUpdateParameters).GetAwaiter().GetResult().Body; + SqlStoredProcedureGetResults sqlStoredProcedureGetResults = cosmosDBManagementClient.SqlResources.CreateUpdateSqlStoredProcedureWithHttpMessagesAsync(resourceGroupName, databaseAccountName, databaseName, containerName2, storedProcedureName, sqlStoredProcedureCreateUpdateParameters).GetAwaiter().GetResult().Body; Assert.NotNull(sqlStoredProcedureGetResults); Assert.Equal(sqlStoredProcedureGetResults.Resource.Body, sqlStoredProcedureGetResults.Resource.Body); @@ -186,7 +188,7 @@ public void SqlCRUDTests() foreach (SqlStoredProcedureGetResults sqlStoredProcedure in sqlStoredProcedures) { - cosmosDBManagementClient.SqlResources.DeleteSqlStoredProcedureWithHttpMessagesAsync(resourceGroupName, databaseAccountName, databaseName, containerName, sqlStoredProcedure.Name); + cosmosDBManagementClient.SqlResources.DeleteSqlStoredProcedureWithHttpMessagesAsync(resourceGroupName, databaseAccountName, databaseName, containerName2, sqlStoredProcedure.Name); } SqlUserDefinedFunctionCreateUpdateParameters sqlUserDefinedFunctionCreateUpdateParameters = new SqlUserDefinedFunctionCreateUpdateParameters @@ -212,7 +214,7 @@ public void SqlCRUDTests() foreach (SqlUserDefinedFunctionGetResults sqlUserDefinedFunction in sqlUserDefinedFunctions) { - cosmosDBManagementClient.SqlResources.DeleteSqlUserDefinedFunctionWithHttpMessagesAsync(resourceGroupName, databaseAccountName, databaseName, containerName, sqlUserDefinedFunction.Name); + cosmosDBManagementClient.SqlResources.DeleteSqlUserDefinedFunctionWithHttpMessagesAsync(resourceGroupName, databaseAccountName, databaseName, containerName2, sqlUserDefinedFunction.Name); } SqlTriggerCreateUpdateParameters sqlTriggerCreateUpdateParameters = new SqlTriggerCreateUpdateParameters @@ -241,7 +243,7 @@ public void SqlCRUDTests() foreach (SqlTriggerGetResults sqlTrigger in sqlTriggers) { - cosmosDBManagementClient.SqlResources.DeleteSqlTriggerWithHttpMessagesAsync(resourceGroupName, databaseAccountName, databaseName, containerName, sqlTrigger.Name); + cosmosDBManagementClient.SqlResources.DeleteSqlTriggerWithHttpMessagesAsync(resourceGroupName, databaseAccountName, databaseName, containerName2, sqlTrigger.Name); } foreach (SqlContainerGetResults sqlContainer in sqlContainers) @@ -357,7 +359,14 @@ public void SqlRoleTests() Assert.NotNull(sqlRoleDefinitions); foreach (SqlRoleDefinitionGetResults sqlRoleDefinition in sqlRoleDefinitions) { - VerifyEqualSqlRoleDefinitions(sqlRoleDefinition.Name == sqlRoleDefinitionGetResults3.Name ? sqlRoleDefinitionGetResults3 : sqlRoleDefinitionGetResults4, sqlRoleDefinition); + if (sqlRoleDefinition.Name == sqlRoleDefinitionGetResults3.Name) + { + VerifyEqualSqlRoleDefinitions(sqlRoleDefinitionGetResults3, sqlRoleDefinition); + } + if (sqlRoleDefinition.Name == sqlRoleDefinitionGetResults4.Name) + { + VerifyEqualSqlRoleDefinitions(sqlRoleDefinitionGetResults4, sqlRoleDefinition); + } } SqlRoleAssignmentCreateUpdateParameters sqlRoleAssignmentCreateUpdateParameters = new SqlRoleAssignmentCreateUpdateParameters @@ -404,7 +413,10 @@ public void SqlRoleTests() foreach (SqlRoleDefinitionGetResults sqlRoleDefinition in sqlRoleDefinitions) { - cosmosDBManagementClient.SqlResources.DeleteSqlRoleDefinitionWithHttpMessagesAsync(sqlRoleDefinition.Name, resourceGroupName, databaseAccountName2).GetAwaiter().GetResult(); + if (sqlRoleDefinition.Name == sqlRoleDefinitionGetResults3.Name || sqlRoleDefinition.Name == sqlRoleDefinitionGetResults4.Name) + { + cosmosDBManagementClient.SqlResources.DeleteSqlRoleDefinitionWithHttpMessagesAsync(sqlRoleDefinition.Name, resourceGroupName, databaseAccountName2).GetAwaiter().GetResult(); + } } const string InvalidActionName = "invalid-action-name"; diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/CassandraResourcesOperationsTests/CassandraCRUDTests.json b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/CassandraResourcesOperationsTests/CassandraCRUDTests.json index 5f309438c24d..d7fd8cb0fb94 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/CassandraResourcesOperationsTests/CassandraCRUDTests.json +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/CassandraResourcesOperationsTests/CassandraCRUDTests.json @@ -1,297 +1,21 @@ { "Entries": [ { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/triggers/triggerName?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lL3RyaWdnZXJzL3RyaWdnZXJOYW1lP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "28bbcc58-553f-4bba-974e-ea5a9fb8f4cd" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29916.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/triggers/triggerName/operationResults/94d60f8a-6b9b-4b5b-a7b8-fa4cb7395b87?api-version=2021-04-15" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/94d60f8a-6b9b-4b5b-a7b8-fa4cb7395b87?api-version=2021-04-15" - ], - "x-ms-request-id": [ - "94d60f8a-6b9b-4b5b-a7b8-fa4cb7395b87" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14997" - ], - "x-ms-correlation-request-id": [ - "726722ee-8faa-49d0-ac60-6cc2d7aae8c9" - ], - "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174739Z:726722ee-8faa-49d0-ac60-6cc2d7aae8c9" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 27 Apr 2021 17:47:38 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName2?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUyP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6cd1d9bd-b477-4bbe-bd60-f6b1ba6c3c50" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29916.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName2/operationResults/e1c048db-8895-4928-9550-efa5103929f0?api-version=2021-04-15" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e1c048db-8895-4928-9550-efa5103929f0?api-version=2021-04-15" - ], - "x-ms-request-id": [ - "e1c048db-8895-4928-9550-efa5103929f0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-correlation-request-id": [ - "6fee37d4-1f77-4228-86de-05b6d5fa90cc" - ], - "x-ms-routing-request-id": [ - "WESTUS:20210427T174740Z:6fee37d4-1f77-4228-86de-05b6d5fa90cc" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 27 Apr 2021 17:47:39 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "79a91908-283b-416e-8cdc-f99e772edc6d" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29916.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/operationResults/60b90905-8556-4544-acec-1d3f9f188f36?api-version=2021-04-15" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/60b90905-8556-4544-acec-1d3f9f188f36?api-version=2021-04-15" - ], - "x-ms-request-id": [ - "60b90905-8556-4544-acec-1d3f9f188f36" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-correlation-request-id": [ - "515d7330-56aa-4784-95ec-ee4122bfef6f" - ], - "x-ms-routing-request-id": [ - "WESTUS:20210427T174740Z:515d7330-56aa-4784-95ec-ee4122bfef6f" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 27 Apr 2021 17:47:39 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWU/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "a9d15954-ff2a-4311-9679-fdf0c73f8868" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29916.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/operationResults/c90f7d62-88d0-493c-9638-50750e043441?api-version=2021-04-15" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/c90f7d62-88d0-493c-9638-50750e043441?api-version=2021-04-15" - ], - "x-ms-request-id": [ - "c90f7d62-88d0-493c-9638-50750e043441" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-correlation-request-id": [ - "e43c116b-883e-4c52-8685-77ebec203f08" - ], - "x-ms-routing-request-id": [ - "WESTUS:20210427T174740Z:e43c116b-883e-4c52-8685-77ebec203f08" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 27 Apr 2021 17:47:39 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.DocumentDB/databaseAccountNames/db8192?api-version=2021-04-15", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnROYW1lcy9kYjgxOTI/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", + "RequestUri": "/providers/Microsoft.DocumentDB/databaseAccountNames/db8192?api-version=2021-06-15", + "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnROYW1lcy9kYjgxOTI/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "HEAD", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "dd3681f1-68fe-46ff-a6d1-119773100b65" + "dde07586-6fa8-4303-b5f3-61883a43db99" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -306,7 +30,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-activity-id": [ - "dd3681f1-68fe-46ff-a6d1-119773100b65" + "dde07586-6fa8-4303-b5f3-61883a43db99" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -315,19 +39,19 @@ "11999" ], "x-ms-request-id": [ - "7104e4e4-7cf9-4cd1-ba3f-2d93ccef4f17" + "beab185d-95f3-4a80-8ece-cc7d9f1ff791" ], "x-ms-correlation-request-id": [ - "7104e4e4-7cf9-4cd1-ba3f-2d93ccef4f17" + "beab185d-95f3-4a80-8ece-cc7d9f1ff791" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T174740Z:7104e4e4-7cf9-4cd1-ba3f-2d93ccef4f17" + "WESTUS2:20210616T050603Z:beab185d-95f3-4a80-8ece-cc7d9f1ff791" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:47:39 GMT" + "Wed, 16 Jun 2021 05:06:03 GMT" ], "Content-Length": [ "0" @@ -337,21 +61,21 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI4MTkyL2Nhc3NhbmRyYUtleXNwYWNlcy9rZXlzcGFjZU5hbWUyNTEwP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI4MTkyL2Nhc3NhbmRyYUtleXNwYWNlcy9rZXlzcGFjZU5hbWUyNTEwP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"keyspaceName2510\"\r\n },\r\n \"options\": {}\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "a0ae7e95-567a-4f7c-880a-c3063b2d2ac4" + "a0b62795-6d89-4386-ba75-7249794f384d" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ @@ -369,19 +93,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510/operationResults/81a66ce3-8f21-419b-8372-b1510c56ba6b?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510/operationResults/27266bce-a1b9-4313-b1fd-3c281e29ed3e?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/81a66ce3-8f21-419b-8372-b1510c56ba6b?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/27266bce-a1b9-4313-b1fd-3c281e29ed3e?api-version=2021-06-15" ], "x-ms-request-id": [ - "81a66ce3-8f21-419b-8372-b1510c56ba6b" + "27266bce-a1b9-4313-b1fd-3c281e29ed3e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -390,16 +114,16 @@ "1199" ], "x-ms-correlation-request-id": [ - "8ef18277-d913-443d-958f-77d326532fa1" + "986c454c-81cd-4b14-a19d-c3e191dbc22b" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T174741Z:8ef18277-d913-443d-958f-77d326532fa1" + "WESTUS2:20210616T050604Z:986c454c-81cd-4b14-a19d-c3e191dbc22b" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:47:40 GMT" + "Wed, 16 Jun 2021 05:06:04 GMT" ], "Content-Length": [ "21" @@ -412,15 +136,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/81a66ce3-8f21-419b-8372-b1510c56ba6b?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzgxYTY2Y2UzLThmMjEtNDE5Yi04MzcyLWIxNTEwYzU2YmE2Yj9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/27266bce-a1b9-4313-b1fd-3c281e29ed3e?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI3MjY2YmNlLWExYjktNDMxMy1iMWZkLTNjMjgxZTI5ZWQzZT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -435,7 +159,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -444,19 +168,19 @@ "11999" ], "x-ms-request-id": [ - "3d33c631-8e28-4832-9a8d-53b13c900c0f" + "dea58551-7fd4-4a22-9f59-1abe768c8f5b" ], "x-ms-correlation-request-id": [ - "3d33c631-8e28-4832-9a8d-53b13c900c0f" + "dea58551-7fd4-4a22-9f59-1abe768c8f5b" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T174811Z:3d33c631-8e28-4832-9a8d-53b13c900c0f" + "WESTUS2:20210616T050634Z:dea58551-7fd4-4a22-9f59-1abe768c8f5b" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:48:11 GMT" + "Wed, 16 Jun 2021 05:06:34 GMT" ], "Content-Length": [ "22" @@ -469,15 +193,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI4MTkyL2Nhc3NhbmRyYUtleXNwYWNlcy9rZXlzcGFjZU5hbWUyNTEwP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI4MTkyL2Nhc3NhbmRyYUtleXNwYWNlcy9rZXlzcGFjZU5hbWUyNTEwP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -492,7 +216,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -501,19 +225,19 @@ "11998" ], "x-ms-request-id": [ - "b82e0dc8-0119-4c9e-a5a6-67dbec5ba7f8" + "d4c8da32-54a9-4778-b6d1-60b49e159f15" ], "x-ms-correlation-request-id": [ - "b82e0dc8-0119-4c9e-a5a6-67dbec5ba7f8" + "d4c8da32-54a9-4778-b6d1-60b49e159f15" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T174811Z:b82e0dc8-0119-4c9e-a5a6-67dbec5ba7f8" + "WESTUS2:20210616T050635Z:d4c8da32-54a9-4778-b6d1-60b49e159f15" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:48:11 GMT" + "Wed, 16 Jun 2021 05:06:34 GMT" ], "Content-Length": [ "422" @@ -522,25 +246,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces\",\r\n \"name\": \"keyspaceName2510\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"keyspaceName2510\",\r\n \"_rid\": \"Xl87AA==\",\r\n \"_etag\": \"\\\"00000100-0000-0200-0000-60884e430000\\\"\",\r\n \"_ts\": 1619545667\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces\",\r\n \"name\": \"keyspaceName2510\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"keyspaceName2510\",\r\n \"_rid\": \"8uZ2AA==\",\r\n \"_etag\": \"\\\"0000bb34-0000-0200-0000-60c11a870000\\\"\",\r\n \"_ts\": 1623267975\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI4MTkyL2Nhc3NhbmRyYUtleXNwYWNlcy9rZXlzcGFjZU5hbWUyNTEwP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI4MTkyL2Nhc3NhbmRyYUtleXNwYWNlcy9rZXlzcGFjZU5hbWUyNTEwP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f0338bea-680c-4047-afb2-300f8e1f663d" + "6fc73548-4ad7-4621-952f-a9216ff0cebd" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -555,7 +279,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -564,19 +288,19 @@ "11997" ], "x-ms-request-id": [ - "3d05259a-9b2f-42e4-bf9a-56be40a6b825" + "32ef104d-4923-4a4e-85ec-eb90502194aa" ], "x-ms-correlation-request-id": [ - "3d05259a-9b2f-42e4-bf9a-56be40a6b825" + "32ef104d-4923-4a4e-85ec-eb90502194aa" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T174812Z:3d05259a-9b2f-42e4-bf9a-56be40a6b825" + "WESTUS2:20210616T050635Z:32ef104d-4923-4a4e-85ec-eb90502194aa" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:48:11 GMT" + "Wed, 16 Jun 2021 05:06:34 GMT" ], "Content-Length": [ "422" @@ -585,25 +309,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces\",\r\n \"name\": \"keyspaceName2510\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"keyspaceName2510\",\r\n \"_rid\": \"Xl87AA==\",\r\n \"_etag\": \"\\\"00000100-0000-0200-0000-60884e430000\\\"\",\r\n \"_ts\": 1619545667\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces\",\r\n \"name\": \"keyspaceName2510\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"keyspaceName2510\",\r\n \"_rid\": \"8uZ2AA==\",\r\n \"_etag\": \"\\\"0000bb34-0000-0200-0000-60c11a870000\\\"\",\r\n \"_ts\": 1623267975\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName22510?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI4MTkyL2Nhc3NhbmRyYUtleXNwYWNlcy9rZXlzcGFjZU5hbWUyMjUxMD9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName22510?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI4MTkyL2Nhc3NhbmRyYUtleXNwYWNlcy9rZXlzcGFjZU5hbWUyMjUxMD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"keyspaceName22510\"\r\n },\r\n \"options\": {\r\n \"throughput\": 700\r\n }\r\n },\r\n \"location\": \"EAST US 2\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "678f2f81-8c02-4887-8525-ce089c99eb82" + "337e0cdb-9bd5-4a03-99e8-d6fe4c9bf236" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ @@ -621,19 +345,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName22510/operationResults/6234a1d3-42b9-4090-ab3b-17f87846ecc5?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName22510/operationResults/5a13f6b8-026e-4ac7-a825-087da080479a?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/6234a1d3-42b9-4090-ab3b-17f87846ecc5?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/5a13f6b8-026e-4ac7-a825-087da080479a?api-version=2021-06-15" ], "x-ms-request-id": [ - "6234a1d3-42b9-4090-ab3b-17f87846ecc5" + "5a13f6b8-026e-4ac7-a825-087da080479a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -642,16 +366,16 @@ "1198" ], "x-ms-correlation-request-id": [ - "381e5274-a313-463b-8764-325b58adb702" + "718c0597-d9ef-49cf-9622-35f4e95b8114" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T174813Z:381e5274-a313-463b-8764-325b58adb702" + "WESTUS2:20210616T050636Z:718c0597-d9ef-49cf-9622-35f4e95b8114" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:48:12 GMT" + "Wed, 16 Jun 2021 05:06:35 GMT" ], "Content-Length": [ "21" @@ -664,15 +388,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/6234a1d3-42b9-4090-ab3b-17f87846ecc5?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzYyMzRhMWQzLTQyYjktNDA5MC1hYjNiLTE3Zjg3ODQ2ZWNjNT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/5a13f6b8-026e-4ac7-a825-087da080479a?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzVhMTNmNmI4LTAyNmUtNGFjNy1hODI1LTA4N2RhMDgwNDc5YT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -687,7 +411,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -696,19 +420,19 @@ "11996" ], "x-ms-request-id": [ - "d35314d5-25b3-4cc8-bff4-465fabc1b74e" + "48eaf714-0608-4431-8ea0-8a744e397ad1" ], "x-ms-correlation-request-id": [ - "d35314d5-25b3-4cc8-bff4-465fabc1b74e" + "48eaf714-0608-4431-8ea0-8a744e397ad1" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T174843Z:d35314d5-25b3-4cc8-bff4-465fabc1b74e" + "WESTUS2:20210616T050706Z:48eaf714-0608-4431-8ea0-8a744e397ad1" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:48:42 GMT" + "Wed, 16 Jun 2021 05:07:05 GMT" ], "Content-Length": [ "22" @@ -721,15 +445,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName22510?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI4MTkyL2Nhc3NhbmRyYUtleXNwYWNlcy9rZXlzcGFjZU5hbWUyMjUxMD9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName22510?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI4MTkyL2Nhc3NhbmRyYUtleXNwYWNlcy9rZXlzcGFjZU5hbWUyMjUxMD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -744,7 +468,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -753,19 +477,19 @@ "11995" ], "x-ms-request-id": [ - "7be470de-6188-4819-a080-e3bb9a178830" + "d0338d1e-2033-4483-b0ec-7157712f0f19" ], "x-ms-correlation-request-id": [ - "7be470de-6188-4819-a080-e3bb9a178830" + "d0338d1e-2033-4483-b0ec-7157712f0f19" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T174843Z:7be470de-6188-4819-a080-e3bb9a178830" + "WESTUS2:20210616T050706Z:d0338d1e-2033-4483-b0ec-7157712f0f19" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:48:43 GMT" + "Wed, 16 Jun 2021 05:07:05 GMT" ], "Content-Length": [ "425" @@ -774,25 +498,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName22510\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces\",\r\n \"name\": \"keyspaceName22510\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"keyspaceName22510\",\r\n \"_rid\": \"mkNJAA==\",\r\n \"_etag\": \"\\\"00000300-0000-0200-0000-60884e670000\\\"\",\r\n \"_ts\": 1619545703\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName22510\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces\",\r\n \"name\": \"keyspaceName22510\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"keyspaceName22510\",\r\n \"_rid\": \"y5o1AA==\",\r\n \"_etag\": \"\\\"0000c734-0000-0200-0000-60c11aa90000\\\"\",\r\n \"_ts\": 1623268009\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI4MTkyL2Nhc3NhbmRyYUtleXNwYWNlcz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI4MTkyL2Nhc3NhbmRyYUtleXNwYWNlcz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "aee71252-edc4-4462-9322-d91aa98450c9" + "09473c92-121f-4019-9b73-10589636ed17" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -807,7 +531,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -816,19 +540,19 @@ "11994" ], "x-ms-request-id": [ - "fd14a9fe-c7ba-4842-9517-dde1f08ca286" + "09145d69-a632-4763-af39-6ec914450d68" ], "x-ms-correlation-request-id": [ - "fd14a9fe-c7ba-4842-9517-dde1f08ca286" + "09145d69-a632-4763-af39-6ec914450d68" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T174843Z:fd14a9fe-c7ba-4842-9517-dde1f08ca286" + "WESTUS2:20210616T050706Z:09145d69-a632-4763-af39-6ec914450d68" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:48:43 GMT" + "Wed, 16 Jun 2021 05:07:05 GMT" ], "Content-Length": [ "860" @@ -837,25 +561,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces\",\r\n \"name\": \"keyspaceName2510\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"keyspaceName2510\",\r\n \"_rid\": \"Xl87AA==\",\r\n \"_etag\": \"\\\"00000100-0000-0200-0000-60884e430000\\\"\",\r\n \"_ts\": 1619545667\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName22510\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces\",\r\n \"name\": \"keyspaceName22510\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"keyspaceName22510\",\r\n \"_rid\": \"mkNJAA==\",\r\n \"_etag\": \"\\\"00000300-0000-0200-0000-60884e670000\\\"\",\r\n \"_ts\": 1619545703\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName22510\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces\",\r\n \"name\": \"keyspaceName22510\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"keyspaceName22510\",\r\n \"_rid\": \"y5o1AA==\",\r\n \"_etag\": \"\\\"0000c734-0000-0200-0000-60c11aa90000\\\"\",\r\n \"_ts\": 1623268009\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces\",\r\n \"name\": \"keyspaceName2510\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"keyspaceName2510\",\r\n \"_rid\": \"8uZ2AA==\",\r\n \"_etag\": \"\\\"0000bb34-0000-0200-0000-60c11a870000\\\"\",\r\n \"_ts\": 1623267975\r\n }\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName22510/throughputSettings/default?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI4MTkyL2Nhc3NhbmRyYUtleXNwYWNlcy9rZXlzcGFjZU5hbWUyMjUxMC90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName22510/throughputSettings/default?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI4MTkyL2Nhc3NhbmRyYUtleXNwYWNlcy9rZXlzcGFjZU5hbWUyMjUxMC90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "64580ee5-4973-41c3-abce-164f80ed4384" + "b993922f-6795-4394-b9af-54cd3b759b71" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -870,7 +594,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -879,19 +603,19 @@ "11993" ], "x-ms-request-id": [ - "e5f18089-c959-4712-89ca-4c37e25f300f" + "2f27a505-b059-46b6-8fc4-f9cdf68ec70b" ], "x-ms-correlation-request-id": [ - "e5f18089-c959-4712-89ca-4c37e25f300f" + "2f27a505-b059-46b6-8fc4-f9cdf68ec70b" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T174843Z:e5f18089-c959-4712-89ca-4c37e25f300f" + "WESTUS2:20210616T050706Z:2f27a505-b059-46b6-8fc4-f9cdf68ec70b" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:48:43 GMT" + "Wed, 16 Jun 2021 05:07:06 GMT" ], "Content-Length": [ "390" @@ -900,25 +624,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName22510/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings\",\r\n \"name\": \"LHsU\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 700,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName22510/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings\",\r\n \"name\": \"Q3Ty\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 700,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510/tables/tableName2510?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI4MTkyL2Nhc3NhbmRyYUtleXNwYWNlcy9rZXlzcGFjZU5hbWUyNTEwL3RhYmxlcy90YWJsZU5hbWUyNTEwP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510/tables/tableName2510?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI4MTkyL2Nhc3NhbmRyYUtleXNwYWNlcy9rZXlzcGFjZU5hbWUyNTEwL3RhYmxlcy90YWJsZU5hbWUyNTEwP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"tableName2510\",\r\n \"schema\": {\r\n \"columns\": [\r\n {\r\n \"name\": \"columnA\",\r\n \"type\": \"int\"\r\n },\r\n {\r\n \"name\": \"columnB\",\r\n \"type\": \"ascii\"\r\n }\r\n ],\r\n \"partitionKeys\": [\r\n {\r\n \"name\": \"columnA\"\r\n }\r\n ],\r\n \"clusterKeys\": [\r\n {\r\n \"name\": \"columnB\",\r\n \"orderBy\": \"Asc\"\r\n }\r\n ]\r\n }\r\n },\r\n \"options\": {}\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "2d870b9a-8316-4a94-ad84-fd2236a90890" + "825e91de-eeb3-4f54-85cc-b7d373406744" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ @@ -936,19 +660,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510/tables/tableName2510/operationResults/12940a6f-780b-41cb-b01a-a1b9a0d215ac?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510/tables/tableName2510/operationResults/792083c0-bd1f-4b3b-9288-f1de4b47c82c?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/12940a6f-780b-41cb-b01a-a1b9a0d215ac?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/792083c0-bd1f-4b3b-9288-f1de4b47c82c?api-version=2021-06-15" ], "x-ms-request-id": [ - "12940a6f-780b-41cb-b01a-a1b9a0d215ac" + "792083c0-bd1f-4b3b-9288-f1de4b47c82c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -957,16 +681,16 @@ "1197" ], "x-ms-correlation-request-id": [ - "11e39df1-0f5b-43fc-8acb-e2116be4c6dc" + "53a245ba-a48b-44a4-bd1c-2ea2efc90dba" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T174844Z:11e39df1-0f5b-43fc-8acb-e2116be4c6dc" + "WESTUS2:20210616T050707Z:53a245ba-a48b-44a4-bd1c-2ea2efc90dba" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:48:44 GMT" + "Wed, 16 Jun 2021 05:07:06 GMT" ], "Content-Length": [ "21" @@ -979,15 +703,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/12940a6f-780b-41cb-b01a-a1b9a0d215ac?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzEyOTQwYTZmLTc4MGItNDFjYi1iMDFhLWExYjlhMGQyMTVhYz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/792083c0-bd1f-4b3b-9288-f1de4b47c82c?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzc5MjA4M2MwLWJkMWYtNGIzYi05Mjg4LWYxZGU0YjQ3YzgyYz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1002,7 +726,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1011,19 +735,19 @@ "11992" ], "x-ms-request-id": [ - "51d982fa-7dd7-437f-bc9b-7bd2748d75f2" + "e4dde72f-ce3c-4a36-9c6f-4e2d49b7df06" ], "x-ms-correlation-request-id": [ - "51d982fa-7dd7-437f-bc9b-7bd2748d75f2" + "e4dde72f-ce3c-4a36-9c6f-4e2d49b7df06" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T174914Z:51d982fa-7dd7-437f-bc9b-7bd2748d75f2" + "WESTUS2:20210616T050737Z:e4dde72f-ce3c-4a36-9c6f-4e2d49b7df06" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:49:14 GMT" + "Wed, 16 Jun 2021 05:07:37 GMT" ], "Content-Length": [ "22" @@ -1036,15 +760,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510/tables/tableName2510?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI4MTkyL2Nhc3NhbmRyYUtleXNwYWNlcy9rZXlzcGFjZU5hbWUyNTEwL3RhYmxlcy90YWJsZU5hbWUyNTEwP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510/tables/tableName2510?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI4MTkyL2Nhc3NhbmRyYUtleXNwYWNlcy9rZXlzcGFjZU5hbWUyNTEwL3RhYmxlcy90YWJsZU5hbWUyNTEwP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1059,7 +783,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1068,19 +792,19 @@ "11991" ], "x-ms-request-id": [ - "628a13e4-b3af-4469-8913-dffa7d0e2d96" + "5b74b782-81f8-4145-8df7-2c794d5313cf" ], "x-ms-correlation-request-id": [ - "628a13e4-b3af-4469-8913-dffa7d0e2d96" + "5b74b782-81f8-4145-8df7-2c794d5313cf" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T174915Z:628a13e4-b3af-4469-8913-dffa7d0e2d96" + "WESTUS2:20210616T050738Z:5b74b782-81f8-4145-8df7-2c794d5313cf" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:49:14 GMT" + "Wed, 16 Jun 2021 05:07:37 GMT" ], "Content-Length": [ "640" @@ -1089,25 +813,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510/tables/tableName2510\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables\",\r\n \"name\": \"tableName2510\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"tableName2510\",\r\n \"_rid\": \"Xl87AKuKufw=\",\r\n \"_etag\": \"\\\"00000700-0000-0200-0000-60884e810000\\\"\",\r\n \"_ts\": 1619545729,\r\n \"defaultTtl\": 0,\r\n \"schema\": {\r\n \"columns\": [\r\n {\r\n \"name\": \"columnA\",\r\n \"type\": \"int\"\r\n },\r\n {\r\n \"name\": \"columnB\",\r\n \"type\": \"ascii\"\r\n }\r\n ],\r\n \"partitionKeys\": [\r\n {\r\n \"name\": \"columnA\"\r\n }\r\n ],\r\n \"clusterKeys\": [\r\n {\r\n \"name\": \"columnB\",\r\n \"orderBy\": \"Asc\"\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510/tables/tableName2510\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables\",\r\n \"name\": \"tableName2510\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"tableName2510\",\r\n \"_rid\": \"8uZ2APFHxmo=\",\r\n \"_etag\": \"\\\"000017f5-0000-0200-0000-60c986ff0000\\\"\",\r\n \"_ts\": 1623820031,\r\n \"defaultTtl\": 0,\r\n \"schema\": {\r\n \"columns\": [\r\n {\r\n \"name\": \"columnA\",\r\n \"type\": \"int\"\r\n },\r\n {\r\n \"name\": \"columnB\",\r\n \"type\": \"ascii\"\r\n }\r\n ],\r\n \"partitionKeys\": [\r\n {\r\n \"name\": \"columnA\"\r\n }\r\n ],\r\n \"clusterKeys\": [\r\n {\r\n \"name\": \"columnB\",\r\n \"orderBy\": \"Asc\"\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510/tables?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI4MTkyL2Nhc3NhbmRyYUtleXNwYWNlcy9rZXlzcGFjZU5hbWUyNTEwL3RhYmxlcz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510/tables?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI4MTkyL2Nhc3NhbmRyYUtleXNwYWNlcy9rZXlzcGFjZU5hbWUyNTEwL3RhYmxlcz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "41ff11da-2ceb-44c6-be4b-cbbb85e463f6" + "7830932e-8513-4bac-ad9f-a4016679fc63" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1122,7 +846,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1131,19 +855,19 @@ "11990" ], "x-ms-request-id": [ - "7fe843da-5ad0-4e45-87ca-31265c4334ba" + "4cf97473-f4ea-4c0e-9108-f851fe18f442" ], "x-ms-correlation-request-id": [ - "7fe843da-5ad0-4e45-87ca-31265c4334ba" + "4cf97473-f4ea-4c0e-9108-f851fe18f442" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T174915Z:7fe843da-5ad0-4e45-87ca-31265c4334ba" + "WESTUS2:20210616T050738Z:4cf97473-f4ea-4c0e-9108-f851fe18f442" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:49:14 GMT" + "Wed, 16 Jun 2021 05:07:38 GMT" ], "Content-Length": [ "652" @@ -1152,12 +876,12 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510/tables/tableName2510\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables\",\r\n \"name\": \"tableName2510\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"tableName2510\",\r\n \"_rid\": \"Xl87AKuKufw=\",\r\n \"_etag\": \"\\\"00000700-0000-0200-0000-60884e810000\\\"\",\r\n \"_ts\": 1619545729,\r\n \"defaultTtl\": 0,\r\n \"schema\": {\r\n \"columns\": [\r\n {\r\n \"name\": \"columnA\",\r\n \"type\": \"int\"\r\n },\r\n {\r\n \"name\": \"columnB\",\r\n \"type\": \"ascii\"\r\n }\r\n ],\r\n \"partitionKeys\": [\r\n {\r\n \"name\": \"columnA\"\r\n }\r\n ],\r\n \"clusterKeys\": [\r\n {\r\n \"name\": \"columnB\",\r\n \"orderBy\": \"Asc\"\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510/tables/tableName2510\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables\",\r\n \"name\": \"tableName2510\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"tableName2510\",\r\n \"_rid\": \"8uZ2APFHxmo=\",\r\n \"_etag\": \"\\\"000017f5-0000-0200-0000-60c986ff0000\\\"\",\r\n \"_ts\": 1623820031,\r\n \"defaultTtl\": 0,\r\n \"schema\": {\r\n \"columns\": [\r\n {\r\n \"name\": \"columnA\",\r\n \"type\": \"int\"\r\n },\r\n {\r\n \"name\": \"columnB\",\r\n \"type\": \"ascii\"\r\n }\r\n ],\r\n \"partitionKeys\": [\r\n {\r\n \"name\": \"columnA\"\r\n }\r\n ],\r\n \"clusterKeys\": [\r\n {\r\n \"name\": \"columnB\",\r\n \"orderBy\": \"Asc\"\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 } ], "Names": {}, "Variables": { - "SubscriptionId": "80be3961-0521-4a0a-8570-5cd5a4e2f98c" + "SubscriptionId": "259fbb24-9bcd-4cfc-865c-fc33b22fe38a" } } \ No newline at end of file diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/DatabaseAccountOperationsTests/DatabaseAccountCRUDTests.json b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/DatabaseAccountOperationsTests/DatabaseAccountCRUDTests.json index b57a0a4dbbcc..ffcd493be215 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/DatabaseAccountOperationsTests/DatabaseAccountCRUDTests.json +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/DatabaseAccountOperationsTests/DatabaseAccountCRUDTests.json @@ -1,21 +1,21 @@ { "Entries": [ { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourcegroups/CosmosDBResourceGroup6394?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlZ3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDYzOTQ/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourcegroups/CosmosDBResourceGroup8650?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlZ3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDg2NTA/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "HEAD", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "fced846c-4e19-4e56-9c3f-be42812c4a35" + "bf608a80-ce51-4b7c-970b-682bd746c6ae" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ] }, @@ -33,13 +33,13 @@ "11999" ], "x-ms-request-id": [ - "db603aef-8d6e-4276-a46d-cbeb531212c6" + "9a2c50fa-bcdc-4057-a8de-b34c4950b3ba" ], "x-ms-correlation-request-id": [ - "db603aef-8d6e-4276-a46d-cbeb531212c6" + "9a2c50fa-bcdc-4057-a8de-b34c4950b3ba" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T171654Z:db603aef-8d6e-4276-a46d-cbeb531212c6" + "WESTUS2:20210616T050754Z:9a2c50fa-bcdc-4057-a8de-b34c4950b3ba" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -48,7 +48,7 @@ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:16:53 GMT" + "Wed, 16 Jun 2021 05:07:54 GMT" ], "Content-Length": [ "117" @@ -64,21 +64,21 @@ "StatusCode": 404 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourcegroups/CosmosDBResourceGroup6394?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlZ3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDYzOTQ/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourcegroups/CosmosDBResourceGroup8650?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlZ3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDg2NTA/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "2537d2c9-4dd7-4236-ae45-0a4a9e6cd3b8" + "daf2ce27-b519-467b-892b-ca3a0a3ec577" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" ], "Content-Type": [ @@ -99,13 +99,13 @@ "1199" ], "x-ms-request-id": [ - "99db5df8-cb6c-4bff-9eb4-ceb4b4da5d80" + "16a316d1-2611-4c9d-8183-368b8cd190a3" ], "x-ms-correlation-request-id": [ - "99db5df8-cb6c-4bff-9eb4-ceb4b4da5d80" + "16a316d1-2611-4c9d-8183-368b8cd190a3" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T171656Z:99db5df8-cb6c-4bff-9eb4-ceb4b4da5d80" + "WESTUS2:20210616T050756Z:16a316d1-2611-4c9d-8183-368b8cd190a3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -114,7 +114,7 @@ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:16:56 GMT" + "Wed, 16 Jun 2021 05:07:55 GMT" ], "Content-Length": [ "204" @@ -126,32 +126,32 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394\",\r\n \"name\": \"CosmosDBResourceGroup6394\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650\",\r\n \"name\": \"CosmosDBResourceGroup8650\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394/providers/Microsoft.DocumentDB/databaseAccounts/accountname9088?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDYzOTQvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU5MDg4P2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts/accountname4002?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDg2NTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU0MDAyP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"kind\": \"MongoDB\",\r\n \"properties\": {\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxStalenessPrefix\": 300,\r\n \"maxIntervalInSeconds\": 1000\r\n },\r\n \"locations\": [\r\n {\r\n \"locationName\": \"East US 2\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"isVirtualNetworkFilterEnabled\": true,\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enableCassandraConnector\": true,\r\n \"connectorOffer\": \"Small\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"networkAclBypass\": \"AzureServices\",\r\n \"networkAclBypassResourceIds\": [\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName\"\r\n ],\r\n \"databaseAccountOfferType\": \"Standard\"\r\n },\r\n \"location\": \"EAST US 2\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestBody": "{\r\n \"kind\": \"MongoDB\",\r\n \"properties\": {\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxStalenessPrefix\": 300,\r\n \"maxIntervalInSeconds\": 1000\r\n },\r\n \"locations\": [\r\n {\r\n \"locationName\": \"East US 2\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"isVirtualNetworkFilterEnabled\": true,\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"networkAclBypass\": \"AzureServices\",\r\n \"networkAclBypassResourceIds\": [\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName\"\r\n ],\r\n \"databaseAccountOfferType\": \"Standard\"\r\n },\r\n \"location\": \"EAST US 2\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "8d89d502-b25f-46d1-8bf6-a6adc135b0eb" + "7c3e8db8-258e-4c37-89c7-6dd9ee0d80e1" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "958" + "887" ] }, "ResponseHeaders": { @@ -162,19 +162,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394/providers/Microsoft.DocumentDB/databaseAccounts/accountname9088/operationResults/e41e39b6-2e43-494e-9923-0dc3f1469f47?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts/accountname4002/operationResults/f08075c3-9641-4561-8f5e-eb0154c3de83?api-version=2021-06-15" ], "x-ms-request-id": [ - "e41e39b6-2e43-494e-9923-0dc3f1469f47" + "f08075c3-9641-4561-8f5e-eb0154c3de83" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e41e39b6-2e43-494e-9923-0dc3f1469f47?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/f08075c3-9641-4561-8f5e-eb0154c3de83?api-version=2021-06-15" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -183,37 +183,37 @@ "1199" ], "x-ms-correlation-request-id": [ - "59e42a3a-6bdf-4f72-9ccd-a40ce736054a" + "16b6834b-09aa-4afe-9164-bf82795162eb" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T171705Z:59e42a3a-6bdf-4f72-9ccd-a40ce736054a" + "WESTUS2:20210616T050802Z:16b6834b-09aa-4afe-9164-bf82795162eb" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:17:04 GMT" + "Wed, 16 Jun 2021 05:08:02 GMT" ], "Content-Length": [ - "2241" + "2182" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394/providers/Microsoft.DocumentDB/databaseAccounts/accountname9088\",\r\n \"name\": \"accountname9088\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-27T17:17:01.5647502Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": true,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c3f52ca9-535e-46c4-85d4-8b8c6a46d967\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": true,\r\n \"connectorOffer\": \"Small\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"AzureServices\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 1000,\r\n \"maxStalenessPrefix\": 300\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName\"\r\n ]\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts/accountname4002\",\r\n \"name\": \"accountname4002\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-16T05:08:00.4844542Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": true,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"125165e8-3796-40d3-80cd-83d7f3094110\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"AzureServices\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 1000,\r\n \"maxStalenessPrefix\": 300\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName\"\r\n ]\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e41e39b6-2e43-494e-9923-0dc3f1469f47?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2U0MWUzOWI2LTJlNDMtNDk0ZS05OTIzLTBkYzNmMTQ2OWY0Nz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/f08075c3-9641-4561-8f5e-eb0154c3de83?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2YwODA3NWMzLTk2NDEtNDU2MS04ZjVlLWViMDE1NGMzZGU4Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -228,7 +228,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -237,19 +237,19 @@ "11999" ], "x-ms-request-id": [ - "eb91b81e-1804-43ea-9d17-5178fdf24df9" + "48ee02db-f594-4788-961b-1fdd80ed87a7" ], "x-ms-correlation-request-id": [ - "eb91b81e-1804-43ea-9d17-5178fdf24df9" + "48ee02db-f594-4788-961b-1fdd80ed87a7" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T171735Z:eb91b81e-1804-43ea-9d17-5178fdf24df9" + "WESTUS2:20210616T050833Z:48ee02db-f594-4788-961b-1fdd80ed87a7" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:17:35 GMT" + "Wed, 16 Jun 2021 05:08:33 GMT" ], "Content-Length": [ "21" @@ -262,15 +262,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e41e39b6-2e43-494e-9923-0dc3f1469f47?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2U0MWUzOWI2LTJlNDMtNDk0ZS05OTIzLTBkYzNmMTQ2OWY0Nz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/f08075c3-9641-4561-8f5e-eb0154c3de83?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2YwODA3NWMzLTk2NDEtNDU2MS04ZjVlLWViMDE1NGMzZGU4Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -285,7 +285,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -294,19 +294,19 @@ "11998" ], "x-ms-request-id": [ - "fb7037c6-6c20-4b6b-b51a-ffcefa3adb73" + "f7a835e1-f179-4ae7-8698-28021474710b" ], "x-ms-correlation-request-id": [ - "fb7037c6-6c20-4b6b-b51a-ffcefa3adb73" + "f7a835e1-f179-4ae7-8698-28021474710b" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T171805Z:fb7037c6-6c20-4b6b-b51a-ffcefa3adb73" + "WESTUS2:20210616T050903Z:f7a835e1-f179-4ae7-8698-28021474710b" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:18:05 GMT" + "Wed, 16 Jun 2021 05:09:03 GMT" ], "Content-Length": [ "21" @@ -319,15 +319,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e41e39b6-2e43-494e-9923-0dc3f1469f47?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2U0MWUzOWI2LTJlNDMtNDk0ZS05OTIzLTBkYzNmMTQ2OWY0Nz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/f08075c3-9641-4561-8f5e-eb0154c3de83?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2YwODA3NWMzLTk2NDEtNDU2MS04ZjVlLWViMDE1NGMzZGU4Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -342,7 +342,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -351,19 +351,19 @@ "11997" ], "x-ms-request-id": [ - "f64bbaa8-682c-41a8-b344-bae02b908e99" + "f230d095-d9ba-4a4b-968e-b57b74a2e4b7" ], "x-ms-correlation-request-id": [ - "f64bbaa8-682c-41a8-b344-bae02b908e99" + "f230d095-d9ba-4a4b-968e-b57b74a2e4b7" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T171835Z:f64bbaa8-682c-41a8-b344-bae02b908e99" + "WESTUS2:20210616T050933Z:f230d095-d9ba-4a4b-968e-b57b74a2e4b7" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:18:35 GMT" + "Wed, 16 Jun 2021 05:09:32 GMT" ], "Content-Length": [ "21" @@ -376,15 +376,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e41e39b6-2e43-494e-9923-0dc3f1469f47?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2U0MWUzOWI2LTJlNDMtNDk0ZS05OTIzLTBkYzNmMTQ2OWY0Nz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/f08075c3-9641-4561-8f5e-eb0154c3de83?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2YwODA3NWMzLTk2NDEtNDU2MS04ZjVlLWViMDE1NGMzZGU4Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -399,7 +399,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -408,19 +408,19 @@ "11996" ], "x-ms-request-id": [ - "c4da72a6-4b36-4048-951a-fb9bea1f0103" + "81142d87-d28b-4a39-99be-2e5166511156" ], "x-ms-correlation-request-id": [ - "c4da72a6-4b36-4048-951a-fb9bea1f0103" + "81142d87-d28b-4a39-99be-2e5166511156" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T171905Z:c4da72a6-4b36-4048-951a-fb9bea1f0103" + "WESTUS2:20210616T051003Z:81142d87-d28b-4a39-99be-2e5166511156" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:19:05 GMT" + "Wed, 16 Jun 2021 05:10:03 GMT" ], "Content-Length": [ "21" @@ -433,15 +433,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e41e39b6-2e43-494e-9923-0dc3f1469f47?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2U0MWUzOWI2LTJlNDMtNDk0ZS05OTIzLTBkYzNmMTQ2OWY0Nz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/f08075c3-9641-4561-8f5e-eb0154c3de83?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2YwODA3NWMzLTk2NDEtNDU2MS04ZjVlLWViMDE1NGMzZGU4Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -456,7 +456,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -465,19 +465,19 @@ "11995" ], "x-ms-request-id": [ - "b6912713-9498-497a-9bcb-b0fdf4e7744b" + "7064445d-bd21-452b-974b-600287663a25" ], "x-ms-correlation-request-id": [ - "b6912713-9498-497a-9bcb-b0fdf4e7744b" + "7064445d-bd21-452b-974b-600287663a25" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T171936Z:b6912713-9498-497a-9bcb-b0fdf4e7744b" + "WESTUS2:20210616T051033Z:7064445d-bd21-452b-974b-600287663a25" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:19:35 GMT" + "Wed, 16 Jun 2021 05:10:33 GMT" ], "Content-Length": [ "21" @@ -490,15 +490,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e41e39b6-2e43-494e-9923-0dc3f1469f47?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2U0MWUzOWI2LTJlNDMtNDk0ZS05OTIzLTBkYzNmMTQ2OWY0Nz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/f08075c3-9641-4561-8f5e-eb0154c3de83?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2YwODA3NWMzLTk2NDEtNDU2MS04ZjVlLWViMDE1NGMzZGU4Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -513,7 +513,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -522,19 +522,19 @@ "11994" ], "x-ms-request-id": [ - "43fedda9-db66-4ab0-947c-c404b75eaaf4" + "def722cd-fdc3-4188-98c0-283bb6357435" ], "x-ms-correlation-request-id": [ - "43fedda9-db66-4ab0-947c-c404b75eaaf4" + "def722cd-fdc3-4188-98c0-283bb6357435" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T172006Z:43fedda9-db66-4ab0-947c-c404b75eaaf4" + "WESTUS2:20210616T051103Z:def722cd-fdc3-4188-98c0-283bb6357435" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:20:05 GMT" + "Wed, 16 Jun 2021 05:11:03 GMT" ], "Content-Length": [ "21" @@ -547,15 +547,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e41e39b6-2e43-494e-9923-0dc3f1469f47?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2U0MWUzOWI2LTJlNDMtNDk0ZS05OTIzLTBkYzNmMTQ2OWY0Nz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/f08075c3-9641-4561-8f5e-eb0154c3de83?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2YwODA3NWMzLTk2NDEtNDU2MS04ZjVlLWViMDE1NGMzZGU4Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -570,7 +570,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -579,703 +579,19 @@ "11993" ], "x-ms-request-id": [ - "01deba08-5a4d-43bd-a850-860b1f185ab8" + "cd10479d-3d5e-4290-949b-eaefb3ff4850" ], "x-ms-correlation-request-id": [ - "01deba08-5a4d-43bd-a850-860b1f185ab8" + "cd10479d-3d5e-4290-949b-eaefb3ff4850" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T172036Z:01deba08-5a4d-43bd-a850-860b1f185ab8" + "WESTUS2:20210616T051134Z:cd10479d-3d5e-4290-949b-eaefb3ff4850" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:20:35 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e41e39b6-2e43-494e-9923-0dc3f1469f47?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2U0MWUzOWI2LTJlNDMtNDk0ZS05OTIzLTBkYzNmMTQ2OWY0Nz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.29916.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11992" - ], - "x-ms-request-id": [ - "11c208b4-efda-4511-bdf9-8fde16086871" - ], - "x-ms-correlation-request-id": [ - "11c208b4-efda-4511-bdf9-8fde16086871" - ], - "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T172106Z:11c208b4-efda-4511-bdf9-8fde16086871" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 27 Apr 2021 17:21:06 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e41e39b6-2e43-494e-9923-0dc3f1469f47?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2U0MWUzOWI2LTJlNDMtNDk0ZS05OTIzLTBkYzNmMTQ2OWY0Nz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.29916.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" - ], - "x-ms-request-id": [ - "41f9f06f-608c-4035-884f-cdd4b30198c6" - ], - "x-ms-correlation-request-id": [ - "41f9f06f-608c-4035-884f-cdd4b30198c6" - ], - "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T172136Z:41f9f06f-608c-4035-884f-cdd4b30198c6" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 27 Apr 2021 17:21:36 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e41e39b6-2e43-494e-9923-0dc3f1469f47?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2U0MWUzOWI2LTJlNDMtNDk0ZS05OTIzLTBkYzNmMTQ2OWY0Nz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.29916.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11990" - ], - "x-ms-request-id": [ - "0300e4df-b204-4eed-89cb-07f7a588b319" - ], - "x-ms-correlation-request-id": [ - "0300e4df-b204-4eed-89cb-07f7a588b319" - ], - "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T172206Z:0300e4df-b204-4eed-89cb-07f7a588b319" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 27 Apr 2021 17:22:05 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e41e39b6-2e43-494e-9923-0dc3f1469f47?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2U0MWUzOWI2LTJlNDMtNDk0ZS05OTIzLTBkYzNmMTQ2OWY0Nz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.29916.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" - ], - "x-ms-request-id": [ - "548e6b77-aed1-4763-ade2-d45c8c7b1eb2" - ], - "x-ms-correlation-request-id": [ - "548e6b77-aed1-4763-ade2-d45c8c7b1eb2" - ], - "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T172236Z:548e6b77-aed1-4763-ade2-d45c8c7b1eb2" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 27 Apr 2021 17:22:36 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e41e39b6-2e43-494e-9923-0dc3f1469f47?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2U0MWUzOWI2LTJlNDMtNDk0ZS05OTIzLTBkYzNmMTQ2OWY0Nz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.29916.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11988" - ], - "x-ms-request-id": [ - "21d27e61-d90a-4638-b464-09135e0c4844" - ], - "x-ms-correlation-request-id": [ - "21d27e61-d90a-4638-b464-09135e0c4844" - ], - "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T172307Z:21d27e61-d90a-4638-b464-09135e0c4844" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 27 Apr 2021 17:23:06 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e41e39b6-2e43-494e-9923-0dc3f1469f47?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2U0MWUzOWI2LTJlNDMtNDk0ZS05OTIzLTBkYzNmMTQ2OWY0Nz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.29916.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11987" - ], - "x-ms-request-id": [ - "d8257c38-88e8-46c7-a5b4-c3e67e0bee6c" - ], - "x-ms-correlation-request-id": [ - "d8257c38-88e8-46c7-a5b4-c3e67e0bee6c" - ], - "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T172337Z:d8257c38-88e8-46c7-a5b4-c3e67e0bee6c" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 27 Apr 2021 17:23:36 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e41e39b6-2e43-494e-9923-0dc3f1469f47?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2U0MWUzOWI2LTJlNDMtNDk0ZS05OTIzLTBkYzNmMTQ2OWY0Nz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.29916.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11986" - ], - "x-ms-request-id": [ - "8d399985-89df-4ec8-bf8d-81f54247c05e" - ], - "x-ms-correlation-request-id": [ - "8d399985-89df-4ec8-bf8d-81f54247c05e" - ], - "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T172407Z:8d399985-89df-4ec8-bf8d-81f54247c05e" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 27 Apr 2021 17:24:06 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e41e39b6-2e43-494e-9923-0dc3f1469f47?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2U0MWUzOWI2LTJlNDMtNDk0ZS05OTIzLTBkYzNmMTQ2OWY0Nz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.29916.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11985" - ], - "x-ms-request-id": [ - "587d8947-0be3-4bf0-bbbd-490b97c9c910" - ], - "x-ms-correlation-request-id": [ - "587d8947-0be3-4bf0-bbbd-490b97c9c910" - ], - "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T172437Z:587d8947-0be3-4bf0-bbbd-490b97c9c910" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 27 Apr 2021 17:24:36 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e41e39b6-2e43-494e-9923-0dc3f1469f47?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2U0MWUzOWI2LTJlNDMtNDk0ZS05OTIzLTBkYzNmMTQ2OWY0Nz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.29916.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11984" - ], - "x-ms-request-id": [ - "f4a466eb-3da2-4217-ac11-fc5526d4a7da" - ], - "x-ms-correlation-request-id": [ - "f4a466eb-3da2-4217-ac11-fc5526d4a7da" - ], - "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T172507Z:f4a466eb-3da2-4217-ac11-fc5526d4a7da" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 27 Apr 2021 17:25:07 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e41e39b6-2e43-494e-9923-0dc3f1469f47?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2U0MWUzOWI2LTJlNDMtNDk0ZS05OTIzLTBkYzNmMTQ2OWY0Nz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.29916.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11983" - ], - "x-ms-request-id": [ - "dd5b4fab-be14-4d77-956c-e8e6cfab4107" - ], - "x-ms-correlation-request-id": [ - "dd5b4fab-be14-4d77-956c-e8e6cfab4107" - ], - "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T172537Z:dd5b4fab-be14-4d77-956c-e8e6cfab4107" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 27 Apr 2021 17:25:37 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e41e39b6-2e43-494e-9923-0dc3f1469f47?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2U0MWUzOWI2LTJlNDMtNDk0ZS05OTIzLTBkYzNmMTQ2OWY0Nz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.29916.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11982" - ], - "x-ms-request-id": [ - "575b23a8-b019-4f73-b920-83b0c366c22a" - ], - "x-ms-correlation-request-id": [ - "575b23a8-b019-4f73-b920-83b0c366c22a" - ], - "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T172607Z:575b23a8-b019-4f73-b920-83b0c366c22a" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 27 Apr 2021 17:26:06 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e41e39b6-2e43-494e-9923-0dc3f1469f47?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2U0MWUzOWI2LTJlNDMtNDk0ZS05OTIzLTBkYzNmMTQ2OWY0Nz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.29916.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11981" - ], - "x-ms-request-id": [ - "fa807ff2-4932-4c80-8990-28ec48fb983b" - ], - "x-ms-correlation-request-id": [ - "fa807ff2-4932-4c80-8990-28ec48fb983b" - ], - "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T172637Z:fa807ff2-4932-4c80-8990-28ec48fb983b" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 27 Apr 2021 17:26:36 GMT" + "Wed, 16 Jun 2021 05:11:33 GMT" ], "Content-Length": [ "22" @@ -1288,15 +604,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394/providers/Microsoft.DocumentDB/databaseAccounts/accountname9088?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDYzOTQvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU5MDg4P2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts/accountname4002?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDg2NTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU0MDAyP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1311,55 +627,55 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11980" + "11992" ], "x-ms-request-id": [ - "0621a79c-d677-44d6-ab41-c3148fbb8903" + "8a3d1272-940f-4b07-8730-f8acaf3980c9" ], "x-ms-correlation-request-id": [ - "0621a79c-d677-44d6-ab41-c3148fbb8903" + "8a3d1272-940f-4b07-8730-f8acaf3980c9" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T172637Z:0621a79c-d677-44d6-ab41-c3148fbb8903" + "WESTUS2:20210616T051134Z:8a3d1272-940f-4b07-8730-f8acaf3980c9" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:26:37 GMT" + "Wed, 16 Jun 2021 05:11:34 GMT" ], "Content-Length": [ - "2724" + "2603" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394/providers/Microsoft.DocumentDB/databaseAccounts/accountname9088\",\r\n \"name\": \"accountname9088\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-27T17:25:41.0988424Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://accountname9088.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://accountname9088.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": true,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c3f52ca9-535e-46c4-85d4-8b8c6a46d967\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": true,\r\n \"connectorOffer\": \"Small\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"AzureServices\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 1000,\r\n \"maxStalenessPrefix\": 300\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname9088-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname9088-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname9088-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName\"\r\n ]\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts/accountname4002\",\r\n \"name\": \"accountname4002\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-16T05:10:36.0450002Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://accountname4002.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://accountname4002.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": true,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"125165e8-3796-40d3-80cd-83d7f3094110\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"AzureServices\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 1000,\r\n \"maxStalenessPrefix\": 300\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname4002-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname4002-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname4002-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName\"\r\n ]\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394/providers/Microsoft.DocumentDB/databaseAccounts/accountname9088?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDYzOTQvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU5MDg4P2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts/accountname4002?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDg2NTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU0MDAyP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "946a906c-aca9-4100-a469-4b4ad6a51cd4" + "ee5fb78b-6f10-4a17-9b0b-969a486e0b53" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1374,49 +690,49 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11979" + "11991" ], "x-ms-request-id": [ - "6d5cd112-fcf2-4654-ab9d-0ad15ca09bb0" + "3db587b9-0e10-47d1-ab9f-3f2749747ec7" ], "x-ms-correlation-request-id": [ - "6d5cd112-fcf2-4654-ab9d-0ad15ca09bb0" + "3db587b9-0e10-47d1-ab9f-3f2749747ec7" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T172638Z:6d5cd112-fcf2-4654-ab9d-0ad15ca09bb0" + "WESTUS2:20210616T051134Z:3db587b9-0e10-47d1-ab9f-3f2749747ec7" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:26:37 GMT" + "Wed, 16 Jun 2021 05:11:34 GMT" ], "Content-Length": [ - "2724" + "2603" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394/providers/Microsoft.DocumentDB/databaseAccounts/accountname9088\",\r\n \"name\": \"accountname9088\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-27T17:25:41.0988424Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://accountname9088.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://accountname9088.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": true,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c3f52ca9-535e-46c4-85d4-8b8c6a46d967\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": true,\r\n \"connectorOffer\": \"Small\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"AzureServices\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 1000,\r\n \"maxStalenessPrefix\": 300\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname9088-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname9088-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname9088-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName\"\r\n ]\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts/accountname4002\",\r\n \"name\": \"accountname4002\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-16T05:10:36.0450002Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://accountname4002.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://accountname4002.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": true,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"125165e8-3796-40d3-80cd-83d7f3094110\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"AzureServices\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 1000,\r\n \"maxStalenessPrefix\": 300\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname4002-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname4002-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname4002-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName\"\r\n ]\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394/providers/Microsoft.DocumentDB/databaseAccounts/accountname9088?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDYzOTQvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU5MDg4P2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts/accountname4002?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDg2NTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU0MDAyP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1431,62 +747,62 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11954" + "11968" ], "x-ms-request-id": [ - "2b5f8ef6-f481-432b-ab60-3647e1646737" + "750050c0-26df-4723-96e7-7b3ce989bb94" ], "x-ms-correlation-request-id": [ - "2b5f8ef6-f481-432b-ab60-3647e1646737" + "750050c0-26df-4723-96e7-7b3ce989bb94" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T173814Z:2b5f8ef6-f481-432b-ab60-3647e1646737" + "WESTUS2:20210616T052241Z:750050c0-26df-4723-96e7-7b3ce989bb94" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:38:13 GMT" + "Wed, 16 Jun 2021 05:22:40 GMT" ], "Content-Length": [ - "2810" + "2689" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394/providers/Microsoft.DocumentDB/databaseAccounts/accountname9088\",\r\n \"name\": \"accountname9088\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-27T17:25:41.0988424Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://accountname9088.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://accountname9088.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": true,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c3f52ca9-535e-46c4-85d4-8b8c6a46d967\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": true,\r\n \"connectorOffer\": \"Small\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"AzureServices\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname9088-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname9088-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname9088-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName\",\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName2\"\r\n ]\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts/accountname4002\",\r\n \"name\": \"accountname4002\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-16T05:10:36.0450002Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://accountname4002.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://accountname4002.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": true,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"125165e8-3796-40d3-80cd-83d7f3094110\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"AzureServices\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname4002-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname4002-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname4002-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName\",\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName2\"\r\n ]\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394/providers/Microsoft.DocumentDB/databaseAccounts/accountname9088?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDYzOTQvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU5MDg4P2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts/accountname4002?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDg2NTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU0MDAyP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "PATCH", - "RequestBody": "{\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"location\": \"EAST US 2\",\r\n \"properties\": {\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxStalenessPrefix\": 1300,\r\n \"maxIntervalInSeconds\": 12000\r\n },\r\n \"locations\": [\r\n {\r\n \"locationName\": \"East US 2\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"enableAutomaticFailover\": true,\r\n \"enableCassandraConnector\": true,\r\n \"connectorOffer\": \"Small\",\r\n \"disableKeyBasedMetadataWriteAccess\": true,\r\n \"networkAclBypass\": \"AzureServices\",\r\n \"networkAclBypassResourceIds\": [\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName\",\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName2\"\r\n ]\r\n }\r\n}", + "RequestBody": "{\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"location\": \"EAST US 2\",\r\n \"properties\": {\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxStalenessPrefix\": 1300,\r\n \"maxIntervalInSeconds\": 12000\r\n },\r\n \"locations\": [\r\n {\r\n \"locationName\": \"East US 2\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"enableAutomaticFailover\": true,\r\n \"disableKeyBasedMetadataWriteAccess\": true,\r\n \"networkAclBypass\": \"AzureServices\",\r\n \"networkAclBypassResourceIds\": [\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName\",\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName2\"\r\n ]\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "1b0871e4-ebc2-458c-a4ea-b46053e9ed04" + "b0e70c6e-07fd-460c-ad59-da22bf36493a" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "947" + "876" ] }, "ResponseHeaders": { @@ -1497,19 +813,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394/providers/Microsoft.DocumentDB/databaseAccounts/accountname9088/operationResults/d2c15fa7-fc9c-48c7-b54f-713b1575829e?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts/accountname4002/operationResults/10d641a5-f14c-4a28-8d5b-d31115b79117?api-version=2021-06-15" ], "x-ms-request-id": [ - "d2c15fa7-fc9c-48c7-b54f-713b1575829e" + "10d641a5-f14c-4a28-8d5b-d31115b79117" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d2c15fa7-fc9c-48c7-b54f-713b1575829e?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/10d641a5-f14c-4a28-8d5b-d31115b79117?api-version=2021-06-15" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1518,94 +834,37 @@ "1198" ], "x-ms-correlation-request-id": [ - "273e3b33-1c6f-40f2-89b7-55550ce00bc7" - ], - "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T172641Z:273e3b33-1c6f-40f2-89b7-55550ce00bc7" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 27 Apr 2021 17:26:41 GMT" - ], - "Content-Length": [ - "2720" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394/providers/Microsoft.DocumentDB/databaseAccounts/accountname9088\",\r\n \"name\": \"accountname9088\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-27T17:25:41.0988424Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"documentEndpoint\": \"https://accountname9088.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://accountname9088.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": true,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c3f52ca9-535e-46c4-85d4-8b8c6a46d967\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": true,\r\n \"connectorOffer\": \"Small\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"AzureServices\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 1000,\r\n \"maxStalenessPrefix\": 300\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname9088-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname9088-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname9088-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName\"\r\n ]\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d2c15fa7-fc9c-48c7-b54f-713b1575829e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2QyYzE1ZmE3LWZjOWMtNDhjNy1iNTRmLTcxM2IxNTc1ODI5ZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.29916.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11977" - ], - "x-ms-request-id": [ - "a4ae5214-2756-45d7-b4e0-8cd98f205170" - ], - "x-ms-correlation-request-id": [ - "a4ae5214-2756-45d7-b4e0-8cd98f205170" + "5ec96539-31b3-40c1-a1f7-6d6f252434b8" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T172711Z:a4ae5214-2756-45d7-b4e0-8cd98f205170" + "WESTUS2:20210616T051137Z:5ec96539-31b3-40c1-a1f7-6d6f252434b8" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:27:11 GMT" + "Wed, 16 Jun 2021 05:11:37 GMT" ], "Content-Length": [ - "21" + "2599" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts/accountname4002\",\r\n \"name\": \"accountname4002\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-16T05:10:36.0450002Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"documentEndpoint\": \"https://accountname4002.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://accountname4002.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": true,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"125165e8-3796-40d3-80cd-83d7f3094110\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"AzureServices\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 1000,\r\n \"maxStalenessPrefix\": 300\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname4002-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname4002-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname4002-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName\"\r\n ]\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d2c15fa7-fc9c-48c7-b54f-713b1575829e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2QyYzE1ZmE3LWZjOWMtNDhjNy1iNTRmLTcxM2IxNTc1ODI5ZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/10d641a5-f14c-4a28-8d5b-d31115b79117?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzEwZDY0MWE1LWYxNGMtNGEyOC04ZDViLWQzMTExNWI3OTExNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1620,28 +879,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11976" + "11990" ], "x-ms-request-id": [ - "1afc71e3-5a39-405f-89ea-7c32c0b82251" + "221ee91b-0ee7-48b1-843b-65ebe44f1e4b" ], "x-ms-correlation-request-id": [ - "1afc71e3-5a39-405f-89ea-7c32c0b82251" + "221ee91b-0ee7-48b1-843b-65ebe44f1e4b" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T172741Z:1afc71e3-5a39-405f-89ea-7c32c0b82251" + "WESTUS2:20210616T051208Z:221ee91b-0ee7-48b1-843b-65ebe44f1e4b" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:27:41 GMT" + "Wed, 16 Jun 2021 05:12:07 GMT" ], "Content-Length": [ "21" @@ -1654,15 +913,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d2c15fa7-fc9c-48c7-b54f-713b1575829e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2QyYzE1ZmE3LWZjOWMtNDhjNy1iNTRmLTcxM2IxNTc1ODI5ZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/10d641a5-f14c-4a28-8d5b-d31115b79117?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzEwZDY0MWE1LWYxNGMtNGEyOC04ZDViLWQzMTExNWI3OTExNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1677,28 +936,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11975" + "11989" ], "x-ms-request-id": [ - "5e5955aa-78bc-478f-9b2f-17f5232a912c" + "fd8a6d99-b6c9-4bc4-8acc-47d4d0138ddf" ], "x-ms-correlation-request-id": [ - "5e5955aa-78bc-478f-9b2f-17f5232a912c" + "fd8a6d99-b6c9-4bc4-8acc-47d4d0138ddf" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T172812Z:5e5955aa-78bc-478f-9b2f-17f5232a912c" + "WESTUS2:20210616T051238Z:fd8a6d99-b6c9-4bc4-8acc-47d4d0138ddf" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:28:11 GMT" + "Wed, 16 Jun 2021 05:12:37 GMT" ], "Content-Length": [ "21" @@ -1711,15 +970,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d2c15fa7-fc9c-48c7-b54f-713b1575829e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2QyYzE1ZmE3LWZjOWMtNDhjNy1iNTRmLTcxM2IxNTc1ODI5ZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/10d641a5-f14c-4a28-8d5b-d31115b79117?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzEwZDY0MWE1LWYxNGMtNGEyOC04ZDViLWQzMTExNWI3OTExNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1734,28 +993,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11974" + "11988" ], "x-ms-request-id": [ - "406553c5-c07b-49e2-b269-2ed160138f11" + "5fb2e12f-3492-4f82-aa21-504f19080579" ], "x-ms-correlation-request-id": [ - "406553c5-c07b-49e2-b269-2ed160138f11" + "5fb2e12f-3492-4f82-aa21-504f19080579" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T172842Z:406553c5-c07b-49e2-b269-2ed160138f11" + "WESTUS2:20210616T051308Z:5fb2e12f-3492-4f82-aa21-504f19080579" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:28:41 GMT" + "Wed, 16 Jun 2021 05:13:08 GMT" ], "Content-Length": [ "21" @@ -1768,15 +1027,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d2c15fa7-fc9c-48c7-b54f-713b1575829e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2QyYzE1ZmE3LWZjOWMtNDhjNy1iNTRmLTcxM2IxNTc1ODI5ZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/10d641a5-f14c-4a28-8d5b-d31115b79117?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzEwZDY0MWE1LWYxNGMtNGEyOC04ZDViLWQzMTExNWI3OTExNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1791,28 +1050,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11973" + "11987" ], "x-ms-request-id": [ - "64841ae0-1566-4c36-a376-f7fe752874d9" + "daf71b55-9088-43e0-af45-ac9f4ff38769" ], "x-ms-correlation-request-id": [ - "64841ae0-1566-4c36-a376-f7fe752874d9" + "daf71b55-9088-43e0-af45-ac9f4ff38769" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T172912Z:64841ae0-1566-4c36-a376-f7fe752874d9" + "WESTUS2:20210616T051338Z:daf71b55-9088-43e0-af45-ac9f4ff38769" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:29:11 GMT" + "Wed, 16 Jun 2021 05:13:37 GMT" ], "Content-Length": [ "21" @@ -1825,15 +1084,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d2c15fa7-fc9c-48c7-b54f-713b1575829e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2QyYzE1ZmE3LWZjOWMtNDhjNy1iNTRmLTcxM2IxNTc1ODI5ZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/10d641a5-f14c-4a28-8d5b-d31115b79117?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzEwZDY0MWE1LWYxNGMtNGEyOC04ZDViLWQzMTExNWI3OTExNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1848,28 +1107,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11972" + "11986" ], "x-ms-request-id": [ - "fe69d497-0c47-4bca-a720-416ae8a90049" + "41b95d19-cdc6-4469-afd2-1faf16898301" ], "x-ms-correlation-request-id": [ - "fe69d497-0c47-4bca-a720-416ae8a90049" + "41b95d19-cdc6-4469-afd2-1faf16898301" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T172942Z:fe69d497-0c47-4bca-a720-416ae8a90049" + "WESTUS2:20210616T051408Z:41b95d19-cdc6-4469-afd2-1faf16898301" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:29:42 GMT" + "Wed, 16 Jun 2021 05:14:07 GMT" ], "Content-Length": [ "21" @@ -1882,15 +1141,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d2c15fa7-fc9c-48c7-b54f-713b1575829e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2QyYzE1ZmE3LWZjOWMtNDhjNy1iNTRmLTcxM2IxNTc1ODI5ZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/10d641a5-f14c-4a28-8d5b-d31115b79117?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzEwZDY0MWE1LWYxNGMtNGEyOC04ZDViLWQzMTExNWI3OTExNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1905,28 +1164,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11971" + "11985" ], "x-ms-request-id": [ - "7fc41564-4010-46ae-a005-ad20575db27e" + "02871278-3612-4b98-8c00-c4bbfc01770b" ], "x-ms-correlation-request-id": [ - "7fc41564-4010-46ae-a005-ad20575db27e" + "02871278-3612-4b98-8c00-c4bbfc01770b" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T173012Z:7fc41564-4010-46ae-a005-ad20575db27e" + "WESTUS2:20210616T051438Z:02871278-3612-4b98-8c00-c4bbfc01770b" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:30:12 GMT" + "Wed, 16 Jun 2021 05:14:38 GMT" ], "Content-Length": [ "21" @@ -1939,15 +1198,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d2c15fa7-fc9c-48c7-b54f-713b1575829e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2QyYzE1ZmE3LWZjOWMtNDhjNy1iNTRmLTcxM2IxNTc1ODI5ZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/10d641a5-f14c-4a28-8d5b-d31115b79117?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzEwZDY0MWE1LWYxNGMtNGEyOC04ZDViLWQzMTExNWI3OTExNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1962,28 +1221,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11970" + "11984" ], "x-ms-request-id": [ - "3ca739b9-107c-4541-90d4-035aba822590" + "14c53cc3-cd0f-40a3-85c2-f39607dcb7cb" ], "x-ms-correlation-request-id": [ - "3ca739b9-107c-4541-90d4-035aba822590" + "14c53cc3-cd0f-40a3-85c2-f39607dcb7cb" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T173042Z:3ca739b9-107c-4541-90d4-035aba822590" + "WESTUS2:20210616T051508Z:14c53cc3-cd0f-40a3-85c2-f39607dcb7cb" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:30:42 GMT" + "Wed, 16 Jun 2021 05:15:08 GMT" ], "Content-Length": [ "21" @@ -1996,15 +1255,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d2c15fa7-fc9c-48c7-b54f-713b1575829e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2QyYzE1ZmE3LWZjOWMtNDhjNy1iNTRmLTcxM2IxNTc1ODI5ZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/10d641a5-f14c-4a28-8d5b-d31115b79117?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzEwZDY0MWE1LWYxNGMtNGEyOC04ZDViLWQzMTExNWI3OTExNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -2019,28 +1278,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11969" + "11983" ], "x-ms-request-id": [ - "ce81ec11-5fd8-4066-9738-014cf0149397" + "4d0c4b19-e646-496e-8808-a6e2df1f60e0" ], "x-ms-correlation-request-id": [ - "ce81ec11-5fd8-4066-9738-014cf0149397" + "4d0c4b19-e646-496e-8808-a6e2df1f60e0" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T173112Z:ce81ec11-5fd8-4066-9738-014cf0149397" + "WESTUS2:20210616T051539Z:4d0c4b19-e646-496e-8808-a6e2df1f60e0" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:31:12 GMT" + "Wed, 16 Jun 2021 05:15:38 GMT" ], "Content-Length": [ "21" @@ -2053,15 +1312,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d2c15fa7-fc9c-48c7-b54f-713b1575829e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2QyYzE1ZmE3LWZjOWMtNDhjNy1iNTRmLTcxM2IxNTc1ODI5ZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/10d641a5-f14c-4a28-8d5b-d31115b79117?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzEwZDY0MWE1LWYxNGMtNGEyOC04ZDViLWQzMTExNWI3OTExNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -2076,28 +1335,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11968" + "11982" ], "x-ms-request-id": [ - "da1ad909-88d1-4e39-ab6b-a90b0d10bb74" + "0a1a6071-e1be-4a9a-9aaa-0e59d1b387e6" ], "x-ms-correlation-request-id": [ - "da1ad909-88d1-4e39-ab6b-a90b0d10bb74" + "0a1a6071-e1be-4a9a-9aaa-0e59d1b387e6" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T173142Z:da1ad909-88d1-4e39-ab6b-a90b0d10bb74" + "WESTUS2:20210616T051609Z:0a1a6071-e1be-4a9a-9aaa-0e59d1b387e6" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:31:42 GMT" + "Wed, 16 Jun 2021 05:16:08 GMT" ], "Content-Length": [ "21" @@ -2110,15 +1369,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d2c15fa7-fc9c-48c7-b54f-713b1575829e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2QyYzE1ZmE3LWZjOWMtNDhjNy1iNTRmLTcxM2IxNTc1ODI5ZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/10d641a5-f14c-4a28-8d5b-d31115b79117?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzEwZDY0MWE1LWYxNGMtNGEyOC04ZDViLWQzMTExNWI3OTExNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -2133,28 +1392,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11967" + "11981" ], "x-ms-request-id": [ - "35467efd-cbfc-4eb1-987a-5a1c6da1d473" + "5029e5c5-0def-4513-b308-1d07da365636" ], "x-ms-correlation-request-id": [ - "35467efd-cbfc-4eb1-987a-5a1c6da1d473" + "5029e5c5-0def-4513-b308-1d07da365636" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T173213Z:35467efd-cbfc-4eb1-987a-5a1c6da1d473" + "WESTUS2:20210616T051639Z:5029e5c5-0def-4513-b308-1d07da365636" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:32:12 GMT" + "Wed, 16 Jun 2021 05:16:38 GMT" ], "Content-Length": [ "21" @@ -2167,15 +1426,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d2c15fa7-fc9c-48c7-b54f-713b1575829e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2QyYzE1ZmE3LWZjOWMtNDhjNy1iNTRmLTcxM2IxNTc1ODI5ZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/10d641a5-f14c-4a28-8d5b-d31115b79117?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzEwZDY0MWE1LWYxNGMtNGEyOC04ZDViLWQzMTExNWI3OTExNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -2190,28 +1449,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11966" + "11980" ], "x-ms-request-id": [ - "301c19f8-bcec-4c9e-887d-6a13097d9f11" + "0d948bc7-4d04-4006-b794-21913a0231f0" ], "x-ms-correlation-request-id": [ - "301c19f8-bcec-4c9e-887d-6a13097d9f11" + "0d948bc7-4d04-4006-b794-21913a0231f0" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T173243Z:301c19f8-bcec-4c9e-887d-6a13097d9f11" + "WESTUS2:20210616T051709Z:0d948bc7-4d04-4006-b794-21913a0231f0" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:32:43 GMT" + "Wed, 16 Jun 2021 05:17:09 GMT" ], "Content-Length": [ "21" @@ -2224,15 +1483,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d2c15fa7-fc9c-48c7-b54f-713b1575829e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2QyYzE1ZmE3LWZjOWMtNDhjNy1iNTRmLTcxM2IxNTc1ODI5ZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/10d641a5-f14c-4a28-8d5b-d31115b79117?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzEwZDY0MWE1LWYxNGMtNGEyOC04ZDViLWQzMTExNWI3OTExNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -2247,28 +1506,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11965" + "11979" ], "x-ms-request-id": [ - "b4032c3f-9750-47da-aef9-e207393d1fe6" + "a254e26e-67da-4fd3-8afa-c10ab0666843" ], "x-ms-correlation-request-id": [ - "b4032c3f-9750-47da-aef9-e207393d1fe6" + "a254e26e-67da-4fd3-8afa-c10ab0666843" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T173313Z:b4032c3f-9750-47da-aef9-e207393d1fe6" + "WESTUS2:20210616T051739Z:a254e26e-67da-4fd3-8afa-c10ab0666843" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:33:12 GMT" + "Wed, 16 Jun 2021 05:17:39 GMT" ], "Content-Length": [ "21" @@ -2281,15 +1540,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d2c15fa7-fc9c-48c7-b54f-713b1575829e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2QyYzE1ZmE3LWZjOWMtNDhjNy1iNTRmLTcxM2IxNTc1ODI5ZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/10d641a5-f14c-4a28-8d5b-d31115b79117?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzEwZDY0MWE1LWYxNGMtNGEyOC04ZDViLWQzMTExNWI3OTExNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -2304,28 +1563,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11964" + "11978" ], "x-ms-request-id": [ - "2315a953-13c1-4e4e-8654-4fbefbf5e969" + "cd1ca1ec-8a84-4d67-b0d3-8c0e1df526ee" ], "x-ms-correlation-request-id": [ - "2315a953-13c1-4e4e-8654-4fbefbf5e969" + "cd1ca1ec-8a84-4d67-b0d3-8c0e1df526ee" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T173343Z:2315a953-13c1-4e4e-8654-4fbefbf5e969" + "WESTUS2:20210616T051809Z:cd1ca1ec-8a84-4d67-b0d3-8c0e1df526ee" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:33:42 GMT" + "Wed, 16 Jun 2021 05:18:08 GMT" ], "Content-Length": [ "21" @@ -2338,15 +1597,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d2c15fa7-fc9c-48c7-b54f-713b1575829e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2QyYzE1ZmE3LWZjOWMtNDhjNy1iNTRmLTcxM2IxNTc1ODI5ZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/10d641a5-f14c-4a28-8d5b-d31115b79117?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzEwZDY0MWE1LWYxNGMtNGEyOC04ZDViLWQzMTExNWI3OTExNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -2361,28 +1620,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11963" + "11977" ], "x-ms-request-id": [ - "88928078-edba-4ea2-a8fb-7fb99b69d206" + "e031eaf6-1b1a-4b1f-b1e3-2d2ff84f3ab2" ], "x-ms-correlation-request-id": [ - "88928078-edba-4ea2-a8fb-7fb99b69d206" + "e031eaf6-1b1a-4b1f-b1e3-2d2ff84f3ab2" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T173413Z:88928078-edba-4ea2-a8fb-7fb99b69d206" + "WESTUS2:20210616T051839Z:e031eaf6-1b1a-4b1f-b1e3-2d2ff84f3ab2" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:34:13 GMT" + "Wed, 16 Jun 2021 05:18:39 GMT" ], "Content-Length": [ "21" @@ -2395,15 +1654,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d2c15fa7-fc9c-48c7-b54f-713b1575829e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2QyYzE1ZmE3LWZjOWMtNDhjNy1iNTRmLTcxM2IxNTc1ODI5ZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/10d641a5-f14c-4a28-8d5b-d31115b79117?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzEwZDY0MWE1LWYxNGMtNGEyOC04ZDViLWQzMTExNWI3OTExNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -2418,28 +1677,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11962" + "11976" ], "x-ms-request-id": [ - "cfdb28d3-1dfa-4f1a-bf47-f293c30dfd1a" + "449a7f89-17f4-4d19-8cea-d1360029af6a" ], "x-ms-correlation-request-id": [ - "cfdb28d3-1dfa-4f1a-bf47-f293c30dfd1a" + "449a7f89-17f4-4d19-8cea-d1360029af6a" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T173443Z:cfdb28d3-1dfa-4f1a-bf47-f293c30dfd1a" + "WESTUS2:20210616T051909Z:449a7f89-17f4-4d19-8cea-d1360029af6a" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:34:43 GMT" + "Wed, 16 Jun 2021 05:19:09 GMT" ], "Content-Length": [ "21" @@ -2452,15 +1711,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d2c15fa7-fc9c-48c7-b54f-713b1575829e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2QyYzE1ZmE3LWZjOWMtNDhjNy1iNTRmLTcxM2IxNTc1ODI5ZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/10d641a5-f14c-4a28-8d5b-d31115b79117?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzEwZDY0MWE1LWYxNGMtNGEyOC04ZDViLWQzMTExNWI3OTExNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -2475,28 +1734,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11961" + "11975" ], "x-ms-request-id": [ - "17fd2f82-00b6-401d-88c8-ac6281bfd616" + "6c9ec22b-1c3c-416b-abb2-ea497a1e0718" ], "x-ms-correlation-request-id": [ - "17fd2f82-00b6-401d-88c8-ac6281bfd616" + "6c9ec22b-1c3c-416b-abb2-ea497a1e0718" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T173513Z:17fd2f82-00b6-401d-88c8-ac6281bfd616" + "WESTUS2:20210616T051940Z:6c9ec22b-1c3c-416b-abb2-ea497a1e0718" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:35:12 GMT" + "Wed, 16 Jun 2021 05:19:39 GMT" ], "Content-Length": [ "21" @@ -2509,15 +1768,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d2c15fa7-fc9c-48c7-b54f-713b1575829e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2QyYzE1ZmE3LWZjOWMtNDhjNy1iNTRmLTcxM2IxNTc1ODI5ZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/10d641a5-f14c-4a28-8d5b-d31115b79117?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzEwZDY0MWE1LWYxNGMtNGEyOC04ZDViLWQzMTExNWI3OTExNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -2532,28 +1791,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11960" + "11974" ], "x-ms-request-id": [ - "454faa58-500a-4606-a72d-fb5960b18722" + "6934ecd8-902b-467c-ba04-e33237cdf2b1" ], "x-ms-correlation-request-id": [ - "454faa58-500a-4606-a72d-fb5960b18722" + "6934ecd8-902b-467c-ba04-e33237cdf2b1" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T173543Z:454faa58-500a-4606-a72d-fb5960b18722" + "WESTUS2:20210616T052010Z:6934ecd8-902b-467c-ba04-e33237cdf2b1" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:35:43 GMT" + "Wed, 16 Jun 2021 05:20:09 GMT" ], "Content-Length": [ "21" @@ -2566,15 +1825,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d2c15fa7-fc9c-48c7-b54f-713b1575829e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2QyYzE1ZmE3LWZjOWMtNDhjNy1iNTRmLTcxM2IxNTc1ODI5ZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/10d641a5-f14c-4a28-8d5b-d31115b79117?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzEwZDY0MWE1LWYxNGMtNGEyOC04ZDViLWQzMTExNWI3OTExNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -2589,28 +1848,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11959" + "11973" ], "x-ms-request-id": [ - "43c95a25-6130-404f-8885-15983d28b4c4" + "0f8c818f-5d04-4529-b446-1f4f11987f4a" ], "x-ms-correlation-request-id": [ - "43c95a25-6130-404f-8885-15983d28b4c4" + "0f8c818f-5d04-4529-b446-1f4f11987f4a" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T173614Z:43c95a25-6130-404f-8885-15983d28b4c4" + "WESTUS2:20210616T052040Z:0f8c818f-5d04-4529-b446-1f4f11987f4a" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:36:13 GMT" + "Wed, 16 Jun 2021 05:20:39 GMT" ], "Content-Length": [ "21" @@ -2623,15 +1882,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d2c15fa7-fc9c-48c7-b54f-713b1575829e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2QyYzE1ZmE3LWZjOWMtNDhjNy1iNTRmLTcxM2IxNTc1ODI5ZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/10d641a5-f14c-4a28-8d5b-d31115b79117?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzEwZDY0MWE1LWYxNGMtNGEyOC04ZDViLWQzMTExNWI3OTExNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -2646,28 +1905,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11958" + "11972" ], "x-ms-request-id": [ - "13b0d0f4-1e93-45c1-bcee-304203cda0d3" + "c9606a83-e109-4b54-aa35-a78770d6f9c0" ], "x-ms-correlation-request-id": [ - "13b0d0f4-1e93-45c1-bcee-304203cda0d3" + "c9606a83-e109-4b54-aa35-a78770d6f9c0" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T173644Z:13b0d0f4-1e93-45c1-bcee-304203cda0d3" + "WESTUS2:20210616T052110Z:c9606a83-e109-4b54-aa35-a78770d6f9c0" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:36:44 GMT" + "Wed, 16 Jun 2021 05:21:10 GMT" ], "Content-Length": [ "21" @@ -2680,15 +1939,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d2c15fa7-fc9c-48c7-b54f-713b1575829e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2QyYzE1ZmE3LWZjOWMtNDhjNy1iNTRmLTcxM2IxNTc1ODI5ZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/10d641a5-f14c-4a28-8d5b-d31115b79117?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzEwZDY0MWE1LWYxNGMtNGEyOC04ZDViLWQzMTExNWI3OTExNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -2703,28 +1962,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11957" + "11971" ], "x-ms-request-id": [ - "0d9ce290-e2d8-4901-8451-cf1e05fbb637" + "e063fcf7-c901-4a0d-a678-2fa0d41c6600" ], "x-ms-correlation-request-id": [ - "0d9ce290-e2d8-4901-8451-cf1e05fbb637" + "e063fcf7-c901-4a0d-a678-2fa0d41c6600" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T173714Z:0d9ce290-e2d8-4901-8451-cf1e05fbb637" + "WESTUS2:20210616T052140Z:e063fcf7-c901-4a0d-a678-2fa0d41c6600" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:37:13 GMT" + "Wed, 16 Jun 2021 05:21:40 GMT" ], "Content-Length": [ "21" @@ -2737,15 +1996,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d2c15fa7-fc9c-48c7-b54f-713b1575829e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2QyYzE1ZmE3LWZjOWMtNDhjNy1iNTRmLTcxM2IxNTc1ODI5ZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/10d641a5-f14c-4a28-8d5b-d31115b79117?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzEwZDY0MWE1LWYxNGMtNGEyOC04ZDViLWQzMTExNWI3OTExNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -2760,28 +2019,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11956" + "11970" ], "x-ms-request-id": [ - "73fdd176-4e71-4c7d-b07d-4acb93ae9346" + "8e85069b-622c-492e-978e-ba5ca08d9d50" ], "x-ms-correlation-request-id": [ - "73fdd176-4e71-4c7d-b07d-4acb93ae9346" + "8e85069b-622c-492e-978e-ba5ca08d9d50" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T173744Z:73fdd176-4e71-4c7d-b07d-4acb93ae9346" + "WESTUS2:20210616T052210Z:8e85069b-622c-492e-978e-ba5ca08d9d50" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:37:43 GMT" + "Wed, 16 Jun 2021 05:22:10 GMT" ], "Content-Length": [ "21" @@ -2794,15 +2053,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d2c15fa7-fc9c-48c7-b54f-713b1575829e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2QyYzE1ZmE3LWZjOWMtNDhjNy1iNTRmLTcxM2IxNTc1ODI5ZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/10d641a5-f14c-4a28-8d5b-d31115b79117?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzEwZDY0MWE1LWYxNGMtNGEyOC04ZDViLWQzMTExNWI3OTExNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -2817,28 +2076,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11955" + "11969" ], "x-ms-request-id": [ - "188ef861-c629-4108-b956-e441c677fd74" + "bd6c31fc-6c3a-4642-a52d-eacb91b45e0a" ], "x-ms-correlation-request-id": [ - "188ef861-c629-4108-b956-e441c677fd74" + "bd6c31fc-6c3a-4642-a52d-eacb91b45e0a" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T173814Z:188ef861-c629-4108-b956-e441c677fd74" + "WESTUS2:20210616T052241Z:bd6c31fc-6c3a-4642-a52d-eacb91b45e0a" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:38:13 GMT" + "Wed, 16 Jun 2021 05:22:40 GMT" ], "Content-Length": [ "22" @@ -2851,21 +2110,21 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/databaseAccounts?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/databaseAccounts?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnRzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c0bc23ba-ea55-4cc0-b1a8-c953e4fafd4b" + "abf18789-85a3-43d8-8b0b-4a7f131607a7" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -2882,19 +2141,21 @@ "", "", "", + "", + "", "" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11953" + "11967" ], "x-ms-request-id": [ - "4cb8265c-b460-4876-929b-cf4e34723a35" + "0173f46d-2af3-497c-8d69-25e7dbdfa410" ], "x-ms-correlation-request-id": [ - "4cb8265c-b460-4876-929b-cf4e34723a35" + "0173f46d-2af3-497c-8d69-25e7dbdfa410" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T173822Z:4cb8265c-b460-4876-929b-cf4e34723a35" + "WESTUS2:20210616T052242Z:0173f46d-2af3-497c-8d69-25e7dbdfa410" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2903,7 +2164,7 @@ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:38:21 GMT" + "Wed, 16 Jun 2021 05:22:41 GMT" ], "Content-Type": [ "application/json; charset=utf-8" @@ -2912,28 +2173,28 @@ "-1" ], "Content-Length": [ - "1611920" + "305223" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ragil/providers/Microsoft.DocumentDB/databaseAccounts/ragil-mongo-36\",\r\n \"name\": \"ragil-mongo-36\",\r\n \"location\": \"France Central\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-20T17:32:19.64468Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ragil-mongo-36.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://ragil-mongo-36.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"instanceId\": \"e1276bdc-92ab-4806-91b0-ab3c9a7cad45\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ragil-mongo-36-francecentral\",\r\n \"locationName\": \"France Central\",\r\n \"documentEndpoint\": \"https://ragil-mongo-36-francecentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ragil-mongo-36-francecentral\",\r\n \"locationName\": \"France Central\",\r\n \"documentEndpoint\": \"https://ragil-mongo-36-francecentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ragil-mongo-36-francecentral\",\r\n \"locationName\": \"France Central\",\r\n \"documentEndpoint\": \"https://ragil-mongo-36-francecentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ragil-mongo-36-francecentral\",\r\n \"locationName\": \"France Central\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi-test-mongo/providers/Microsoft.DocumentDB/databaseAccounts/actualmongoqwert36singlelocation\",\r\n \"name\": \"actualmongoqwert36singlelocation\",\r\n \"location\": \"France Central\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-11-17T01:42:42.6939712Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://actualmongoqwert36singlelocation.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://actualmongoqwert36singlelocation.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"instanceId\": \"1d7750a0-7edf-4939-b486-370d049c1e5b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"actualmongoqwert36singlelocation-francecentral\",\r\n \"locationName\": \"France Central\",\r\n \"documentEndpoint\": \"https://actualmongoqwert36singlelocation-francecentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"actualmongoqwert36singlelocation-francecentral\",\r\n \"locationName\": \"France Central\",\r\n \"documentEndpoint\": \"https://actualmongoqwert36singlelocation-francecentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"actualmongoqwert36singlelocation-francecentral\",\r\n \"locationName\": \"France Central\",\r\n \"documentEndpoint\": \"https://actualmongoqwert36singlelocation-francecentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"actualmongoqwert36singlelocation-francecentral\",\r\n \"locationName\": \"France Central\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ratnakv/providers/Microsoft.DocumentDB/databaseAccounts/ratna-test\",\r\n \"name\": \"ratna-test\",\r\n \"location\": \"France Central\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-05-31T23:05:44.5987225Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ratna-test.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"instanceId\": \"dea07b6f-1d64-4485-939b-4f04b34e8769\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ratna-test-francecentral\",\r\n \"locationName\": \"France Central\",\r\n \"documentEndpoint\": \"https://ratna-test-francecentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ratna-test-francecentral\",\r\n \"locationName\": \"France Central\",\r\n \"documentEndpoint\": \"https://ratna-test-francecentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ratna-test-francecentral\",\r\n \"locationName\": \"France Central\",\r\n \"documentEndpoint\": \"https://ratna-test-francecentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ratna-test-francecentral\",\r\n \"locationName\": \"France Central\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableAggregationPipeline\"\r\n },\r\n {\r\n \"name\": \"AllowSelfServeUpgradeToMongo36\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ashtest/providers/Microsoft.DocumentDB/databaseAccounts/ash-sql123\",\r\n \"name\": \"ash-sql123\",\r\n \"location\": \"Australia Central\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-11-15T00:15:57.3414948Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ash-sql123.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"instanceId\": \"69a22da2-80fc-4341-9690-9218800628c2\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ash-sql123-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://ash-sql123-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"ash-sql123-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://ash-sql123-southeastasia.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"ash-sql123-eastasia\",\r\n \"locationName\": \"East Asia\",\r\n \"documentEndpoint\": \"https://ash-sql123-eastasia.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ash-sql123-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://ash-sql123-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"ash-sql123-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://ash-sql123-southeastasia.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"ash-sql123-eastasia\",\r\n \"locationName\": \"East Asia\",\r\n \"documentEndpoint\": \"https://ash-sql123-eastasia.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ash-sql123-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://ash-sql123-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"ash-sql123-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://ash-sql123-southeastasia.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"ash-sql123-eastasia\",\r\n \"locationName\": \"East Asia\",\r\n \"documentEndpoint\": \"https://ash-sql123-eastasia.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ash-sql123-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"ash-sql123-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 1\r\n },\r\n {\r\n \"id\": \"ash-sql123-eastasia\",\r\n \"locationName\": \"East Asia\",\r\n \"failoverPriority\": 2\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 10,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/abinav_stage_rg/providers/Microsoft.DocumentDB/databaseAccounts/testdupdel\",\r\n \"name\": \"testdupdel\",\r\n \"location\": \"Australia Central\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-10-24T18:04:52.1779802Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testdupdel.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"instanceId\": \"a6124ad6-c6d8-4082-b0a7-f422eef7bf22\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testdupdel-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://testdupdel-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testdupdel-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://testdupdel-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testdupdel-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://testdupdel-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testdupdel-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi-test-mongo/providers/Microsoft.DocumentDB/databaseAccounts/actualmongoqwert2\",\r\n \"name\": \"actualmongoqwert2\",\r\n \"location\": \"Australia Central\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-11-17T01:45:36.1697892Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://actualmongoqwert2.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"instanceId\": \"9ee6cd48-1f3a-48a1-99df-b952f975f176\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"actualmongoqwert2-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://actualmongoqwert2-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"actualmongoqwert2-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://actualmongoqwert2-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"actualmongoqwert2-francecentral\",\r\n \"locationName\": \"France Central\",\r\n \"documentEndpoint\": \"https://actualmongoqwert2-francecentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"actualmongoqwert2-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://actualmongoqwert2-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"actualmongoqwert2-germanywestcentral\",\r\n \"locationName\": \"Germany West Central\",\r\n \"documentEndpoint\": \"https://actualmongoqwert2-germanywestcentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 3,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"actualmongoqwert2-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://actualmongoqwert2-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"actualmongoqwert2-francecentral\",\r\n \"locationName\": \"France Central\",\r\n \"documentEndpoint\": \"https://actualmongoqwert2-francecentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"actualmongoqwert2-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://actualmongoqwert2-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"actualmongoqwert2-germanywestcentral\",\r\n \"locationName\": \"Germany West Central\",\r\n \"documentEndpoint\": \"https://actualmongoqwert2-germanywestcentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 3,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"actualmongoqwert2-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"actualmongoqwert2-francecentral\",\r\n \"locationName\": \"France Central\",\r\n \"failoverPriority\": 1\r\n },\r\n {\r\n \"id\": \"actualmongoqwert2-eastus\",\r\n \"locationName\": \"East US\",\r\n \"failoverPriority\": 2\r\n },\r\n {\r\n \"id\": \"actualmongoqwert2-germanywestcentral\",\r\n \"locationName\": \"Germany West Central\",\r\n \"failoverPriority\": 3\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi-test-mongo/providers/Microsoft.DocumentDB/databaseAccounts/actualmongoqwert36\",\r\n \"name\": \"actualmongoqwert36\",\r\n \"location\": \"Australia Central\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-11-17T01:45:20.280228Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://actualmongoqwert36.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://actualmongoqwert36.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"instanceId\": \"22ceddea-71b4-4a5e-beb2-5ab8231205fc\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"actualmongoqwert36-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://actualmongoqwert36-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"actualmongoqwert36-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://actualmongoqwert36-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"actualmongoqwert36-francecentral\",\r\n \"locationName\": \"France Central\",\r\n \"documentEndpoint\": \"https://actualmongoqwert36-francecentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"actualmongoqwert36-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://actualmongoqwert36-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"actualmongoqwert36-francecentral\",\r\n \"locationName\": \"France Central\",\r\n \"documentEndpoint\": \"https://actualmongoqwert36-francecentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"actualmongoqwert36-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"actualmongoqwert36-francecentral\",\r\n \"locationName\": \"France Central\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/abinav_stage_rg/providers/Microsoft.DocumentDB/databaseAccounts/asdfasdfasdfasdf123456788921\",\r\n \"name\": \"asdfasdfasdfasdf123456788921\",\r\n \"location\": \"Australia Central\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-11-12T23:23:02.7912894Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://asdfasdfasdfasdf123456788921.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"instanceId\": \"34d91df2-6e99-4100-bdc0-1540e6a4ed0a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"asdfasdfasdfasdf123456788921-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://asdfasdfasdfasdf123456788921-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"asdfasdfasdfasdf123456788921-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://asdfasdfasdfasdf123456788921-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"asdfasdfasdfasdf123456788921-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://asdfasdfasdfasdf123456788921-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"asdfasdfasdfasdf123456788921-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ash/providers/Microsoft.DocumentDB/databaseAccounts/ash-sqltest1\",\r\n \"name\": \"ash-sqltest1\",\r\n \"location\": \"Australia Central\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-09-25T19:31:26.5143301Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ash-sqltest1.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"instanceId\": \"c96a51f5-e646-469a-bccf-ca0834269ada\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ash-sqltest1-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://ash-sqltest1-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ash-sqltest1-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://ash-sqltest1-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ash-sqltest1-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://ash-sqltest1-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ash-sqltest1-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/Devansh-Test_env/providers/Microsoft.DocumentDB/databaseAccounts/defrag-testing\",\r\n \"name\": \"defrag-testing\",\r\n \"location\": \"Australia Central\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-10-01T03:28:01.8404106Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://defrag-testing.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"instanceId\": \"68cff86c-b880-4d09-8211-4a6e4b38a9a0\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"defrag-testing-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://defrag-testing-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"defrag-testing-australiacentral2\",\r\n \"locationName\": \"Australia Central 2\",\r\n \"documentEndpoint\": \"https://defrag-testing-australiacentral2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"defrag-testing-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://defrag-testing-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"defrag-testing-australiacentral2\",\r\n \"locationName\": \"Australia Central 2\",\r\n \"documentEndpoint\": \"https://defrag-testing-australiacentral2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"defrag-testing-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://defrag-testing-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"defrag-testing-australiacentral2\",\r\n \"locationName\": \"Australia Central 2\",\r\n \"documentEndpoint\": \"https://defrag-testing-australiacentral2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"defrag-testing-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"defrag-testing-australiacentral2\",\r\n \"locationName\": \"Australia Central 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableNotebooks\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi-test-mongo/providers/Microsoft.DocumentDB/databaseAccounts/mongo-ahc7b66s2t4kc\",\r\n \"name\": \"mongo-ahc7b66s2t4kc\",\r\n \"location\": \"Australia Central\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-03-10T18:27:13.1493942Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongo-ahc7b66s2t4kc.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"instanceId\": \"8cac4b70-6901-442c-80bb-4c5b946099fd\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongo-ahc7b66s2t4kc-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://mongo-ahc7b66s2t4kc-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongo-ahc7b66s2t4kc-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://mongo-ahc7b66s2t4kc-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongo-ahc7b66s2t4kc-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://mongo-ahc7b66s2t4kc-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongo-ahc7b66s2t4kc-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"AllowSelfServeUpgradeToMongo36\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi-test-mongo/providers/Microsoft.DocumentDB/databaseAccounts/mongoclient2222\",\r\n \"name\": \"mongoclient2222\",\r\n \"location\": \"Australia Central\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-23T22:45:44.9511468Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongoclient2222.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://mongoclient2222.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"instanceId\": \"bec6897c-ab77-4059-afa2-83ce4b16f2bd\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongoclient2222-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://mongoclient2222-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongoclient2222-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://mongoclient2222-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongoclient2222-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://mongoclient2222-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongoclient2222-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi-test-mongo/providers/Microsoft.DocumentDB/databaseAccounts/mongodb-ahc7b66s2t4kc\",\r\n \"name\": \"mongodb-ahc7b66s2t4kc\",\r\n \"location\": \"Australia Central\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-03-10T00:11:44.1130123Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongodb-ahc7b66s2t4kc.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"instanceId\": \"14ce2af7-9f51-480f-8c7a-3875188fc020\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongodb-ahc7b66s2t4kc-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://mongodb-ahc7b66s2t4kc-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongodb-ahc7b66s2t4kc-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://mongodb-ahc7b66s2t4kc-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"mongodb-ahc7b66s2t4kc-switzerlandnorth\",\r\n \"locationName\": \"Switzerland North\",\r\n \"documentEndpoint\": \"https://mongodb-ahc7b66s2t4kc-switzerlandnorth.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongodb-ahc7b66s2t4kc-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://mongodb-ahc7b66s2t4kc-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"mongodb-ahc7b66s2t4kc-switzerlandnorth\",\r\n \"locationName\": \"Switzerland North\",\r\n \"documentEndpoint\": \"https://mongodb-ahc7b66s2t4kc-switzerlandnorth.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongodb-ahc7b66s2t4kc-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"mongodb-ahc7b66s2t4kc-switzerlandnorth\",\r\n \"locationName\": \"Switzerland North\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"AllowSelfServeUpgradeToMongo36\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi-test-mongo/providers/Microsoft.DocumentDB/databaseAccounts/mongodb1123\",\r\n \"name\": \"mongodb1123\",\r\n \"location\": \"Australia Central\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-03-10T00:29:19.9514236Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongodb1123.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://mongodb1123.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"instanceId\": \"2e2249f2-12a8-4c01-be77-2c05c4049b8f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongodb1123-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://mongodb1123-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongodb1123-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://mongodb1123-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"mongodb1123-francecentral\",\r\n \"locationName\": \"France Central\",\r\n \"documentEndpoint\": \"https://mongodb1123-francecentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongodb1123-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://mongodb1123-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"mongodb1123-francecentral\",\r\n \"locationName\": \"France Central\",\r\n \"documentEndpoint\": \"https://mongodb1123-francecentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongodb1123-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"mongodb1123-francecentral\",\r\n \"locationName\": \"France Central\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"MongoDBv3.4\"\r\n },\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi-test-mongo/providers/Microsoft.DocumentDB/databaseAccounts/mongoqwert\",\r\n \"name\": \"mongoqwert\",\r\n \"location\": \"Australia Central\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-03-10T00:54:16.955988Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongoqwert.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"instanceId\": \"d9ddecd5-4460-4106-b074-b6c09bcb4104\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongoqwert-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://mongoqwert-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongoqwert-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://mongoqwert-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"mongoqwert-francecentral\",\r\n \"locationName\": \"France Central\",\r\n \"documentEndpoint\": \"https://mongoqwert-francecentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongoqwert-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"documentEndpoint\": \"https://mongoqwert-australiacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"mongoqwert-francecentral\",\r\n \"locationName\": \"France Central\",\r\n \"documentEndpoint\": \"https://mongoqwert-francecentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongoqwert-australiacentral\",\r\n \"locationName\": \"Australia Central\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"mongoqwert-francecentral\",\r\n \"locationName\": \"France Central\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"AllowSelfServeUpgradeToMongo36\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ash/providers/Microsoft.DocumentDB/databaseAccounts/ash-gremlin-test\",\r\n \"name\": \"ash-gremlin-test\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlin (graph)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-09-25T22:02:12.9775347Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ash-gremlin-test.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://ash-gremlin-test.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"0830695b-8432-4b15-88d3-45b685e0b6a4\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ash-gremlin-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://ash-gremlin-test-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ash-gremlin-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://ash-gremlin-test-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ash-gremlin-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://ash-gremlin-test-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ash-gremlin-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ash/providers/Microsoft.DocumentDB/databaseAccounts/ash-table-test\",\r\n \"name\": \"ash-table-test\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Table\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-09-25T23:21:50.1375571Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ash-table-test.documents-staging.windows-ppe.net:443/\",\r\n \"tableEndpoint\": \"https://ash-table-test.table.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Table, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"38b9a7a6-ac1c-4b98-b010-848d48deab03\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ash-table-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://ash-table-test-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ash-table-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://ash-table-test-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ash-table-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://ash-table-test-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ash-table-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [\r\n {\r\n \"allowedOrigins\": \"*\"\r\n }\r\n ],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableTable\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/boeing-garyrush/providers/Microsoft.DocumentDB/databaseAccounts/boeingevents\",\r\n \"name\": \"boeingevents\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-09-04T19:57:40.2034526Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://boeingevents.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://boeingevents.cassandra.cosmosdb.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"b8f5d2d7-f46e-4b55-99ef-a287df9dfbea\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"boeingevents-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://boeingevents-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"boeingevents-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://boeingevents-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"boeingevents-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://boeingevents-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"boeingevents-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CANARY/providers/Microsoft.DocumentDB/databaseAccounts/canary-stagenorthcentralus1cm1\",\r\n \"name\": \"canary-stagenorthcentralus1cm1\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"DocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-12T22:39:06.6621633Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://canary-stagenorthcentralus1cm1.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://canary-stagenorthcentralus1cm1.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"0ed64378-9372-4bdc-85d5-96ccfeae9509\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"canary-stagenorthcentralus1cm1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://canary-stagenorthcentralus1cm1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"canary-stagenorthcentralus1cm1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://canary-stagenorthcentralus1cm1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"canary-stagenorthcentralus1cm1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://canary-stagenorthcentralus1cm1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"canary-stagenorthcentralus1cm1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CANARY/providers/Microsoft.DocumentDB/databaseAccounts/canary-staging2\",\r\n \"name\": \"canary-staging2\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"DocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-16T21:30:41.3739266Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://canary-staging2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"61b7d6c8-81c7-41ff-b29c-d7adde252039\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"canary-staging2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://canary-staging2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"canary-staging2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://canary-staging2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"canary-staging2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://canary-staging2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"canary-staging2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/jihmmtest/providers/Microsoft.DocumentDB/databaseAccounts/casey-mm-test\",\r\n \"name\": \"casey-mm-test\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-09-18T04:02:51.220772Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://casey-mm-test.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"71f7e1be-2559-4117-8a47-93851f42e94f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"casey-mm-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://casey-mm-test-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"casey-mm-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://casey-mm-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"casey-mm-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://casey-mm-test-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"casey-mm-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://casey-mm-test-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"casey-mm-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://casey-mm-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"casey-mm-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://casey-mm-test-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"casey-mm-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://casey-mm-test-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"casey-mm-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://casey-mm-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"casey-mm-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://casey-mm-test-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"casey-mm-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"casey-mm-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n },\r\n {\r\n \"id\": \"casey-mm-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 2\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/cassandra-platform-signoff-ncus03-rg/providers/Microsoft.DocumentDB/databaseAccounts/cassandra-platform-signoff-ncus03\",\r\n \"name\": \"cassandra-platform-signoff-ncus03\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2018-10-15T10:36:12.4906826Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cassandra-platform-signoff-ncus03.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://cassandra-platform-signoff-ncus03.cassandra.cosmosdb.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d87fd03a-7c5e-4ec2-9de1-778dcdf98987\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cassandra-platform-signoff-ncus03-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://cassandra-platform-signoff-ncus03-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cassandra-platform-signoff-ncus03-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://cassandra-platform-signoff-ncus03-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cassandra-platform-signoff-ncus03-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://cassandra-platform-signoff-ncus03-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cassandra-platform-signoff-ncus03-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vivekrasignoff/providers/Microsoft.DocumentDB/databaseAccounts/cassandraquerysignoff\",\r\n \"name\": \"cassandraquerysignoff\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-07-19T17:30:36.8546547Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cassandraquerysignoff.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://cassandraquerysignoff.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"93e68f3b-99a2-492a-a4a5-77e994432a0f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cassandraquerysignoff-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://cassandraquerysignoff-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cassandraquerysignoff-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://cassandraquerysignoff-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cassandraquerysignoff-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://cassandraquerysignoff-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cassandraquerysignoff-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/stagerunner/providers/Microsoft.DocumentDB/databaseAccounts/cassandrastagemetricsrunner\",\r\n \"name\": \"cassandrastagemetricsrunner\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"owner\": \"vivekra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-11-15T20:32:07.5253872Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cassandrastagemetricsrunner.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://cassandrastagemetricsrunner.cassandra.cosmosdb.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"22dfff04-c0bf-4387-8f4e-72028fafb564\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cassandrastagemetricsrunner-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://cassandrastagemetricsrunner-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cassandrastagemetricsrunner-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://cassandrastagemetricsrunner-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cassandrastagemetricsrunner-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://cassandrastagemetricsrunner-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cassandrastagemetricsrunner-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vivekrasignoff/providers/Microsoft.DocumentDB/databaseAccounts/cassstagesignoffvivekra\",\r\n \"name\": \"cassstagesignoffvivekra\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-06-10T18:34:35.5190767Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cassstagesignoffvivekra.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://cassstagesignoffvivekra.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"9b178109-696d-4630-8c69-49c479d44b1c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cassstagesignoffvivekra-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://cassstagesignoffvivekra-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cassstagesignoffvivekra-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://cassstagesignoffvivekra-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cassstagesignoffvivekra-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://cassstagesignoffvivekra-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cassstagesignoffvivekra-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ccxstagevalidationrg/providers/Microsoft.DocumentDB/databaseAccounts/ccx-edge-mm-demo-backup\",\r\n \"name\": \"ccx-edge-mm-demo-backup\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-12-11T00:08:26.5965782Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ccx-edge-mm-demo-backup.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://ccx-edge-mm-demo-backup.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"2e5499ec-ff2e-4928-941d-36781974cac9\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": true,\r\n \"connectorOffer\": \"small\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ccx-edge-mm-demo-backup-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://ccx-edge-mm-demo-backup-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ccx-edge-mm-demo-backup-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://ccx-edge-mm-demo-backup-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ccx-edge-mm-demo-backup-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://ccx-edge-mm-demo-backup-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ccx-edge-mm-demo-backup-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/chrande-test/providers/Microsoft.DocumentDB/databaseAccounts/chrande-mongo-test-40-portal\",\r\n \"name\": \"chrande-mongo-test-40-portal\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-22T02:28:23.312616Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://chrande-mongo-test-40-portal.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://chrande-mongo-test-40-portal.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"8bd4d04e-56a6-450c-9b0b-761242f321ee\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"chrande-mongo-test-40-portal-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://chrande-mongo-test-40-portal-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"chrande-mongo-test-40-portal-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://chrande-mongo-test-40-portal-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"chrande-mongo-test-40-portal-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://chrande-mongo-test-40-portal-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"chrande-mongo-test-40-portal-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/chrande-test/providers/Microsoft.DocumentDB/databaseAccounts/chrande-test-mongo-32-update\",\r\n \"name\": \"chrande-test-mongo-32-update\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-22T04:34:44.2723741Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://chrande-test-mongo-32-update.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://chrande-test-mongo-32-update.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"f99944e3-ffe6-4214-b163-6beb06deb5a1\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"4.0\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"chrande-test-mongo-32-update-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://chrande-test-mongo-32-update-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"chrande-test-mongo-32-update-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://chrande-test-mongo-32-update-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"chrande-test-mongo-32-update-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://chrande-test-mongo-32-update-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"chrande-test-mongo-32-update-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ratnakv/providers/Microsoft.DocumentDB/databaseAccounts/computecachetest\",\r\n \"name\": \"computecachetest\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-04-29T18:40:43.9744746Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://computecachetest.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c39267d2-3c84-4da9-a57f-59b1c4a65a50\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"computecachetest-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://computecachetest-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"computecachetest-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://computecachetest-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"computecachetest-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://computecachetest-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"computecachetest-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ratnakv/providers/Microsoft.DocumentDB/databaseAccounts/computecachetest2\",\r\n \"name\": \"computecachetest2\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-04-29T19:04:39.9778253Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://computecachetest2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"9c5c13db-83a8-4fe8-b88b-ec237724175a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"computecachetest2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://computecachetest2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"computecachetest2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://computecachetest2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"computecachetest2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://computecachetest2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"computecachetest2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/demo/providers/Microsoft.DocumentDB/databaseAccounts/cosmos-gremlin-cli-signoff\",\r\n \"name\": \"cosmos-gremlin-cli-signoff\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-05-10T22:08:25.8050599Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cosmos-gremlin-cli-signoff.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://cosmos-gremlin-cli-signoff.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"3793a1a9-5d81-4f95-a6b9-952bcabe863c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmos-gremlin-cli-signoff-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://cosmos-gremlin-cli-signoff-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmos-gremlin-cli-signoff-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://cosmos-gremlin-cli-signoff-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmos-gremlin-cli-signoff-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://cosmos-gremlin-cli-signoff-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmos-gremlin-cli-signoff-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/cosmosxinfrastructure/providers/Microsoft.DocumentDB/databaseAccounts/cosmosxinfradb\",\r\n \"name\": \"cosmosxinfradb\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\",\r\n \"contact\": \"cosmosxc\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-10-25T06:18:35.0254807Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cosmosxinfradb.documents-staging.windows-ppe.net:443/\",\r\n \"sqlEndpoint\": \"https://cosmosxinfradb.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"355ca5b8-788f-46cd-967c-c2337782b8a4\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosxinfradb-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cosmosxinfradb-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosxinfradb-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cosmosxinfradb-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosxinfradb-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cosmosxinfradb-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosxinfradb-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableSql\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/crowdkeeppreview/providers/Microsoft.DocumentDB/databaseAccounts/crowdkeep\",\r\n \"name\": \"crowdkeep\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-09-06T08:42:40.758407Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://crowdkeep.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://crowdkeep.cassandra.cosmosdb.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"5a0a760f-04e9-45c5-98f3-b393685acc68\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"crowdkeep-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://crowdkeep-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"crowdkeep-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://crowdkeep-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"crowdkeep-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://crowdkeep-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"crowdkeep-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mongo-stage-signoff/providers/Microsoft.DocumentDB/databaseAccounts/cursortest-mongo\",\r\n \"name\": \"cursortest-mongo\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"MongoDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-11-07T22:17:50.0537296Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cursortest-mongo.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://cursortest-mongo.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"57029808-86eb-4ac9-96ef-675990245d9f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cursortest-mongo-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cursortest-mongo-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"cursortest-mongo-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://cursortest-mongo-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cursortest-mongo-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cursortest-mongo-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"cursortest-mongo-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://cursortest-mongo-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cursortest-mongo-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cursortest-mongo-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"cursortest-mongo-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://cursortest-mongo-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cursortest-mongo-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"cursortest-mongo-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/cosmosdbqueryteam/providers/Microsoft.DocumentDB/databaseAccounts/customertest1\",\r\n \"name\": \"customertest1\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-02-12T07:13:03.2287797Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://customertest1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a20ca0bd-f814-4153-8fe0-afd87f2fa65c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"customertest1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://customertest1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"customertest1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://customertest1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"customertest1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://customertest1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"customertest1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [\r\n {\r\n \"allowedOrigins\": \"*\"\r\n }\r\n ],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/dox-staging/providers/Microsoft.DocumentDB/databaseAccounts/dox-table-staging-mm\",\r\n \"name\": \"dox-table-staging-mm\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Table\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-09-18T17:36:03.1916682Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://dox-table-staging-mm.documents-staging.windows-ppe.net:443/\",\r\n \"tableEndpoint\": \"https://dox-table-staging-mm.table.cosmosdb.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Table, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d8c3478a-f2f1-4e12-901f-27f929138d85\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 86400,\r\n \"maxStalenessPrefix\": 1000000\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"dox-table-staging-mm-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://dox-table-staging-mm-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"dox-table-staging-mm-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://dox-table-staging-mm-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"dox-table-staging-mm-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://dox-table-staging-mm-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"dox-table-staging-mm-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://dox-table-staging-mm-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"dox-table-staging-mm-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://dox-table-staging-mm-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"dox-table-staging-mm-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://dox-table-staging-mm-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"dox-table-staging-mm-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://dox-table-staging-mm-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"dox-table-staging-mm-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://dox-table-staging-mm-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"dox-table-staging-mm-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://dox-table-staging-mm-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"dox-table-staging-mm-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"dox-table-staging-mm-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n },\r\n {\r\n \"id\": \"dox-table-staging-mm-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 2\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableTable\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/dxcpreview/providers/Microsoft.DocumentDB/databaseAccounts/dxc\",\r\n \"name\": \"dxc\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-09-06T07:07:13.5966847Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://dxc.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://dxc.cassandra.cosmosdb.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"0b42126d-b8d4-4977-8bca-868f791e49f6\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"dxc-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://dxc-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"dxc-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://dxc-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"dxc-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://dxc-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"dxc-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/testetcd/providers/Microsoft.DocumentDB/databaseAccounts/etcdsignoff0610a\",\r\n \"name\": \"etcdsignoff0610a\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Etcd\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-10T18:51:29.7518184Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://etcdsignoff0610a.documents-staging.windows-ppe.net:443/\",\r\n \"etcdEndpoint\": \"https://etcdsignoff0610a.etcd.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql, Etcd\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"2bec1ce6-81cd-4e63-a48a-4537b38a7b6e\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"etcdsignoff0610a-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://etcdsignoff0610a-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"etcdsignoff0610a-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://etcdsignoff0610a-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"etcdsignoff0610a-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://etcdsignoff0610a-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"etcdsignoff0610a-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableEtcd\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/etcdstage/providers/Microsoft.DocumentDB/databaseAccounts/etcdstagencus1\",\r\n \"name\": \"etcdstagencus1\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Etcd\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-01-25T20:38:35.0298082Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://etcdstagencus1.documents-staging.windows-ppe.net:443/\",\r\n \"etcdEndpoint\": \"https://etcdstagencus1.etcd.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql, Etcd\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"f92d5e56-da24-4bad-ba46-9d6e1154349d\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"etcdstagencus1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://etcdstagencus1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"etcdstagencus1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://etcdstagencus1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"etcdstagencus1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://etcdstagencus1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"etcdstagencus1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableEtcd\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/etcdstage/providers/Microsoft.DocumentDB/databaseAccounts/etcdstagencus2\",\r\n \"name\": \"etcdstagencus2\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Etcd\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-03-26T22:17:59.1224071Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://etcdstagencus2.documents-staging.windows-ppe.net:443/\",\r\n \"etcdEndpoint\": \"https://etcdstagencus2.etcd.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql, Etcd\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a0991bac-ea4c-446c-9953-121557e9fa95\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"etcdstagencus2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://etcdstagencus2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"etcdstagencus2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://etcdstagencus2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"etcdstagencus2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://etcdstagencus2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"etcdstagencus2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableEtcd\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/jihmmtest/providers/Microsoft.DocumentDB/databaseAccounts/ford-mongo-mm\",\r\n \"name\": \"ford-mongo-mm\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"MongoDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-09-12T18:21:28.2105353Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ford-mongo-mm.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"5d390740-cf60-4622-8cc7-6fc474a7b377\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ford-mongo-mm-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://ford-mongo-mm-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"ford-mongo-mm-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://ford-mongo-mm-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"ford-mongo-mm-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ford-mongo-mm-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ford-mongo-mm-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://ford-mongo-mm-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"ford-mongo-mm-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://ford-mongo-mm-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"ford-mongo-mm-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ford-mongo-mm-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ford-mongo-mm-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://ford-mongo-mm-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"ford-mongo-mm-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://ford-mongo-mm-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"ford-mongo-mm-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ford-mongo-mm-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ford-mongo-mm-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"ford-mongo-mm-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 2\r\n },\r\n {\r\n \"id\": \"ford-mongo-mm-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/gremlin-staging/providers/Microsoft.DocumentDB/databaseAccounts/gremlin-create-7-2\",\r\n \"name\": \"gremlin-create-7-2\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-07-11T18:45:42.0201653Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://gremlin-create-7-2.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://gremlin-create-7-2.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"0376d463-5459-48d7-8836-601f60a7c7ae\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"gremlin-create-7-2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://gremlin-create-7-2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"gremlin-create-7-2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://gremlin-create-7-2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"gremlin-create-7-2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://gremlin-create-7-2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"gremlin-create-7-2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/gremlin-staging/providers/Microsoft.DocumentDB/databaseAccounts/gremlin-create-test\",\r\n \"name\": \"gremlin-create-test\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlin (graph)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-06-22T02:08:31.6561524Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://gremlin-create-test.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://gremlin-create-test.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"36566f00-f45f-45b3-bc89-3a74fd1ab6ac\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"gremlin-create-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://gremlin-create-test-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"gremlin-create-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://gremlin-create-test-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"gremlin-create-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://gremlin-create-test-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"gremlin-create-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/gremlin-staging/providers/Microsoft.DocumentDB/databaseAccounts/gremlin-en20180628\",\r\n \"name\": \"gremlin-en20180628\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Graph\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-07-12T19:17:20.4275521Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://gremlin-en20180628.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://gremlin-en20180628.gremlin.cosmosdb.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"9cfe8d1c-0362-490a-9d73-1512d2b4cdd7\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"gremlin-en20180628-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://gremlin-en20180628-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"gremlin-en20180628-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://gremlin-en20180628-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"gremlin-en20180628-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://gremlin-en20180628-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"gremlin-en20180628-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/gremlin-staging-eastus2/providers/Microsoft.DocumentDB/databaseAccounts/gremlin-maxjoin-test2\",\r\n \"name\": \"gremlin-maxjoin-test2\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlin (graph)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-06-17T19:14:52.2282262Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://gremlin-maxjoin-test2.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://gremlin-maxjoin-test2.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"83c9546d-797a-4bf7-959f-a45a403f45ff\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"gremlin-maxjoin-test2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://gremlin-maxjoin-test2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"gremlin-maxjoin-test2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://gremlin-maxjoin-test2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"gremlin-maxjoin-test2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://gremlin-maxjoin-test2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"gremlin-maxjoin-test2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/gremlin-staging/providers/Microsoft.DocumentDB/databaseAccounts/gremlin-staging-ncus\",\r\n \"name\": \"gremlin-staging-ncus\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlin (graph)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-11-12T19:35:58.2885645Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://gremlin-staging-ncus.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://gremlin-staging-ncus.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"0201e780-2feb-454c-aeb0-a591b2f786d4\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"gremlin-staging-ncus-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://gremlin-staging-ncus-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"gremlin-staging-ncus-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://gremlin-staging-ncus-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"gremlin-staging-ncus-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://gremlin-staging-ncus-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"gremlin-staging-ncus-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/gremlin-staging/providers/Microsoft.DocumentDB/databaseAccounts/gremlin-staging-ncus-v2sdk\",\r\n \"name\": \"gremlin-staging-ncus-v2sdk\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlin (graph)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-02-28T20:26:53.2466425Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://gremlin-staging-ncus-v2sdk.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://gremlin-staging-ncus-v2sdk.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"ca02791b-1b0e-45de-86a3-7b9b82f7a686\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"gremlin-staging-ncus-v2sdk-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://gremlin-staging-ncus-v2sdk-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"gremlin-staging-ncus-v2sdk-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://gremlin-staging-ncus-v2sdk-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"gremlin-staging-ncus-v2sdk-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://gremlin-staging-ncus-v2sdk-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"gremlin-staging-ncus-v2sdk-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n },\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/gremlin-staging/providers/Microsoft.DocumentDB/databaseAccounts/gremlinstage1010cli\",\r\n \"name\": \"gremlinstage1010cli\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-10-16T00:32:33.729965Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://gremlinstage1010cli.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://gremlinstage1010cli.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"e7cccc46-4940-4d20-b8ae-93ed87375647\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"gremlinstage1010cli-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://gremlinstage1010cli-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"gremlinstage1010cli-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://gremlinstage1010cli-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"gremlinstage1010cli-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://gremlinstage1010cli-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"gremlinstage1010cli-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/harinic/providers/Microsoft.DocumentDB/databaseAccounts/harinicstage2\",\r\n \"name\": \"harinicstage2\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-26T18:20:24.9238086Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://harinicstage2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"120101e0-7e5f-4194-9539-0ea9acec4348\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"harinicstage2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://harinicstage2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"harinicstage2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://harinicstage2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"harinicstage2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://harinicstage2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"harinicstage2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://harinicstage2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"harinicstage2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://harinicstage2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"harinicstage2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"harinicstage2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/akash-cassandra-northcentralus-resource/providers/Microsoft.DocumentDB/databaseAccounts/harsudantest7\",\r\n \"name\": \"harsudantest7\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-09-18T21:56:18.8457915Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://harsudantest7.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"91c4cf3f-907d-479f-9bdc-d7e7a67b802e\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"harsudantest7-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://harsudantest7-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"harsudantest7-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://harsudantest7-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"harsudantest7-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://harsudantest7-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"harsudantest7-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://harsudantest7-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"harsudantest7-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://harsudantest7-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"harsudantest7-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"harsudantest7-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/kuma/providers/Microsoft.DocumentDB/databaseAccounts/kumacapital-nc\",\r\n \"name\": \"kumacapital-nc\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-08-24T05:39:24.5145204Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://kumacapital-nc.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://kumacapital-nc.cassandra.cosmosdb.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"6092a46a-47bc-4c2c-ad36-26ab6c9d867f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"kumacapital-nc-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://kumacapital-nc-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"kumacapital-nc-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://kumacapital-nc-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"kumacapital-nc-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://kumacapital-nc-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"kumacapital-nc-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shreshts/providers/Microsoft.DocumentDB/databaseAccounts/messi\",\r\n \"name\": \"messi\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-09-16T19:20:28.5202571Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://messi.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"519a68a6-21bc-4840-a6aa-4bac329bcee6\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"messi-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://messi-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"messi-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://messi-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"messi-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://messi-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"messi-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://messi-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"messi-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://messi-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"messi-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://messi-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"messi-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://messi-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"messi-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://messi-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"messi-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://messi-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"messi-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"messi-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 2\r\n },\r\n {\r\n \"id\": \"messi-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shqintest/providers/Microsoft.DocumentDB/databaseAccounts/metricstestingstage\",\r\n \"name\": \"metricstestingstage\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\",\r\n \"testtag\": \"abc\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-12-11T23:59:06.0447436Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://metricstestingstage.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"828a4909-dc02-4f95-a2d2-9c159df2339d\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"metricstestingstage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://metricstestingstage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"metricstestingstage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://metricstestingstage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"metricstestingstage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://metricstestingstage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"metricstestingstage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mkolt-stage/providers/Microsoft.DocumentDB/databaseAccounts/mkolt-stage-sm\",\r\n \"name\": \"mkolt-stage-sm\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-12T20:03:16.7583007Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mkolt-stage-sm.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"6ae57f6a-1100-479e-b698-28c21a10e9f0\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mkolt-stage-sm-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mkolt-stage-sm-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mkolt-stage-sm-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mkolt-stage-sm-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"mkolt-stage-sm-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://mkolt-stage-sm-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mkolt-stage-sm-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mkolt-stage-sm-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"mkolt-stage-sm-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://mkolt-stage-sm-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mkolt-stage-sm-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"mkolt-stage-sm-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ashwsing-rg/providers/Microsoft.DocumentDB/databaseAccounts/mognostagesignoff7\",\r\n \"name\": \"mognostagesignoff7\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-26T18:18:36.2451251Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mognostagesignoff7.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://mognostagesignoff7.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"2e96413c-65e2-49d8-aeef-0806e98e3a5e\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mognostagesignoff7-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mognostagesignoff7-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mognostagesignoff7-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mognostagesignoff7-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mognostagesignoff7-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mognostagesignoff7-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mognostagesignoff7-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"104.42.195.92\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"40.76.54.131\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.176.6.30\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.169.50.45\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.187.184.26\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mominag-cassandra/providers/Microsoft.DocumentDB/databaseAccounts/mominag-stagec1\",\r\n \"name\": \"mominag-stagec1\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-12-20T22:23:31.7773687Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mominag-stagec1.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://mominag-stagec1.cassandra.cosmosdb.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"0b52698f-beb5-42c5-bcce-56e4497daa07\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mominag-stagec1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mominag-stagec1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"mominag-stagec1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mominag-stagec1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mominag-stagec1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mominag-stagec1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"mominag-stagec1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mominag-stagec1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mominag-stagec1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mominag-stagec1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"mominag-stagec1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mominag-stagec1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mominag-stagec1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"mominag-stagec1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/babatsai-rg-signoff/providers/Microsoft.DocumentDB/databaseAccounts/mong-test\",\r\n \"name\": \"mong-test\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-07-04T00:42:03.6377663Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mong-test.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"4dc7f5de-13c9-4abb-8ac0-63f188e834c1\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mong-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mong-test-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mong-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mong-test-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mong-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mong-test-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mong-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mongo-multimaster-signoff/providers/Microsoft.DocumentDB/databaseAccounts/mongo-multimaster-signoffalt\",\r\n \"name\": \"mongo-multimaster-signoffalt\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"MongoDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-10-09T18:34:18.9363857Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongo-multimaster-signoffalt.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"e3666bfd-d259-4244-842c-7c7739391e1f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongo-multimaster-signoffalt-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://mongo-multimaster-signoffalt-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"mongo-multimaster-signoffalt-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo-multimaster-signoffalt-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongo-multimaster-signoffalt-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://mongo-multimaster-signoffalt-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"mongo-multimaster-signoffalt-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo-multimaster-signoffalt-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongo-multimaster-signoffalt-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://mongo-multimaster-signoffalt-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"mongo-multimaster-signoffalt-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo-multimaster-signoffalt-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongo-multimaster-signoffalt-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"mongo-multimaster-signoffalt-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"mongoEnableDocLevelTTL\"\r\n },\r\n {\r\n \"name\": \"EnableAggregationPipeline\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mongo-stage-signoff/providers/Microsoft.DocumentDB/databaseAccounts/mongo-stage-bsonv2-signoff\",\r\n \"name\": \"mongo-stage-bsonv2-signoff\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"MongoDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-05-17T18:11:55.0700337Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongo-stage-bsonv2-signoff.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"26e870fd-279c-4070-b303-27996d65667c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongo-stage-bsonv2-signoff-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo-stage-bsonv2-signoff-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongo-stage-bsonv2-signoff-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo-stage-bsonv2-signoff-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongo-stage-bsonv2-signoff-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo-stage-bsonv2-signoff-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongo-stage-bsonv2-signoff-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableAggregationPipeline\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/jasontho/providers/Microsoft.DocumentDB/databaseAccounts/mongo-stage-compute-serializer\",\r\n \"name\": \"mongo-stage-compute-serializer\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-05-21T03:11:55.1217816Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongo-stage-compute-serializer.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d836ac83-9ff8-4615-a56a-40e5d0430246\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongo-stage-compute-serializer-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo-stage-compute-serializer-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongo-stage-compute-serializer-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo-stage-compute-serializer-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongo-stage-compute-serializer-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo-stage-compute-serializer-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongo-stage-compute-serializer-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableAggregationPipeline\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mongo-stage-signoff/providers/Microsoft.DocumentDB/databaseAccounts/mongo-stage-signoff\",\r\n \"name\": \"mongo-stage-signoff\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"MongoDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-05-16T21:06:30.1481817Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongo-stage-signoff.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"ac131391-5b9c-4739-922f-ee86a849895a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"False\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongo-stage-signoff-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo-stage-signoff-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongo-stage-signoff-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo-stage-signoff-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongo-stage-signoff-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo-stage-signoff-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongo-stage-signoff-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableAggregationPipeline\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/jasontho/providers/Microsoft.DocumentDB/databaseAccounts/mongo40stage-aleksey\",\r\n \"name\": \"mongo40stage-aleksey\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-11T19:24:48.2610779Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongo40stage-aleksey.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://mongo40stage-aleksey.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"4849e84f-9118-449d-9274-fd244f073898\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"4.0\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongo40stage-aleksey-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo40stage-aleksey-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongo40stage-aleksey-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo40stage-aleksey-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongo40stage-aleksey-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo40stage-aleksey-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongo40stage-aleksey-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/jasontho/providers/Microsoft.DocumentDB/databaseAccounts/mongo40stage-andy\",\r\n \"name\": \"mongo40stage-andy\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-11T19:24:03.9943326Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongo40stage-andy.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://mongo40stage-andy.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"488529e6-a41e-41f0-a374-06fb670214c4\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"4.0\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongo40stage-andy-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo40stage-andy-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongo40stage-andy-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo40stage-andy-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongo40stage-andy-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo40stage-andy-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongo40stage-andy-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/jasontho/providers/Microsoft.DocumentDB/databaseAccounts/mongo40stage-chris\",\r\n \"name\": \"mongo40stage-chris\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-11T19:24:32.0250361Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongo40stage-chris.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://mongo40stage-chris.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"52474c7f-6f16-452d-8b21-6fb2095a3de8\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"4.0\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongo40stage-chris-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo40stage-chris-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongo40stage-chris-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo40stage-chris-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongo40stage-chris-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo40stage-chris-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongo40stage-chris-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/jasontho/providers/Microsoft.DocumentDB/databaseAccounts/mongo40stage-gahl\",\r\n \"name\": \"mongo40stage-gahl\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-11T19:24:42.4271159Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongo40stage-gahl.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://mongo40stage-gahl.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"8c1fa332-8606-40f7-b300-0a029116d969\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"4.0\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongo40stage-gahl-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo40stage-gahl-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongo40stage-gahl-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo40stage-gahl-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongo40stage-gahl-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo40stage-gahl-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongo40stage-gahl-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/jasontho/providers/Microsoft.DocumentDB/databaseAccounts/mongo40stage-sergiy\",\r\n \"name\": \"mongo40stage-sergiy\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-11T19:24:45.2172839Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongo40stage-sergiy.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://mongo40stage-sergiy.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"3fe5dd33-41cb-416a-93d2-19e7064e8355\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"4.0\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongo40stage-sergiy-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo40stage-sergiy-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongo40stage-sergiy-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo40stage-sergiy-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongo40stage-sergiy-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongo40stage-sergiy-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongo40stage-sergiy-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ashwini-rg/providers/Microsoft.DocumentDB/databaseAccounts/mongolistcollection\",\r\n \"name\": \"mongolistcollection\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-04-17T22:27:07.193399Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongolistcollection.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"1e5181be-bdcf-4153-91e4-31dca1eeea83\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongolistcollection-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongolistcollection-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongolistcollection-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongolistcollection-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongolistcollection-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongolistcollection-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongolistcollection-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableAggregationPipeline\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ashwini-rg/providers/Microsoft.DocumentDB/databaseAccounts/mongorgteststage\",\r\n \"name\": \"mongorgteststage\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-10-10T00:19:53.8997346Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongorgteststage.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://mongorgteststage.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"b386adb5-d7d7-41ec-a682-f4428d247c76\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongorgteststage-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongorgteststage-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongorgteststage-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongorgteststage-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongorgteststage-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongorgteststage-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongorgteststage-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ashwini-rg/providers/Microsoft.DocumentDB/databaseAccounts/monogstagesignoff\",\r\n \"name\": \"monogstagesignoff\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-09-10T23:27:16.6745666Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://monogstagesignoff.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://monogstagesignoff.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"5fde5536-6ba3-49ea-aad4-bab1b61ffd71\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"monogstagesignoff-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://monogstagesignoff-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"monogstagesignoff-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://monogstagesignoff-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"monogstagesignoff-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://monogstagesignoff-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"monogstagesignoff-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://monogstagesignoff-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"monogstagesignoff-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://monogstagesignoff-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"monogstagesignoff-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"monogstagesignoff-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mtccassatest/providers/Microsoft.DocumentDB/databaseAccounts/mtctesthou\",\r\n \"name\": \"mtctesthou\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-09-20T03:23:25.005223Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mtctesthou.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://mtctesthou.cassandra.cosmosdb.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c6b1b220-0ab2-4e60-b9d0-7b34883b3119\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mtctesthou-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mtctesthou-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mtctesthou-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mtctesthou-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mtctesthou-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mtctesthou-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mtctesthou-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vivekrasignoff/providers/Microsoft.DocumentDB/databaseAccounts/multimasterconflictstest\",\r\n \"name\": \"multimasterconflictstest\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"owner\": \"vivekra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-12-20T23:12:43.9098667Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://multimasterconflictstest.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://multimasterconflictstest.cassandra.cosmosdb.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"fb7af021-2a85-4e1a-9b01-68e451595c2e\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"multimasterconflictstest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://multimasterconflictstest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"multimasterconflictstest-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://multimasterconflictstest-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"multimasterconflictstest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://multimasterconflictstest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"multimasterconflictstest-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://multimasterconflictstest-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"multimasterconflictstest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://multimasterconflictstest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"multimasterconflictstest-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://multimasterconflictstest-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"multimasterconflictstest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"multimasterconflictstest-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/nasimtest/providers/Microsoft.DocumentDB/databaseAccounts/nasimtest\",\r\n \"name\": \"nasimtest\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-06-26T16:51:35.2135853Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://nasimtest.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a2fc5e6f-fb71-4b50-a3cf-86d83533cf00\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"nasimtest-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://nasimtest-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"nasimtest-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://nasimtest-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"nasimtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nasimtest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"nasimtest-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://nasimtest-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"nasimtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nasimtest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"nasimtest-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"nasimtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sdk-ci/providers/Microsoft.DocumentDB/databaseAccounts/python-multimaster\",\r\n \"name\": \"python-multimaster\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-09-13T22:44:25.225715Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://python-multimaster.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"ec32a605-a0a3-4eac-8185-f1d58cf9df5c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"python-multimaster-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://python-multimaster-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"python-multimaster-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://python-multimaster-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"python-multimaster-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://python-multimaster-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"python-multimaster-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://python-multimaster-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"python-multimaster-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://python-multimaster-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"python-multimaster-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://python-multimaster-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"python-multimaster-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"python-multimaster-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 2\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/rogerspreview/providers/Microsoft.DocumentDB/databaseAccounts/rogersgeorge\",\r\n \"name\": \"rogersgeorge\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-09-07T01:36:53.7368553Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://rogersgeorge.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://rogersgeorge.cassandra.cosmosdb.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"2ace3ca8-489b-4787-945e-6632e2d35436\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"rogersgeorge-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://rogersgeorge-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"rogersgeorge-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://rogersgeorge-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"rogersgeorge-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://rogersgeorge-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"rogersgeorge-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sargup/providers/Microsoft.DocumentDB/databaseAccounts/sargup-testcpuspike\",\r\n \"name\": \"sargup-testcpuspike\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-04-10T00:22:21.9089302Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sargup-testcpuspike.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"08eefb6e-13d8-4423-b2d1-7bef733b92ba\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sargup-testcpuspike-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://sargup-testcpuspike-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"sargup-testcpuspike-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sargup-testcpuspike-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sargup-testcpuspike-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://sargup-testcpuspike-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"sargup-testcpuspike-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sargup-testcpuspike-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sargup-testcpuspike-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://sargup-testcpuspike-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"sargup-testcpuspike-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sargup-testcpuspike-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sargup-testcpuspike-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"sargup-testcpuspike-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ankshah/providers/Microsoft.DocumentDB/databaseAccounts/sharedthroughput-ankshah\",\r\n \"name\": \"sharedthroughput-ankshah\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-05-16T21:04:43.983836Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sharedthroughput-ankshah.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"04511201-e314-4108-95e7-b8818880fcbd\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sharedthroughput-ankshah-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://sharedthroughput-ankshah-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sharedthroughput-ankshah-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://sharedthroughput-ankshah-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"sharedthroughput-ankshah-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sharedthroughput-ankshah-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sharedthroughput-ankshah-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://sharedthroughput-ankshah-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"sharedthroughput-ankshah-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sharedthroughput-ankshah-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sharedthroughput-ankshah-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"sharedthroughput-ankshah-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shtan-stage-signoff/providers/Microsoft.DocumentDB/databaseAccounts/shtan-ncus-signoff\",\r\n \"name\": \"shtan-ncus-signoff\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-08-28T16:54:10.7184847Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shtan-ncus-signoff.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"10a9c64a-9e9c-4956-b150-47c3998e22b2\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shtan-ncus-signoff-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://shtan-ncus-signoff-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shtan-ncus-signoff-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://shtan-ncus-signoff-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"shtan-ncus-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shtan-ncus-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shtan-ncus-signoff-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://shtan-ncus-signoff-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"shtan-ncus-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shtan-ncus-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shtan-ncus-signoff-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"shtan-ncus-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 120,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shtan-stage-signoff/providers/Microsoft.DocumentDB/databaseAccounts/shtan-signoff-1204\",\r\n \"name\": \"shtan-signoff-1204\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"restoredSourceDatabaseAccountName\": \"shtan-ncus-signoff\",\r\n \"restoredAtTimestamp\": \"12/4/2019 9:56:28 PM\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-12-04T22:03:50.4636833Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shtan-signoff-1204.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"08b15cb4-a159-4b89-85c9-3f7e6a6b7635\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shtan-signoff-1204-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://shtan-signoff-1204-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shtan-signoff-1204-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://shtan-signoff-1204-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shtan-signoff-1204-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://shtan-signoff-1204-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shtan-signoff-1204-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 15,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/soham-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/sohamtestcosmosdb\",\r\n \"name\": \"sohamtestcosmosdb\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-06-24T17:30:49.8983786Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sohamtestcosmosdb.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"f85f68fd-b3cc-4ca2-9f50-5938c6d5e3e1\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Eventual\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sohamtestcosmosdb-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://sohamtestcosmosdb-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sohamtestcosmosdb-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://sohamtestcosmosdb-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sohamtestcosmosdb-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://sohamtestcosmosdb-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sohamtestcosmosdb-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/StageSignoffEtcd/providers/Microsoft.DocumentDB/databaseAccounts/stagesignoff1\",\r\n \"name\": \"stagesignoff1\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Etcd\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-07-30T00:19:09.9776403Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://stagesignoff1.documents-staging.windows-ppe.net:443/\",\r\n \"etcdEndpoint\": \"https://stagesignoff1.etcd.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql, Etcd\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"254085ae-4367-40aa-aa05-b35ea7e8d71e\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"stagesignoff1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://stagesignoff1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"stagesignoff1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://stagesignoff1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"stagesignoff1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://stagesignoff1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"stagesignoff1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableEtcd\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/StageSignoffEtcd/providers/Microsoft.DocumentDB/databaseAccounts/stagesignoffaks1\",\r\n \"name\": \"stagesignoffaks1\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Etcd\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-07-30T00:29:13.4846533Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://stagesignoffaks1.documents-staging.windows-ppe.net:443/\",\r\n \"etcdEndpoint\": \"https://stagesignoffaks1.etcd.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql, Etcd\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a55a2306-91b9-47b7-a0c1-da904850095c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"stagesignoffaks1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://stagesignoffaks1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"stagesignoffaks1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://stagesignoffaks1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"stagesignoffaks1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://stagesignoffaks1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"stagesignoffaks1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableEtcd\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sujitk/providers/Microsoft.DocumentDB/databaseAccounts/sujitkstage\",\r\n \"name\": \"sujitkstage\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-05-14T19:47:57.5962515Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sujitkstage.documents-staging.windows-ppe.net:443/\",\r\n \"sqlEndpoint\": \"https://sujitkstage.sql.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"eb4a65e1-6b69-4a4f-b5b8-1e44b73ccb99\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sujitkstage-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://sujitkstage-northcentralus.sql.cosmos.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sujitkstage-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://sujitkstage-northcentralus.sql.cosmos.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"sujitkstage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sujitkstage-eastus2.sql.cosmos.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sujitkstage-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://sujitkstage-northcentralus.sql.cosmos.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"sujitkstage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sujitkstage-eastus2.sql.cosmos.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sujitkstage-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"sujitkstage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableSql\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/test1027group/providers/Microsoft.DocumentDB/databaseAccounts/test1027-1\",\r\n \"name\": \"test1027-1\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"restoredSourceDatabaseAccountName\": \"test1027-1\",\r\n \"restoredAtTimestamp\": \"11/20/2020 6:01:30 PM\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-11-20T18:11:25.8147227Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test1027-1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a0e85731-6c30-4525-927a-bf23ff2d05dc\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test1027-1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://test1027-1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test1027-1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://test1027-1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test1027-1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://test1027-1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test1027-1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations//restorableDatabaseAccounts/\",\r\n \"restoreTimestampInUtc\": \"2020-11-20T10:00:00Z\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/test1027group/providers/Microsoft.DocumentDB/databaseAccounts/test1027-1-r1\",\r\n \"name\": \"test1027-1-r1\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"restoredSourceDatabaseAccountName\": \"test1027-1,test1027-1\",\r\n \"restoredAtTimestamp\": \"11/20/2020 6:01:30 PM,1/28/2021 9:25:20 PM\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-28T21:38:47.9342393Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test1027-1-r1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"2024b2c0-2370-4248-a28c-9c449715b452\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test1027-1-r1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://test1027-1-r1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test1027-1-r1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://test1027-1-r1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test1027-1-r1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://test1027-1-r1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test1027-1-r1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations//restorableDatabaseAccounts/\",\r\n \"restoreTimestampInUtc\": \"2021-01-28T19:00:00Z\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/test1027group/providers/Microsoft.DocumentDB/databaseAccounts/test1027-1-r2\",\r\n \"name\": \"test1027-1-r2\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"restoredSourceDatabaseAccountName\": \"test1027-1,test1027-1\",\r\n \"restoredAtTimestamp\": \"11/20/2020 6:01:30 PM,1/28/2021 9:25:32 PM\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-28T21:31:21.8236001Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test1027-1-r2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"82eb4c16-123d-4b11-8d5c-b98a6fdc0f66\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test1027-1-r2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://test1027-1-r2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test1027-1-r2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://test1027-1-r2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test1027-1-r2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://test1027-1-r2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test1027-1-r2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations//restorableDatabaseAccounts/\",\r\n \"restoreTimestampInUtc\": \"2021-01-28T19:00:00Z\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/test1027group/providers/Microsoft.DocumentDB/databaseAccounts/test1027-1-r3\",\r\n \"name\": \"test1027-1-r3\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"restoredSourceDatabaseAccountName\": \"test1027-1,test1027-1\",\r\n \"restoredAtTimestamp\": \"11/20/2020 6:01:30 PM,1/28/2021 9:25:52 PM\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-28T21:33:16.3110564Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test1027-1-r3.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c5dc8520-be90-4df7-b107-1f91d69c4e04\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test1027-1-r3-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://test1027-1-r3-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test1027-1-r3-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://test1027-1-r3-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test1027-1-r3-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://test1027-1-r3-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test1027-1-r3-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations//restorableDatabaseAccounts/\",\r\n \"restoreTimestampInUtc\": \"2021-01-28T19:00:00Z\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/test1027group/providers/Microsoft.DocumentDB/databaseAccounts/test1027-1-r4-r1\",\r\n \"name\": \"test1027-1-r4-r1\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"restoredSourceDatabaseAccountName\": \"test1027-1,test1027-1,test1027-1-r4\",\r\n \"restoredAtTimestamp\": \"11/20/2020 6:01:30 PM,1/28/2021 9:26:28 PM,1/29/2021 7:16:36 PM\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-29T19:23:04.0332667Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test1027-1-r4-r1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"249d3b84-6f24-486f-a712-9fde7a50b73d\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test1027-1-r4-r1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://test1027-1-r4-r1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test1027-1-r4-r1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://test1027-1-r4-r1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test1027-1-r4-r1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://test1027-1-r4-r1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test1027-1-r4-r1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations//restorableDatabaseAccounts/\",\r\n \"restoreTimestampInUtc\": \"2021-01-29T00:00:00Z\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/test1027group/providers/Microsoft.DocumentDB/databaseAccounts/test1027-1-r4-r2\",\r\n \"name\": \"test1027-1-r4-r2\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"restoredSourceDatabaseAccountName\": \"test1027-1,test1027-1,test1027-1-r4\",\r\n \"restoredAtTimestamp\": \"11/20/2020 6:01:30 PM,1/28/2021 9:26:28 PM,1/29/2021 7:30:59 PM\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-29T19:37:31.3335151Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test1027-1-r4-r2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"98fa1c0a-17ad-4a18-a6c4-0558656371cc\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test1027-1-r4-r2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://test1027-1-r4-r2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test1027-1-r4-r2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://test1027-1-r4-r2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test1027-1-r4-r2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://test1027-1-r4-r2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test1027-1-r4-r2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations//restorableDatabaseAccounts/\",\r\n \"restoreTimestampInUtc\": \"2021-01-29T00:00:00Z\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/gremlin-staging/providers/Microsoft.DocumentDB/databaseAccounts/testaccountcreation-0904\",\r\n \"name\": \"testaccountcreation-0904\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlin (graph)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-09-10T20:37:56.0770654Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testaccountcreation-0904.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://testaccountcreation-0904.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"6ea4f74d-f9ce-47ee-9185-47bc271db239\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testaccountcreation-0904-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testaccountcreation-0904-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testaccountcreation-0904-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testaccountcreation-0904-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testaccountcreation-0904-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testaccountcreation-0904-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testaccountcreation-0904-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/gremlin-staging/providers/Microsoft.DocumentDB/databaseAccounts/testaccountcreationcli0904\",\r\n \"name\": \"testaccountcreationcli0904\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-09-10T21:23:54.2821986Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testaccountcreationcli0904.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://testaccountcreationcli0904.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"8b9d18c8-aed8-4d05-920b-1fcf290739c7\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testaccountcreationcli0904-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testaccountcreationcli0904-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testaccountcreationcli0904-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testaccountcreationcli0904-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testaccountcreationcli0904-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testaccountcreationcli0904-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testaccountcreationcli0904-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/abinav_stage_rg/providers/Microsoft.DocumentDB/databaseAccounts/testcassandracapability\",\r\n \"name\": \"testcassandracapability\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-04-30T21:51:18.5968762Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testcassandracapability.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://testcassandracapability.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"895dfeb5-68f2-489d-a111-29d2e12591bb\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testcassandracapability-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testcassandracapability-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testcassandracapability-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testcassandracapability-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testcassandracapability-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testcassandracapability-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testcassandracapability-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/foobar/providers/Microsoft.DocumentDB/databaseAccounts/testmmcreation\",\r\n \"name\": \"testmmcreation\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-09-08T17:58:17.2503507Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testmmcreation.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"3bb6ddfc-d39c-47d7-b868-cae477cf5d92\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testmmcreation-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testmmcreation-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"testmmcreation-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testmmcreation-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testmmcreation-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testmmcreation-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"testmmcreation-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testmmcreation-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testmmcreation-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testmmcreation-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"testmmcreation-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testmmcreation-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testmmcreation-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"testmmcreation-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ashwini-rg/providers/Microsoft.DocumentDB/databaseAccounts/testmongoindex\",\r\n \"name\": \"testmongoindex\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-10-11T18:06:49.8161865Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testmongoindex.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://testmongoindex.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"e020d70d-00a2-48ff-a8e1-5a1ba646f9bb\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testmongoindex-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testmongoindex-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testmongoindex-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testmongoindex-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testmongoindex-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testmongoindex-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testmongoindex-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shtan-stage-signoff/providers/Microsoft.DocumentDB/databaseAccounts/testrestorelivesite\",\r\n \"name\": \"testrestorelivesite\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-12-11T22:05:34.9312626Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testrestorelivesite.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"fc3966b1-4234-48b6-85d4-f34e08baa243\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testrestorelivesite-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testrestorelivesite-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testrestorelivesite-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testrestorelivesite-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testrestorelivesite-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testrestorelivesite-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testrestorelivesite-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shtan-stage-signoff/providers/Microsoft.DocumentDB/databaseAccounts/testrestorelivesite-r1\",\r\n \"name\": \"testrestorelivesite-r1\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"restoredSourceDatabaseAccountName\": \"testrestorelivesite\",\r\n \"restoredAtTimestamp\": \"12/11/2019 11:57:41 PM\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-12-12T00:02:42.9515779Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testrestorelivesite-r1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"1d988033-abf1-4831-bb55-65c90712dbee\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testrestorelivesite-r1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testrestorelivesite-r1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testrestorelivesite-r1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testrestorelivesite-r1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testrestorelivesite-r1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testrestorelivesite-r1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testrestorelivesite-r1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi/providers/Microsoft.DocumentDB/databaseAccounts/testserverless\",\r\n \"name\": \"testserverless\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-14T19:46:50.9235709Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testserverless.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://testserverless.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d46ce3a4-770b-4cd8-b9b4-5c295d0cd979\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testserverless-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testserverless-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testserverless-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testserverless-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testserverless-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testserverless-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testserverless-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableServerless\"\r\n },\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi/providers/Microsoft.DocumentDB/databaseAccounts/testserverlessthrr\",\r\n \"name\": \"testserverlessthrr\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-19T22:27:52.8644543Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testserverlessthrr.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://testserverlessthrr.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"cef21408-fe96-42c4-b8ef-7d03c6a2a106\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testserverlessthrr-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testserverlessthrr-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testserverlessthrr-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testserverlessthrr-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testserverlessthrr-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testserverlessthrr-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testserverlessthrr-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/testbyokvinod/providers/Microsoft.DocumentDB/databaseAccounts/testshbyokrev1\",\r\n \"name\": \"testshbyokrev1\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-02-20T00:14:40.3749607Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testshbyokrev1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"decb8ab5-06e7-4bce-8fc8-e9d9e4c21dad\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"keyVaultKeyUri\": \"https://testshkvrev.vault.azure.net/keys/key1\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testshbyokrev1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testshbyokrev1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testshbyokrev1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testshbyokrev1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testshbyokrev1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testshbyokrev1-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testshbyokrev1-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/testbyokvinod/providers/Microsoft.DocumentDB/databaseAccounts/testshbyokrev2\",\r\n \"name\": \"testshbyokrev2\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-02-20T01:44:37.1015144Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testshbyokrev2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"dc12f588-a2de-4be4-bc7a-49489a1db805\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"keyVaultKeyUri\": \"https://testshkvrev.vault.azure.net/keys/key1\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testshbyokrev2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testshbyokrev2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testshbyokrev2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testshbyokrev2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testshbyokrev2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testshbyokrev2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testshbyokrev2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/testshbyok/providers/Microsoft.DocumentDB/databaseAccounts/testshbyokstg2\",\r\n \"name\": \"testshbyokstg2\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-01-13T01:44:22.5047486Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testshbyokstg2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"7108a2b6-cffd-444b-8dc0-c1db17896c41\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"keyVaultKeyUri\": \"https://testshkv1.vault.azure.net/keys/key1\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testshbyokstg2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testshbyokstg2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testshbyokstg2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testshbyokstg2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"testshbyokstg2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://testshbyokstg2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testshbyokstg2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testshbyokstg2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"testshbyokstg2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://testshbyokstg2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testshbyokstg2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"testshbyokstg2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/testshbyok/providers/Microsoft.DocumentDB/databaseAccounts/testshbyokstg6\",\r\n \"name\": \"testshbyokstg6\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-01-16T02:01:31.9773721Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testshbyokstg6.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d8cc95fd-e2e1-4fda-a95f-43261be1618a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"keyVaultKeyUri\": \"https://testshkv2.vault.azure.net/keys/key1\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testshbyokstg6-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testshbyokstg6-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testshbyokstg6-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testshbyokstg6-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testshbyokstg6-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://testshbyokstg6-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testshbyokstg6-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/thweiss-test/providers/Microsoft.DocumentDB/databaseAccounts/thweiss-notebooks-test\",\r\n \"name\": \"thweiss-notebooks-test\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-08-31T00:14:36.507848Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://thweiss-notebooks-test.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"e41b2801-7b26-44de-8db5-7ce898126696\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"thweiss-notebooks-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://thweiss-notebooks-test-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"thweiss-notebooks-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://thweiss-notebooks-test-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"thweiss-notebooks-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://thweiss-notebooks-test-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"thweiss-notebooks-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableNotebooks\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vivekrasignoff/providers/Microsoft.DocumentDB/databaseAccounts/vivekrastagesignoffncus\",\r\n \"name\": \"vivekrastagesignoffncus\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-01-28T20:06:45.8340536Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://vivekrastagesignoffncus.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://vivekrastagesignoffncus.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"6fcefda2-fdf4-4b0d-a9ca-63d0b30474bf\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"vivekrastagesignoffncus-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://vivekrastagesignoffncus-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"vivekrastagesignoffncus-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://vivekrastagesignoffncus-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"vivekrastagesignoffncus-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://vivekrastagesignoffncus-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"vivekrastagesignoffncus-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n },\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/jihmmtest/providers/Microsoft.DocumentDB/databaseAccounts/waterlinedata-mm-test\",\r\n \"name\": \"waterlinedata-mm-test\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-09-18T18:18:43.7313401Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://waterlinedata-mm-test.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"ec1e888d-fab1-44df-8845-d603d9dd4b54\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"waterlinedata-mm-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://waterlinedata-mm-test-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"waterlinedata-mm-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://waterlinedata-mm-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"waterlinedata-mm-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://waterlinedata-mm-test-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"waterlinedata-mm-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://waterlinedata-mm-test-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"waterlinedata-mm-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://waterlinedata-mm-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"waterlinedata-mm-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://waterlinedata-mm-test-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"waterlinedata-mm-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://waterlinedata-mm-test-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"waterlinedata-mm-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://waterlinedata-mm-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"waterlinedata-mm-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://waterlinedata-mm-test-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"waterlinedata-mm-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"waterlinedata-mm-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n },\r\n {\r\n \"id\": \"waterlinedata-mm-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 2\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/wmengstagetest/providers/Microsoft.DocumentDB/databaseAccounts/wmengstagewestus2b\",\r\n \"name\": \"wmengstagewestus2b\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"ccc\": \"ddd\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-09-19T06:55:42.961595Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://wmengstagewestus2b.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d8c997a5-4b53-45a3-94e3-b232b999de9f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"wmengstagewestus2b-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://wmengstagewestus2b-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"wmengstagewestus2b-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://wmengstagewestus2b-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"wmengstagewestus2b-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://wmengstagewestus2b-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"wmengstagewestus2b-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://wmengstagewestus2b-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"wmengstagewestus2b-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://wmengstagewestus2b-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"wmengstagewestus2b-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://wmengstagewestus2b-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"wmengstagewestus2b-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://wmengstagewestus2b-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"wmengstagewestus2b-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"wmengstagewestus2b-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n },\r\n {\r\n \"id\": \"wmengstagewestus2b-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 2\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"131.107.8.124\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"104.42.195.92\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"40.76.54.131\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.176.6.30\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.169.50.45\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.187.184.26\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 10,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/analyticalstoresignoff\",\r\n \"name\": \"analyticalstoresignoff\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-12-12T23:46:42.0510344Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://analyticalstoresignoff.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"74f7ed4b-67d5-4182-94fb-56047c11aef9\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"analyticalstoresignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://analyticalstoresignoff-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"analyticalstoresignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://analyticalstoresignoff-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"analyticalstoresignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://analyticalstoresignoff-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"analyticalstoresignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/analyticsautosignoff\",\r\n \"name\": \"analyticsautosignoff\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-05T22:21:19.5313149Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://analyticsautosignoff.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"ede2b3f2-8341-426c-a767-d6bed585153c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"analyticsautosignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://analyticsautosignoff-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"analyticsautosignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://analyticsautosignoff-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"analyticsautosignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://analyticsautosignoff-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"analyticsautosignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/ash-cassandra-nb\",\r\n \"name\": \"ash-cassandra-nb\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-09-25T21:07:31.8759704Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ash-cassandra-nb.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://ash-cassandra-nb.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"08be4bb6-a195-4e3b-8821-dc2d3681511b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ash-cassandra-nb-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ash-cassandra-nb-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ash-cassandra-nb-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ash-cassandra-nb-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ash-cassandra-nb-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ash-cassandra-nb-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ash-cassandra-nb-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n },\r\n {\r\n \"name\": \"EnableNotebooks\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/ash-mongo-nb\",\r\n \"name\": \"ash-mongo-nb\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-09-25T19:38:32.1919275Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ash-mongo-nb.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://ash-mongo-nb.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"6077eeb2-f388-40d4-91b0-e0139d9ca387\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ash-mongo-nb-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ash-mongo-nb-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ash-mongo-nb-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ash-mongo-nb-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ash-mongo-nb-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ash-mongo-nb-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ash-mongo-nb-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableNotebooks\"\r\n },\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ragil/providers/Microsoft.DocumentDB/databaseAccounts/autopilote2e\",\r\n \"name\": \"autopilote2e\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-04-07T21:58:50.3863566Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://autopilote2e.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d3f55252-734c-4eba-921a-f5cd2e30fc03\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"autopilote2e-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://autopilote2e-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"autopilote2e-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://autopilote2e-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"autopilote2e-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://autopilote2e-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"autopilote2e-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ash/providers/Microsoft.DocumentDB/databaseAccounts/ash-table-nb\",\r\n \"name\": \"ash-table-nb\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Table\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-09-25T21:05:51.8725768Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ash-table-nb.documents-staging.windows-ppe.net:443/\",\r\n \"tableEndpoint\": \"https://ash-table-nb.table.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Table, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"60498937-d6c9-4cc9-8da8-3275cece16b7\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 86400,\r\n \"maxStalenessPrefix\": 1000000\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ash-table-nb-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ash-table-nb-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ash-table-nb-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ash-table-nb-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ash-table-nb-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ash-table-nb-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ash-table-nb-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableTable\"\r\n },\r\n {\r\n \"name\": \"EnableNotebooks\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/backup-restore/providers/Microsoft.DocumentDB/databaseAccounts/backup-restore-mgmt-0\",\r\n \"name\": \"backup-restore-mgmt-0\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-11-03T17:20:47.1370235Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://backup-restore-mgmt-0.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"094e24d4-c422-4a7f-80fc-63d9c79b9c54\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"backup-restore-mgmt-0-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://backup-restore-mgmt-0-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"backup-restore-mgmt-0-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://backup-restore-mgmt-0-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"backup-restore-mgmt-0-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://backup-restore-mgmt-0-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"backup-restore-mgmt-0-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/build-test\",\r\n \"name\": \"build-test\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-02T03:55:39.3975663Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://build-test.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"3d234c37-7005-4669-a910-b44fd9e672fd\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"build-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://build-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"build-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://build-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"build-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://build-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"build-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CANARY/providers/Microsoft.DocumentDB/databaseAccounts/canary-stagewestus2cm1\",\r\n \"name\": \"canary-stagewestus2cm1\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"DocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-12T22:43:23.3914536Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://canary-stagewestus2cm1.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://canary-stagewestus2cm1.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"32743747-9dca-42ba-ac6b-ec91aba23317\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"canary-stagewestus2cm1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://canary-stagewestus2cm1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"canary-stagewestus2cm1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://canary-stagewestus2cm1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"canary-stagewestus2cm1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://canary-stagewestus2cm1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"canary-stagewestus2cm1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/cassandra-stage-signoff/providers/Microsoft.DocumentDB/databaseAccounts/cassandrastagetest\",\r\n \"name\": \"cassandrastagetest\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-01-09T18:01:10.9408479Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cassandrastagetest.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://cassandrastagetest.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a40ceb7f-1ce9-43f0-bab1-e08c8c200f78\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cassandrastagetest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cassandrastagetest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cassandrastagetest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cassandrastagetest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cassandrastagetest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cassandrastagetest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cassandrastagetest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n },\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/controlplanehealth-rg/providers/Microsoft.DocumentDB/databaseAccounts/controlplanehealth-stage-westus2\",\r\n \"name\": \"controlplanehealth-stage-westus2\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-15T19:42:37.5354165Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"ace7bb3a-2068-4da2-aae1-6640e263fa4b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/controlplanehealth-rg/providers/Microsoft.DocumentDB/databaseAccounts/controlplanehealth-stage-westus2-cx\",\r\n \"name\": \"controlplanehealth-stage-westus2-cx\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-15T19:57:45.8822395Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-cx.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://controlplanehealth-stage-westus2-cx.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"81633c01-3395-43a1-8173-58d2c9e20fab\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-cx-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-cx-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-cx-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-cx-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-cx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-cx-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-cx-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-cx-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-cx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-cx-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-cx-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-cx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/controlplanehealth-rg/providers/Microsoft.DocumentDB/databaseAccounts/controlplanehealth-stage-westus2-gln\",\r\n \"name\": \"controlplanehealth-stage-westus2-gln\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-15T19:58:10.5720141Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-gln.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://controlplanehealth-stage-westus2-gln.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"32dec277-404c-433e-8c57-de2c07d1051a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-gln-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-gln-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-gln-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-gln-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-gln-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-gln-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-gln-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-gln-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-gln-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-gln-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-gln-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-gln-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/controlplanehealth-rg/providers/Microsoft.DocumentDB/databaseAccounts/controlplanehealth-stage-westus2-mgo\",\r\n \"name\": \"controlplanehealth-stage-westus2-mgo\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-15T19:56:57.4525237Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-mgo.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"2d4f5b9f-8157-4c3e-a541-d6876b5d9f9f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-mgo-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-mgo-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-mgo-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-mgo-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-mgo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-mgo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-mgo-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-mgo-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-mgo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-mgo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-mgo-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-mgo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/controlplanehealth-rg/providers/Microsoft.DocumentDB/databaseAccounts/controlplanehealth-stage-westus2-sql\",\r\n \"name\": \"controlplanehealth-stage-westus2-sql\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-15T19:56:39.1942591Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-sql.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"4f22422a-8876-43f0-9a6b-c328456ad95d\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-sql-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-sql-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-sql-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-sql-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-sql-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-sql-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-sql-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/controlplanehealth-rg/providers/Microsoft.DocumentDB/databaseAccounts/controlplanehealth-stage-westus2-tbl\",\r\n \"name\": \"controlplanehealth-stage-westus2-tbl\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-15T19:59:01.2129798Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-tbl.documents-staging.windows-ppe.net:443/\",\r\n \"tableEndpoint\": \"https://controlplanehealth-stage-westus2-tbl.table.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Table, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"06f014ba-70ca-4520-9908-bf000e20c8cb\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 86400,\r\n \"maxStalenessPrefix\": 1000000\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-tbl-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-tbl-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-tbl-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-tbl-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-tbl-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-tbl-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-tbl-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-tbl-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-tbl-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://controlplanehealth-stage-westus2-tbl-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-tbl-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"controlplanehealth-stage-westus2-tbl-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableTable\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/build2020/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-synpase-link\",\r\n \"name\": \"cosmosdb-synpase-link\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-13T02:57:02.6248367Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cosmosdb-synpase-link.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a4e39e24-755d-4f3e-a8b5-6d1d5d4d5e6c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-synpase-link-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cosmosdb-synpase-link-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-synpase-link-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cosmosdb-synpase-link-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-synpase-link-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cosmosdb-synpase-link-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-synpase-link-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/cosmosdbqueryteam/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdbqueryteamwestus2\",\r\n \"name\": \"cosmosdbqueryteamwestus2\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-03-27T19:19:46.723853Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cosmosdbqueryteamwestus2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"baa0b268-7d29-4794-b842-95a1178ba951\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdbqueryteamwestus2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cosmosdbqueryteamwestus2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdbqueryteamwestus2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cosmosdbqueryteamwestus2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdbqueryteamwestus2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cosmosdbqueryteamwestus2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdbqueryteamwestus2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sarguptest/providers/Microsoft.DocumentDB/databaseAccounts/cpuinvestigation3\",\r\n \"name\": \"cpuinvestigation3\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-15T17:56:23.0873917Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cpuinvestigation3.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"6c6ac979-c326-4f93-87e9-db676257a3c0\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cpuinvestigation3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cpuinvestigation3-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cpuinvestigation3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cpuinvestigation3-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cpuinvestigation3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cpuinvestigation3-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cpuinvestigation3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mongo-stage-signoff/providers/Microsoft.DocumentDB/databaseAccounts/cursortest-mongo-westus\",\r\n \"name\": \"cursortest-mongo-westus\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"MongoDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-11-07T22:38:58.7256285Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cursortest-mongo-westus.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"55ece9ab-1c58-4467-8e54-d5a9c45740d9\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cursortest-mongo-westus-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cursortest-mongo-westus-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cursortest-mongo-westus-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cursortest-mongo-westus-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cursortest-mongo-westus-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cursortest-mongo-westus-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cursortest-mongo-westus-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/dech-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/dech-cosmos-nb-stage\",\r\n \"name\": \"dech-cosmos-nb-stage\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-08T22:22:16.854688Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://dech-cosmos-nb-stage.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"095e0fed-1899-46e9-903b-ca96407ac661\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"dech-cosmos-nb-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://dech-cosmos-nb-stage-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"dech-cosmos-nb-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://dech-cosmos-nb-stage-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"dech-cosmos-nb-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://dech-cosmos-nb-stage-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"dech-cosmos-nb-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/dox-staging/providers/Microsoft.DocumentDB/databaseAccounts/dox-stage-table5\",\r\n \"name\": \"dox-stage-table5\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Table\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-06-07T00:02:59.5668686Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://dox-stage-table5.documents-staging.windows-ppe.net:443/\",\r\n \"tableEndpoint\": \"https://dox-stage-table5.table.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Table, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"786d954f-72a5-4987-93e4-abaa45e4ca59\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 86400,\r\n \"maxStalenessPrefix\": 1000000\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"dox-stage-table5-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://dox-stage-table5-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"dox-stage-table5-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://dox-stage-table5-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"dox-stage-table5-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://dox-stage-table5-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"dox-stage-table5-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableTable\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/fastschemainference\",\r\n \"name\": \"fastschemainference\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-10-29T21:59:44.1356993Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://fastschemainference.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d1397fdb-4edd-40de-9c40-5c4b9e6d7b27\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"fastschemainference-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://fastschemainference-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"fastschemainference-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://fastschemainference-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"fastschemainference-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://fastschemainference-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"fastschemainference-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/gremlin-staging/providers/Microsoft.DocumentDB/databaseAccounts/gremlinstagetest\",\r\n \"name\": \"gremlinstagetest\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlin (graph)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-01-09T18:21:44.55748Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://gremlinstagetest.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://gremlinstagetest.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c48c110a-468b-41af-a31a-7c4e04c2423d\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"gremlinstagetest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://gremlinstagetest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"gremlinstagetest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://gremlinstagetest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"gremlinstagetest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://gremlinstagetest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"gremlinstagetest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n },\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/akash-cassandra-northcentralus-resource/providers/Microsoft.DocumentDB/databaseAccounts/harsudantest4\",\r\n \"name\": \"harsudantest4\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-09-16T19:03:06.6536698Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://harsudantest4.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"3c1eb306-f67c-4b37-bc59-74b57fd4c6a7\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"harsudantest4-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://harsudantest4-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"harsudantest4-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://harsudantest4-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"harsudantest4-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://harsudantest4-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"harsudantest4-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sivethe/providers/Microsoft.DocumentDB/databaseAccounts/jaganma-firstam-sql-integration\",\r\n \"name\": \"jaganma-firstam-sql-integration\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-06-13T22:28:58.9268694Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://jaganma-firstam-sql-integration.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://jaganma-firstam-sql-integration.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"3b75ccc4-286f-40f9-9c0f-3e21b3a2c48e\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"jaganma-firstam-sql-integration-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://jaganma-firstam-sql-integration-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"jaganma-firstam-sql-integration-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://jaganma-firstam-sql-integration-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"jaganma-firstam-sql-integration-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://jaganma-firstam-sql-integration-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"jaganma-firstam-sql-integration-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/jmondal-stg/providers/Microsoft.DocumentDB/databaseAccounts/jmondal-gremlin-stage\",\r\n \"name\": \"jmondal-gremlin-stage\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlin (graph)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-07-31T21:41:21.7266024Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://jmondal-gremlin-stage.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://jmondal-gremlin-stage.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"520ae4c5-a208-4c59-8d28-afed6d2fc162\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"jmondal-gremlin-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://jmondal-gremlin-stage-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"jmondal-gremlin-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://jmondal-gremlin-stage-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"jmondal-gremlin-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://jmondal-gremlin-stage-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"jmondal-gremlin-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/kristynh/providers/Microsoft.DocumentDB/databaseAccounts/kristynh\",\r\n \"name\": \"kristynh\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-09-11T23:39:57.9708005Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://kristynh.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"48999b9a-5926-4205-96a6-102f331f2ea4\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"kristynh-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://kristynh-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"kristynh-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://kristynh-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"kristynh-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://kristynh-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"kristynh-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/jasontho/providers/Microsoft.DocumentDB/databaseAccounts/mongo-stage-signoff-rl\",\r\n \"name\": \"mongo-stage-signoff-rl\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-02-14T01:00:30.0218379Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongo-stage-signoff-rl.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://mongo-stage-signoff-rl.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"8a03998d-d046-4fd7-b217-a1ca75a43c56\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongo-stage-signoff-rl-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://mongo-stage-signoff-rl-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongo-stage-signoff-rl-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://mongo-stage-signoff-rl-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongo-stage-signoff-rl-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://mongo-stage-signoff-rl-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongo-stage-signoff-rl-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n },\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sivethe/providers/Microsoft.DocumentDB/databaseAccounts/mongooncompute-1\",\r\n \"name\": \"mongooncompute-1\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-08-06T17:43:11.1944572Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongooncompute-1.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://mongooncompute-1.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"b80a9bf2-fb5b-4718-a63f-a100c68e782d\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongooncompute-1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://mongooncompute-1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongooncompute-1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://mongooncompute-1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongooncompute-1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://mongooncompute-1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongooncompute-1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/nitesh-resource/providers/Microsoft.DocumentDB/databaseAccounts/nitesh-cri2-162282720\",\r\n \"name\": \"nitesh-cri2-162282720\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-12-19T09:13:47.9132616Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://nitesh-cri2-162282720.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"78b42ade-0afe-42cf-a16c-98522d1f5e72\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"nitesh-cri2-162282720-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://nitesh-cri2-162282720-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"nitesh-cri2-162282720-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://nitesh-cri2-162282720-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"nitesh-cri2-162282720-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://nitesh-cri2-162282720-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"nitesh-cri2-162282720-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/nologstore\",\r\n \"name\": \"nologstore\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-10-31T17:12:33.4690111Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://nologstore.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a068ee4f-b3ab-4b63-8ff3-895d6d57be95\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"nologstore-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://nologstore-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"nologstore-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://nologstore-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"nologstore-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://nologstore-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"nologstore-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/olignattestrg321/providers/Microsoft.DocumentDB/databaseAccounts/olignattestcassandrawus2\",\r\n \"name\": \"olignattestcassandrawus2\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-01-25T18:14:40.2725177Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://olignattestcassandrawus2.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://olignattestcassandrawus2.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"91eb3fe8-e9fd-4c86-ae8f-7109b7beb3fc\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"olignattestcassandrawus2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://olignattestcassandrawus2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"olignattestcassandrawus2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://olignattestcassandrawus2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"olignattestcassandrawus2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://olignattestcassandrawus2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"olignattestcassandrawus2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"104.42.195.92\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"40.76.54.131\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.176.6.30\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.169.50.45\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.187.184.26\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/jihmmtest/providers/Microsoft.DocumentDB/databaseAccounts/qwwetr12356\",\r\n \"name\": \"qwwetr12356\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-10-08T01:11:04.1346455Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://qwwetr12356.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c1a7210b-03ec-4440-8cba-2c3f4e776291\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"qwwetr12356-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://qwwetr12356-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"qwwetr12356-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://qwwetr12356-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"qwwetr12356-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://qwwetr12356-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"qwwetr12356-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ragil/providers/Microsoft.DocumentDB/databaseAccounts/ragil-stage\",\r\n \"name\": \"ragil-stage\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-03T01:05:53.3507672Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ragil-stage.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"1597cc97-59e2-4c65-82c4-8d2381d761e8\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ragil-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ragil-stage-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ragil-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ragil-stage-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ragil-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ragil-stage-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ragil-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ragil/providers/Microsoft.DocumentDB/databaseAccounts/ragil-tablesapi\",\r\n \"name\": \"ragil-tablesapi\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Table\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-09-08T19:56:56.3429741Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ragil-tablesapi.documents-staging.windows-ppe.net:443/\",\r\n \"tableEndpoint\": \"https://ragil-tablesapi.table.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Table, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a9f110f9-cc98-40a5-b9b9-e1c713b19703\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 86400,\r\n \"maxStalenessPrefix\": 1000000\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ragil-tablesapi-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ragil-tablesapi-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ragil-tablesapi-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ragil-tablesapi-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ragil-tablesapi-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ragil-tablesapi-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ragil-tablesapi-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableTable\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/ramkris\",\r\n \"name\": \"ramkris\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-10-02T22:38:55.6466865Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ramkris.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"55a8e52d-4347-485f-a961-6aba964fe1d4\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ramkris-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ramkris-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ramkris-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ramkris-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ramkris-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ramkris-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ramkris-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shatri/providers/Microsoft.DocumentDB/databaseAccounts/shatricass\",\r\n \"name\": \"shatricass\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-10-09T23:13:25.9376276Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shatricass.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://shatricass.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"05a1e329-ea8b-4183-acf3-1ad9640fa291\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shatricass-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shatricass-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shatricass-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shatricass-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shatricass-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shatricass-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shatricass-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shtan-stage-signoff/providers/Microsoft.DocumentDB/databaseAccounts/shtan-stage\",\r\n \"name\": \"shtan-stage\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-11-13T20:44:04.4461593Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shtan-stage.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"54d92f36-a35f-4b45-90d1-4b2a2c598bae\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shtan-stage-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://shtan-stage-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"shtan-stage-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://shtan-stage-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shtan-stage-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://shtan-stage-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"shtan-stage-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://shtan-stage-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shtan-stage-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://shtan-stage-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"shtan-stage-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://shtan-stage-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shtan-stage-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"shtan-stage-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 140,\r\n \"backupRetentionIntervalInHours\": 26,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/shthekkatestacc\",\r\n \"name\": \"shthekkatestacc\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-16T19:02:15.7189041Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shthekkatestacc.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a24a8e4b-8d9c-4057-8212-fa5c3cb974dc\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shthekkatestacc-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shthekkatestacc-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shthekkatestacc-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shthekkatestacc-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"shthekkatestacc-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shthekkatestacc-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shthekkatestacc-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shthekkatestacc-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"shthekkatestacc-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shthekkatestacc-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shthekkatestacc-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"shthekkatestacc-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/yungyang-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/stageaccounttest\",\r\n \"name\": \"stageaccounttest\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-09-18T23:05:27.6084678Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://stageaccounttest.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"52fa848f-633c-48e6-8a03-41cd74da4156\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"stageaccounttest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://stageaccounttest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"stageaccounttest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://stageaccounttest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"stageaccounttest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://stageaccounttest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"stageaccounttest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sukans/providers/Microsoft.DocumentDB/databaseAccounts/sukans-noownerid\",\r\n \"name\": \"sukans-noownerid\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-04-11T23:56:51.3427971Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sukans-noownerid.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"f378c52f-6784-4196-a99f-6c3c934ca3cd\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sukans-noownerid-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://sukans-noownerid-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sukans-noownerid-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://sukans-noownerid-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sukans-noownerid-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://sukans-noownerid-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sukans-noownerid-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/dech-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/dech-free-tier-test-2\",\r\n \"name\": \"dech-free-tier-test-2\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-02-29T04:43:57.365991Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://dech-free-tier-test-2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": true,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"03bb9038-e800-4852-a229-6868a7e5b26c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"dech-free-tier-test-2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://dech-free-tier-test-2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"dech-free-tier-test-2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://dech-free-tier-test-2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"dech-free-tier-test-2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://dech-free-tier-test-2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"dech-free-tier-test-2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/testshbyok/providers/Microsoft.DocumentDB/databaseAccounts/testtoporder\",\r\n \"name\": \"testtoporder\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-01-12T18:30:58.8495415Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testtoporder.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"ac3bf896-7c33-4e00-baf0-f5aa19e4000b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testtoporder-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://testtoporder-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testtoporder-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://testtoporder-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"testtoporder-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testtoporder-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testtoporder-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://testtoporder-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"testtoporder-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testtoporder-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testtoporder-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"testtoporder-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/abinav_stage_rg/providers/Microsoft.DocumentDB/databaseAccounts/haotest4\",\r\n \"name\": \"haotest4\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-02-11T21:22:04.7695494Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://haotest4.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://haotest4.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"0ead4408-f3e1-4f47-a00e-7fd5518ffcda\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Eventual\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"haotest4-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://haotest4-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"haotest4-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://haotest4-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"haotest4-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://haotest4-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"haotest4-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/akash-cassandra-northcentralus-resource/providers/Microsoft.DocumentDB/databaseAccounts/harsudantest5\",\r\n \"name\": \"harsudantest5\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-09-16T19:04:32.9585625Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://harsudantest5.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"869f8c12-e696-481b-ae81-f3aadc0c9adf\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"harsudantest5-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://harsudantest5-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"harsudantest5-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://harsudantest5-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"harsudantest5-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://harsudantest5-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"harsudantest5-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://harsudantest5-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"harsudantest5-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://harsudantest5-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"harsudantest5-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"harsudantest5-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vinh-stage-rp/providers/Microsoft.DocumentDB/databaseAccounts/vinh-stage\",\r\n \"name\": \"vinh-stage\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-11-22T21:40:11.4909444Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://vinh-stage.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"408511b1-2df1-4200-b4bb-a5ace8f2c8e9\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"vinh-stage-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://vinh-stage-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"vinh-stage-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://vinh-stage-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"vinh-stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vinh-stage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"vinh-stage-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://vinh-stage-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"vinh-stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vinh-stage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"vinh-stage-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"vinh-stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/jasontho/providers/Microsoft.DocumentDB/databaseAccounts/jasontho-manydocuments\",\r\n \"name\": \"jasontho-manydocuments\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-12-05T23:02:39.3105938Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://jasontho-manydocuments.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://jasontho-manydocuments.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"bbb17b25-0fd6-4615-b12c-1d27d5f13401\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"jasontho-manydocuments-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://jasontho-manydocuments-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"jasontho-manydocuments-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://jasontho-manydocuments-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"jasontho-manydocuments-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://jasontho-manydocuments-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"jasontho-manydocuments-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/kristynh/providers/Microsoft.DocumentDB/databaseAccounts/kristynh-rbac\",\r\n \"name\": \"kristynh-rbac\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-09-11T20:11:35.5618102Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://kristynh-rbac.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"6d2e96e3-baf1-41fd-a474-2c7758962ae3\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"kristynh-rbac-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://kristynh-rbac-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"kristynh-rbac-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://kristynh-rbac-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"kristynh-rbac-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://kristynh-rbac-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"kristynh-rbac-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vinh-stage-rp/providers/Microsoft.DocumentDB/databaseAccounts/jordanstage\",\r\n \"name\": \"jordanstage\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-08-12T18:13:57.3416092Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://jordanstage.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"8af36c1f-0f77-4919-9c3e-95491e4b582c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"jordanstage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://jordanstage-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"jordanstage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://jordanstage-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"jordanstage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://jordanstage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"jordanstage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://jordanstage-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"jordanstage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://jordanstage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"jordanstage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"jordanstage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vinh-stage-rp/providers/Microsoft.DocumentDB/databaseAccounts/vinh2stage\",\r\n \"name\": \"vinh2stage\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-11-22T21:43:30.7934443Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://vinh2stage.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"83891f9d-eb4a-4ccd-be8f-a5928c84de73\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"vinh2stage-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://vinh2stage-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"vinh2stage-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://vinh2stage-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"vinh2stage-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://vinh2stage-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"vinh2stage-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/yungyang-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/yungyang-test3\",\r\n \"name\": \"yungyang-test3\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-03-02T20:11:57.7163107Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://yungyang-test3.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a9ebee1a-1f6f-44a3-9dcc-2f429e2325ec\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"yungyang-test3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://yungyang-test3-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"yungyang-test3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://yungyang-test3-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"yungyang-test3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://yungyang-test3-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"yungyang-test3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ragil/providers/Microsoft.DocumentDB/databaseAccounts/ragil-autoscale1\",\r\n \"name\": \"ragil-autoscale1\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-14T19:07:35.7285341Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ragil-autoscale1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"edad7712-57db-4a14-bb82-ee0568dd2e8e\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ragil-autoscale1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ragil-autoscale1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ragil-autoscale1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ragil-autoscale1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ragil-autoscale1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ragil-autoscale1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ragil-autoscale1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ragil/providers/Microsoft.DocumentDB/databaseAccounts/rav-test\",\r\n \"name\": \"rav-test\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Table\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-09-04T18:07:47.2390398Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://rav-test.documents-staging.windows-ppe.net:443/\",\r\n \"tableEndpoint\": \"https://rav-test.table.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Table, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"4c530dfb-4e92-49ea-be7f-20f65fc9545c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 86400,\r\n \"maxStalenessPrefix\": 1000000\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"rav-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://rav-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"rav-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://rav-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"rav-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://rav-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"rav-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableTable\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/cassandra-stage-signoff-sea1/providers/Microsoft.DocumentDB/databaseAccounts/shatritestpolicystore\",\r\n \"name\": \"shatritestpolicystore\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-01-03T22:02:23.1932563Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shatritestpolicystore.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://shatritestpolicystore.cassandra.cosmosdb.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"88c4b305-a55e-463c-aa1d-eb57a17fac48\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shatritestpolicystore-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shatritestpolicystore-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shatritestpolicystore-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shatritestpolicystore-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shatritestpolicystore-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shatritestpolicystore-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shatritestpolicystore-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/table-stage-signoff/providers/Microsoft.DocumentDB/databaseAccounts/tablestageperf\",\r\n \"name\": \"tablestageperf\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Table\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-04T23:07:12.1018565Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://tablestageperf.documents-staging.windows-ppe.net:443/\",\r\n \"tableEndpoint\": \"https://tablestageperf.table.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Table, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"65b9f6d7-ae38-4544-9796-747de97c3a59\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 86400,\r\n \"maxStalenessPrefix\": 1000000\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"tablestageperf-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://tablestageperf-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"tablestageperf-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://tablestageperf-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"tablestageperf-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://tablestageperf-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"tablestageperf-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableTable\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/abinav_stage_rg/providers/Microsoft.DocumentDB/databaseAccounts/testcassandrastage123\",\r\n \"name\": \"testcassandrastage123\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-11-21T17:47:46.0542311Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testcassandrastage123.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://testcassandrastage123.cassandra.cosmosdb.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"fd490572-edba-460b-aa5a-afa1699638e4\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testcassandrastage123-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://testcassandrastage123-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testcassandrastage123-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://testcassandrastage123-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testcassandrastage123-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://testcassandrastage123-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testcassandrastage123-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/testupdatedcapprejain\",\r\n \"name\": \"testupdatedcapprejain\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-27T00:30:15.9722043Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testupdatedcapprejain.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"167927f0-ce3e-478d-8c44-ae2bda0db443\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testupdatedcapprejain-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://testupdatedcapprejain-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testupdatedcapprejain-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://testupdatedcapprejain-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testupdatedcapprejain-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://testupdatedcapprejain-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testupdatedcapprejain-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/jasontho/providers/Microsoft.DocumentDB/databaseAccounts/jasontho-stagetest\",\r\n \"name\": \"jasontho-stagetest\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-12-05T04:46:51.1089085Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://jasontho-stagetest.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://jasontho-stagetest.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"8e6dd47b-b9e8-4034-97d7-435691d2574b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"jasontho-stagetest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://jasontho-stagetest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"jasontho-stagetest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://jasontho-stagetest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"jasontho-stagetest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://jasontho-stagetest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"jasontho-stagetest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ktresources/providers/Microsoft.DocumentDB/databaseAccounts/ktstage2\",\r\n \"name\": \"ktstage2\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-03-26T00:22:29.6935046Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ktstage2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"72e06621-88ce-4674-bfa4-eaa1ce2f4f2c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ktstage2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ktstage2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ktstage2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ktstage2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ktstage2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ktstage2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ktstage2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shreshts/providers/Microsoft.DocumentDB/databaseAccounts/shreshts-stage-prodarm\",\r\n \"name\": \"shreshts-stage-prodarm\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-04-23T17:44:16.9716511Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shreshts-stage-prodarm.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"9e9dda1a-0ed1-4df5-9d8b-c8503c9c6c6b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shreshts-stage-prodarm-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shreshts-stage-prodarm-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shreshts-stage-prodarm-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shreshts-stage-prodarm-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shreshts-stage-prodarm-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shreshts-stage-prodarm-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shreshts-stage-prodarm-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/tamitta/providers/Microsoft.DocumentDB/databaseAccounts/tamitta-stage\",\r\n \"name\": \"tamitta-stage\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-24T18:01:30.9847186Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://tamitta-stage.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"f92d669f-68f8-4994-a178-ba210a01f259\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"tamitta-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://tamitta-stage-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"tamitta-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://tamitta-stage-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"tamitta-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://tamitta-stage-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"tamitta-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/abinav_stage_rg/providers/Microsoft.DocumentDB/databaseAccounts/testcosmosdbaccountcreate123\",\r\n \"name\": \"testcosmosdbaccountcreate123\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-11-21T17:38:24.4681012Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testcosmosdbaccountcreate123.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"8b9ceea3-8273-4cfa-b2d9-297673b30191\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testcosmosdbaccountcreate123-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://testcosmosdbaccountcreate123-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testcosmosdbaccountcreate123-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://testcosmosdbaccountcreate123-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testcosmosdbaccountcreate123-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://testcosmosdbaccountcreate123-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testcosmosdbaccountcreate123-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/yungyang-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/yungyang-stageaccount\",\r\n \"name\": \"yungyang-stageaccount\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-08-29T07:09:13.4940855Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://yungyang-stageaccount.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"f7d29645-77b8-43ef-9757-dee41193ce68\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"yungyang-stageaccount-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://yungyang-stageaccount-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"yungyang-stageaccount-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://yungyang-stageaccount-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"yungyang-stageaccount-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://yungyang-stageaccount-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"yungyang-stageaccount-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/tamitta/providers/Microsoft.DocumentDB/databaseAccounts/tamitta-stage-serverless\",\r\n \"name\": \"tamitta-stage-serverless\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-08-27T22:14:48.3284991Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://tamitta-stage-serverless.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d6e00e92-4636-46ff-b7f3-fa555521111f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"tamitta-stage-serverless-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://tamitta-stage-serverless-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"tamitta-stage-serverless-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://tamitta-stage-serverless-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"tamitta-stage-serverless-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://tamitta-stage-serverless-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"tamitta-stage-serverless-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableServerless\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/tpcdsmongo/providers/Microsoft.DocumentDB/databaseAccounts/tpcdsmongotest\",\r\n \"name\": \"tpcdsmongotest\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-15T22:58:56.0666418Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://tpcdsmongotest.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://tpcdsmongotest.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"80d4b4be-f359-45df-b7e2-c1d0efd4d716\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"tpcdsmongotest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://tpcdsmongotest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"tpcdsmongotest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://tpcdsmongotest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"tpcdsmongotest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://tpcdsmongotest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"tpcdsmongotest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/akgoe-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/cdb-stage-westus2-test\",\r\n \"name\": \"cdb-stage-westus2-test\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-09-29T05:18:27.6324917Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cdb-stage-westus2-test.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a046b289-140d-467b-b0a3-be504cd76976\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cdb-stage-westus2-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cdb-stage-westus2-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cdb-stage-westus2-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cdb-stage-westus2-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cdb-stage-westus2-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cdb-stage-westus2-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cdb-stage-westus2-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ctlcontainerworkloads/providers/Microsoft.DocumentDB/databaseAccounts/ctljavacontainerworkload\",\r\n \"name\": \"ctljavacontainerworkload\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-01T22:41:46.9430744Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ctljavacontainerworkload.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"1d70309d-21a4-4081-97b2-699e2fd83bdd\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ctljavacontainerworkload-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ctljavacontainerworkload-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ctljavacontainerworkload-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ctljavacontainerworkload-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ctljavacontainerworkload-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ctljavacontainerworkload-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ctljavacontainerworkload-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/justipat_staging/providers/Microsoft.DocumentDB/databaseAccounts/testingjjp\",\r\n \"name\": \"testingjjp\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-08T17:38:23.792918Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testingjjp.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"ca46b55d-ebe8-422f-96b3-9a5dc0e59894\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testingjjp-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://testingjjp-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testingjjp-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://testingjjp-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testingjjp-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://testingjjp-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testingjjp-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/foobar/providers/Microsoft.DocumentDB/databaseAccounts/bhushananalyticaltest\",\r\n \"name\": \"bhushananalyticaltest\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-08T17:56:05.909196Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://bhushananalyticaltest.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"888982c7-4b21-4c82-87d0-10963f622e94\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"bhushananalyticaltest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://bhushananalyticaltest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"bhushananalyticaltest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://bhushananalyticaltest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"bhushananalyticaltest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://bhushananalyticaltest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"bhushananalyticaltest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/merge-partition/providers/Microsoft.DocumentDB/databaseAccounts/test-merge-empty-partition\",\r\n \"name\": \"test-merge-empty-partition\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-12T19:16:33.0077649Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test-merge-empty-partition.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d8f7bc07-c094-4841-8190-8705d0396e16\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test-merge-empty-partition-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-merge-empty-partition-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test-merge-empty-partition-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-merge-empty-partition-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test-merge-empty-partition-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-merge-empty-partition-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test-merge-empty-partition-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CANARY/providers/Microsoft.DocumentDB/databaseAccounts/canary-stagewestus2fd1\",\r\n \"name\": \"canary-stagewestus2fd1\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"DocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-16T13:31:41.1683592Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://canary-stagewestus2fd1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"dd94d90d-e22a-44d0-95ec-ce3b36988f8e\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"canary-stagewestus2fd1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://canary-stagewestus2fd1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"canary-stagewestus2fd1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://canary-stagewestus2fd1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"canary-stagewestus2fd1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://canary-stagewestus2fd1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"canary-stagewestus2fd1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vimeng-rg/providers/Microsoft.DocumentDB/databaseAccounts/vimeng-sql-stage\",\r\n \"name\": \"vimeng-sql-stage\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-23T00:32:41.278046Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://vimeng-sql-stage.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"7c7fdaeb-dc26-4c27-a0ac-c6e55ecc05a0\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"vimeng-sql-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://vimeng-sql-stage-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"vimeng-sql-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://vimeng-sql-stage-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"vimeng-sql-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://vimeng-sql-stage-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"vimeng-sql-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vimeng-rg/providers/Microsoft.DocumentDB/databaseAccounts/vimeng-stage-sql-2\",\r\n \"name\": \"vimeng-stage-sql-2\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-23T18:12:14.7771083Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://vimeng-stage-sql-2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"abb03545-5576-413f-89cd-ad61411d1f9e\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"vimeng-stage-sql-2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://vimeng-stage-sql-2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"vimeng-stage-sql-2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://vimeng-stage-sql-2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"vimeng-stage-sql-2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://vimeng-stage-sql-2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"vimeng-stage-sql-2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/soeom-test/providers/Microsoft.DocumentDB/databaseAccounts/0000fix\",\r\n \"name\": \"0000fix\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-23T20:44:43.9638239Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://0000fix.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"167ed16c-2d74-4b6c-8eb2-a290498350cc\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"0000fix-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://0000fix-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"0000fix-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://0000fix-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"0000fix-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://0000fix-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"0000fix-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"40.76.54.131\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.176.6.30\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.169.50.45\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.187.184.26\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"0.0.0.0\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"104.42.195.92\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/gremlin-staging/providers/Microsoft.DocumentDB/databaseAccounts/gremlin-staging-wus2-flatschema\",\r\n \"name\": \"gremlin-staging-wus2-flatschema\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlin (graph)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-26T20:24:04.1960566Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://gremlin-staging-wus2-flatschema.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://gremlin-staging-wus2-flatschema.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"65a6856c-9ca8-4b59-802f-5a2b25cfcb71\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"gremlin-staging-wus2-flatschema-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://gremlin-staging-wus2-flatschema-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"gremlin-staging-wus2-flatschema-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://gremlin-staging-wus2-flatschema-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"gremlin-staging-wus2-flatschema-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://gremlin-staging-wus2-flatschema-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"gremlin-staging-wus2-flatschema-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pjohari/providers/Microsoft.DocumentDB/databaseAccounts/pjohari-test-west2\",\r\n \"name\": \"pjohari-test-west2\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-29T01:36:00.5299323Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pjohari-test-west2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"6885ee72-b5a0-47bb-9e44-7e613fa09786\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pjohari-test-west2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pjohari-test-west2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pjohari-test-west2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pjohari-test-west2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"pjohari-test-west2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pjohari-test-west2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pjohari-test-west2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pjohari-test-west2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"pjohari-test-west2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pjohari-test-west2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pjohari-test-west2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"pjohari-test-west2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/hidhawal/providers/Microsoft.DocumentDB/databaseAccounts/hidhawal-test\",\r\n \"name\": \"hidhawal-test\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-30T04:46:00.4066141Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://hidhawal-test.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"04660086-1070-4d5d-a8bc-9c074af31f13\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"hidhawal-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://hidhawal-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"hidhawal-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://hidhawal-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"hidhawal-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://hidhawal-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"hidhawal-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vinh-stage-rp/providers/Microsoft.DocumentDB/databaseAccounts/vinhstagepitr\",\r\n \"name\": \"vinhstagepitr\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-11-02T23:44:13.0056918Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://vinhstagepitr.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"5dee0717-8f84-40d7-b7c1-921552ba61a5\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"vinhstagepitr-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://vinhstagepitr-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"vinhstagepitr-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://vinhstagepitr-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"vinhstagepitr-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://vinhstagepitr-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"vinhstagepitr-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/hidhawal/providers/Microsoft.DocumentDB/databaseAccounts/hidhawal-test2\",\r\n \"name\": \"hidhawal-test2\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-11-03T02:43:38.2623252Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://hidhawal-test2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"8585d369-799b-442b-af20-2c249bbf15b1\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"hidhawal-test2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://hidhawal-test2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"hidhawal-test2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://hidhawal-test2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"hidhawal-test2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://hidhawal-test2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"hidhawal-test2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/hidhawal/providers/Microsoft.DocumentDB/databaseAccounts/hidhawal-test4\",\r\n \"name\": \"hidhawal-test4\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-11-10T00:31:03.0211304Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://hidhawal-test4.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"99969d83-1c81-417e-8bbf-48d5547d438b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"hidhawal-test4-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://hidhawal-test4-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"hidhawal-test4-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://hidhawal-test4-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"hidhawal-test4-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://hidhawal-test4-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"hidhawal-test4-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/jasontho/providers/Microsoft.DocumentDB/databaseAccounts/jasontho-newstage36\",\r\n \"name\": \"jasontho-newstage36\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-11-21T00:28:50.2585254Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://jasontho-newstage36.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://jasontho-newstage36.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"9630b5fc-dd1b-4c8a-8d2a-b64fea18608a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"jasontho-newstage36-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://jasontho-newstage36-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"jasontho-newstage36-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://jasontho-newstage36-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"jasontho-newstage36-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://jasontho-newstage36-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"jasontho-newstage36-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/cosmosdbqueryteam/providers/Microsoft.DocumentDB/databaseAccounts/mongoquerytest\",\r\n \"name\": \"mongoquerytest\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-11-23T19:53:04.4044685Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongoquerytest.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://mongoquerytest.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"787dc229-72b6-46f1-af38-30407d84560b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongoquerytest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://mongoquerytest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongoquerytest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://mongoquerytest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongoquerytest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://mongoquerytest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongoquerytest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vinh-stage-rp/providers/Microsoft.DocumentDB/databaseAccounts/vinhstagemongopitr\",\r\n \"name\": \"vinhstagemongopitr\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-11-25T17:07:32.8844415Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://vinhstagemongopitr.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://vinhstagemongopitr.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"5cfa410f-ea0c-4995-aa59-9809a69c21f8\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"vinhstagemongopitr-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://vinhstagemongopitr-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"vinhstagemongopitr-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://vinhstagemongopitr-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"vinhstagemongopitr-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://vinhstagemongopitr-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"vinhstagemongopitr-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/test-virangai-vinhstagemongopitr-del-res1\",\r\n \"name\": \"test-virangai-vinhstagemongopitr-del-res1\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-11-30T23:17:01.5955663Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test-virangai-vinhstagemongopitr-del-res1.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://test-virangai-vinhstagemongopitr-del-res1.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"2b5e6412-19dc-4d79-88ae-178f5e30dd78\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test-virangai-vinhstagemongopitr-del-res1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-virangai-vinhstagemongopitr-del-res1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test-virangai-vinhstagemongopitr-del-res1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-virangai-vinhstagemongopitr-del-res1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test-virangai-vinhstagemongopitr-del-res1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-virangai-vinhstagemongopitr-del-res1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test-virangai-vinhstagemongopitr-del-res1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/5631ca54-c65e-4c02-97ad-57a7a12b8da0\",\r\n \"restoreTimestampInUtc\": \"2020-11-30T22:39:00Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/pitr-sql-stage-source\",\r\n \"name\": \"pitr-sql-stage-source\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-08T18:18:46.0964181Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"pitr-sql-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"pitr-sql-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"pitr-sql-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vinh-stage-rp/providers/Microsoft.DocumentDB/databaseAccounts/restore-test1\",\r\n \"name\": \"restore-test1\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-08T21:44:46.139089Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://restore-test1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"7d98d6c0-eadf-4d7e-a166-696de37c91fc\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"restore-test1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://restore-test1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"restore-test1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://restore-test1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"restore-test1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://restore-test1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"restore-test1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/5dee0717-8f84-40d7-b7c1-921552ba61a5\",\r\n \"restoreTimestampInUtc\": \"2020-11-12T00:40:36Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"CosmosPITRTest\",\r\n \"collectionNames\": [\r\n \"Test0\",\r\n \"Test1\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/virangai/providers/Microsoft.DocumentDB/databaseAccounts/test-virangai-vinhstagemongopitr-1\",\r\n \"name\": \"test-virangai-vinhstagemongopitr-1\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-09T10:37:07.3408295Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test-virangai-vinhstagemongopitr-1.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://test-virangai-vinhstagemongopitr-1.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"08155af7-e63f-4db1-82ed-c99b8a08e541\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test-virangai-vinhstagemongopitr-1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-virangai-vinhstagemongopitr-1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test-virangai-vinhstagemongopitr-1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-virangai-vinhstagemongopitr-1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test-virangai-vinhstagemongopitr-1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-virangai-vinhstagemongopitr-1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test-virangai-vinhstagemongopitr-1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/5cfa410f-ea0c-4995-aa59-9809a69c21f8\",\r\n \"restoreTimestampInUtc\": \"2020-11-25T17:25:31Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"mongodbdb\",\r\n \"collectionNames\": [\r\n \"coll2\",\r\n \"collone\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/virangai/providers/Microsoft.DocumentDB/databaseAccounts/virangai-test-vinhstagepitr-restore1\",\r\n \"name\": \"virangai-test-vinhstagepitr-restore1\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-10T02:08:17.9156245Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://virangai-test-vinhstagepitr-restore1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d0cb2ece-f253-4f20-86d0-01897e729eba\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"virangai-test-vinhstagepitr-restore1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://virangai-test-vinhstagepitr-restore1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"virangai-test-vinhstagepitr-restore1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://virangai-test-vinhstagepitr-restore1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"virangai-test-vinhstagepitr-restore1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://virangai-test-vinhstagepitr-restore1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"virangai-test-vinhstagepitr-restore1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/5dee0717-8f84-40d7-b7c1-921552ba61a5\",\r\n \"restoreTimestampInUtc\": \"2020-11-12T00:40:54Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"db1\",\r\n \"collectionNames\": [\r\n \"container1\"\r\n ]\r\n },\r\n {\r\n \"databaseName\": \"CosmosPITRTest\",\r\n \"collectionNames\": [\r\n \"Test13\",\r\n \"Test5\",\r\n \"Test2\",\r\n \"Test9\",\r\n \"Test22\",\r\n \"Test12\",\r\n \"Test7\",\r\n \"Test11\",\r\n \"Test3\",\r\n \"Test18\",\r\n \"Test6\",\r\n \"Test0\",\r\n \"Test8\",\r\n \"Test14\",\r\n \"Test17\",\r\n \"Test25\",\r\n \"Test1\",\r\n \"Test19\",\r\n \"Test15\",\r\n \"Test10\",\r\n \"Test26\",\r\n \"Test21\",\r\n \"Test24\",\r\n \"Test23\",\r\n \"Test16\",\r\n \"Test4\",\r\n \"Test20\"\r\n ]\r\n },\r\n {\r\n \"databaseName\": \"CosmosIOTDemo\",\r\n \"collectionNames\": [\r\n \"VehicleData\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/virangai/providers/Microsoft.DocumentDB/databaseAccounts/virangai-test-vinhstagepitr-restore2\",\r\n \"name\": \"virangai-test-vinhstagepitr-restore2\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-10T03:12:30.5345961Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://virangai-test-vinhstagepitr-restore2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"9373a8d7-1889-4be9-9ddb-e589e406d04b\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"virangai-test-vinhstagepitr-restore2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://virangai-test-vinhstagepitr-restore2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"virangai-test-vinhstagepitr-restore2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://virangai-test-vinhstagepitr-restore2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"virangai-test-vinhstagepitr-restore2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://virangai-test-vinhstagepitr-restore2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"virangai-test-vinhstagepitr-restore2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/5dee0717-8f84-40d7-b7c1-921552ba61a5\",\r\n \"restoreTimestampInUtc\": \"2020-11-12T00:41:12Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"db1\",\r\n \"collectionNames\": [\r\n \"container1\"\r\n ]\r\n },\r\n {\r\n \"databaseName\": \"CosmosPITRTest\",\r\n \"collectionNames\": [\r\n \"Test13\",\r\n \"Test5\",\r\n \"Test37\",\r\n \"Test44\",\r\n \"Test2\",\r\n \"Test9\",\r\n \"Test34\",\r\n \"Test22\",\r\n \"Test12\",\r\n \"Test40\",\r\n \"Test46\",\r\n \"Test7\",\r\n \"Test35\",\r\n \"Test11\",\r\n \"Test3\",\r\n \"Test18\",\r\n \"Test6\",\r\n \"Test0\",\r\n \"Test41\",\r\n \"Test28\",\r\n \"Test8\",\r\n \"Test14\",\r\n \"Test17\",\r\n \"Test30\",\r\n \"Test25\",\r\n \"Test42\",\r\n \"Test1\",\r\n \"Test19\",\r\n \"Test15\",\r\n \"Test48\",\r\n \"Test27\",\r\n \"Test47\",\r\n \"Test31\",\r\n \"Test32\",\r\n \"Test10\",\r\n \"Test26\",\r\n \"Test21\",\r\n \"Test38\",\r\n \"Test45\",\r\n \"Test39\",\r\n \"Test36\",\r\n \"Test24\",\r\n \"Test49\",\r\n \"Test33\",\r\n \"Test23\",\r\n \"Test29\",\r\n \"Test16\",\r\n \"Test43\",\r\n \"Test4\",\r\n \"Test20\"\r\n ]\r\n },\r\n {\r\n \"databaseName\": \"CosmosIOTDemo\",\r\n \"collectionNames\": [\r\n \"VehicleData\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/restoredaccountname637435832535194992\",\r\n \"name\": \"restoredaccountname637435832535194992\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-15T23:04:00.348964Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://restoredaccountname637435832535194992.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"530b269d-274b-4987-94e1-f54b09abecff\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"restoredaccountname637435832535194992-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname637435832535194992-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"restoredaccountname637435832535194992-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname637435832535194992-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"restoredaccountname637435832535194992-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname637435832535194992-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"restoredaccountname637435832535194992-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"restoreTimestampInUtc\": \"2020-12-14T22:54:13.5194992Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/restoredaccountname359\",\r\n \"name\": \"restoredaccountname359\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-16T00:51:05.9707658Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://restoredaccountname359.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"4993c7e8-c48b-4e45-9353-9baea1ce9e2a\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"restoredaccountname359-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname359-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"restoredaccountname359-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname359-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"restoredaccountname359-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname359-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"restoredaccountname359-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"restoreTimestampInUtc\": \"2020-12-16T00:00:00Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/pitr-sql-stage-restored-from-new-portal\",\r\n \"name\": \"pitr-sql-stage-restored-from-new-portal\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-05T00:28:33.8472693Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-restored-from-new-portal.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d673eaa8-f7fa-421f-9d61-ba314864a431\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-sql-stage-restored-from-new-portal-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-restored-from-new-portal-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-sql-stage-restored-from-new-portal-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-restored-from-new-portal-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-sql-stage-restored-from-new-portal-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-restored-from-new-portal-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-sql-stage-restored-from-new-portal-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"restoreTimestampInUtc\": \"2020-12-08T22:00:02Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"database1\",\r\n \"collectionNames\": [\r\n \"container1\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vinh-stage-rp/providers/Microsoft.DocumentDB/databaseAccounts/pitrtest1-res1\",\r\n \"name\": \"pitrtest1-res1\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-05T23:45:54.8433804Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitrtest1-res1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"6d6384ae-d623-4323-8388-65ca7df02733\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitrtest1-res1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitrtest1-res1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitrtest1-res1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitrtest1-res1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitrtest1-res1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitrtest1-res1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitrtest1-res1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/5dee0717-8f84-40d7-b7c1-921552ba61a5\",\r\n \"restoreTimestampInUtc\": \"2020-12-12T00:41:10Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"db1\",\r\n \"collectionNames\": [\r\n \"container1\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vinh-stage-rp/providers/Microsoft.DocumentDB/databaseAccounts/pitrtest1-res2\",\r\n \"name\": \"pitrtest1-res2\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-05T23:46:36.9885427Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitrtest1-res2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"0bcf9a9b-1ca1-4406-9652-aa087d5f0b3f\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitrtest1-res2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitrtest1-res2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitrtest1-res2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitrtest1-res2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitrtest1-res2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitrtest1-res2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitrtest1-res2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/5dee0717-8f84-40d7-b7c1-921552ba61a5\",\r\n \"restoreTimestampInUtc\": \"2020-12-12T00:41:10Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"db1\",\r\n \"collectionNames\": [\r\n \"container1\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/test-virangai-vinhstagepitr-1\",\r\n \"name\": \"test-virangai-vinhstagepitr-1\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-06T09:24:06.8099413Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test-virangai-vinhstagepitr-1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"b15e30f1-4e37-4fca-b77b-303516959017\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test-virangai-vinhstagepitr-1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-virangai-vinhstagepitr-1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test-virangai-vinhstagepitr-1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-virangai-vinhstagepitr-1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test-virangai-vinhstagepitr-1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-virangai-vinhstagepitr-1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test-virangai-vinhstagepitr-1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/5dee0717-8f84-40d7-b7c1-921552ba61a5\",\r\n \"restoreTimestampInUtc\": \"2020-12-12T00:41:13Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"db1\",\r\n \"collectionNames\": [\r\n \"container1\"\r\n ]\r\n },\r\n {\r\n \"databaseName\": \"CosmosPITRTest\",\r\n \"collectionNames\": [\r\n \"Test13\",\r\n \"Test5\",\r\n \"Test37\",\r\n \"Test44\",\r\n \"Test2\",\r\n \"Test9\",\r\n \"Test34\",\r\n \"Test22\",\r\n \"Test12\",\r\n \"Test40\",\r\n \"Test46\",\r\n \"Test7\",\r\n \"Test35\",\r\n \"Test11\",\r\n \"Test3\",\r\n \"Test18\",\r\n \"Test6\",\r\n \"Test0\",\r\n \"Test41\",\r\n \"Test28\",\r\n \"Test8\",\r\n \"Test14\",\r\n \"Test17\",\r\n \"Test30\",\r\n \"Test25\",\r\n \"Test42\",\r\n \"Test1\",\r\n \"Test19\",\r\n \"Test15\",\r\n \"Test48\",\r\n \"Test27\",\r\n \"Test47\",\r\n \"Test31\",\r\n \"Test32\",\r\n \"Test10\",\r\n \"Test26\",\r\n \"Test21\",\r\n \"Test38\",\r\n \"Test45\",\r\n \"Test39\",\r\n \"Test36\",\r\n \"Test24\",\r\n \"Test49\",\r\n \"Test33\",\r\n \"Test23\",\r\n \"Test29\",\r\n \"Test16\",\r\n \"Test43\",\r\n \"Test4\",\r\n \"Test20\"\r\n ]\r\n },\r\n {\r\n \"databaseName\": \"CosmosIOTDemo\",\r\n \"collectionNames\": [\r\n \"VehicleData\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/test-virangai-vinhstagepitr-2\",\r\n \"name\": \"test-virangai-vinhstagepitr-2\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-06T09:33:05.9310034Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test-virangai-vinhstagepitr-2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"617f5c88-2a93-45b4-be38-0cd7addea976\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test-virangai-vinhstagepitr-2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-virangai-vinhstagepitr-2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test-virangai-vinhstagepitr-2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-virangai-vinhstagepitr-2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test-virangai-vinhstagepitr-2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-virangai-vinhstagepitr-2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test-virangai-vinhstagepitr-2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/5dee0717-8f84-40d7-b7c1-921552ba61a5\",\r\n \"restoreTimestampInUtc\": \"2020-12-12T00:41:13Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"db1\",\r\n \"collectionNames\": [\r\n \"container1\"\r\n ]\r\n },\r\n {\r\n \"databaseName\": \"CosmosPITRTest\",\r\n \"collectionNames\": [\r\n \"Test13\",\r\n \"Test5\",\r\n \"Test37\",\r\n \"Test44\",\r\n \"Test2\",\r\n \"Test9\",\r\n \"Test34\",\r\n \"Test22\",\r\n \"Test12\",\r\n \"Test40\",\r\n \"Test46\",\r\n \"Test7\",\r\n \"Test35\",\r\n \"Test11\",\r\n \"Test3\",\r\n \"Test18\",\r\n \"Test6\",\r\n \"Test0\",\r\n \"Test41\",\r\n \"Test28\",\r\n \"Test8\",\r\n \"Test14\",\r\n \"Test17\",\r\n \"Test30\",\r\n \"Test25\",\r\n \"Test42\",\r\n \"Test1\",\r\n \"Test19\",\r\n \"Test15\",\r\n \"Test48\",\r\n \"Test27\",\r\n \"Test47\",\r\n \"Test31\",\r\n \"Test32\",\r\n \"Test10\",\r\n \"Test26\",\r\n \"Test21\",\r\n \"Test38\",\r\n \"Test45\",\r\n \"Test39\",\r\n \"Test36\",\r\n \"Test24\",\r\n \"Test49\",\r\n \"Test33\",\r\n \"Test23\",\r\n \"Test29\",\r\n \"Test16\",\r\n \"Test43\",\r\n \"Test4\",\r\n \"Test20\"\r\n ]\r\n },\r\n {\r\n \"databaseName\": \"CosmosIOTDemo\",\r\n \"collectionNames\": [\r\n \"VehicleData\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vinh-stage-rp/providers/Microsoft.DocumentDB/databaseAccounts/test-restore-4\",\r\n \"name\": \"test-restore-4\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-07T01:23:38.3845009Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test-restore-4.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"2eecc23f-69df-4de3-9103-b6ca529536a4\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test-restore-4-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-restore-4-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test-restore-4-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-restore-4-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test-restore-4-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-restore-4-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test-restore-4-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/5dee0717-8f84-40d7-b7c1-921552ba61a5\",\r\n \"restoreTimestampInUtc\": \"2020-12-12T00:41:13Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vinh-stage-rp/providers/Microsoft.DocumentDB/databaseAccounts/test-restore5\",\r\n \"name\": \"test-restore5\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-07T01:23:39.9001395Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test-restore5.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d91e1ad2-22b0-401e-b465-a16e5928e194\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test-restore5-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-restore5-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test-restore5-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-restore5-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test-restore5-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-restore5-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test-restore5-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/5dee0717-8f84-40d7-b7c1-921552ba61a5\",\r\n \"restoreTimestampInUtc\": \"2020-12-12T00:41:13Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"db1\",\r\n \"collectionNames\": [\r\n \"container1\"\r\n ]\r\n },\r\n {\r\n \"databaseName\": \"CosmosPITRTest\",\r\n \"collectionNames\": [\r\n \"Test13\",\r\n \"Test5\",\r\n \"Test37\",\r\n \"Test44\",\r\n \"Test2\",\r\n \"Test9\",\r\n \"Test34\",\r\n \"Test22\",\r\n \"Test12\",\r\n \"Test40\",\r\n \"Test46\",\r\n \"Test7\",\r\n \"Test35\",\r\n \"Test11\",\r\n \"Test3\",\r\n \"Test18\",\r\n \"Test6\",\r\n \"Test0\",\r\n \"Test41\",\r\n \"Test28\",\r\n \"Test8\",\r\n \"Test14\",\r\n \"Test17\",\r\n \"Test30\",\r\n \"Test25\",\r\n \"Test42\",\r\n \"Test1\",\r\n \"Test19\",\r\n \"Test15\",\r\n \"Test48\",\r\n \"Test27\",\r\n \"Test47\",\r\n \"Test31\",\r\n \"Test32\",\r\n \"Test10\",\r\n \"Test26\",\r\n \"Test21\",\r\n \"Test38\",\r\n \"Test45\",\r\n \"Test39\",\r\n \"Test36\",\r\n \"Test24\",\r\n \"Test49\",\r\n \"Test33\",\r\n \"Test23\",\r\n \"Test29\",\r\n \"Test16\",\r\n \"Test43\",\r\n \"Test4\",\r\n \"Test20\"\r\n ]\r\n },\r\n {\r\n \"databaseName\": \"CosmosIOTDemo\",\r\n \"collectionNames\": [\r\n \"VehicleData\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vinh-stage-rp/providers/Microsoft.DocumentDB/databaseAccounts/test-restore6\",\r\n \"name\": \"test-restore6\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-07T03:18:45.0362608Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test-restore6.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"132908b6-2701-44a5-bdbe-a7c296e26283\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test-restore6-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-restore6-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test-restore6-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-restore6-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test-restore6-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-restore6-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test-restore6-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/5dee0717-8f84-40d7-b7c1-921552ba61a5\",\r\n \"restoreTimestampInUtc\": \"2020-12-12T00:41:13Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/SQL_on_Compute_sign_off/providers/Microsoft.DocumentDB/databaseAccounts/sqloncomputejavastagesignoff\",\r\n \"name\": \"sqloncomputejavastagesignoff\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-15T02:06:13.3937424Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sqloncomputejavastagesignoff.documents-staging.windows-ppe.net:443/\",\r\n \"sqlEndpoint\": \"https://sqloncomputejavastagesignoff.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"769be62e-1c2a-4e5d-a4a4-03f8361723f6\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Strong\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sqloncomputejavastagesignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://sqloncomputejavastagesignoff-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sqloncomputejavastagesignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://sqloncomputejavastagesignoff-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sqloncomputejavastagesignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://sqloncomputejavastagesignoff-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sqloncomputejavastagesignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableSql\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/SQL_on_Compute_sign_off/providers/Microsoft.DocumentDB/databaseAccounts/sqloncomputepythonstagesignoff\",\r\n \"name\": \"sqloncomputepythonstagesignoff\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-15T02:39:17.5555868Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sqloncomputepythonstagesignoff.documents-staging.windows-ppe.net:443/\",\r\n \"sqlEndpoint\": \"https://sqloncomputepythonstagesignoff.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"ffeab641-7c1a-4645-8f24-f65ea835127b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sqloncomputepythonstagesignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://sqloncomputepythonstagesignoff-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sqloncomputepythonstagesignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://sqloncomputepythonstagesignoff-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sqloncomputepythonstagesignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://sqloncomputepythonstagesignoff-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sqloncomputepythonstagesignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableSql\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/SQL_on_Compute_sign_off/providers/Microsoft.DocumentDB/databaseAccounts/sqloncomputejsstagesignoff\",\r\n \"name\": \"sqloncomputejsstagesignoff\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-15T02:48:12.482706Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sqloncomputejsstagesignoff.documents-staging.windows-ppe.net:443/\",\r\n \"sqlEndpoint\": \"https://sqloncomputejsstagesignoff.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c90decf6-1ffb-4136-ae78-60fa87a232e5\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sqloncomputejsstagesignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://sqloncomputejsstagesignoff-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sqloncomputejsstagesignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://sqloncomputejsstagesignoff-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sqloncomputejsstagesignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://sqloncomputejsstagesignoff-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sqloncomputejsstagesignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableSql\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/pitr-sql-stage-source-personalrestore-greeen\",\r\n \"name\": \"pitr-sql-stage-source-personalrestore-greeen\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-15T22:51:58.351694Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-personalrestore-greeen.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"2ab6f2d2-ce7e-439b-90b3-5505c8f9ff76\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-personalrestore-greeen-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-personalrestore-greeen-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-personalrestore-greeen-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-personalrestore-greeen-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-personalrestore-greeen-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-personalrestore-greeen-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-personalrestore-greeen-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"restoreTimestampInUtc\": \"2021-01-14T00:00:00Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/SQL_on_Compute_sign_off/providers/Microsoft.DocumentDB/databaseAccounts/sqloncomputejava2asyncstagesignoff\",\r\n \"name\": \"sqloncomputejava2asyncstagesignoff\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-31T20:44:19.1421044Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sqloncomputejava2asyncstagesignoff.documents-staging.windows-ppe.net:443/\",\r\n \"sqlEndpoint\": \"https://sqloncomputejava2asyncstagesignoff.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"765d0215-9e26-45b4-959c-1ddc4008ba84\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Strong\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sqloncomputejava2asyncstagesignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://sqloncomputejava2asyncstagesignoff-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sqloncomputejava2asyncstagesignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://sqloncomputejava2asyncstagesignoff-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sqloncomputejava2asyncstagesignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://sqloncomputejava2asyncstagesignoff-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sqloncomputejava2asyncstagesignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableSql\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/SQL_on_Compute_sign_off/providers/Microsoft.DocumentDB/databaseAccounts/sqloncomputejava2syncstagesignoff\",\r\n \"name\": \"sqloncomputejava2syncstagesignoff\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-31T20:48:50.7232085Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sqloncomputejava2syncstagesignoff.documents-staging.windows-ppe.net:443/\",\r\n \"sqlEndpoint\": \"https://sqloncomputejava2syncstagesignoff.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"4cb783c6-fd67-4138-bbaa-648339ef64f5\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Strong\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sqloncomputejava2syncstagesignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://sqloncomputejava2syncstagesignoff-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sqloncomputejava2syncstagesignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://sqloncomputejava2syncstagesignoff-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sqloncomputejava2syncstagesignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://sqloncomputejava2syncstagesignoff-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sqloncomputejava2syncstagesignoff-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableSql\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/abpairg/providers/Microsoft.DocumentDB/databaseAccounts/saawasek\",\r\n \"name\": \"saawasek\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"Owner\": \"saawasel\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-08T09:39:57.620453Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://saawasek.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"ddfae86a-219a-4e81-99ff-c8b11995305c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"saawasek-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://saawasek-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"saawasek-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://saawasek-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"saawasek-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://saawasek-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"saawasek-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/emlopez/providers/Microsoft.DocumentDB/databaseAccounts/emlopez-latencytest\",\r\n \"name\": \"emlopez-latencytest\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-09T21:45:29.0103423Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://emlopez-latencytest.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"cb72edb9-6050-4786-a682-d8f6ef1fb57a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"emlopez-latencytest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://emlopez-latencytest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"emlopez-latencytest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://emlopez-latencytest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"emlopez-latencytest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://emlopez-latencytest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"emlopez-latencytest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vinh-stage-rp/providers/Microsoft.DocumentDB/databaseAccounts/targetacctrestore\",\r\n \"name\": \"targetacctrestore\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-18T18:30:13.6151361Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://targetacctrestore.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"483d93e5-302b-4093-9502-ce63d416e70f\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"targetacctrestore-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://targetacctrestore-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"targetacctrestore-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://targetacctrestore-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"targetacctrestore-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://targetacctrestore-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"targetacctrestore-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/6d6384ae-d623-4323-8388-65ca7df02733\",\r\n \"restoreTimestampInUtc\": \"2021-02-18T17:40:00Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"db1\",\r\n \"collectionNames\": [\r\n \"container1\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/kakhandr-rg/providers/Microsoft.DocumentDB/databaseAccounts/kal-cli-backup-test\",\r\n \"name\": \"kal-cli-backup-test\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-22T20:39:55.3350623Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://kal-cli-backup-test.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"7cbbd986-d40d-4b12-a895-3a3a29510125\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"kal-cli-backup-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://kal-cli-backup-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"kal-cli-backup-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://kal-cli-backup-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"kal-cli-backup-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://kal-cli-backup-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"kal-cli-backup-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/kakhandr-rg/providers/Microsoft.DocumentDB/databaseAccounts/kal-ps-backup-test\",\r\n \"name\": \"kal-ps-backup-test\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-22T21:55:54.9343272Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://kal-ps-backup-test.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d80e71f3-805e-4e73-af7d-eb611f1dc9ee\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"kal-ps-backup-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://kal-ps-backup-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"kal-ps-backup-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://kal-ps-backup-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"kal-ps-backup-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://kal-ps-backup-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"kal-ps-backup-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 480,\r\n \"backupRetentionIntervalInHours\": 16,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CtlProfilingPrototypes/providers/Microsoft.DocumentDB/databaseAccounts/ecommerceprototype\",\r\n \"name\": \"ecommerceprototype\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-22T22:15:30.854419Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ecommerceprototype.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c1f5edbe-9964-4837-bee1-4120d2bc50c1\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ecommerceprototype-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ecommerceprototype-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ecommerceprototype-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ecommerceprototype-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ecommerceprototype-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ecommerceprototype-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ecommerceprototype-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mominag-stage7/providers/Microsoft.DocumentDB/databaseAccounts/mominag-stage7\",\r\n \"name\": \"mominag-stage7\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-23T16:58:34.9565429Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mominag-stage7.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"949e3d88-b414-4052-81b5-6149798ac713\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mominag-stage7-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://mominag-stage7-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mominag-stage7-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://mominag-stage7-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mominag-stage7-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://mominag-stage7-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mominag-stage7-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/tvoellm-group/providers/Microsoft.DocumentDB/databaseAccounts/testingenffailure\",\r\n \"name\": \"testingenffailure\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-23T18:13:30.9839886Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testingenffailure.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"61492410-2fa8-4a5e-9c71-e15a140ac601\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"keyVaultKeyUri\": \"https://testingenforcement.vault.azure.net/keys/byok\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testingenffailure-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://testingenffailure-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testingenffailure-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://testingenffailure-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testingenffailure-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://testingenffailure-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testingenffailure-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/thweiss-stage/providers/Microsoft.DocumentDB/databaseAccounts/thweiss-rbac-stage\",\r\n \"name\": \"thweiss-rbac-stage\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-24T18:13:55.1445545Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://thweiss-rbac-stage.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"91330c19-b2c6-4f1b-84d1-5cf4d48895bf\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"thweiss-rbac-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://thweiss-rbac-stage-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"thweiss-rbac-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://thweiss-rbac-stage-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"thweiss-rbac-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://thweiss-rbac-stage-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"thweiss-rbac-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vinh-stage-rp/providers/Microsoft.DocumentDB/databaseAccounts/virangai-test-vinhstagepitr-res\",\r\n \"name\": \"virangai-test-vinhstagepitr-res\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-26T22:14:49.5292394Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://virangai-test-vinhstagepitr-res.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"74e9ac09-75d3-448a-a128-e71866b42e95\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"virangai-test-vinhstagepitr-res-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://virangai-test-vinhstagepitr-res-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"virangai-test-vinhstagepitr-res-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://virangai-test-vinhstagepitr-res-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"virangai-test-vinhstagepitr-res-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://virangai-test-vinhstagepitr-res-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"virangai-test-vinhstagepitr-res-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/5dee0717-8f84-40d7-b7c1-921552ba61a5\",\r\n \"restoreTimestampInUtc\": \"2021-02-17T00:41:13Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"Test\",\r\n \"collectionNames\": [\r\n \"Test\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/shthekkachangefeed\",\r\n \"name\": \"shthekkachangefeed\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-02T01:23:50.923821Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shthekkachangefeed.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://shthekkachangefeed.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"93b4a120-202e-49a7-8559-5da22bf22204\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shthekkachangefeed-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shthekkachangefeed-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shthekkachangefeed-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shthekkachangefeed-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shthekkachangefeed-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shthekkachangefeed-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shthekkachangefeed-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/wmengstagetest/providers/Microsoft.DocumentDB/databaseAccounts/wmengstagemongowestus2a\",\r\n \"name\": \"wmengstagemongowestus2a\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-02T07:53:29.6512895Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://wmengstagemongowestus2a.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://wmengstagemongowestus2a.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"5be6f8f7-6186-4609-b589-a23bc7a39bde\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"wmengstagemongowestus2a-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://wmengstagemongowestus2a-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"wmengstagemongowestus2a-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://wmengstagemongowestus2a-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"wmengstagemongowestus2a-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://wmengstagemongowestus2a-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"wmengstagemongowestus2a-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/shthekkachangefeed1\",\r\n \"name\": \"shthekkachangefeed1\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-02T14:07:59.2149188Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shthekkachangefeed1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"2c0ea95d-1e53-48d6-adbb-6a7fac1b8783\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableFullFidelityChangeFeed\": true,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shthekkachangefeed1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shthekkachangefeed1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shthekkachangefeed1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shthekkachangefeed1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shthekkachangefeed1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shthekkachangefeed1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shthekkachangefeed1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/shthekkachangefeed2\",\r\n \"name\": \"shthekkachangefeed2\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-02T16:54:10.5282163Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shthekkachangefeed2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"dd7602ae-9453-48bf-9bc7-4404ee55f818\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableFullFidelityChangeFeed\": true,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shthekkachangefeed2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shthekkachangefeed2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shthekkachangefeed2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shthekkachangefeed2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shthekkachangefeed2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shthekkachangefeed2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shthekkachangefeed2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/restoredaccountname8240\",\r\n \"name\": \"restoredaccountname8240\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-02T23:44:12.9677973Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://restoredaccountname8240.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"24f3f6b6-9d96-4dc2-84b9-ae1c0cba8d4e\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"restoredaccountname8240-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname8240-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"restoredaccountname8240-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname8240-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"restoredaccountname8240-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname8240-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"restoredaccountname8240-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"restoreTimestampInUtc\": \"2021-03-01T00:00:00Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/restoredaccountname320\",\r\n \"name\": \"restoredaccountname320\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-03T00:59:33.2653566Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://restoredaccountname320.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"f319c2f4-7e68-48c0-9eac-94e12fb51179\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"restoredaccountname320-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname320-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"restoredaccountname320-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname320-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"restoredaccountname320-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname320-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"restoredaccountname320-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"restoreTimestampInUtc\": \"2021-03-01T00:00:00Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/restoredaccountname6982\",\r\n \"name\": \"restoredaccountname6982\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-03T02:34:05.8453693Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://restoredaccountname6982.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"672e89ce-0096-4a87-8131-3d2d5d483a3a\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"restoredaccountname6982-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname6982-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"restoredaccountname6982-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname6982-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"restoredaccountname6982-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname6982-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"restoredaccountname6982-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"restoreTimestampInUtc\": \"2021-03-01T00:00:00Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/restoredaccountname8295\",\r\n \"name\": \"restoredaccountname8295\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-03T17:48:44.4341123Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://restoredaccountname8295.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"1a937e8e-1a33-4fd1-9349-34ede3dd02f2\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"restoredaccountname8295-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname8295-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"restoredaccountname8295-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname8295-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"restoredaccountname8295-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname8295-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"restoredaccountname8295-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"restoreTimestampInUtc\": \"2021-03-01T00:00:00Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/srpalive-rg/providers/Microsoft.DocumentDB/databaseAccounts/srpalive-stg-test-globalstrong\",\r\n \"name\": \"srpalive-stg-test-globalstrong\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-09T23:13:55.6811982Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://srpalive-stg-test-globalstrong.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"6c81752b-01db-4bf4-bb70-f1198926b61c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Strong\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"srpalive-stg-test-globalstrong-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://srpalive-stg-test-globalstrong-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"srpalive-stg-test-globalstrong-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://srpalive-stg-test-globalstrong-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"srpalive-stg-test-globalstrong-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://srpalive-stg-test-globalstrong-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"srpalive-stg-test-globalstrong-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://srpalive-stg-test-globalstrong-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"srpalive-stg-test-globalstrong-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://srpalive-stg-test-globalstrong-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"srpalive-stg-test-globalstrong-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://srpalive-stg-test-globalstrong-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"srpalive-stg-test-globalstrong-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://srpalive-stg-test-globalstrong-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"srpalive-stg-test-globalstrong-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"srpalive-stg-test-globalstrong-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 2\r\n },\r\n {\r\n \"id\": \"srpalive-stg-test-globalstrong-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 2\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/viho-rg-stage/providers/Microsoft.DocumentDB/databaseAccounts/vihosqllegacygateway3\",\r\n \"name\": \"vihosqllegacygateway3\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-18T01:15:09.5863718Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://vihosqllegacygateway3.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c0189f8f-a874-45bb-ae7d-eba95ce8ad17\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"vihosqllegacygateway3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://vihosqllegacygateway3-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"vihosqllegacygateway3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://vihosqllegacygateway3-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"vihosqllegacygateway3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://vihosqllegacygateway3-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"vihosqllegacygateway3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/shthekkatestacc2\",\r\n \"name\": \"shthekkatestacc2\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-21T16:49:52.0960724Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shthekkatestacc2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"ee78e74d-3e3a-4549-85d0-9fb358b1c20b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shthekkatestacc2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shthekkatestacc2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shthekkatestacc2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shthekkatestacc2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shthekkatestacc2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shthekkatestacc2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shthekkatestacc2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/shthekkatestacc3\",\r\n \"name\": \"shthekkatestacc3\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-21T17:27:02.9000599Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shthekkatestacc3.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"b5df3014-ed80-46aa-9a40-78b87f19e533\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shthekkatestacc3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shthekkatestacc3-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shthekkatestacc3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shthekkatestacc3-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shthekkatestacc3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shthekkatestacc3-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shthekkatestacc3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/shthekkachangefeed3\",\r\n \"name\": \"shthekkachangefeed3\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-28T17:15:13.937906Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shthekkachangefeed3.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"de512772-1941-4f12-8e07-2a338a4d777e\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": true,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shthekkachangefeed3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shthekkachangefeed3-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shthekkachangefeed3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shthekkachangefeed3-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shthekkachangefeed3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shthekkachangefeed3-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shthekkachangefeed3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/divya-rg/providers/Microsoft.DocumentDB/databaseAccounts/divyatestdb\",\r\n \"name\": \"divyatestdb\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-31T02:42:49.8877686Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://divyatestdb.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"6f28c149-116f-43ce-aa2c-383189e3411b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"divyatestdb-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://divyatestdb-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"divyatestdb-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://divyatestdb-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"divyatestdb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://divyatestdb-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"divyatestdb-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://divyatestdb-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"divyatestdb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://divyatestdb-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"divyatestdb-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"divyatestdb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Local\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/cph-stage-westus2-rg/providers/Microsoft.DocumentDB/databaseAccounts/cph-stage-westus2-sql\",\r\n \"name\": \"cph-stage-westus2-sql\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-27T17:19:40.2670825Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cph-stage-westus2-sql.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a48f3b26-c5ab-4cc0-83a9-3c8bbf7f9942\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cph-stage-westus2-sql-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-westus2-sql-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cph-stage-westus2-sql-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-westus2-sql-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cph-stage-westus2-sql-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-westus2-sql-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cph-stage-westus2-sql-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli4mjhqv3b574l\",\r\n \"name\": \"cli4mjhqv3b574l\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-03T02:53:40.0432893Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cli4mjhqv3b574l.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"cbea4201-475f-4957-8a4e-bdb781826112\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cli4mjhqv3b574l-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cli4mjhqv3b574l-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cli4mjhqv3b574l-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cli4mjhqv3b574l-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cli4mjhqv3b574l-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cli4mjhqv3b574l-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cli4mjhqv3b574l-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shatri_vmss/providers/Microsoft.DocumentDB/databaseAccounts/shatrivmsscas\",\r\n \"name\": \"shatrivmsscas\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-05T22:07:42.0755521Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shatrivmsscas.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://shatrivmsscas.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"97eda513-da11-4b39-a1b4-a0e0212ed46a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shatrivmsscas-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shatrivmsscas-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shatrivmsscas-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shatrivmsscas-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shatrivmsscas-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shatrivmsscas-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shatrivmsscas-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shatri_vmss/providers/Microsoft.DocumentDB/databaseAccounts/shatrivmsscass1\",\r\n \"name\": \"shatrivmsscass1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-05T22:57:54.9590419Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shatrivmsscass1.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://shatrivmsscass1.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d2230b57-fc66-4981-a85c-ff8b4b73a71a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shatrivmsscass1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shatrivmsscass1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shatrivmsscass1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shatrivmsscass1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shatrivmsscass1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shatrivmsscass1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shatrivmsscass1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/kristynh/providers/Microsoft.DocumentDB/databaseAccounts/kristynh-logs-test\",\r\n \"name\": \"kristynh-logs-test\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-07T00:01:50.7316059Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://kristynh-logs-test.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"ce8d4d88-4820-4f6c-a9e2-1e03cc9e0ad0\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"kristynh-logs-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://kristynh-logs-test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"kristynh-logs-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://kristynh-logs-test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"kristynh-logs-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://kristynh-logs-test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"kristynh-logs-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shreygremlintest/providers/Microsoft.DocumentDB/databaseAccounts/shreygremlintest2\",\r\n \"name\": \"shreygremlintest2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlinv2\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-07T00:09:04.2396508Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shreygremlintest2.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://shreygremlintest2.gremlin.cosmos.windows-ppe.net/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"GremlinV2\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"3063f0a4-c783-46ac-9453-56182e595e10\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"clusterInstanceCount\": 1,\r\n \"clusterSize\": \"Cosmos.Gremlin.D4s\"\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shreygremlintest2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shreygremlintest2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shreygremlintest2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shreygremlintest2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shreygremlintest2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shreygremlintest2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shreygremlintest2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlinV2\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/gremlin-staging-eastus2/providers/Microsoft.DocumentDB/databaseAccounts/stage-gv2-2\",\r\n \"name\": \"stage-gv2-2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlinv2\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-07T00:25:59.1177018Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://stage-gv2-2.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://stage-gv2-2.gremlin.cosmos.windows-ppe.net/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"GremlinV2\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"1547da99-5119-48a2-a54c-90669ad44be9\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"clusterInstanceCount\": 1,\r\n \"clusterSize\": \"Cosmos.D4s\"\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"stage-gv2-2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-gv2-2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"stage-gv2-2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-gv2-2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"stage-gv2-2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-gv2-2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"stage-gv2-2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlinV2\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sanayak-test/providers/Microsoft.DocumentDB/databaseAccounts/sanayakstagevctest\",\r\n \"name\": \"sanayakstagevctest\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-08-08T04:46:20.1847198Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sanayakstagevctest.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"1b0c2161-4aa4-4b85-b3e9-c4044213e288\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sanayakstagevctest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sanayakstagevctest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"sanayakstagevctest-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://sanayakstagevctest-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"sanayakstagevctest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://sanayakstagevctest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sanayakstagevctest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sanayakstagevctest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"sanayakstagevctest-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://sanayakstagevctest-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"sanayakstagevctest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://sanayakstagevctest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sanayakstagevctest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sanayakstagevctest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"sanayakstagevctest-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://sanayakstagevctest-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"sanayakstagevctest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://sanayakstagevctest-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sanayakstagevctest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"sanayakstagevctest-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 2\r\n },\r\n {\r\n \"id\": \"sanayakstagevctest-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 2\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/kristynh/providers/Microsoft.DocumentDB/databaseAccounts/kristynh-new\",\r\n \"name\": \"kristynh-new\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-09-14T22:54:54.0050232Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://kristynh-new.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"215cee9b-df61-4e7b-8184-67c8fcf60aff\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"kristynh-new-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://kristynh-new-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"kristynh-new-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://kristynh-new-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"kristynh-new-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://kristynh-new-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"kristynh-new-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shreystagetest/providers/Microsoft.DocumentDB/databaseAccounts/shreysqltest2\",\r\n \"name\": \"shreysqltest2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-08T22:13:44.3089632Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shreysqltest2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"2a13e8e3-bf20-42f4-97bc-0ac482cc32b7\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shreysqltest2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shreysqltest2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shreysqltest2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shreysqltest2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shreysqltest2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shreysqltest2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shreysqltest2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/abpairg/providers/Microsoft.DocumentDB/databaseAccounts/abpaistgcoscass\",\r\n \"name\": \"abpaistgcoscass\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-08-07T11:14:57.6059262Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://abpaistgcoscass.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://abpaistgcoscass.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"90eeaa31-2f05-495b-8c6d-518394c2174b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Eventual\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"abpaistgcoscass-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://abpaistgcoscass-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"abpaistgcoscass-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://abpaistgcoscass-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"abpaistgcoscass-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://abpaistgcoscass-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"abpaistgcoscass-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/analyticsstore\",\r\n \"name\": \"analyticsstore\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-27T01:14:27.6039365Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://analyticsstore.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"18feb164-58ce-42a8-9c53-01aa42067e4c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"analyticsstore-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://analyticsstore-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"analyticsstore-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://analyticsstore-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"analyticsstore-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://analyticsstore-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"analyticsstore-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/anatest4\",\r\n \"name\": \"anatest4\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-09-13T00:08:25.2541895Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://anatest4.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"be77c569-4719-48e3-8e3f-21ebabf044da\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"anatest4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://anatest4-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"anatest4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://anatest4-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"anatest4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://anatest4-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"anatest4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ankis-rg99/providers/Microsoft.DocumentDB/databaseAccounts/ankis-cosmos00\",\r\n \"name\": \"ankis-cosmos00\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-01-30T11:17:58.1562355Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ankis-cosmos00.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"f6160a7e-446b-49af-8dde-40e9d1a31843\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ankis-cosmos00-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ankis-cosmos00-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ankis-cosmos00-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ankis-cosmos00-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ankis-cosmos00-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ankis-cosmos00-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ankis-cosmos00-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ash/providers/Microsoft.DocumentDB/databaseAccounts/ash-df-mongo\",\r\n \"name\": \"ash-df-mongo\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-12-05T22:54:57.2195328Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ash-df-mongo.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"312528e0-2767-43ef-9c10-bd6c5e3d6bf1\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ash-df-mongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ash-df-mongo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ash-df-mongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ash-df-mongo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ash-df-mongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ash-df-mongo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ash-df-mongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ash/providers/Microsoft.DocumentDB/databaseAccounts/ash-mongo-test\",\r\n \"name\": \"ash-mongo-test\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-09-25T22:00:41.5210646Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ash-mongo-test.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://ash-mongo-test.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"51c5e7b6-9ba5-4f0d-93d8-f21c5d35feee\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ash-mongo-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ash-mongo-test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ash-mongo-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ash-mongo-test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ash-mongo-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ash-mongo-test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ash-mongo-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ash/providers/Microsoft.DocumentDB/databaseAccounts/ash-sql-nb\",\r\n \"name\": \"ash-sql-nb\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-09-25T19:33:41.9917354Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ash-sql-nb.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"71fcf06e-0d80-446c-9f59-7d6ab937343a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ash-sql-nb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ash-sql-nb-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ash-sql-nb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ash-sql-nb-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ash-sql-nb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ash-sql-nb-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ash-sql-nb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [\r\n {\r\n \"allowedOrigins\": \"*\"\r\n }\r\n ],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableNotebooks\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/balaperu-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/balaperu-stagetestdb\",\r\n \"name\": \"balaperu-stagetestdb\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-08T23:59:38.4676546Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://balaperu-stagetestdb.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"679dfd1c-daf5-4648-bcd2-a4f602e8fbbe\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"balaperu-stagetestdb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://balaperu-stagetestdb-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"balaperu-stagetestdb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://balaperu-stagetestdb-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"balaperu-stagetestdb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://balaperu-stagetestdb-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"balaperu-stagetestdb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/bulkimporttest/providers/Microsoft.DocumentDB/databaseAccounts/bulkimporttest\",\r\n \"name\": \"bulkimporttest\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-08-09T23:32:21.7712589Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://bulkimporttest.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d4c1baad-2076-4941-906a-93b217dcfb18\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"bulkimporttest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://bulkimporttest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"bulkimporttest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://bulkimporttest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"bulkimporttest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://bulkimporttest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"bulkimporttest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CAAccountTest1/providers/Microsoft.DocumentDB/databaseAccounts/caaccounttest1\",\r\n \"name\": \"caaccounttest1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-08-22T00:38:20.9330792Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://caaccounttest1.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://caaccounttest1.cassandra.cosmosdb.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"714a53fb-b068-436a-97b1-2a3bfe8f2885\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"caaccounttest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://caaccounttest1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"caaccounttest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://caaccounttest1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"caaccounttest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://caaccounttest1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"caaccounttest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CANARY/providers/Microsoft.DocumentDB/databaseAccounts/canary-stageeastus2fd3\",\r\n \"name\": \"canary-stageeastus2fd3\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"DocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-03T19:05:39.0078796Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd3.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"fcb35d47-a58d-43bd-93c2-c3333a7958a9\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CANARY/providers/Microsoft.DocumentDB/databaseAccounts/canary-stageeastus2fd6\",\r\n \"name\": \"canary-stageeastus2fd6\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"DocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-08T21:10:29.7430665Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd6.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"39f54380-c5f4-4b82-9ca8-7c6800efc09f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd6-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd6-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd6-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd6-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd6-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd6-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd6-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/abpairg/providers/Microsoft.DocumentDB/databaseAccounts/abpaistgcosmongo36\",\r\n \"name\": \"abpaistgcosmongo36\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-12-12T07:49:25.4610465Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://abpaistgcosmongo36.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://abpaistgcosmongo36.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"f4ed2202-404d-4f6a-aaa3-bdb22dbe48cd\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"abpaistgcosmongo36-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://abpaistgcosmongo36-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"abpaistgcosmongo36-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://abpaistgcosmongo36-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"abpaistgcosmongo36-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://abpaistgcosmongo36-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"abpaistgcosmongo36-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/abpairg/providers/Microsoft.DocumentDB/databaseAccounts/abpaistgcossql2\",\r\n \"name\": \"abpaistgcossql2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"owner\": \"abpai\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-03-10T11:23:20.9773079Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://abpaistgcossql2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"e2765230-16cf-41a6-be18-41b6d1938c25\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"abpaistgcossql2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://abpaistgcossql2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"abpaistgcossql2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://abpaistgcossql2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"abpaistgcossql2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://abpaistgcossql2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"abpaistgcossql2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup8570/providers/Microsoft.DocumentDB/databaseAccounts/accountname9822\",\r\n \"name\": \"accountname9822\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-09-22T21:15:32.149858Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://accountname9822.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": true,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"0afc5a37-cafa-4470-b2ec-9584503c935b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": true,\r\n \"connectorOffer\": \"Small\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 1000,\r\n \"maxStalenessPrefix\": 300\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname9822-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname9822-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname9822-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname9822-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname9822-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname9822-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname9822-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/maquaran/providers/Microsoft.DocumentDB/databaseAccounts/capabilities-maquaran\",\r\n \"name\": \"capabilities-maquaran\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"MongoDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-06-07T18:59:31.2064926Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://capabilities-maquaran.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"f3b3b514-459d-43b3-88ad-5ac50578cde4\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"capabilities-maquaran-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://capabilities-maquaran-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"capabilities-maquaran-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://capabilities-maquaran-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"capabilities-maquaran-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://capabilities-maquaran-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"capabilities-maquaran-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"mongoEnableDocLevelTTL\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi/providers/Microsoft.DocumentDB/databaseAccounts/cassandra-yid5img5ochq6\",\r\n \"name\": \"cassandra-yid5img5ochq6\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-16T01:08:51.3309248Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cassandra-yid5img5ochq6.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://cassandra-yid5img5ochq6.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"56e9c1aa-a0a9-4804-9e1d-0fc9957784ae\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cassandra-yid5img5ochq6-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cassandra-yid5img5ochq6-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cassandra-yid5img5ochq6-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cassandra-yid5img5ochq6-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"cassandra-yid5img5ochq6-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cassandra-yid5img5ochq6-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cassandra-yid5img5ochq6-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://cassandra-yid5img5ochq6-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"cassandra-yid5img5ochq6-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cassandra-yid5img5ochq6-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cassandra-yid5img5ochq6-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"cassandra-yid5img5ochq6-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/anatest3\",\r\n \"name\": \"anatest3\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-09-12T23:40:21.5994308Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://anatest3.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"87d4c7f5-16c2-44d7-b7bc-fcfd368f3673\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"anatest3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://anatest3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"anatest3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://anatest3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"anatest3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://anatest3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"anatest3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/akshanka-cassandratestrg/providers/Microsoft.DocumentDB/databaseAccounts/cassandrastagesignoffeus2\",\r\n \"name\": \"cassandrastagesignoffeus2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-01T14:46:02.2298247Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cassandrastagesignoffeus2.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://cassandrastagesignoffeus2.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"84a04aaa-7945-4a4c-a823-d75104ae4f84\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cassandrastagesignoffeus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cassandrastagesignoffeus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cassandrastagesignoffeus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cassandrastagesignoffeus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cassandrastagesignoffeus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cassandrastagesignoffeus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cassandrastagesignoffeus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/cassandra-stage-signoff/providers/Microsoft.DocumentDB/databaseAccounts/cassandratester1\",\r\n \"name\": \"cassandratester1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-03T22:20:36.130697Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cassandratester1.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://cassandratester1.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"4a954ccd-c419-4e9e-828d-b3522f4dc8d5\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cassandratester1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cassandratester1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cassandratester1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cassandratester1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cassandratester1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cassandratester1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cassandratester1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ccxstagevalidationrg/providers/Microsoft.DocumentDB/databaseAccounts/ccx-edge-mm-demo\",\r\n \"name\": \"ccx-edge-mm-demo\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-12-11T00:06:29.5615363Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ccx-edge-mm-demo.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://ccx-edge-mm-demo.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"53914c0a-50c9-44dc-8796-917713c63883\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": true,\r\n \"connectorOffer\": \"small\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ccx-edge-mm-demo-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://ccx-edge-mm-demo-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"ccx-edge-mm-demo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ccx-edge-mm-demo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ccx-edge-mm-demo-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://ccx-edge-mm-demo-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"ccx-edge-mm-demo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ccx-edge-mm-demo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ccx-edge-mm-demo-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://ccx-edge-mm-demo-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"ccx-edge-mm-demo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ccx-edge-mm-demo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ccx-edge-mm-demo-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"ccx-edge-mm-demo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/anatest5\",\r\n \"name\": \"anatest5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-09-13T00:22:49.5268091Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://anatest5.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d55fa6af-aff5-49c5-9261-707c3c9dd2b4\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"anatest5-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://anatest5-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"anatest5-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://anatest5-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"anatest5-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://anatest5-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"anatest5-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ankis-rg99/providers/Microsoft.DocumentDB/databaseAccounts/ankis-cosmosdb-rg9\",\r\n \"name\": \"ankis-cosmosdb-rg9\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-01-30T11:17:39.0176146Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ankis-cosmosdb-rg9.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"45f68796-6819-42e6-95e4-dbfb6c6827c1\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ankis-cosmosdb-rg9-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ankis-cosmosdb-rg9-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ankis-cosmosdb-rg9-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ankis-cosmosdb-rg9-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ankis-cosmosdb-rg9-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ankis-cosmosdb-rg9-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ankis-cosmosdb-rg9-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ash/providers/Microsoft.DocumentDB/databaseAccounts/ash-df-gremlin\",\r\n \"name\": \"ash-df-gremlin\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlin (graph)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-12-05T22:20:30.609425Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ash-df-gremlin.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://ash-df-gremlin.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a95a4c6a-4574-427e-9fe0-f88ce43c9381\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ash-df-gremlin-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ash-df-gremlin-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ash-df-gremlin-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ash-df-gremlin-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ash-df-gremlin-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ash-df-gremlin-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ash-df-gremlin-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/computev2-stage-signoff/providers/Microsoft.DocumentDB/databaseAccounts/computev2stagesignoff\",\r\n \"name\": \"computev2stagesignoff\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-09-16T23:50:56.1159652Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://computev2stagesignoff.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"60c8a2ab-372a-47a1-9735-a9c7d76762c4\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"computev2stagesignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://computev2stagesignoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"computev2stagesignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://computev2stagesignoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"computev2stagesignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://computev2stagesignoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"computev2stagesignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/devansh-stage/providers/Microsoft.DocumentDB/databaseAccounts/conso-purg-attempt2\",\r\n \"name\": \"conso-purg-attempt2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-02-13T06:25:26.8192847Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://conso-purg-attempt2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"226085d1-864a-40fc-87f1-161e96a6aedf\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"conso-purg-attempt2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://conso-purg-attempt2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"conso-purg-attempt2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://conso-purg-attempt2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"conso-purg-attempt2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://conso-purg-attempt2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"conso-purg-attempt2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 167,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ash/providers/Microsoft.DocumentDB/databaseAccounts/ash-df-sql\",\r\n \"name\": \"ash-df-sql\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-12-05T22:10:53.6504686Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ash-df-sql.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"7a1192f3-d04b-496f-8504-23bb677e0aee\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Eventual\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ash-df-sql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ash-df-sql-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ash-df-sql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ash-df-sql-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ash-df-sql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ash-df-sql-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ash-df-sql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/test/providers/Microsoft.DocumentDB/databaseAccounts/cpuinvestigation\",\r\n \"name\": \"cpuinvestigation\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-04-14T19:32:44.4539346Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cpuinvestigation.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"31287da0-d8f6-427b-ab31-d7c7b32c6554\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cpuinvestigation-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://cpuinvestigation-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cpuinvestigation-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://cpuinvestigation-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"cpuinvestigation-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cpuinvestigation-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cpuinvestigation-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://cpuinvestigation-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"cpuinvestigation-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cpuinvestigation-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cpuinvestigation-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"cpuinvestigation-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sarguptest/providers/Microsoft.DocumentDB/databaseAccounts/cpuinvestigation2\",\r\n \"name\": \"cpuinvestigation2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-14T01:13:01.157676Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cpuinvestigation2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"f41c30f7-ea14-435f-b5e3-a45b96110753\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cpuinvestigation2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cpuinvestigation2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cpuinvestigation2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cpuinvestigation2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cpuinvestigation2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cpuinvestigation2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cpuinvestigation2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/csedev/providers/Microsoft.DocumentDB/databaseAccounts/csestar\",\r\n \"name\": \"csestar\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-08-27T19:52:05.8862647Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://csestar.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://csestar.cassandra.cosmosdb.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"91226e57-6ccd-4d1d-9ada-2e4fe1eca34a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"csestar-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://csestar-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"csestar-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://csestar-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"csestar-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://csestar-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"csestar-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/computev2stagerg/providers/Microsoft.DocumentDB/databaseAccounts/dahorastage\",\r\n \"name\": \"dahorastage\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-09-01T19:39:23.945106Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://dahorastage.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"b71574be-31f4-48da-b8c8-c3cd1cab4dcc\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"dahorastage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://dahorastage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"dahorastage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://dahorastage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"dahorastage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://dahorastage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"dahorastage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db1024-restored\",\r\n \"name\": \"db1024-restored\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-08-14T01:17:35.92886Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://db1024-restored.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c26d3f43-7363-4c54-940a-bde0e96bda72\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"db1024-restored-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db1024-restored-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"db1024-restored-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db1024-restored-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"db1024-restored-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db1024-restored-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"db1024-restored-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/aca7d453-88a9-4bf2-8abc-46d21553638f\",\r\n \"restoreTimestampInUtc\": \"2020-08-14T01:05:13Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db9934\",\r\n \"name\": \"db9934\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-21T16:06:49.7302308Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://db9934.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"6b94bd1f-70e0-44dc-8bc0-532904a1e36a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"db9934-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db9934-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"db9934-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db9934-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"db9934-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db9934-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"db9934-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/dech-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/dech-stage-notebooks\",\r\n \"name\": \"dech-stage-notebooks\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-04-28T18:13:54.8273652Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://dech-stage-notebooks.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"9d64f239-3b0a-4264-94bb-44de17b39d45\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"dech-stage-notebooks-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://dech-stage-notebooks-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"dech-stage-notebooks-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://dech-stage-notebooks-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"dech-stage-notebooks-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://dech-stage-notebooks-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"dech-stage-notebooks-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/byoktest5\",\r\n \"name\": \"byoktest5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-01-09T17:39:04.0390882Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://byoktest5.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"2eb7236f-d3d6-4ca4-8fc1-2003862d8206\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"byoktest5-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://byoktest5-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"byoktest5-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://byoktest5-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"byoktest5-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://byoktest5-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"byoktest5-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CANARY/providers/Microsoft.DocumentDB/databaseAccounts/canary-stageeastus2cm1\",\r\n \"name\": \"canary-stageeastus2cm1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"DocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-12T22:36:13.7558333Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2cm1.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://canary-stageeastus2cm1.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"79c5b5d8-41df-4bba-aec9-43decc1adff2\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2cm1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2cm1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2cm1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2cm1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"canary-stageeastus2cm1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2cm1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"canary-stageeastus2cm1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CANARY/providers/Microsoft.DocumentDB/databaseAccounts/canary-stageeastus2fd4\",\r\n \"name\": \"canary-stageeastus2fd4\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"DocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-03T19:07:50.4026599Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd4.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"6b9ee587-9b94-4d7a-9acd-f7e42701fc1b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd4-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd4-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd4-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CANARY/providers/Microsoft.DocumentDB/databaseAccounts/canary-stageeastus2fe1\",\r\n \"name\": \"canary-stageeastus2fe1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-31T06:06:49.1435223Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fe1.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://canary-stageeastus2fe1.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"af1ed8f0-b965-49c7-941c-758f32aef03f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fe1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fe1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fe1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fe1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fe1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fe1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"canary-stageeastus2fe1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/dox-staging/providers/Microsoft.DocumentDB/databaseAccounts/dox-stage-table4\",\r\n \"name\": \"dox-stage-table4\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Table\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-06-06T23:49:18.9073805Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://dox-stage-table4.documents-staging.windows-ppe.net:443/\",\r\n \"tableEndpoint\": \"https://dox-stage-table4.table.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Table, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"34eed354-a07b-4f22-8687-59627c9eeb14\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 86400,\r\n \"maxStalenessPrefix\": 1000000\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"dox-stage-table4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://dox-stage-table4-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"dox-stage-table4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://dox-stage-table4-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"dox-stage-table4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://dox-stage-table4-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"dox-stage-table4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableTable\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/akgoe-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/dss-framework-dev2\",\r\n \"name\": \"dss-framework-dev2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-02T21:02:11.3339727Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://dss-framework-dev2.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://dss-framework-dev2.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"10715fcd-f0ca-4941-af9d-5dcdeb599977\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"dss-framework-dev2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://dss-framework-dev2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"dss-framework-dev2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://dss-framework-dev2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"dss-framework-dev2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://dss-framework-dev2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"dss-framework-dev2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/cv2_stage_eastus2_danguy_rg/providers/Microsoft.DocumentDB/databaseAccounts/en20200515-signoff-core-danguy\",\r\n \"name\": \"en20200515-signoff-core-danguy\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-27T17:17:02.0831479Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://en20200515-signoff-core-danguy.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"8020bef5-046c-48d2-a6c0-21bf6fbacef6\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"en20200515-signoff-core-danguy-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://en20200515-signoff-core-danguy-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"en20200515-signoff-core-danguy-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://en20200515-signoff-core-danguy-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"en20200515-signoff-core-danguy-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://en20200515-signoff-core-danguy-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"en20200515-signoff-core-danguy-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/abinav_stage_rg/providers/Microsoft.DocumentDB/databaseAccounts/fedtabletest\",\r\n \"name\": \"fedtabletest\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-02-21T00:17:37.9555992Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://fedtabletest.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"1a553612-09f8-430a-b940-1f0276b6701b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"fedtabletest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://fedtabletest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"fedtabletest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://fedtabletest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"fedtabletest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://fedtabletest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"fedtabletest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/akshanka-cassandratestrg/providers/Microsoft.DocumentDB/databaseAccounts/cassandrasignoffeastus2\",\r\n \"name\": \"cassandrasignoffeastus2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-01T15:00:49.817052Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cassandrasignoffeastus2.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://cassandrasignoffeastus2.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"3fa6f47f-5d50-4bc8-84a5-2af9ced2d098\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cassandrasignoffeastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cassandrasignoffeastus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cassandrasignoffeastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cassandrasignoffeastus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cassandrasignoffeastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cassandrasignoffeastus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cassandrasignoffeastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/flnarenjrg/providers/Microsoft.DocumentDB/databaseAccounts/flnarenj-synstage\",\r\n \"name\": \"flnarenj-synstage\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-13T03:12:58.7424629Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://flnarenj-synstage.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://flnarenj-synstage.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"58e1ba71-b7cc-4a41-80fe-27ec11f62a05\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"flnarenj-synstage-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://flnarenj-synstage-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"flnarenj-synstage-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://flnarenj-synstage-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"flnarenj-synstage-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://flnarenj-synstage-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"flnarenj-synstage-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/abinav_stage_rg/providers/Microsoft.DocumentDB/databaseAccounts/graphstage3\",\r\n \"name\": \"graphstage3\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Graph\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-11-09T15:33:27.8548964Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://graphstage3.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://graphstage3.gremlin.cosmosdb.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"cc3fc002-9392-4077-865c-d6a9907be8c7\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"graphstage3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://graphstage3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"graphstage3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://graphstage3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"graphstage3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://graphstage3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"graphstage3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/cassandratest1016\",\r\n \"name\": \"cassandratest1016\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-10-16T19:01:11.0295362Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cassandratest1016.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://cassandratest1016.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c661d521-101a-4ad2-ae4e-5306157d657b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cassandratest1016-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cassandratest1016-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cassandratest1016-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cassandratest1016-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cassandratest1016-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cassandratest1016-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cassandratest1016-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n },\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/cassandra-stage-signoff/providers/Microsoft.DocumentDB/databaseAccounts/cassandratester2\",\r\n \"name\": \"cassandratester2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-04T02:29:16.5753054Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cassandratester2.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://cassandratester2.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"4b557ef1-10c4-48a3-95f5-d11b4840fa75\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cassandratester2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cassandratester2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cassandratester2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cassandratester2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cassandratester2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cassandratester2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cassandratester2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ccxstagevalidationrg/providers/Microsoft.DocumentDB/databaseAccounts/ccx-stage-bhba-donotdelete\",\r\n \"name\": \"ccx-stage-bhba-donotdelete\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-10-17T03:38:39.1048198Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ccx-stage-bhba-donotdelete.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://ccx-stage-bhba-donotdelete.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a20d51f4-b84e-414a-8ee1-f3dcf217fac7\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": true,\r\n \"connectorOffer\": \"small\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ccx-stage-bhba-donotdelete-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ccx-stage-bhba-donotdelete-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ccx-stage-bhba-donotdelete-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ccx-stage-bhba-donotdelete-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ccx-stage-bhba-donotdelete-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ccx-stage-bhba-donotdelete-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ccx-stage-bhba-donotdelete-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/gremlin-staging/providers/Microsoft.DocumentDB/databaseAccounts/gremlin-staging-eastus2\",\r\n \"name\": \"gremlin-staging-eastus2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlin (graph)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-08-13T21:23:54.6477533Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://gremlin-staging-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://gremlin-staging-eastus2.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"3a38e59e-3f7b-4b00-ade8-770c6caec24b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"gremlin-staging-eastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://gremlin-staging-eastus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"gremlin-staging-eastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://gremlin-staging-eastus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"gremlin-staging-eastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://gremlin-staging-eastus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"gremlin-staging-eastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/gremlin-staging/providers/Microsoft.DocumentDB/databaseAccounts/gremlin-staging-eastus2-v2sdk\",\r\n \"name\": \"gremlin-staging-eastus2-v2sdk\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlin (graph)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-08-13T23:06:50.1914669Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://gremlin-staging-eastus2-v2sdk.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://gremlin-staging-eastus2-v2sdk.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"5597fb4e-8b53-42d3-912c-9fb9adadbda4\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"gremlin-staging-eastus2-v2sdk-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://gremlin-staging-eastus2-v2sdk-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"gremlin-staging-eastus2-v2sdk-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://gremlin-staging-eastus2-v2sdk-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"gremlin-staging-eastus2-v2sdk-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://gremlin-staging-eastus2-v2sdk-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"gremlin-staging-eastus2-v2sdk-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi/providers/Microsoft.DocumentDB/databaseAccounts/gremlin-yid5img5ochq6\",\r\n \"name\": \"gremlin-yid5img5ochq6\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-16T01:32:59.8118626Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://gremlin-yid5img5ochq6.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://gremlin-yid5img5ochq6.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d551e71a-c1c0-4a73-a5c7-90ac4c2610e9\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"gremlin-yid5img5ochq6-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://gremlin-yid5img5ochq6-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"gremlin-yid5img5ochq6-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://gremlin-yid5img5ochq6-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"gremlin-yid5img5ochq6-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://gremlin-yid5img5ochq6-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"gremlin-yid5img5ochq6-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://gremlin-yid5img5ochq6-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"gremlin-yid5img5ochq6-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://gremlin-yid5img5ochq6-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"gremlin-yid5img5ochq6-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"gremlin-yid5img5ochq6-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/gremlin-staging-eastus2/providers/Microsoft.DocumentDB/databaseAccounts/gv2-stage-d32-noedgeindex\",\r\n \"name\": \"gv2-stage-d32-noedgeindex\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlinv2\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-01T19:57:08.4329052Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://gv2-stage-d32-noedgeindex.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://gv2-stage-d32-noedgeindex.gremlin.cosmos.windows-ppe.net/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"GremlinV2\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a381073e-e215-4b93-b734-8b1b0c524def\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"clusterInstanceCount\": 1,\r\n \"clusterSize\": \"Cosmos.Gremlin.D32s\"\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"gv2-stage-d32-noedgeindex-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://gv2-stage-d32-noedgeindex-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"gv2-stage-d32-noedgeindex-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://gv2-stage-d32-noedgeindex-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"gv2-stage-d32-noedgeindex-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://gv2-stage-d32-noedgeindex-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"gv2-stage-d32-noedgeindex-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlinV2\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/harinic/providers/Microsoft.DocumentDB/databaseAccounts/harinicstagedb\",\r\n \"name\": \"harinicstagedb\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-04T20:24:01.8111446Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://harinicstagedb.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c593b832-da81-4833-b03d-2f75b6cf14e0\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"harinicstagedb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://harinicstagedb-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"harinicstagedb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://harinicstagedb-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"harinicstagedb-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"harinicstagedb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://harinicstagedb-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"harinicstagedb-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"harinicstagedb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"harinicstagedb-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/Devansh-Test_env/providers/Microsoft.DocumentDB/databaseAccounts/increse-ese-max-ver-page-count\",\r\n \"name\": \"increse-ese-max-ver-page-count\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-11-08T10:29:28.1609426Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://increse-ese-max-ver-page-count.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"1e273e34-2162-4515-a363-3d910c4d0169\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"increse-ese-max-ver-page-count-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://increse-ese-max-ver-page-count-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"increse-ese-max-ver-page-count-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://increse-ese-max-ver-page-count-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"increse-ese-max-ver-page-count-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://increse-ese-max-ver-page-count-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"increse-ese-max-ver-page-count-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ash/providers/Microsoft.DocumentDB/databaseAccounts/ash-df-table\",\r\n \"name\": \"ash-df-table\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Table\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-12-05T22:36:27.1797033Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ash-df-table.documents-staging.windows-ppe.net:443/\",\r\n \"tableEndpoint\": \"https://ash-df-table.table.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Table, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"92003eb4-bc95-4ce2-b8a1-80a8b916f405\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 86400,\r\n \"maxStalenessPrefix\": 1000000\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ash-df-table-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ash-df-table-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ash-df-table-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ash-df-table-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ash-df-table-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ash-df-table-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ash-df-table-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableTable\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sdk-ci/providers/Microsoft.DocumentDB/databaseAccounts/java-sync-multimaster-signoff\",\r\n \"name\": \"java-sync-multimaster-signoff\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-09-17T00:26:16.9609946Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://java-sync-multimaster-signoff.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"af03bc74-0534-4805-a5f4-5391ea69a391\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 86400,\r\n \"maxStalenessPrefix\": 100000\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"java-sync-multimaster-signoff-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://java-sync-multimaster-signoff-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"java-sync-multimaster-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://java-sync-multimaster-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"java-sync-multimaster-signoff-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://java-sync-multimaster-signoff-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"java-sync-multimaster-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://java-sync-multimaster-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"java-sync-multimaster-signoff-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://java-sync-multimaster-signoff-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"java-sync-multimaster-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://java-sync-multimaster-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"java-sync-multimaster-signoff-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"java-sync-multimaster-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/maquaran/providers/Microsoft.DocumentDB/databaseAccounts/maquaran-merge\",\r\n \"name\": \"maquaran-merge\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-09-10T21:34:20.7770108Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://maquaran-merge.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"0a2530f2-a5e2-4533-b7c2-e97e801faeb5\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"maquaran-merge-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://maquaran-merge-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"maquaran-merge-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://maquaran-merge-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"maquaran-merge-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://maquaran-merge-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"maquaran-merge-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db-rbac\",\r\n \"name\": \"db-rbac\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-09-16T20:54:59.6843527Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://db-rbac.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"e15cd0e5-429d-462d-9247-3a2cf6ce72cf\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"db-rbac-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db-rbac-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"db-rbac-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db-rbac-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"db-rbac-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db-rbac-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"db-rbac-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048\",\r\n \"name\": \"db2048\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Table\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-21T18:53:17.251839Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://db2048.documents-staging.windows-ppe.net:443/\",\r\n \"tableEndpoint\": \"https://db2048.table.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Table, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"5410e941-71b1-4b61-a3c9-df73dda43401\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 86400,\r\n \"maxStalenessPrefix\": 1000000\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"db2048-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db2048-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"db2048-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db2048-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"db2048-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db2048-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"db2048-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableTable\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/dech-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/dech-nb-stage\",\r\n \"name\": \"dech-nb-stage\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-08T22:32:46.8939349Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://dech-nb-stage.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"82223c58-f425-43fa-8191-68b6ef12b2d7\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"dech-nb-stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://dech-nb-stage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"dech-nb-stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://dech-nb-stage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"dech-nb-stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://dech-nb-stage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"dech-nb-stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/devansh-stage/providers/Microsoft.DocumentDB/databaseAccounts/metric-conso-w-purg\",\r\n \"name\": \"metric-conso-w-purg\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-02-12T05:58:09.9295808Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://metric-conso-w-purg.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a8fe0b2f-3dec-4f79-87d5-930b11dc2c2d\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"metric-conso-w-purg-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://metric-conso-w-purg-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"metric-conso-w-purg-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://metric-conso-w-purg-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"metric-conso-w-purg-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://metric-conso-w-purg-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"metric-conso-w-purg-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/devansh-testing-defrag/providers/Microsoft.DocumentDB/databaseAccounts/defrag-for-250\",\r\n \"name\": \"defrag-for-250\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-10-09T09:26:08.9443222Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://defrag-for-250.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"4158ec95-5bc8-4c4b-a226-fc4c3db3e89e\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"defrag-for-250-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://defrag-for-250-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"defrag-for-250-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://defrag-for-250-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"defrag-for-250-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://defrag-for-250-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"defrag-for-250-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi/providers/Microsoft.DocumentDB/databaseAccounts/mongodb-yid5img5ochq6\",\r\n \"name\": \"mongodb-yid5img5ochq6\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-16T01:34:21.2194126Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongodb-yid5img5ochq6.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"075600e9-1874-405b-b51b-59f3c9da6b0c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongodb-yid5img5ochq6-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongodb-yid5img5ochq6-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongodb-yid5img5ochq6-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongodb-yid5img5ochq6-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"mongodb-yid5img5ochq6-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://mongodb-yid5img5ochq6-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongodb-yid5img5ochq6-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongodb-yid5img5ochq6-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"mongodb-yid5img5ochq6-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://mongodb-yid5img5ochq6-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongodb-yid5img5ochq6-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"mongodb-yid5img5ochq6-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sivethe/providers/Microsoft.DocumentDB/databaseAccounts/mongoselfserveupgradeto36-stage\",\r\n \"name\": \"mongoselfserveupgradeto36-stage\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-03-10T22:19:13.3414472Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongoselfserveupgradeto36-stage.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"65fb036a-9e3d-46cb-8816-6455befb23e7\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongoselfserveupgradeto36-stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongoselfserveupgradeto36-stage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongoselfserveupgradeto36-stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongoselfserveupgradeto36-stage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongoselfserveupgradeto36-stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongoselfserveupgradeto36-stage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongoselfserveupgradeto36-stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n },\r\n {\r\n \"name\": \"AllowSelfServeUpgradeToMongo36\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/monohyridrow\",\r\n \"name\": \"monohyridrow\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-10-02T17:11:36.8710823Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://monohyridrow.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"814ee1e4-3ef3-4ed3-8102-d73b49505b4b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"monohyridrow-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://monohyridrow-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"monohyridrow-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://monohyridrow-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"monohyridrow-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://monohyridrow-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"monohyridrow-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://monohyridrow-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"monohyridrow-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://monohyridrow-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"monohyridrow-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"monohyridrow-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/bwtreetest/providers/Microsoft.DocumentDB/databaseAccounts/nanedevtest\",\r\n \"name\": \"nanedevtest\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-04T20:25:55.6165964Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://nanedevtest.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"63d7c4e8-3564-409d-ab62-1e811ab34fc0\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"nanedevtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nanedevtest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"nanedevtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nanedevtest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"nanedevtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nanedevtest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"nanedevtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/nitesh-resource/providers/Microsoft.DocumentDB/databaseAccounts/nitesh-cri-162282720\",\r\n \"name\": \"nitesh-cri-162282720\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-12-16T06:25:26.7813786Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://nitesh-cri-162282720.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": true,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"2747300a-0184-482f-bfda-900959d63fe7\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"nitesh-cri-162282720-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nitesh-cri-162282720-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"nitesh-cri-162282720-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nitesh-cri-162282720-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"nitesh-cri-162282720-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nitesh-cri-162282720-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"nitesh-cri-162282720-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/niupremongo-binary\",\r\n \"name\": \"niupremongo-binary\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-17T18:33:19.4974422Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://niupremongo-binary.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://niupremongo-binary.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"09fd3b3a-0243-4869-a86e-0c4f1c5b0611\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"niupremongo-binary-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://niupremongo-binary-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"niupremongo-binary-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://niupremongo-binary-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"niupremongo-binary-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://niupremongo-binary-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"niupremongo-binary-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/masi_rg/providers/Microsoft.DocumentDB/databaseAccounts/en20200424-computev2\",\r\n \"name\": \"en20200424-computev2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-06T19:53:49.7829084Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://en20200424-computev2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c6e61dcb-0c67-458b-9dca-3c56fb282bc8\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"en20200424-computev2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://en20200424-computev2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"en20200424-computev2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://en20200424-computev2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"en20200424-computev2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://en20200424-computev2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"en20200424-computev2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/prithvi-stage/providers/Microsoft.DocumentDB/databaseAccounts/oplogtest2\",\r\n \"name\": \"oplogtest2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-11T12:13:54.5405445Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://oplogtest2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"17ec5038-bea0-46a7-bfa1-9ce85ecc1eda\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"oplogtest2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://oplogtest2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"oplogtest2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://oplogtest2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"oplogtest2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://oplogtest2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"oplogtest2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/query-benchmark/providers/Microsoft.DocumentDB/databaseAccounts/querybenchmarkstore\",\r\n \"name\": \"querybenchmarkstore\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-15T21:53:13.504654Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://querybenchmarkstore.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a1abda38-5277-4e31-9c05-e5e9b9a2ffeb\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"querybenchmarkstore-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://querybenchmarkstore-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"querybenchmarkstore-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://querybenchmarkstore-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"querybenchmarkstore-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://querybenchmarkstore-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"querybenchmarkstore-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/rakkumastg/providers/Microsoft.DocumentDB/databaseAccounts/rakkumastage\",\r\n \"name\": \"rakkumastage\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-09-23T11:42:26.7049574Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://rakkumastage.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"b3c671fd-5cc6-4ddb-b464-f011c324f7d9\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"rakkumastage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://rakkumastage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"rakkumastage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://rakkumastage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"rakkumastage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://rakkumastage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"rakkumastage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/flnarenjrg/providers/Microsoft.DocumentDB/databaseAccounts/flnarenj-synstage2\",\r\n \"name\": \"flnarenj-synstage2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-13T23:53:46.2142904Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://flnarenj-synstage2.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://flnarenj-synstage2.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"be717800-dd03-4bc8-9863-866999be2867\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"flnarenj-synstage2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://flnarenj-synstage2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"flnarenj-synstage2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://flnarenj-synstage2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"flnarenj-synstage2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://flnarenj-synstage2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"flnarenj-synstage2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ramarag/providers/Microsoft.DocumentDB/databaseAccounts/ramarag\",\r\n \"name\": \"ramarag\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-09-25T20:56:59.7175445Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ramarag.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"8fe02f31-1c62-475c-8c6c-86f5fdaadad1\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ramarag-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ramarag-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ramarag-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ramarag-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ramarag-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ramarag-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ramarag-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac\",\r\n \"name\": \"rbac\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-09-18T21:54:51.8533697Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://rbac.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"4254c568-97a0-4f08-8b54-7fc8bd794635\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"rbac-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://rbac-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"rbac-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://rbac-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"rbac-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://rbac-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"rbac-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vivekrasignoff/providers/Microsoft.DocumentDB/databaseAccounts/cassstagesignoffeastus2\",\r\n \"name\": \"cassstagesignoffeastus2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-25T00:33:37.2822822Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cassstagesignoffeastus2.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://cassstagesignoffeastus2.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"1a4301e3-4c45-40df-bf7c-504a1cc018fe\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cassstagesignoffeastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cassstagesignoffeastus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cassstagesignoffeastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cassstagesignoffeastus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cassstagesignoffeastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cassstagesignoffeastus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cassstagesignoffeastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/akgoe-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/cdb-stage-eastus2-test\",\r\n \"name\": \"cdb-stage-eastus2-test\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-09-29T05:48:36.1149551Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cdb-stage-eastus2-test.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c70a0251-7071-4144-aafe-8dc60d23d2ce\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cdb-stage-eastus2-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cdb-stage-eastus2-test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cdb-stage-eastus2-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cdb-stage-eastus2-test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cdb-stage-eastus2-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cdb-stage-eastus2-test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cdb-stage-eastus2-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/sargupanatest1\",\r\n \"name\": \"sargupanatest1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-09-27T20:30:51.5034916Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sargupanatest1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"fb3a353e-2dcd-4d72-926c-26f373c07689\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sargupanatest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sargupanatest1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sargupanatest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sargupanatest1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"sargupanatest1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://sargupanatest1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sargupanatest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sargupanatest1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"sargupanatest1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://sargupanatest1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sargupanatest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"sargupanatest1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/gremlin-rg-stg-eastus/providers/Microsoft.DocumentDB/databaseAccounts/gremlineastus2test\",\r\n \"name\": \"gremlineastus2test\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Graph\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-11-08T21:44:49.1853709Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://gremlineastus2test.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://gremlineastus2test.gremlin.cosmosdb.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"90004d5d-336e-4fb5-85ad-08c4a6ac2c40\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"gremlineastus2test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://gremlineastus2test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"gremlineastus2test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://gremlineastus2test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"gremlineastus2test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://gremlineastus2test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"gremlineastus2test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/gremlin-staging-eastus2/providers/Microsoft.DocumentDB/databaseAccounts/gv2-stage-d32-noindex2\",\r\n \"name\": \"gv2-stage-d32-noindex2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlinv2\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-02T19:28:29.4449956Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://gv2-stage-d32-noindex2.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://gv2-stage-d32-noindex2.gremlin.cosmos.windows-ppe.net/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"GremlinV2\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"96876fe7-3e3f-483e-9cf2-ac00e1c9e9be\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"clusterInstanceCount\": 1,\r\n \"clusterSize\": \"Cosmos.Gremlin.D32s\"\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"gv2-stage-d32-noindex2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://gv2-stage-d32-noindex2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"gv2-stage-d32-noindex2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://gv2-stage-d32-noindex2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"gv2-stage-d32-noindex2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://gv2-stage-d32-noindex2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"gv2-stage-d32-noindex2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlinV2\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/harinic/providers/Microsoft.DocumentDB/databaseAccounts/harinictest2\",\r\n \"name\": \"harinictest2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-24T02:27:10.441255Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://harinictest2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"63bd6d18-ccda-4907-b7df-39d390fc4c73\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"harinictest2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://harinictest2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"harinictest2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://harinictest2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"harinictest2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://harinictest2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"harinictest2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://harinictest2-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"harinictest2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://harinictest2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"harinictest2-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"harinictest2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sdk-ci/providers/Microsoft.DocumentDB/databaseAccounts/java-async-gated\",\r\n \"name\": \"java-async-gated\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-02-21T19:25:30.0509953Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://java-async-gated.documents-staging.windows-ppe.net:443/\",\r\n \"sqlEndpoint\": \"https://java-async-gated.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d642aa15-7146-4d20-8ecc-699edf322846\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Strong\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"java-async-gated-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://java-async-gated-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"java-async-gated-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://java-async-gated-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"java-async-gated-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://java-async-gated-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"java-async-gated-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableSql\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ash/providers/Microsoft.DocumentDB/databaseAccounts/ash-gremlin-nb1\",\r\n \"name\": \"ash-gremlin-nb1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlin (graph)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-09-25T23:49:12.8054895Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ash-gremlin-nb1.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://ash-gremlin-nb1.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"e375c079-c747-48d5-a5cf-c31feadf3d01\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ash-gremlin-nb1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ash-gremlin-nb1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ash-gremlin-nb1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ash-gremlin-nb1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ash-gremlin-nb1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ash-gremlin-nb1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ash-gremlin-nb1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n },\r\n {\r\n \"name\": \"EnableNotebooks\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/temp/providers/Microsoft.DocumentDB/databaseAccounts/jawilleytest\",\r\n \"name\": \"jawilleytest\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-12-11T15:50:14.0771722Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://jawilleytest.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"695e5b7a-3079-483d-a777-0b8f80909433\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"jawilleytest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://jawilleytest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"jawilleytest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://jawilleytest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"jawilleytest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://jawilleytest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"jawilleytest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi/providers/Microsoft.DocumentDB/databaseAccounts/mekaushiautoscale\",\r\n \"name\": \"mekaushiautoscale\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-16T00:51:28.2318169Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mekaushiautoscale.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"5211b278-90c9-4a02-ade7-3683f29f9455\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mekaushiautoscale-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://mekaushiautoscale-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mekaushiautoscale-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://mekaushiautoscale-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"mekaushiautoscale-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mekaushiautoscale-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mekaushiautoscale-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://mekaushiautoscale-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"mekaushiautoscale-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mekaushiautoscale-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mekaushiautoscale-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"mekaushiautoscale-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001\",\r\n \"name\": \"db001\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-21T15:57:56.429452Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://db001.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"7b4a9c2b-142f-4d1a-af8d-431a47ca2fc6\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"db001-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db001-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"db001-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db001-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"db001-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db001-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"db001-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096\",\r\n \"name\": \"db4096\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlin (graph)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-21T19:00:24.1274508Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://db4096.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://db4096.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"1b62c2ca-a7e0-482b-82df-7e0b3293153e\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"db4096-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db4096-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"db4096-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db4096-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"db4096-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db4096-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"db4096-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sdk-ci/providers/Microsoft.DocumentDB/databaseAccounts/sdk-signoff-1\",\r\n \"name\": \"sdk-signoff-1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\",\r\n \"CreatedBy\": \"stfaul\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-06-26T21:34:35.0520648Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sdk-signoff-1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"56deb7e7-a99e-46ba-834c-32ecc3275dc6\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Strong\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sdk-signoff-1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sdk-signoff-1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sdk-signoff-1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sdk-signoff-1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sdk-signoff-1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sdk-signoff-1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sdk-signoff-1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/Devansh-Test_env/providers/Microsoft.DocumentDB/databaseAccounts/metric-consolidation\",\r\n \"name\": \"metric-consolidation\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-02-05T06:58:16.6826835Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://metric-consolidation.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"58f74bd5-ca84-4196-869e-40f00ad81595\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"metric-consolidation-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://metric-consolidation-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"metric-consolidation-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://metric-consolidation-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"metric-consolidation-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://metric-consolidation-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"metric-consolidation-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shmotlan/providers/Microsoft.DocumentDB/databaseAccounts/shan-0726-graph\",\r\n \"name\": \"shan-0726-graph\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlin (graph)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-07-26T20:37:17.2181605Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shan-0726-graph.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://shan-0726-graph.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c77c524f-a0bb-4f82-a32b-5ad8a91107c3\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shan-0726-graph-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-0726-graph-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shan-0726-graph-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-0726-graph-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shan-0726-graph-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-0726-graph-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shan-0726-graph-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sargup/providers/Microsoft.DocumentDB/databaseAccounts/deploytestsargup\",\r\n \"name\": \"deploytestsargup\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-10-24T22:01:36.0865157Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://deploytestsargup.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"92fdc07a-f203-4fe1-8373-166353694912\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"deploytestsargup-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://deploytestsargup-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"deploytestsargup-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://deploytestsargup-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"deploytestsargup-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://deploytestsargup-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"deploytestsargup-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://deploytestsargup-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"deploytestsargup-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://deploytestsargup-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"deploytestsargup-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"deploytestsargup-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi-test-mongo/providers/Microsoft.DocumentDB/databaseAccounts/mongoeastus2\",\r\n \"name\": \"mongoeastus2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-08-24T22:52:45.5027124Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongoeastus2.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://mongoeastus2.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c5e610a5-1d06-4f9a-bfe6-9a1095f7aeb3\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongoeastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongoeastus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongoeastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongoeastus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongoeastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongoeastus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongoeastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shmotlan/providers/Microsoft.DocumentDB/databaseAccounts/shan-cassandra-0823-signoff-2\",\r\n \"name\": \"shan-cassandra-0823-signoff-2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-08-24T00:07:24.1645804Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shan-cassandra-0823-signoff-2.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://shan-cassandra-0823-signoff-2.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"04f19782-bbab-4fe0-9304-2f125c332c3a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shan-cassandra-0823-signoff-2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-cassandra-0823-signoff-2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shan-cassandra-0823-signoff-2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-cassandra-0823-signoff-2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shan-cassandra-0823-signoff-2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-cassandra-0823-signoff-2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shan-cassandra-0823-signoff-2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/metaswitch/providers/Microsoft.DocumentDB/databaseAccounts/mswtest\",\r\n \"name\": \"mswtest\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-08-28T06:22:12.3626835Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mswtest.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://mswtest.cassandra.cosmosdb.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"8400d15a-2048-41f9-a62f-21c86736fe56\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mswtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mswtest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mswtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mswtest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mswtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mswtest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mswtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/nitesh-resource/providers/Microsoft.DocumentDB/databaseAccounts/nidudhey-cass\",\r\n \"name\": \"nidudhey-cass\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-02-28T09:18:09.0429064Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://nidudhey-cass.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://nidudhey-cass.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"407e7670-a19e-479c-b7a2-b3fb9d4f87b8\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"nidudhey-cass-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nidudhey-cass-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"nidudhey-cass-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nidudhey-cass-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"nidudhey-cass-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://nidudhey-cass-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"nidudhey-cass-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nidudhey-cass-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"nidudhey-cass-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://nidudhey-cass-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"nidudhey-cass-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"nidudhey-cass-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/nitesh-resource/providers/Microsoft.DocumentDB/databaseAccounts/nitesh-replicationrg\",\r\n \"name\": \"nitesh-replicationrg\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-08-24T12:58:24.9583816Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://nitesh-replicationrg.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"e432e360-efa5-46d7-9314-15d04579bc25\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"nitesh-replicationrg-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nitesh-replicationrg-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"nitesh-replicationrg-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nitesh-replicationrg-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"nitesh-replicationrg-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nitesh-replicationrg-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"nitesh-replicationrg-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/niupremongo0504\",\r\n \"name\": \"niupremongo0504\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-04T07:55:24.2997416Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://niupremongo0504.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://niupremongo0504.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"8f876d2b-b02c-4371-ba07-5495bdc452a0\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"niupremongo0504-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://niupremongo0504-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"niupremongo0504-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://niupremongo0504-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"niupremongo0504-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://niupremongo0504-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"niupremongo0504-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n },\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shmotlan/providers/Microsoft.DocumentDB/databaseAccounts/shan-sql-0823-signoff\",\r\n \"name\": \"shan-sql-0823-signoff\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-08-24T00:03:35.4578481Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shan-sql-0823-signoff.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"1539a26c-a7aa-4501-a7bd-7664ac00d735\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shan-sql-0823-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-sql-0823-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shan-sql-0823-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-sql-0823-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shan-sql-0823-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-sql-0823-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shan-sql-0823-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/QueryOracle/providers/Microsoft.DocumentDB/databaseAccounts/query-push-filters-to-index\",\r\n \"name\": \"query-push-filters-to-index\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-10-29T22:05:34.908529Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://query-push-filters-to-index.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"2dc87f81-3525-47f0-9351-43f2a2d8bf39\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"query-push-filters-to-index-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://query-push-filters-to-index-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"query-push-filters-to-index-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://query-push-filters-to-index-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"query-push-filters-to-index-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://query-push-filters-to-index-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"query-push-filters-to-index-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/masistagesignoff0915/providers/Microsoft.DocumentDB/databaseAccounts/queueburstingtest1\",\r\n \"name\": \"queueburstingtest1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-09-29T00:48:32.1465276Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://queueburstingtest1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"b201536f-9a28-4003-932e-ebe49c8671b7\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"queueburstingtest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://queueburstingtest1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"queueburstingtest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://queueburstingtest1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"queueburstingtest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://queueburstingtest1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"queueburstingtest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/rakkumastg/providers/Microsoft.DocumentDB/databaseAccounts/rakkumastgsql\",\r\n \"name\": \"rakkumastgsql\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-13T13:44:56.8683454Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://rakkumastgsql.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"9afe19a9-96cf-4277-8342-db3213d65aeb\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"rakkumastgsql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://rakkumastgsql-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"rakkumastgsql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://rakkumastgsql-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"rakkumastgsql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://rakkumastgsql-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"rakkumastgsql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/flnarenjrg/providers/Microsoft.DocumentDB/databaseAccounts/flnarenj-synstage4\",\r\n \"name\": \"flnarenj-synstage4\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-19T09:08:27.9319811Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://flnarenj-synstage4.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"341961c3-7571-4843-9dcb-abe818c65505\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"flnarenj-synstage4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://flnarenj-synstage4-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"flnarenj-synstage4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://flnarenj-synstage4-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"flnarenj-synstage4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://flnarenj-synstage4-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"flnarenj-synstage4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/bhavyasplittest-rg/providers/Microsoft.DocumentDB/databaseAccounts/ramaragsplit\",\r\n \"name\": \"ramaragsplit\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-12-17T23:44:29.6548378Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ramaragsplit.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"08518d5a-4444-4f29-bb91-d03b7a799180\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ramaragsplit-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ramaragsplit-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ramaragsplit-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ramaragsplit-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ramaragsplit-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ramaragsplit-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ramaragsplit-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [\r\n {\r\n \"allowedOrigins\": \"*\"\r\n }\r\n ],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/restoredaccountname9746\",\r\n \"name\": \"restoredaccountname9746\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-21T18:55:13.1687844Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://restoredaccountname9746.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d8974ca8-8f69-4924-9040-c10b7f30524b\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"restoredaccountname9746-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname9746-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"restoredaccountname9746-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname9746-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"restoredaccountname9746-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname9746-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"restoredaccountname9746-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/aca7d453-88a9-4bf2-8abc-46d21553638f\",\r\n \"restoreTimestampInUtc\": \"2020-07-21T18:22:33Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/roaror-test/providers/Microsoft.DocumentDB/databaseAccounts/roaror2\",\r\n \"name\": \"roaror2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-28T16:51:16.3920398Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://roaror2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"4e9f9731-357b-4493-9e94-c35f6c6f854a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"roaror2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://roaror2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"roaror2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://roaror2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"roaror2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://roaror2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"roaror2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shqintest/providers/Microsoft.DocumentDB/databaseAccounts/shqintestcassandrastage\",\r\n \"name\": \"shqintestcassandrastage\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-08T22:42:48.819926Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shqintestcassandrastage.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://shqintestcassandrastage.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"b61809f6-8dab-4049-afc0-b1736cdad905\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shqintestcassandrastage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shqintestcassandrastage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shqintestcassandrastage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shqintestcassandrastage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shqintestcassandrastage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shqintestcassandrastage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shqintestcassandrastage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n },\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/sargupparalleltest\",\r\n \"name\": \"sargupparalleltest\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-10-24T22:49:13.4965052Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sargupparalleltest.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"0bf3a922-f991-4ff4-8cb3-529982d1cf43\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sargupparalleltest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sargupparalleltest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sargupparalleltest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sargupparalleltest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sargupparalleltest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sargupparalleltest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sargupparalleltest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/akash-cassandra-northcentralus-resource/providers/Microsoft.DocumentDB/databaseAccounts/harsudantest3\",\r\n \"name\": \"harsudantest3\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-21T01:44:21.9612909Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://harsudantest3.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d0d5a759-3287-4c8a-92b2-3712e218013c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"harsudantest3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://harsudantest3-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"harsudantest3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://harsudantest3-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"harsudantest3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://harsudantest3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"harsudantest3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://harsudantest3-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"harsudantest3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://harsudantest3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"harsudantest3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"harsudantest3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shtan-stage-signoff/providers/Microsoft.DocumentDB/databaseAccounts/shtantestbackuphold\",\r\n \"name\": \"shtantestbackuphold\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-08-21T10:42:15.454682Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shtantestbackuphold.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"de8ef355-27ec-498d-bc5d-c90fccfae995\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shtantestbackuphold-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shtantestbackuphold-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shtantestbackuphold-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shtantestbackuphold-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shtantestbackuphold-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shtantestbackuphold-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shtantestbackuphold-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 120,\r\n \"backupRetentionIntervalInHours\": 9,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ragil/providers/Microsoft.DocumentDB/databaseAccounts/sql-pxf3ijdttumy4\",\r\n \"name\": \"sql-pxf3ijdttumy4\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-04-14T00:30:31.5476426Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sql-pxf3ijdttumy4.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"24ab0882-6575-45b8-b6b0-7e9764d668fd\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sql-pxf3ijdttumy4-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://sql-pxf3ijdttumy4-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sql-pxf3ijdttumy4-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://sql-pxf3ijdttumy4-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sql-pxf3ijdttumy4-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://sql-pxf3ijdttumy4-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sql-pxf3ijdttumy4-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sdk-ci/providers/Microsoft.DocumentDB/databaseAccounts/java-async-multimaster-signoff\",\r\n \"name\": \"java-async-multimaster-signoff\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-12-19T22:17:23.3548774Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://java-async-multimaster-signoff.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"2093368d-1a1c-45b3-a5c0-11f7e7306bb0\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"java-async-multimaster-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://java-async-multimaster-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"java-async-multimaster-signoff-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://java-async-multimaster-signoff-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"java-async-multimaster-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://java-async-multimaster-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"java-async-multimaster-signoff-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://java-async-multimaster-signoff-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"java-async-multimaster-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://java-async-multimaster-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"java-async-multimaster-signoff-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://java-async-multimaster-signoff-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"java-async-multimaster-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"java-async-multimaster-signoff-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 2\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi/providers/Microsoft.DocumentDB/databaseAccounts/mekaushimongomigrate\",\r\n \"name\": \"mekaushimongomigrate\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-12T21:48:52.5867438Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mekaushimongomigrate.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://mekaushimongomigrate.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"0e47abda-b44a-4251-a29c-46114b96285a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mekaushimongomigrate-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mekaushimongomigrate-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mekaushimongomigrate-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mekaushimongomigrate-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mekaushimongomigrate-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mekaushimongomigrate-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mekaushimongomigrate-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192\",\r\n \"name\": \"db8192\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-21T19:17:46.4039586Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://db8192.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://db8192.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"cc0bf75f-77f4-4742-a2ed-2673367c60cb\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"db8192-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db8192-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"db8192-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db8192-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"db8192-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db8192-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"db8192-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db1024\",\r\n \"name\": \"db1024\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-21T18:19:36.6085112Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://db1024.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"aca7d453-88a9-4bf2-8abc-46d21553638f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"db1024-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db1024-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"db1024-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db1024-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"db1024-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db1024-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"db1024-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/devansh-stage/providers/Microsoft.DocumentDB/databaseAccounts/metric-non-conso-w-purge\",\r\n \"name\": \"metric-non-conso-w-purge\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-02-12T08:06:10.5282339Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://metric-non-conso-w-purge.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"f6755f78-6ebf-4a20-8422-881d26f333a8\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"metric-non-conso-w-purge-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://metric-non-conso-w-purge-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"metric-non-conso-w-purge-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://metric-non-conso-w-purge-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"metric-non-conso-w-purge-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://metric-non-conso-w-purge-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"metric-non-conso-w-purge-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sdk-ci/providers/Microsoft.DocumentDB/databaseAccounts/sdk-signoff-2\",\r\n \"name\": \"sdk-signoff-2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-06-26T21:37:15.6859442Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sdk-signoff-2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"0daad281-b626-42d0-b0b0-8f389f3a2dd2\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Strong\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sdk-signoff-2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sdk-signoff-2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sdk-signoff-2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sdk-signoff-2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sdk-signoff-2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sdk-signoff-2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sdk-signoff-2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sargup/providers/Microsoft.DocumentDB/databaseAccounts/deploytestsargup-restored1108\",\r\n \"name\": \"deploytestsargup-restored1108\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"restoredSourceDatabaseAccountName\": \"deploytestsargup\",\r\n \"restoredAtTimestamp\": \"11/8/2019 10:52:44 PM\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-11-08T23:03:20.0550847Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://deploytestsargup-restored1108.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"98a90cd7-a5b2-4d70-9595-73963cb9a468\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"deploytestsargup-restored1108-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://deploytestsargup-restored1108-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"deploytestsargup-restored1108-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://deploytestsargup-restored1108-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"deploytestsargup-restored1108-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://deploytestsargup-restored1108-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"deploytestsargup-restored1108-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shmotlan/providers/Microsoft.DocumentDB/databaseAccounts/shan-0726-mongo\",\r\n \"name\": \"shan-0726-mongo\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-07-26T20:34:21.1059192Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shan-0726-mongo.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"b03d1acb-fd02-4e24-a6d1-a6c5c0a312b9\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shan-0726-mongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-0726-mongo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shan-0726-mongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-0726-mongo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shan-0726-mongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-0726-mongo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shan-0726-mongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shan/providers/Microsoft.DocumentDB/databaseAccounts/shan-cassandra-staging\",\r\n \"name\": \"shan-cassandra-staging\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-11T19:57:46.884473Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shan-cassandra-staging.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://shan-cassandra-staging.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"7f26ea69-e512-4c45-834f-a2c719b06b9d\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shan-cassandra-staging-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-cassandra-staging-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shan-cassandra-staging-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-cassandra-staging-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shan-cassandra-staging-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-cassandra-staging-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shan-cassandra-staging-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [\r\n {\r\n \"allowedOrigins\": \"*\"\r\n }\r\n ],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/computev2stagerg/providers/Microsoft.DocumentDB/databaseAccounts/stagecomputev2db\",\r\n \"name\": \"stagecomputev2db\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-03-02T20:45:44.4896421Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://stagecomputev2db.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"ab476b3b-8c9a-40ab-95cd-2f91f2566a82\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"stagecomputev2db-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stagecomputev2db-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"stagecomputev2db-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stagecomputev2db-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"stagecomputev2db-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stagecomputev2db-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"stagecomputev2db-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/nichatur/providers/Microsoft.DocumentDB/databaseAccounts/nihctaur-rbac\",\r\n \"name\": \"nihctaur-rbac\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"Owner\": \"nichatur\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-09-02T00:21:32.8962997Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://nihctaur-rbac.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d26c1a58-4dc4-4be2-9480-1539d4881c32\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"nihctaur-rbac-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nihctaur-rbac-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"nihctaur-rbac-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nihctaur-rbac-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"nihctaur-rbac-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nihctaur-rbac-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"nihctaur-rbac-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/niupremongo\",\r\n \"name\": \"niupremongo\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-01T22:34:09.7809699Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://niupremongo.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://niupremongo.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"57954b69-7623-4abf-bd0e-c68093d01158\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"niupremongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://niupremongo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"niupremongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://niupremongo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"niupremongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://niupremongo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"niupremongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n },\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ramarag/providers/Microsoft.DocumentDB/databaseAccounts/stagenotebook\",\r\n \"name\": \"stagenotebook\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-12-06T23:58:05.0813897Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://stagenotebook.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"0f49adfc-7109-41e2-b141-28759b2bfe0f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"stagenotebook-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stagenotebook-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"stagenotebook-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stagenotebook-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"stagenotebook-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stagenotebook-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"stagenotebook-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shan/providers/Microsoft.DocumentDB/databaseAccounts/shan-stage-sql\",\r\n \"name\": \"shan-stage-sql\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-04-28T22:46:53.8467651Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shan-stage-sql.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"14605a70-8cc5-465f-b5d1-f31dce6dc7d3\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shan-stage-sql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-stage-sql-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shan-stage-sql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-stage-sql-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shan-stage-sql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-stage-sql-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shan-stage-sql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sukans/providers/Microsoft.DocumentDB/databaseAccounts/sukans-noownerid2\",\r\n \"name\": \"sukans-noownerid2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-04-13T03:35:33.6371883Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sukans-noownerid2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"b159c550-afa1-4280-951f-1786695c9531\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sukans-noownerid2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sukans-noownerid2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sukans-noownerid2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sukans-noownerid2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sukans-noownerid2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sukans-noownerid2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sukans-noownerid2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/akgoe-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/svless-akgoe-loadtest\",\r\n \"name\": \"svless-akgoe-loadtest\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-09-11T00:20:04.6458198Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://svless-akgoe-loadtest.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"bdd6badb-8888-48ef-9a5f-85a1c3f468b1\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"svless-akgoe-loadtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://svless-akgoe-loadtest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"svless-akgoe-loadtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://svless-akgoe-loadtest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"svless-akgoe-loadtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://svless-akgoe-loadtest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"svless-akgoe-loadtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableServerless\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/flnarenjrg/providers/Microsoft.DocumentDB/databaseAccounts/flnarenj-synstg\",\r\n \"name\": \"flnarenj-synstg\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-13T03:10:52.9843818Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://flnarenj-synstg.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"166aa099-e587-44d5-acdf-1fd5cce4bd6f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"flnarenj-synstg-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://flnarenj-synstg-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"flnarenj-synstg-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://flnarenj-synstg-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"flnarenj-synstg-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://flnarenj-synstg-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"flnarenj-synstg-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ramarag/providers/Microsoft.DocumentDB/databaseAccounts/ramaragtest\",\r\n \"name\": \"ramaragtest\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-09-07T01:44:15.0714222Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ramaragtest.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"81c1c70c-0f23-4c74-aa9a-32c5fbbf7949\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ramaragtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ramaragtest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ramaragtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ramaragtest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ramaragtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ramaragtest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ramaragtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sahurd/providers/Microsoft.DocumentDB/databaseAccounts/sahurd-add\",\r\n \"name\": \"sahurd-add\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-20T23:50:06.809231Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sahurd-add.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"bc07ccb2-e90c-46a7-9e6b-ce5461455a4c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sahurd-add-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sahurd-add-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sahurd-add-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sahurd-add-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"sahurd-add-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://sahurd-add-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sahurd-add-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sahurd-add-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"sahurd-add-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://sahurd-add-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sahurd-add-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"sahurd-add-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shreystagetest/providers/Microsoft.DocumentDB/databaseAccounts/shreyeast\",\r\n \"name\": \"shreyeast\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-26T19:01:55.5386899Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shreyeast.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"b80fbcbf-b8a8-44f5-84c4-408669f2c8f3\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shreyeast-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shreyeast-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shreyeast-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shreyeast-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shreyeast-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shreyeast-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shreyeast-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/abinav_stage_rg/providers/Microsoft.DocumentDB/databaseAccounts/sarguptestdup\",\r\n \"name\": \"sarguptestdup\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-10-24T18:14:24.8352176Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sarguptestdup.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"7c2df87b-f0dd-464f-b0d6-00e1a1626bc6\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sarguptestdup-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sarguptestdup-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sarguptestdup-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sarguptestdup-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"sarguptestdup-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://sarguptestdup-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sarguptestdup-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sarguptestdup-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"sarguptestdup-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://sarguptestdup-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sarguptestdup-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"sarguptestdup-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 5,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shtan-stage-signoff/providers/Microsoft.DocumentDB/databaseAccounts/shtantestbackuphold-r1\",\r\n \"name\": \"shtantestbackuphold-r1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\",\r\n \"restoredSourceDatabaseAccountName\": \"shtantestbackuphold\",\r\n \"restoredAtTimestamp\": \"8/21/2020 4:22:32 PM\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-08-21T16:28:47.888126Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shtantestbackuphold-r1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"3f41e8de-31f3-4048-b6b7-ef06c0cc9c71\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shtantestbackuphold-r1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shtantestbackuphold-r1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shtantestbackuphold-r1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shtantestbackuphold-r1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shtantestbackuphold-r1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shtantestbackuphold-r1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shtantestbackuphold-r1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations//restorableDatabaseAccounts/\",\r\n \"restoreTimestampInUtc\": \"2020-08-21T16:22:25Z\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sdk-ci/providers/Microsoft.DocumentDB/databaseAccounts/java-async-multimaster-signoff-2\",\r\n \"name\": \"java-async-multimaster-signoff-2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-27T00:37:01.9141202Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://java-async-multimaster-signoff-2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"0e85eb36-3428-4e0f-a381-b236d310408b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"java-async-multimaster-signoff-2-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://java-async-multimaster-signoff-2-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"java-async-multimaster-signoff-2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://java-async-multimaster-signoff-2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"java-async-multimaster-signoff-2-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://java-async-multimaster-signoff-2-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"java-async-multimaster-signoff-2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://java-async-multimaster-signoff-2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"java-async-multimaster-signoff-2-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://java-async-multimaster-signoff-2-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"java-async-multimaster-signoff-2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://java-async-multimaster-signoff-2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"java-async-multimaster-signoff-2-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"java-async-multimaster-signoff-2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/srnara-signoff/providers/Microsoft.DocumentDB/databaseAccounts/srnara-signoff\",\r\n \"name\": \"srnara-signoff\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-09-24T21:18:49.2688221Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://srnara-signoff.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c47fbbe5-0ad5-441b-8d83-3c110cf6d38d\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"ConsistentPrefix\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"srnara-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://srnara-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"srnara-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://srnara-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"srnara-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://srnara-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"srnara-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi/providers/Microsoft.DocumentDB/databaseAccounts/table-yid5img5ochq6\",\r\n \"name\": \"table-yid5img5ochq6\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-16T01:36:14.9005044Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://table-yid5img5ochq6.documents-staging.windows-ppe.net:443/\",\r\n \"tableEndpoint\": \"https://table-yid5img5ochq6.table.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Table, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"3d7ea172-3b18-4dd2-bb15-a32b0f446d1b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"table-yid5img5ochq6-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://table-yid5img5ochq6-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"table-yid5img5ochq6-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://table-yid5img5ochq6-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"table-yid5img5ochq6-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://table-yid5img5ochq6-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"table-yid5img5ochq6-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://table-yid5img5ochq6-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"table-yid5img5ochq6-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://table-yid5img5ochq6-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"table-yid5img5ochq6-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"table-yid5img5ochq6-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableTable\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/tamitta/providers/Microsoft.DocumentDB/databaseAccounts/tamitta-stage-mongo-36\",\r\n \"name\": \"tamitta-stage-mongo-36\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-24T18:10:52.2983364Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://tamitta-stage-mongo-36.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://tamitta-stage-mongo-36.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"635d469b-0dfa-49d6-bd0f-c77969134ac1\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"tamitta-stage-mongo-36-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tamitta-stage-mongo-36-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"tamitta-stage-mongo-36-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tamitta-stage-mongo-36-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"tamitta-stage-mongo-36-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tamitta-stage-mongo-36-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"tamitta-stage-mongo-36-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ash/providers/Microsoft.DocumentDB/databaseAccounts/test-table-df\",\r\n \"name\": \"test-table-df\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Table\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-06-07T00:35:59.9666094Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test-table-df.documents-staging.windows-ppe.net:443/\",\r\n \"tableEndpoint\": \"https://test-table-df.table.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Table, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a8ee5685-175e-47c6-89ba-e0f1fa5b2ce8\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 86400,\r\n \"maxStalenessPrefix\": 1000000\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test-table-df-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://test-table-df-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test-table-df-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://test-table-df-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test-table-df-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://test-table-df-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test-table-df-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableTable\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sdk-ci/providers/Microsoft.DocumentDB/databaseAccounts/sdk-signoff-3\",\r\n \"name\": \"sdk-signoff-3\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-11-09T03:54:04.1095174Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sdk-signoff-3.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"b17b8cfe-0aef-46ab-8803-b0ca14e33c5a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Strong\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sdk-signoff-3-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://sdk-signoff-3-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sdk-signoff-3-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://sdk-signoff-3-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sdk-signoff-3-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://sdk-signoff-3-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sdk-signoff-3-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/mohybridrow\",\r\n \"name\": \"mohybridrow\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-10-01T17:27:04.1532322Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mohybridrow.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"3b985a3b-924e-4549-b67f-86016e527943\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mohybridrow-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mohybridrow-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mohybridrow-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mohybridrow-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mohybridrow-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mohybridrow-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mohybridrow-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shmotlan/providers/Microsoft.DocumentDB/databaseAccounts/shan-0726-sql\",\r\n \"name\": \"shan-0726-sql\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-07-26T20:33:35.3418069Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shan-0726-sql.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"1f87ac1e-09cc-4c40-a036-a0382b64b834\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shan-0726-sql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-0726-sql-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shan-0726-sql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-0726-sql-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shan-0726-sql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-0726-sql-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shan-0726-sql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [\r\n {\r\n \"allowedOrigins\": \"https://localhost\"\r\n }\r\n ],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/testazsharath/providers/Microsoft.DocumentDB/databaseAccounts/testaz430\",\r\n \"name\": \"testaz430\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-04-30T22:23:00.435721Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testaz430.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"58128aa2-1b70-4196-8a09-d28f0ff1455a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testaz430-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testaz430-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testaz430-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testaz430-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testaz430-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testaz430-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testaz430-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shmotlan/providers/Microsoft.DocumentDB/databaseAccounts/shan-graph-0823-signoff\",\r\n \"name\": \"shan-graph-0823-signoff\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlin (graph)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-08-24T00:07:20.7266733Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shan-graph-0823-signoff.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://shan-graph-0823-signoff.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"ed1f0782-a5ff-48c4-93b1-547f20b0dec8\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shan-graph-0823-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-graph-0823-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shan-graph-0823-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-graph-0823-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shan-graph-0823-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-graph-0823-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shan-graph-0823-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/nitesh-resource/providers/Microsoft.DocumentDB/databaseAccounts/nitesh-408\",\r\n \"name\": \"nitesh-408\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-02-28T09:47:48.7887582Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://nitesh-408.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"917bc598-0994-4fb6-839e-b94ac49c3b3f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"nitesh-408-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nitesh-408-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"nitesh-408-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nitesh-408-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"nitesh-408-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nitesh-408-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"nitesh-408-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/computev2stagerg/providers/Microsoft.DocumentDB/databaseAccounts/stagecomputev2dbtestop\",\r\n \"name\": \"stagecomputev2dbtestop\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-03-03T23:10:09.1509165Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://stagecomputev2dbtestop.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"f4d464d2-912f-4bdd-859f-932bc8599706\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"stagecomputev2dbtestop-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stagecomputev2dbtestop-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"stagecomputev2dbtestop-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stagecomputev2dbtestop-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"stagecomputev2dbtestop-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stagecomputev2dbtestop-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"stagecomputev2dbtestop-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sargup/providers/Microsoft.DocumentDB/databaseAccounts/testazeus\",\r\n \"name\": \"testazeus\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-11-07T18:19:12.3222597Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testazeus.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"8c804e81-41c9-4065-96d7-1c9ea2223cd9\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testazeus-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testazeus-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testazeus-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testazeus-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testazeus-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testazeus-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testazeus-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/test2/providers/Microsoft.DocumentDB/databaseAccounts/testps1\",\r\n \"name\": \"testps1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-06-26T04:15:27.7406505Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testps1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"3b69fbb4-3621-437f-83e9-8d503c1bd65f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testps1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testps1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testps1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testps1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testps1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testps1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testps1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/supattip_stage_rg/providers/Microsoft.DocumentDB/databaseAccounts/supattip-stage\",\r\n \"name\": \"supattip-stage\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-03-05T00:21:05.1429461Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://supattip-stage.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"bd3cd2c8-fd72-428b-910d-4aac1bbe47da\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"supattip-stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://supattip-stage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"supattip-stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://supattip-stage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"supattip-stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://supattip-stage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"supattip-stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shmotlan/providers/Microsoft.DocumentDB/databaseAccounts/shan-table-0823-signoff\",\r\n \"name\": \"shan-table-0823-signoff\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Table\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-08-24T00:06:44.1519716Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shan-table-0823-signoff.documents-staging.windows-ppe.net:443/\",\r\n \"tableEndpoint\": \"https://shan-table-0823-signoff.table.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Table, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"9a090f1e-ff8e-48df-a322-f2ec18bbff47\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 86400,\r\n \"maxStalenessPrefix\": 1000000\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shan-table-0823-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-table-0823-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shan-table-0823-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-table-0823-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shan-table-0823-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-table-0823-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shan-table-0823-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableTable\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/test-rg/providers/Microsoft.DocumentDB/databaseAccounts/testsanalytics\",\r\n \"name\": \"testsanalytics\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"DocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-10-14T21:39:30.589338Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testsanalytics.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"6adf7139-5e0f-4396-b03d-ea81acfc9280\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testsanalytics-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testsanalytics-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testsanalytics-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testsanalytics-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"testsanalytics-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testsanalytics-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testsanalytics-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testsanalytics-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"testsanalytics-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testsanalytics-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testsanalytics-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"testsanalytics-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 30,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/testshbyok/providers/Microsoft.DocumentDB/databaseAccounts/testshbyokstg90\",\r\n \"name\": \"testshbyokstg90\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-04T00:29:16.8493171Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testshbyokstg90.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"3ba2b178-2aa6-4c16-a663-a597c14e7267\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"keyVaultKeyUri\": \"https://testshkv3.vault.azure.net/keys/key2\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testshbyokstg90-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshbyokstg90-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testshbyokstg90-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshbyokstg90-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testshbyokstg90-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshbyokstg90-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testshbyokstg90-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/test2/providers/Microsoft.DocumentDB/databaseAccounts/testshgen\",\r\n \"name\": \"testshgen\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-07-02T22:28:27.8284219Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testshgen.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"ca9b9214-23fe-4f35-b794-df849f0d1620\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testshgen-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshgen-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testshgen-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshgen-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testshgen-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshgen-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testshgen-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/backup-restore/providers/Microsoft.DocumentDB/databaseAccounts/shtan-backup-hold2\",\r\n \"name\": \"shtan-backup-hold2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"restoredSourceDatabaseAccountName\": \"stage-validation-source\",\r\n \"restoredAtTimestamp\": \"8/21/2020 2:45:27 AM\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-08-21T03:01:31.9431834Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shtan-backup-hold2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"7e3c9c1f-07f7-4912-a390-ceeecb100ccf\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shtan-backup-hold2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shtan-backup-hold2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shtan-backup-hold2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shtan-backup-hold2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shtan-backup-hold2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shtan-backup-hold2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shtan-backup-hold2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations//restorableDatabaseAccounts/\",\r\n \"restoreTimestampInUtc\": \"2020-08-21T02:45:16Z\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sdk-ci/providers/Microsoft.DocumentDB/databaseAccounts/sdk-replication-test\",\r\n \"name\": \"sdk-replication-test\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-07-05T20:29:31.4612005Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sdk-replication-test.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"190b08bf-f254-47bc-a694-508a760db9bc\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Strong\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sdk-replication-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sdk-replication-test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sdk-replication-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sdk-replication-test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sdk-replication-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sdk-replication-test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sdk-replication-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/analytics/providers/Microsoft.DocumentDB/databaseAccounts/shthekkatestacc1\",\r\n \"name\": \"shthekkatestacc1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-16T19:35:59.1935283Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shthekkatestacc1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"64abdab4-b87c-4989-8fff-4c1c6d8ba31e\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shthekkatestacc1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shthekkatestacc1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shthekkatestacc1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shthekkatestacc1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"shthekkatestacc1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shthekkatestacc1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shthekkatestacc1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://shthekkatestacc1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"shthekkatestacc1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shthekkatestacc1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shthekkatestacc1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"shthekkatestacc1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sdk-ci/providers/Microsoft.DocumentDB/databaseAccounts/java-async-signoff\",\r\n \"name\": \"java-async-signoff\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-12-19T22:18:34.793944Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://java-async-signoff.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"849ff8e0-a55c-4a24-a8e0-d4d1f6ab9d27\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Strong\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"java-async-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://java-async-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"java-async-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://java-async-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"java-async-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://java-async-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"java-async-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/srpalive-cassandra-rg/providers/Microsoft.DocumentDB/databaseAccounts/srpalive-stage-cassandra\",\r\n \"name\": \"srpalive-stage-cassandra\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-09-14T19:17:24.9383024Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://srpalive-stage-cassandra.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://srpalive-stage-cassandra.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"35e82c7b-0f83-4e77-bf8e-d4f7c91cfbe6\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"srpalive-stage-cassandra-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://srpalive-stage-cassandra-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"srpalive-stage-cassandra-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://srpalive-stage-cassandra-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"srpalive-stage-cassandra-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://srpalive-stage-cassandra-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"srpalive-stage-cassandra-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/roaror-test/providers/Microsoft.DocumentDB/databaseAccounts/stage-signoff-cv2\",\r\n \"name\": \"stage-signoff-cv2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-25T21:51:56.6359245Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://stage-signoff-cv2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"7245fa3d-08d2-4951-9c3a-f9cb1e788311\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"stage-signoff-cv2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-signoff-cv2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"stage-signoff-cv2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-signoff-cv2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"stage-signoff-cv2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-signoff-cv2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"stage-signoff-cv2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/backup-restore/providers/Microsoft.DocumentDB/databaseAccounts/stage-pitr-validation-source\",\r\n \"name\": \"stage-pitr-validation-source\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-08-13T23:51:15.7044411Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://stage-pitr-validation-source.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a54115d5-4356-4771-b7b0-20f475ce5a38\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"stage-pitr-validation-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-pitr-validation-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"stage-pitr-validation-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-pitr-validation-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"stage-pitr-validation-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://stage-pitr-validation-source-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"stage-pitr-validation-source-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://stage-pitr-validation-source-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"stage-pitr-validation-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-pitr-validation-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"stage-pitr-validation-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://stage-pitr-validation-source-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"stage-pitr-validation-source-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://stage-pitr-validation-source-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"stage-pitr-validation-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"stage-pitr-validation-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n },\r\n {\r\n \"id\": \"stage-pitr-validation-source-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 2\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/test-virangai-cont123\",\r\n \"name\": \"test-virangai-cont123\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-08-05T20:32:26.996202Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test-virangai-cont123.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"bb3e3c48-18d8-46e8-b294-41d9406885c5\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test-virangai-cont123-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://test-virangai-cont123-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test-virangai-cont123-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://test-virangai-cont123-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test-virangai-cont123-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://test-virangai-cont123-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test-virangai-cont123-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/17783e6d-0e28-41e2-b086-9d17763f1d51\",\r\n \"restoreTimestampInUtc\": \"2020-08-05T20:17:47.66Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sdk-ci/providers/Microsoft.DocumentDB/databaseAccounts/sdk-signoff-4\",\r\n \"name\": \"sdk-signoff-4\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-26T21:27:51.8781208Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sdk-signoff-4.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c088144f-eb9c-496a-91ae-36ac38c5c7f1\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Strong\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sdk-signoff-4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sdk-signoff-4-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sdk-signoff-4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sdk-signoff-4-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sdk-signoff-4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sdk-signoff-4-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sdk-signoff-4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/testshbyok/providers/Microsoft.DocumentDB/databaseAccounts/testslestg1\",\r\n \"name\": \"testslestg1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-07T06:24:58.3661081Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testslestg1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"59539dd3-084c-49e7-99a7-69ef9d70249c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testslestg1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testslestg1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testslestg1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testslestg1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testslestg1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testslestg1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testslestg1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableServerless\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shmotlan/providers/Microsoft.DocumentDB/databaseAccounts/shan-0726-table\",\r\n \"name\": \"shan-0726-table\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Table\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-07-26T20:36:43.7104962Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shan-0726-table.documents-staging.windows-ppe.net:443/\",\r\n \"tableEndpoint\": \"https://shan-0726-table.table.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Table, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"59ddffb8-6900-47e7-bd37-664aa84ee92a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 86400,\r\n \"maxStalenessPrefix\": 1000000\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shan-0726-table-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-0726-table-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shan-0726-table-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-0726-table-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shan-0726-table-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-0726-table-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shan-0726-table-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableTable\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shmotlan/providers/Microsoft.DocumentDB/databaseAccounts/shan-mongo-0823-signoff\",\r\n \"name\": \"shan-mongo-0823-signoff\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-08-24T00:04:42.9422316Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shan-mongo-0823-signoff.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://shan-mongo-0823-signoff.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"70980066-47c7-43ba-8343-a1e645417dc1\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shan-mongo-0823-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-mongo-0823-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shan-mongo-0823-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-mongo-0823-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shan-mongo-0823-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-mongo-0823-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shan-mongo-0823-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/tpcdsmongo/providers/Microsoft.DocumentDB/databaseAccounts/tpcdsbenchmark\",\r\n \"name\": \"tpcdsbenchmark\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-16T22:23:23.5848066Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://tpcdsbenchmark.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://tpcdsbenchmark.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c06b7af8-c274-4642-a329-192c864422e1\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"tpcdsbenchmark-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tpcdsbenchmark-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"tpcdsbenchmark-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tpcdsbenchmark-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"tpcdsbenchmark-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tpcdsbenchmark-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"tpcdsbenchmark-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vimeng-rg/providers/Microsoft.DocumentDB/databaseAccounts/vimeng-stage-cass-nb\",\r\n \"name\": \"vimeng-stage-cass-nb\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-03-05T00:19:21.5373582Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://vimeng-stage-cass-nb.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://vimeng-stage-cass-nb.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"ef4bbb82-0eff-4861-bfe6-ab61688257d2\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"vimeng-stage-cass-nb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vimeng-stage-cass-nb-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"vimeng-stage-cass-nb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vimeng-stage-cass-nb-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"vimeng-stage-cass-nb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vimeng-stage-cass-nb-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"vimeng-stage-cass-nb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n },\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/test-rg/providers/Microsoft.DocumentDB/databaseAccounts/testkeksh1014\",\r\n \"name\": \"testkeksh1014\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"DocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-10-14T22:57:10.7535281Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testkeksh1014.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"1a0617f8-e4aa-4202-856f-7a3742de2fde\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testkeksh1014-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testkeksh1014-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testkeksh1014-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testkeksh1014-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testkeksh1014-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testkeksh1014-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testkeksh1014-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 30,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vivekrastage/providers/Microsoft.DocumentDB/databaseAccounts/vivekrastagesignoffeu2\",\r\n \"name\": \"vivekrastagesignoffeu2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-01-28T19:55:21.6550449Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://vivekrastagesignoffeu2.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://vivekrastagesignoffeu2.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c8629ee6-86f5-49f3-a222-b6c6622be2d5\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"vivekrastagesignoffeu2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vivekrastagesignoffeu2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"vivekrastagesignoffeu2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vivekrastagesignoffeu2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"vivekrastagesignoffeu2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vivekrastagesignoffeu2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"vivekrastagesignoffeu2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n },\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/rg-20190523t2055476364/providers/Microsoft.DocumentDB/databaseAccounts/sv-20190523t2055476364-restored1\",\r\n \"name\": \"sv-20190523t2055476364-restored1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"restoredSourceDatabaseAccountName\": \"sv-20190523t2055476364\",\r\n \"restoredAtTimestamp\": \"5/24/2019 4:34:37 AM\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-05-24T05:00:26.8477667Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sv-20190523t2055476364-restored1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"51d0487f-3e77-40c4-9a8c-341b1049c243\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sv-20190523t2055476364-restored1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sv-20190523t2055476364-restored1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sv-20190523t2055476364-restored1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sv-20190523t2055476364-restored1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sv-20190523t2055476364-restored1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sv-20190523t2055476364-restored1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sv-20190523t2055476364-restored1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 5,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/test-rg/providers/Microsoft.DocumentDB/databaseAccounts/testsanalytics1018\",\r\n \"name\": \"testsanalytics1018\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"DocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-10-19T00:06:26.5707715Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testsanalytics1018.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"68561ebe-3527-4cd6-991d-ce3e4c72abd9\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testsanalytics1018-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testsanalytics1018-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testsanalytics1018-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testsanalytics1018-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"testsanalytics1018-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testsanalytics1018-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testsanalytics1018-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testsanalytics1018-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"testsanalytics1018-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testsanalytics1018-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testsanalytics1018-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"testsanalytics1018-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 30,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/test2/providers/Microsoft.DocumentDB/databaseAccounts/testshmongo1\",\r\n \"name\": \"testshmongo1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-07-02T22:18:56.4985682Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testshmongo1.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://testshmongo1.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"ce82def7-d23d-4d8a-b4f0-e14955eca281\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testshmongo1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshmongo1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testshmongo1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshmongo1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testshmongo1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshmongo1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testshmongo1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shan/providers/Microsoft.DocumentDB/databaseAccounts/stage-test-0408\",\r\n \"name\": \"stage-test-0408\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"$type\": \"Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary, Microsoft.WindowsAzure.Management.Common.Storage\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-04-08T20:42:00.525745Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://stage-test-0408.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c3e831f3-fa1e-4634-99c1-8e04ae92a998\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"stage-test-0408-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-test-0408-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"stage-test-0408-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-test-0408-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"stage-test-0408-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-test-0408-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"stage-test-0408-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/testshbyok/providers/Microsoft.DocumentDB/databaseAccounts/testshref4\",\r\n \"name\": \"testshref4\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-08-14T02:01:53.1320728Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testshref4.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c2521bc1-b5e6-4dd4-9a6d-645694b94b47\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"keyVaultKeyUri\": \"https://testshtest1.vault.azure.net/keys/key2\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testshref4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshref4-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testshref4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshref4-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testshref4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshref4-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testshref4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/testshbyok/providers/Microsoft.DocumentDB/databaseAccounts/testshstgbyok15\",\r\n \"name\": \"testshstgbyok15\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-03T21:20:25.7881457Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testshstgbyok15.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"e56d849a-d674-4bf2-9bab-21dfaee94990\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"keyVaultKeyUri\": \"https://testshkv3.vault.azure.net/keys/key2\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testshstgbyok15-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshstgbyok15-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testshstgbyok15-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshstgbyok15-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testshstgbyok15-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshstgbyok15-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testshstgbyok15-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/test1/providers/Microsoft.DocumentDB/databaseAccounts/test897\",\r\n \"name\": \"test897\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Graph\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-09-18T22:37:23.5451688Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test897.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://test897.gremlin.cosmosdb.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"3854c12f-7eed-4879-be1f-f8f6139e333d\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test897-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://test897-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test897-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://test897-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test897-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://test897-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test897-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/SelviTest-RG/providers/Microsoft.DocumentDB/databaseAccounts/selvitest-account\",\r\n \"name\": \"selvitest-account\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-23T16:18:42.3547114Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://selvitest-account.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"55083b96-b985-4dec-92df-fa0ac98443f1\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"selvitest-account-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://selvitest-account-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"selvitest-account-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://selvitest-account-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"selvitest-account-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://selvitest-account-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"selvitest-account-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/testshbyok/providers/Microsoft.DocumentDB/databaseAccounts/testslestg2\",\r\n \"name\": \"testslestg2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-07T06:28:37.7623765Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testslestg2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d6631534-fb41-46b2-9aac-e0927350a2b3\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testslestg2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testslestg2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testslestg2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testslestg2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testslestg2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testslestg2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testslestg2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableServerless\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/tli-test-byok/providers/Microsoft.DocumentDB/databaseAccounts/tli-test-byok5\",\r\n \"name\": \"tli-test-byok5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-17T03:11:25.1931086Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://tli-test-byok5.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"996037c1-980b-4b97-9b18-d4475aa3248e\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"keyVaultKeyUri\": \"https://liliang-test-byok.vault.azure.net/keys/test-byok\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"tli-test-byok5-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tli-test-byok5-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"tli-test-byok5-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tli-test-byok5-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"tli-test-byok5-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tli-test-byok5-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"tli-test-byok5-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/tracevalidation/providers/Microsoft.DocumentDB/databaseAccounts/tracevalidation-sql\",\r\n \"name\": \"tracevalidation-sql\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-11-14T21:53:36.8247307Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://tracevalidation-sql.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d3d5336f-6ab9-4c37-a4d2-4823bcc3ce48\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"tracevalidation-sql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tracevalidation-sql-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"tracevalidation-sql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tracevalidation-sql-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"tracevalidation-sql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tracevalidation-sql-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"tracevalidation-sql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vimeng-rg/providers/Microsoft.DocumentDB/databaseAccounts/vimeng-stage-mongo-nb\",\r\n \"name\": \"vimeng-stage-mongo-nb\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-03-12T02:05:58.7859019Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://vimeng-stage-mongo-nb.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://vimeng-stage-mongo-nb.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"50e8eb52-9ea0-4653-a980-d53d99f49ccd\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"vimeng-stage-mongo-nb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vimeng-stage-mongo-nb-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"vimeng-stage-mongo-nb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vimeng-stage-mongo-nb-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"vimeng-stage-mongo-nb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vimeng-stage-mongo-nb-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"vimeng-stage-mongo-nb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n },\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/test-rg/providers/Microsoft.DocumentDB/databaseAccounts/testkeksh1015\",\r\n \"name\": \"testkeksh1015\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"DocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-10-14T23:16:33.7595767Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testkeksh1015.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"2bc211e1-a170-431a-8fbb-1f5c61ee0733\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testkeksh1015-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testkeksh1015-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testkeksh1015-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testkeksh1015-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testkeksh1015-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testkeksh1015-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testkeksh1015-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 30,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/walgreens/providers/Microsoft.DocumentDB/databaseAccounts/walgreens-rbac\",\r\n \"name\": \"walgreens-rbac\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-01T02:05:51.5990661Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://walgreens-rbac.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"219b590d-bcc0-4b58-874c-36863e6b1bad\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"walgreens-rbac-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://walgreens-rbac-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"walgreens-rbac-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://walgreens-rbac-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"walgreens-rbac-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://walgreens-rbac-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"walgreens-rbac-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/test-rg/providers/Microsoft.DocumentDB/databaseAccounts/testsanalyticsnew\",\r\n \"name\": \"testsanalyticsnew\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"DocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-10-18T23:17:09.3676833Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testsanalyticsnew.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"1d3b3900-22ed-49e2-bc70-58835ebf851f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testsanalyticsnew-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testsanalyticsnew-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testsanalyticsnew-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testsanalyticsnew-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"testsanalyticsnew-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testsanalyticsnew-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testsanalyticsnew-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testsanalyticsnew-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"testsanalyticsnew-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testsanalyticsnew-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testsanalyticsnew-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"testsanalyticsnew-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 30,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/test2/providers/Microsoft.DocumentDB/databaseAccounts/testshmongo2\",\r\n \"name\": \"testshmongo2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-07-02T22:23:04.5154649Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testshmongo2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c2e4d99b-fabd-4419-95ec-b4f2ee29b393\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testshmongo2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshmongo2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testshmongo2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshmongo2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testshmongo2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshmongo2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testshmongo2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/backup-restore/providers/Microsoft.DocumentDB/databaseAccounts/stage-validation-source\",\r\n \"name\": \"stage-validation-source\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-12-02T23:22:22.8339651Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://stage-validation-source.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"2e123a98-31b1-4603-a0e7-8a84fa28a1ee\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"stage-validation-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"stage-validation-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"stage-validation-source-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://stage-validation-source-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"stage-validation-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"stage-validation-source-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://stage-validation-source-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"stage-validation-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"stage-validation-source-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [\r\n {\r\n \"allowedOrigins\": \"*\"\r\n }\r\n ],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 245,\r\n \"backupRetentionIntervalInHours\": 25,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/testshbyok/providers/Microsoft.DocumentDB/databaseAccounts/testshstag1\",\r\n \"name\": \"testshstag1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-03T20:27:20.2594519Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testshstag1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"995129ca-73ac-4270-a7e9-de49b24a163b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testshstag1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshstag1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testshstag1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshstag1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testshstag1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshstag1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testshstag1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/test123/providers/Microsoft.DocumentDB/databaseAccounts/testsignoff\",\r\n \"name\": \"testsignoff\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-09-17T00:16:18.0771513Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testsignoff.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"df3c1f97-55df-406a-b2ca-3c824b898154\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testsignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testsignoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testsignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testsignoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testsignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testsignoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testsignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/SelviTest-RG/providers/Microsoft.DocumentDB/databaseAccounts/selvitest-account-destinationforrestore\",\r\n \"name\": \"selvitest-account-destinationforrestore\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-23T17:39:57.4976354Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://selvitest-account-destinationforrestore.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"ec72f021-4974-405a-8c78-f74207ff0e12\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"selvitest-account-destinationforrestore-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://selvitest-account-destinationforrestore-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"selvitest-account-destinationforrestore-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://selvitest-account-destinationforrestore-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"selvitest-account-destinationforrestore-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://selvitest-account-destinationforrestore-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"selvitest-account-destinationforrestore-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/55083b96-b985-4dec-92df-fa0ac98443f1\",\r\n \"restoreTimestampInUtc\": \"2020-07-23T17:06:10Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/gsk/providers/Microsoft.DocumentDB/databaseAccounts/ttres\",\r\n \"name\": \"ttres\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-08-23T20:26:57.6721104Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ttres.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://ttres.cassandra.cosmosdb.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"6afec438-93fe-4428-ac3c-f35608f2a964\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ttres-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ttres-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ttres-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ttres-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ttres-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ttres-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ttres-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/virangai-test-bk-cont\",\r\n \"name\": \"virangai-test-bk-cont\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-28T22:09:23.3005573Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://virangai-test-bk-cont.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"17783e6d-0e28-41e2-b086-9d17763f1d51\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"virangai-test-bk-cont-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://virangai-test-bk-cont-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"virangai-test-bk-cont-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://virangai-test-bk-cont-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"virangai-test-bk-cont-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://virangai-test-bk-cont-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"virangai-test-bk-cont-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/testshbyok/providers/Microsoft.DocumentDB/databaseAccounts/testshref1\",\r\n \"name\": \"testshref1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-08-14T01:55:00.2663629Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testshref1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"b7caf086-1739-4d15-ae61-eff9ce4a0c25\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testshref1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshref1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testshref1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshref1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testshref1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshref1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testshref1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/test/providers/Microsoft.DocumentDB/databaseAccounts/testshstage\",\r\n \"name\": \"testshstage\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-10-10T21:05:22.7077813Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testshstage.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"71a50eeb-5d42-4753-b1bb-d2c6c063ff6b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testshstage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshstage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testshstage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshstage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testshstage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testshstage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testshstage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/testshbyok/providers/Microsoft.DocumentDB/databaseAccounts/testsless\",\r\n \"name\": \"testsless\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-07T04:59:18.913562Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testsless.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a6cbf641-4203-4c6c-add6-6d90d6c7c6a2\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testsless-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testsless-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testsless-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testsless-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testsless-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testsless-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testsless-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/tvkcassandrademo/providers/Microsoft.DocumentDB/databaseAccounts/tvkcassandrademo\",\r\n \"name\": \"tvkcassandrademo\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-05-14T17:32:55.1868041Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://tvkcassandrademo.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://tvkcassandrademo.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"06b06214-765c-435a-995b-14ea5651da8d\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"tvkcassandrademo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tvkcassandrademo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"tvkcassandrademo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tvkcassandrademo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"tvkcassandrademo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tvkcassandrademo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"tvkcassandrademo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/SelviTest-RG/providers/Microsoft.DocumentDB/databaseAccounts/selvitest-account-destinationforrestorev2\",\r\n \"name\": \"selvitest-account-destinationforrestorev2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-23T17:41:21.5364537Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://selvitest-account-destinationforrestorev2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"2d90bc37-cd54-4352-9e57-e6aa3f22d494\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"selvitest-account-destinationforrestorev2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://selvitest-account-destinationforrestorev2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"selvitest-account-destinationforrestorev2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://selvitest-account-destinationforrestorev2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"selvitest-account-destinationforrestorev2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://selvitest-account-destinationforrestorev2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"selvitest-account-destinationforrestorev2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/55083b96-b985-4dec-92df-fa0ac98443f1\",\r\n \"restoreTimestampInUtc\": \"2020-07-23T17:06:10Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/virangai-test-bk-periodic\",\r\n \"name\": \"virangai-test-bk-periodic\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-07-28T22:17:49.6964141Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://virangai-test-bk-periodic.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"dc66fd77-d262-4669-b43d-23f1ed1483f0\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"virangai-test-bk-periodic-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://virangai-test-bk-periodic-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"virangai-test-bk-periodic-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://virangai-test-bk-periodic-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"virangai-test-bk-periodic-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://virangai-test-bk-periodic-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"virangai-test-bk-periodic-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/xujzhang_stage/providers/Microsoft.DocumentDB/databaseAccounts/xujinstagetest1\",\r\n \"name\": \"xujinstagetest1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-03-22T21:07:39.7713078Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://xujinstagetest1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"0173ac57-191b-49ee-925c-e578604ce691\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"xujinstagetest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://xujinstagetest1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"xujinstagetest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://xujinstagetest1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"xujinstagetest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://xujinstagetest1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"xujinstagetest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shmotlan/providers/Microsoft.DocumentDB/databaseAccounts/shan-0726-cassandra\",\r\n \"name\": \"shan-0726-cassandra\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-07-26T20:36:06.0851865Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shan-0726-cassandra.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://shan-0726-cassandra.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d8f0ab61-7696-4a90-bccc-ace162567de1\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shan-0726-cassandra-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-0726-cassandra-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shan-0726-cassandra-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-0726-cassandra-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shan-0726-cassandra-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shan-0726-cassandra-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shan-0726-cassandra-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/xujzhang_stage/providers/Microsoft.DocumentDB/databaseAccounts/xujinstagetest2\",\r\n \"name\": \"xujinstagetest2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-04-01T20:21:52.6485436Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://xujinstagetest2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"5f143bbb-1924-48e9-a99d-adb8231afc9b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"xujinstagetest2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://xujinstagetest2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"xujinstagetest2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://xujinstagetest2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"xujinstagetest2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://xujinstagetest2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"xujinstagetest2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CANARY/providers/Microsoft.DocumentDB/databaseAccounts/canary-stageeastus2fd5\",\r\n \"name\": \"canary-stageeastus2fd5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"DocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-16T13:42:04.8923822Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd5.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a9ccaa44-ea29-4215-8a21-9fc277eef399\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd5-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd5-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd5-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd5-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd5-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd5-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd5-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/jasontho/providers/Microsoft.DocumentDB/databaseAccounts/jasontho-stagetest32\",\r\n \"name\": \"jasontho-stagetest32\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-19T22:13:22.179313Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://jasontho-stagetest32.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://jasontho-stagetest32.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"98f5d7df-6e9a-44b8-9314-84d0a0aa456a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"jasontho-stagetest32-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://jasontho-stagetest32-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"jasontho-stagetest32-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://jasontho-stagetest32-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"jasontho-stagetest32-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://jasontho-stagetest32-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"jasontho-stagetest32-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/jasontho/providers/Microsoft.DocumentDB/databaseAccounts/jasontho-stagetest36\",\r\n \"name\": \"jasontho-stagetest36\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-19T22:17:01.1188426Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://jasontho-stagetest36.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://jasontho-stagetest36.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"ed43e94e-b1d1-462c-84bc-5ff8a229cd7f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"jasontho-stagetest36-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://jasontho-stagetest36-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"jasontho-stagetest36-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://jasontho-stagetest36-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"jasontho-stagetest36-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://jasontho-stagetest36-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"jasontho-stagetest36-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/clizdrn52wvk2p6\",\r\n \"name\": \"clizdrn52wvk2p6\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-20T19:34:35.4461278Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://clizdrn52wvk2p6.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"9ad09199-8e7a-4c2d-812a-41a3a21c7c67\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"clizdrn52wvk2p6-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://clizdrn52wvk2p6-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"clizdrn52wvk2p6-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://clizdrn52wvk2p6-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"clizdrn52wvk2p6-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://clizdrn52wvk2p6-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"clizdrn52wvk2p6-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ragil/providers/Microsoft.DocumentDB/databaseAccounts/ragil-stage2\",\r\n \"name\": \"ragil-stage2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-21T06:42:55.5856255Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ragil-stage2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"1a9aa254-93fd-46e4-a4e6-86a8c2ffe8ff\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ragil-stage2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ragil-stage2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ragil-stage2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ragil-stage2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ragil-stage2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ragil-stage2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ragil-stage2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/BCDR/providers/Microsoft.DocumentDB/databaseAccounts/bcdrdrill\",\r\n \"name\": \"bcdrdrill\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-21T19:39:36.3359017Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://bcdrdrill.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"062979ad-28c2-4f77-908b-6d93e69bcb14\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"bcdrdrill-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://bcdrdrill-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"bcdrdrill-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://bcdrdrill-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"bcdrdrill-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://bcdrdrill-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"bcdrdrill-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/OutageDrill/providers/Microsoft.DocumentDB/databaseAccounts/outagedrill\",\r\n \"name\": \"outagedrill\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-21T19:42:53.5545452Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://outagedrill.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"606e424c-bc9e-4607-8f83-1e1be9a12dc2\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"outagedrill-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://outagedrill-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"outagedrill-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://outagedrill-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"outagedrill-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://outagedrill-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"outagedrill-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://outagedrill-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"outagedrill-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://outagedrill-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"outagedrill-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"outagedrill-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shellyg_dr/providers/Microsoft.DocumentDB/databaseAccounts/shellyg-dr\",\r\n \"name\": \"shellyg-dr\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-21T20:20:06.9213431Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shellyg-dr.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"705a1e7e-1d00-42b3-bbef-67d60db50efc\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shellyg-dr-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shellyg-dr-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shellyg-dr-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shellyg-dr-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shellyg-dr-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shellyg-dr-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shellyg-dr-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/OutageDrill/providers/Microsoft.DocumentDB/databaseAccounts/outagedrillmongo\",\r\n \"name\": \"outagedrillmongo\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-22T20:43:06.8561405Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://outagedrillmongo.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://outagedrillmongo.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"49a64798-7d2e-4f4f-a81c-2a0a9bdf2562\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"outagedrillmongo-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://outagedrillmongo-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"outagedrillmongo-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://outagedrillmongo-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"outagedrillmongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://outagedrillmongo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"outagedrillmongo-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://outagedrillmongo-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"outagedrillmongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://outagedrillmongo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"outagedrillmongo-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"outagedrillmongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/abpairg/providers/Microsoft.DocumentDB/databaseAccounts/patch-testing-demos\",\r\n \"name\": \"patch-testing-demos\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-27T10:06:57.5067585Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://patch-testing-demos.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"6ceef6fc-53f0-4d4a-ae4b-006b91a148be\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"patch-testing-demos-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://patch-testing-demos-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"patch-testing-demos-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://patch-testing-demos-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Deleting\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"patch-testing-demos-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://patch-testing-demos-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"patch-testing-demos-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://patch-testing-demos-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Deleting\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"patch-testing-demos-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://patch-testing-demos-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"patch-testing-demos-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://patch-testing-demos-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Deleting\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"patch-testing-demos-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"patch-testing-demos-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/walgreens/providers/Microsoft.DocumentDB/databaseAccounts/walgreens-rbac-2\",\r\n \"name\": \"walgreens-rbac-2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-27T21:44:43.295874Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://walgreens-rbac-2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"8718f446-9918-4a76-a8cc-00c34959db70\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"walgreens-rbac-2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://walgreens-rbac-2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"walgreens-rbac-2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://walgreens-rbac-2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"walgreens-rbac-2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://walgreens-rbac-2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"walgreens-rbac-2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shatri_vmss/providers/Microsoft.DocumentDB/databaseAccounts/shcassvmss\",\r\n \"name\": \"shcassvmss\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-29T20:21:17.1326652Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shcassvmss.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://shcassvmss.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"aec926f8-4de5-489c-84b6-0cf83c525057\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": true,\r\n \"connectorOffer\": \"small\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shcassvmss-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shcassvmss-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shcassvmss-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shcassvmss-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shcassvmss-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shcassvmss-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shcassvmss-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3871/providers/Microsoft.DocumentDB/databaseAccounts/accountname1980\",\r\n \"name\": \"accountname1980\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-29T20:44:58.7189491Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://accountname1980.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": true,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"fdbd461a-4efe-45ed-83aa-ded9d4730003\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": true,\r\n \"connectorOffer\": \"Small\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 1000,\r\n \"maxStalenessPrefix\": 300\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname1980-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname1980-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname1980-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname1980-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname1980-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname1980-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname1980-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vahemeswtest/providers/Microsoft.DocumentDB/databaseAccounts/vahemeswridtest\",\r\n \"name\": \"vahemeswridtest\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-30T07:31:52.9777392Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://vahemeswridtest.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"047cb6e8-ea14-43ae-9c6b-f1d1269ac569\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"vahemeswridtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vahemeswridtest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"vahemeswridtest-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://vahemeswridtest-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"vahemeswridtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vahemeswridtest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"vahemeswridtest-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://vahemeswridtest-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"vahemeswridtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vahemeswridtest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"vahemeswridtest-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://vahemeswridtest-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"vahemeswridtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"vahemeswridtest-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/abinav_stage_rg/providers/Microsoft.DocumentDB/databaseAccounts/aetest1\",\r\n \"name\": \"aetest1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-11-02T01:57:08.6131214Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://aetest1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"1ae0285a-d538-4dfa-9103-d4e0706ad2c3\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"aetest1-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://aetest1-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"aetest1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://aetest1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"aetest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://aetest1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"aetest1-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://aetest1-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"aetest1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://aetest1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"aetest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://aetest1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"aetest1-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://aetest1-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"aetest1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://aetest1-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"aetest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://aetest1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"aetest1-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"aetest1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n },\r\n {\r\n \"id\": \"aetest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 2\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/OutageDrill/providers/Microsoft.DocumentDB/databaseAccounts/outagedrillrwworkload\",\r\n \"name\": \"outagedrillrwworkload\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-11-02T23:29:01.5199281Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://outagedrillrwworkload.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"827f0be0-0719-4bd4-a13a-0a322bb82050\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"outagedrillrwworkload-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://outagedrillrwworkload-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"outagedrillrwworkload-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://outagedrillrwworkload-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"outagedrillrwworkload-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://outagedrillrwworkload-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"outagedrillrwworkload-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://outagedrillrwworkload-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"outagedrillrwworkload-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://outagedrillrwworkload-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"outagedrillrwworkload-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"outagedrillrwworkload-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/fnbalaji-test/providers/Microsoft.DocumentDB/databaseAccounts/fnbalaji-metrics\",\r\n \"name\": \"fnbalaji-metrics\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-11-10T00:26:06.0296548Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://fnbalaji-metrics.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"f2bdc357-b0d7-4f9e-8353-4b38d1ade4c9\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"fnbalaji-metrics-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://fnbalaji-metrics-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"fnbalaji-metrics-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://fnbalaji-metrics-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"fnbalaji-metrics-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://fnbalaji-metrics-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"fnbalaji-metrics-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Local\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ankisrgstage/providers/Microsoft.DocumentDB/databaseAccounts/ankisstage23\",\r\n \"name\": \"ankisstage23\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-11-19T07:02:35.3594771Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ankisstage23.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"774b5e27-c17e-4f9a-aa16-c1d4531f2239\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ankisstage23-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ankisstage23-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ankisstage23-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ankisstage23-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"ankisstage23-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ankisstage23-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ankisstage23-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ankisstage23-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"ankisstage23-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ankisstage23-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ankisstage23-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"ankisstage23-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/fnbalaji-stage-signoff/providers/Microsoft.DocumentDB/databaseAccounts/fnbalaji-stage-signoff\",\r\n \"name\": \"fnbalaji-stage-signoff\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-11-19T17:41:23.8356518Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://fnbalaji-stage-signoff.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"77d833f8-0784-4034-aa46-efeef57775e8\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"fnbalaji-stage-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://fnbalaji-stage-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"fnbalaji-stage-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://fnbalaji-stage-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"fnbalaji-stage-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://fnbalaji-stage-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"fnbalaji-stage-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Local\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mongolargedoctest/providers/Microsoft.DocumentDB/databaseAccounts/mongolargedoctest\",\r\n \"name\": \"mongolargedoctest\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-11-20T13:29:24.5625937Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongolargedoctest.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://mongolargedoctest.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"f97ec1fb-8360-4f55-890b-f6c99c1603b1\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongolargedoctest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongolargedoctest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongolargedoctest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongolargedoctest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongolargedoctest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongolargedoctest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongolargedoctest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mongolargedoctest/providers/Microsoft.DocumentDB/databaseAccounts/mongo34\",\r\n \"name\": \"mongo34\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-11-20T16:34:40.581941Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongo34.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://mongo34.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"800f86a5-3637-4c92-9031-d9e70a8bd1a8\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongo34-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongo34-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongo34-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongo34-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongo34-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongo34-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongo34-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mongotestdocsize/providers/Microsoft.DocumentDB/databaseAccounts/mongolargedocsizetest\",\r\n \"name\": \"mongolargedocsizetest\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-11-20T18:39:41.78945Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongolargedocsizetest.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://mongolargedocsizetest.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"6a54ebdd-8f86-4e77-8d83-aa405d9a4165\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongolargedocsizetest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongolargedocsizetest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongolargedocsizetest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongolargedocsizetest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongolargedocsizetest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongolargedocsizetest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongolargedocsizetest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/table-stage-signoff/providers/Microsoft.DocumentDB/databaseAccounts/tablestagesignoffeastus2\",\r\n \"name\": \"tablestagesignoffeastus2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Table\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-11-24T12:01:02.1301419Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://tablestagesignoffeastus2.documents-staging.windows-ppe.net:443/\",\r\n \"tableEndpoint\": \"https://tablestagesignoffeastus2.table.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Table, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"bf5bc138-b90e-4c6b-a465-0f60ed040d5a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 86400,\r\n \"maxStalenessPrefix\": 1000000\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"tablestagesignoffeastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tablestagesignoffeastus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"tablestagesignoffeastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tablestagesignoffeastus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"tablestagesignoffeastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tablestagesignoffeastus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"tablestagesignoffeastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableTable\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/restoredaccountname637428812785768088\",\r\n \"name\": \"restoredaccountname637428812785768088\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-07T20:03:40.5408878Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://restoredaccountname637428812785768088.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"b0c8684b-7f9c-45fe-8ab9-2a74b656867e\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"restoredaccountname637428812785768088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname637428812785768088-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"restoredaccountname637428812785768088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname637428812785768088-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"restoredaccountname637428812785768088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname637428812785768088-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"restoredaccountname637428812785768088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/aca7d453-88a9-4bf2-8abc-46d21553638f\",\r\n \"restoreTimestampInUtc\": \"2020-12-06T19:54:38.5768088Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/pitr-mongo32-stage-source\",\r\n \"name\": \"pitr-mongo32-stage-source\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-07T21:23:55.1942911Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-mongo32-stage-source.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-mongo32-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo32-stage-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-mongo32-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo32-stage-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"pitr-mongo32-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo32-stage-source-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-mongo32-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo32-stage-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"pitr-mongo32-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo32-stage-source-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-mongo32-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"pitr-mongo32-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/pitr-mongo36-stage-source\",\r\n \"name\": \"pitr-mongo36-stage-source\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-07T21:35:23.3656995Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-mongo36-stage-source.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://pitr-mongo36-stage-source.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"25a04cf0-89d4-4546-9c30-14d1dc8899df\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-mongo36-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo36-stage-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-mongo36-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo36-stage-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"pitr-mongo36-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo36-stage-source-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-mongo36-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo36-stage-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"pitr-mongo36-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo36-stage-source-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-mongo36-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"pitr-mongo36-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/nichatur/providers/Microsoft.DocumentDB/databaseAccounts/nichatur-restore-test\",\r\n \"name\": \"nichatur-restore-test\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-07T23:33:56.040742Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://nichatur-restore-test.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"345c785a-e758-4f8b-94d4-0a1259f4f85b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"nichatur-restore-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nichatur-restore-test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"nichatur-restore-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nichatur-restore-test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"nichatur-restore-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nichatur-restore-test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"nichatur-restore-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.10.40.67\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/nichatur/providers/Microsoft.DocumentDB/databaseAccounts/nichatur-restore-test-r1\",\r\n \"name\": \"nichatur-restore-test-r1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-07T23:57:58.8872446Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://nichatur-restore-test-r1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"605db505-9267-4cf0-b7ac-27ef644b2ef3\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"nichatur-restore-test-r1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nichatur-restore-test-r1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"nichatur-restore-test-r1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nichatur-restore-test-r1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"nichatur-restore-test-r1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nichatur-restore-test-r1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"nichatur-restore-test-r1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/345c785a-e758-4f8b-94d4-0a1259f4f85b\",\r\n \"restoreTimestampInUtc\": \"2020-12-07T23:47:49.48Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/restoredaccountname637428989095532319\",\r\n \"name\": \"restoredaccountname637428989095532319\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-08T00:57:51.9046166Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://restoredaccountname637428989095532319.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"0d00d699-017a-4a76-8639-ab4bec82c5f2\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"restoredaccountname637428989095532319-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname637428989095532319-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"restoredaccountname637428989095532319-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname637428989095532319-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"restoredaccountname637428989095532319-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname637428989095532319-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"restoredaccountname637428989095532319-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/aca7d453-88a9-4bf2-8abc-46d21553638f\",\r\n \"restoreTimestampInUtc\": \"2020-12-07T00:48:29.5532319Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/nichatur/providers/Microsoft.DocumentDB/databaseAccounts/nichatur-restore-test-r2\",\r\n \"name\": \"nichatur-restore-test-r2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-08T22:03:13.047643Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://nichatur-restore-test-r2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"73d1010d-f0b7-4673-b8c0-18ddecdcda06\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"nichatur-restore-test-r2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nichatur-restore-test-r2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"nichatur-restore-test-r2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nichatur-restore-test-r2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"nichatur-restore-test-r2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nichatur-restore-test-r2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"nichatur-restore-test-r2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/345c785a-e758-4f8b-94d4-0a1259f4f85b\",\r\n \"restoreTimestampInUtc\": \"2020-12-08T21:53:49.725Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/nitesh-resource/providers/Microsoft.DocumentDB/databaseAccounts/nidudhey-test-stage\",\r\n \"name\": \"nidudhey-test-stage\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-15T15:20:43.4354931Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://nidudhey-test-stage.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c66385ac-9338-4f47-83bb-d2335cc369f0\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"nidudhey-test-stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nidudhey-test-stage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"nidudhey-test-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://nidudhey-test-stage-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"nidudhey-test-stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nidudhey-test-stage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"nidudhey-test-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://nidudhey-test-stage-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"nidudhey-test-stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nidudhey-test-stage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"nidudhey-test-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://nidudhey-test-stage-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"nidudhey-test-stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"nidudhey-test-stage-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup1787/providers/Microsoft.DocumentDB/databaseAccounts/accountname8516\",\r\n \"name\": \"accountname8516\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-15T23:39:48.5589913Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://accountname8516.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://accountname8516.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": true,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c4672bc7-527c-45c2-9921-dce0b47d2bef\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": true,\r\n \"connectorOffer\": \"Small\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname8516-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname8516-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname8516-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname8516-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname8516-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname8516-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname8516-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/nidudhey-largedocs-stage/providers/Microsoft.DocumentDB/databaseAccounts/largedocsaccount\",\r\n \"name\": \"largedocsaccount\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-16T12:17:24.5504605Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://largedocsaccount.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"14e613e2-0fd2-48f0-8816-9bf1e990be97\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"largedocsaccount-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://largedocsaccount-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"largedocsaccount-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://largedocsaccount-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"largedocsaccount-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://largedocsaccount-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"largedocsaccount-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/nitesh-resource/providers/Microsoft.DocumentDB/databaseAccounts/nidudheylargedocsaccount2\",\r\n \"name\": \"nidudheylargedocsaccount2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-16T15:12:35.8999909Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://nidudheylargedocsaccount2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a13d649a-4238-4cfc-944e-79c516049cd3\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"nidudheylargedocsaccount2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nidudheylargedocsaccount2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"nidudheylargedocsaccount2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://nidudheylargedocsaccount2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"nidudheylargedocsaccount2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nidudheylargedocsaccount2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"nidudheylargedocsaccount2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://nidudheylargedocsaccount2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"nidudheylargedocsaccount2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nidudheylargedocsaccount2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"nidudheylargedocsaccount2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://nidudheylargedocsaccount2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"nidudheylargedocsaccount2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"nidudheylargedocsaccount2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/nitesh-resource/providers/Microsoft.DocumentDB/databaseAccounts/nidudheylargedocsaccount3\",\r\n \"name\": \"nidudheylargedocsaccount3\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-16T18:31:42.2164221Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://nidudheylargedocsaccount3.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"3cf70cd8-9fc6-4382-b5f4-1600ea82fe63\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"nidudheylargedocsaccount3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nidudheylargedocsaccount3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"nidudheylargedocsaccount3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://nidudheylargedocsaccount3-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"nidudheylargedocsaccount3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nidudheylargedocsaccount3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"nidudheylargedocsaccount3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://nidudheylargedocsaccount3-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"nidudheylargedocsaccount3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://nidudheylargedocsaccount3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"nidudheylargedocsaccount3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://nidudheylargedocsaccount3-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"nidudheylargedocsaccount3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"nidudheylargedocsaccount3-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/SQL_on_Compute_sign_off/providers/Microsoft.DocumentDB/databaseAccounts/sqloncomputesignoff\",\r\n \"name\": \"sqloncomputesignoff\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-14T05:46:36.9458648Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sqloncomputesignoff.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"1f2287d6-f5d8-415b-bee7-1e95cb017813\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sqloncomputesignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sqloncomputesignoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sqloncomputesignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sqloncomputesignoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sqloncomputesignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sqloncomputesignoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sqloncomputesignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/test1027group/providers/Microsoft.DocumentDB/databaseAccounts/test-tepa0115\",\r\n \"name\": \"test-tepa0115\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-15T11:45:43.924868Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test-tepa0115.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"14287d17-5cc7-4672-8781-0c51170758f4\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test-tepa0115-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://test-tepa0115-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test-tepa0115-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://test-tepa0115-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"test-tepa0115-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-tepa0115-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test-tepa0115-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://test-tepa0115-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"test-tepa0115-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-tepa0115-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test-tepa0115-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"test-tepa0115-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 25,\r\n \"backupStorageRedundancy\": \"Local\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/kakhandr-rg/providers/Microsoft.DocumentDB/databaseAccounts/kal-restore-test\",\r\n \"name\": \"kal-restore-test\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-15T21:58:31.8978899Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://kal-restore-test.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d1535f84-06b5-497b-8768-962ece984001\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"kal-restore-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://kal-restore-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"kal-restore-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://kal-restore-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"kal-restore-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://kal-restore-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"kal-restore-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/a54115d5-4356-4771-b7b0-20f475ce5a38\",\r\n \"restoreTimestampInUtc\": \"2020-12-17T18:59:50Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CANARY/providers/Microsoft.DocumentDB/databaseAccounts/canary-stageeastus2fd3-sqlx\",\r\n \"name\": \"canary-stageeastus2fd3-sqlx\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-19T19:09:48.5481956Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd3-sqlx.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"ce2d1575-d2e5-47bd-976c-16d9cf7dbb81\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd3-sqlx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd3-sqlx-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd3-sqlx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd3-sqlx-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd3-sqlx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd3-sqlx-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd3-sqlx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableSqlx\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi/providers/Microsoft.DocumentDB/databaseAccounts/mongostagevalidation0120\",\r\n \"name\": \"mongostagevalidation0120\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-20T19:37:24.8064847Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongostagevalidation0120.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://mongostagevalidation0120.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"7c7e80e2-c316-42eb-b044-e65deda55c19\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongostagevalidation0120-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongostagevalidation0120-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongostagevalidation0120-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongostagevalidation0120-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongostagevalidation0120-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongostagevalidation0120-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongostagevalidation0120-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi/providers/Microsoft.DocumentDB/databaseAccounts/mongostage360120\",\r\n \"name\": \"mongostage360120\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-20T19:38:29.6101734Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongostage360120.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://mongostage360120.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"acf7cb86-2412-47e3-a6dd-a82c656bfa3a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongostage360120-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongostage360120-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongostage360120-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongostage360120-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongostage360120-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongostage360120-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongostage360120-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shreystagetest/providers/Microsoft.DocumentDB/databaseAccounts/shreystagetest1\",\r\n \"name\": \"shreystagetest1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-20T19:41:28.6998319Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shreystagetest1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"abe98c9b-bf84-4b8d-8eb4-c50b076edee1\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shreystagetest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shreystagetest1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shreystagetest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shreystagetest1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shreystagetest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shreystagetest1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shreystagetest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi/providers/Microsoft.DocumentDB/databaseAccounts/testmongoaccount32stage\",\r\n \"name\": \"testmongoaccount32stage\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-20T20:21:26.0548848Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testmongoaccount32stage.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://testmongoaccount32stage.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"5df12441-3a92-4488-b6bb-ba9313dd399e\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testmongoaccount32stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testmongoaccount32stage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testmongoaccount32stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testmongoaccount32stage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testmongoaccount32stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testmongoaccount32stage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testmongoaccount32stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ccxstagevalidationrg/providers/Microsoft.DocumentDB/databaseAccounts/ccxteststagesignoff\",\r\n \"name\": \"ccxteststagesignoff\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-21T14:24:57.0107597Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ccxteststagesignoff.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://ccxteststagesignoff.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"6d831b36-0bcf-44cd-b47b-f99c3ab11d9c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ccxteststagesignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ccxteststagesignoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ccxteststagesignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ccxteststagesignoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ccxteststagesignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ccxteststagesignoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ccxteststagesignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi/providers/Microsoft.DocumentDB/databaseAccounts/mekaushi-stage0125\",\r\n \"name\": \"mekaushi-stage0125\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-25T23:21:48.7752496Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mekaushi-stage0125.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"5f934eae-2a90-425c-a144-770fc0f17da6\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mekaushi-stage0125-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mekaushi-stage0125-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mekaushi-stage0125-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mekaushi-stage0125-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mekaushi-stage0125-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mekaushi-stage0125-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mekaushi-stage0125-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CANARY/providers/Microsoft.DocumentDB/databaseAccounts/canary-stageeastus2fd4-sqlx\",\r\n \"name\": \"canary-stageeastus2fd4-sqlx\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-27T22:13:50.556868Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd4-sqlx.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"cfd45293-fdec-486b-bb4b-5fc97fb06041\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd4-sqlx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd4-sqlx-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd4-sqlx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd4-sqlx-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd4-sqlx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd4-sqlx-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd4-sqlx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableSqlx\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CANARY/providers/Microsoft.DocumentDB/databaseAccounts/canary-stageeastus2fd5-sqlx\",\r\n \"name\": \"canary-stageeastus2fd5-sqlx\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-27T23:58:03.8477755Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd5-sqlx.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"1978addb-0520-4004-97cf-abf83490dad1\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd5-sqlx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd5-sqlx-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd5-sqlx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd5-sqlx-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd5-sqlx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd5-sqlx-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd5-sqlx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableSqlx\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CANARY/providers/Microsoft.DocumentDB/databaseAccounts/canary-stageeastus2fd6-sqlx\",\r\n \"name\": \"canary-stageeastus2fd6-sqlx\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-28T18:45:43.6929006Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd6-sqlx.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a7af4aba-906c-4463-bef6-65017ee6ab3b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd6-sqlx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd6-sqlx-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd6-sqlx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd6-sqlx-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd6-sqlx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2fd6-sqlx-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"canary-stageeastus2fd6-sqlx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableSqlx\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sachimplacementhint/providers/Microsoft.DocumentDB/databaseAccounts/placementhintcosmosdb\",\r\n \"name\": \"placementhintcosmosdb\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-28T19:57:53.7083463Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://placementhintcosmosdb.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"9922c594-4816-4e93-8f06-02a92896734b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"placementhintcosmosdb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://placementhintcosmosdb-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"placementhintcosmosdb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://placementhintcosmosdb-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"placementhintcosmosdb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://placementhintcosmosdb-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"placementhintcosmosdb-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sdk-ci/providers/Microsoft.DocumentDB/databaseAccounts/java-v4-sdk-signoff\",\r\n \"name\": \"java-v4-sdk-signoff\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-01T19:22:47.4913463Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://java-v4-sdk-signoff.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"54bbaba3-b104-472d-8c0f-bb994dfbb6db\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Strong\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"java-v4-sdk-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://java-v4-sdk-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"java-v4-sdk-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://java-v4-sdk-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"java-v4-sdk-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://java-v4-sdk-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"java-v4-sdk-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/fnbalaji-stage-signoff/providers/Microsoft.DocumentDB/databaseAccounts/fnbalaji-stage-sign-off-eastus2\",\r\n \"name\": \"fnbalaji-stage-sign-off-eastus2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-03T04:04:38.8739575Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://fnbalaji-stage-sign-off-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"ad2cdbeb-7050-481e-b89f-3041cba78662\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"fnbalaji-stage-sign-off-eastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://fnbalaji-stage-sign-off-eastus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"fnbalaji-stage-sign-off-eastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://fnbalaji-stage-sign-off-eastus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"fnbalaji-stage-sign-off-eastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://fnbalaji-stage-sign-off-eastus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"fnbalaji-stage-sign-off-eastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup1450/providers/Microsoft.DocumentDB/databaseAccounts/accountname495\",\r\n \"name\": \"accountname495\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-03T19:08:37.8715072Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://accountname495.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://accountname495.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": true,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"f8a8da88-e9cc-4b79-b77f-5314e4c291f8\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": true,\r\n \"connectorOffer\": \"Small\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname495-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname495-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname495-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname495-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname495-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname495-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname495-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124\",\r\n \"name\": \"cli124\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-03T19:07:21.5352664Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cli124.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"53ff61db-dc59-44a5-ba3f-e5c82c0822d3\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cli124-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cli124-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cli124-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cli124-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cli124-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cli124-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cli124-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/kakhandr-rg/providers/Microsoft.DocumentDB/databaseAccounts/pitr-unique-mode-source\",\r\n \"name\": \"pitr-unique-mode-source\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-03T19:53:24.4508018Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-unique-mode-source.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"9351dd2e-d901-465b-98cb-a74a3aabd49f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-unique-mode-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-unique-mode-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-unique-mode-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-unique-mode-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-unique-mode-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-unique-mode-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-unique-mode-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/kakhandr-rg/providers/Microsoft.DocumentDB/databaseAccounts/pitr-unique-mode-restored\",\r\n \"name\": \"pitr-unique-mode-restored\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-03T20:07:49.7514223Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-unique-mode-restored.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"222da8e2-da07-46db-9cd2-51a2efb84b9f\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-unique-mode-restored-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-unique-mode-restored-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-unique-mode-restored-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-unique-mode-restored-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-unique-mode-restored-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-unique-mode-restored-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-unique-mode-restored-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9351dd2e-d901-465b-98cb-a74a3aabd49f\",\r\n \"restoreTimestampInUtc\": \"2021-02-03T19:56:16Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ruleiRG/providers/Microsoft.DocumentDB/databaseAccounts/stage-pitr-validation-source-rulei\",\r\n \"name\": \"stage-pitr-validation-source-rulei\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-04T19:39:55.6436193Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://stage-pitr-validation-source-rulei.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://stage-pitr-validation-source-rulei.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d03dfdb8-9db2-4a5f-9f6c-40a8868d740a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"stage-pitr-validation-source-rulei-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-pitr-validation-source-rulei-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"stage-pitr-validation-source-rulei-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://stage-pitr-validation-source-rulei-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"stage-pitr-validation-source-rulei-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-pitr-validation-source-rulei-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"stage-pitr-validation-source-rulei-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://stage-pitr-validation-source-rulei-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"stage-pitr-validation-source-rulei-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-pitr-validation-source-rulei-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"stage-pitr-validation-source-rulei-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://stage-pitr-validation-source-rulei-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"stage-pitr-validation-source-rulei-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"stage-pitr-validation-source-rulei-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ashwsing-signoff/providers/Microsoft.DocumentDB/databaseAccounts/testmongo40\",\r\n \"name\": \"testmongo40\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-04T20:25:38.7529107Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testmongo40.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://testmongo40.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d9dcb808-173a-4635-b931-e5afad9ca53b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testmongo40-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testmongo40-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testmongo40-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testmongo40-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testmongo40-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testmongo40-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testmongo40-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"104.42.195.92\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"40.76.54.131\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.176.6.30\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.169.50.45\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.187.184.26\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ashwsing-signoff/providers/Microsoft.DocumentDB/databaseAccounts/test40mongo\",\r\n \"name\": \"test40mongo\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-04T20:30:40.6419389Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test40mongo.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://test40mongo.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"b04ac343-3f8e-4c17-a8dc-30bd4f9c2dc0\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"4.0\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test40mongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://test40mongo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test40mongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://test40mongo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test40mongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://test40mongo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test40mongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/jmondal-eu2/providers/Microsoft.DocumentDB/databaseAccounts/jmondal-stg-d32\",\r\n \"name\": \"jmondal-stg-d32\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlinv2\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-05T00:56:28.4386887Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://jmondal-stg-d32.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://jmondal-stg-d32.gremlin.cosmos.windows-ppe.net/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"GremlinV2\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"fd5e1594-f8d8-4beb-bc14-3f765970720d\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"clusterInstanceCount\": 1,\r\n \"clusterSize\": \"Cosmos.Gremlin.D32s\"\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"jmondal-stg-d32-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://jmondal-stg-d32-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"jmondal-stg-d32-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://jmondal-stg-d32-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"jmondal-stg-d32-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://jmondal-stg-d32-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"jmondal-stg-d32-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlinV2\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/backup-restore/providers/Microsoft.DocumentDB/databaseAccounts/stage-validation-m\",\r\n \"name\": \"stage-validation-m\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-05T04:08:09.1223636Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://stage-validation-m.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://stage-validation-m.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"19e4130a-cb83-4a34-85c2-e35dcda149f8\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"stage-validation-m-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-m-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"stage-validation-m-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-m-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"stage-validation-m-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-m-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"stage-validation-m-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-m-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"stage-validation-m-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-m-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"stage-validation-m-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"stage-validation-m-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ashwsing-signoff/providers/Microsoft.DocumentDB/databaseAccounts/test40mongo-two\",\r\n \"name\": \"test40mongo-two\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-05T19:38:06.2713539Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test40mongo-two.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://test40mongo-two.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"01c23f84-caf0-4ae3-a87f-e69c49e266bb\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"4.0\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test40mongo-two-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://test40mongo-two-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test40mongo-two-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://test40mongo-two-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test40mongo-two-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://test40mongo-two-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test40mongo-two-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ashwsing-signoff/providers/Microsoft.DocumentDB/databaseAccounts/test40mongo-one\",\r\n \"name\": \"test40mongo-one\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-05T19:38:47.0239921Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test40mongo-one.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://test40mongo-one.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"9e4eb9da-41c3-4787-9696-194b9046430c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"4.0\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test40mongo-one-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://test40mongo-one-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test40mongo-one-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://test40mongo-one-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test40mongo-one-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://test40mongo-one-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test40mongo-one-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ashwsing-signoff/providers/Microsoft.DocumentDB/databaseAccounts/test40mongo-three\",\r\n \"name\": \"test40mongo-three\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-05T19:40:55.9814347Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test40mongo-three.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://test40mongo-three.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"5f317237-4670-4837-b434-4ce48e344254\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"4.0\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test40mongo-three-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://test40mongo-three-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test40mongo-three-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://test40mongo-three-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test40mongo-three-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://test40mongo-three-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test40mongo-three-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup4461/providers/Microsoft.DocumentDB/databaseAccounts/accountname1110\",\r\n \"name\": \"accountname1110\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-09T20:55:58.8091811Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://accountname1110.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://accountname1110.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": true,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"2ffc1476-50ff-4df5-b1e0-a67a25d4b937\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": true,\r\n \"connectorOffer\": \"Small\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"AzureServices\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 1000,\r\n \"maxStalenessPrefix\": 300\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname1110-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname1110-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname1110-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname1110-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname1110-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname1110-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname1110-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName\"\r\n ]\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sdk-ci/providers/Microsoft.DocumentDB/databaseAccounts/java-v4-multimaster-signoff\",\r\n \"name\": \"java-v4-multimaster-signoff\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-09T21:04:08.234252Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://java-v4-multimaster-signoff.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"2a69724f-bb3b-4837-bbb9-631a4a4eed61\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"java-v4-multimaster-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://java-v4-multimaster-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"java-v4-multimaster-signoff-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://java-v4-multimaster-signoff-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"java-v4-multimaster-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://java-v4-multimaster-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"java-v4-multimaster-signoff-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://java-v4-multimaster-signoff-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"java-v4-multimaster-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://java-v4-multimaster-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"java-v4-multimaster-signoff-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://java-v4-multimaster-signoff-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"java-v4-multimaster-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"java-v4-multimaster-signoff-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CANARY/providers/Microsoft.DocumentDB/databaseAccounts/canary-stageeastus2cs1-sqlx\",\r\n \"name\": \"canary-stageeastus2cs1-sqlx\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-17T19:57:24.5713914Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2cs1-sqlx.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a2b3eae8-555e-4e63-87e4-5fd3932188c9\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2cs1-sqlx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2cs1-sqlx-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2cs1-sqlx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2cs1-sqlx-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"canary-stageeastus2cs1-sqlx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2cs1-sqlx-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"canary-stageeastus2cs1-sqlx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/kakhandr-rg/providers/Microsoft.DocumentDB/databaseAccounts/multiregion-pitr-billing-test\",\r\n \"name\": \"multiregion-pitr-billing-test\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-19T00:20:17.5689785Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://multiregion-pitr-billing-test.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"5939cc7f-0bdd-4790-9ac6-a3b281c64f97\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"multiregion-pitr-billing-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://multiregion-pitr-billing-test-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"multiregion-pitr-billing-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://multiregion-pitr-billing-test-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"multiregion-pitr-billing-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://multiregion-pitr-billing-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"multiregion-pitr-billing-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://multiregion-pitr-billing-test-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"multiregion-pitr-billing-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://multiregion-pitr-billing-test-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"multiregion-pitr-billing-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"multiregion-pitr-billing-test-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/a54115d5-4356-4771-b7b0-20f475ce5a38\",\r\n \"restoreTimestampInUtc\": \"2021-02-17T00:00:00Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vivekrastage/providers/Microsoft.DocumentDB/databaseAccounts/eytestaccount\",\r\n \"name\": \"eytestaccount\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-20T00:13:44.2195855Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://eytestaccount.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://eytestaccount.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"212565ef-f4ca-4f52-9791-5ac06a6ca17c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"eytestaccount-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://eytestaccount-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"eytestaccount-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://eytestaccount-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"eytestaccount-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://eytestaccount-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"eytestaccount-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shreystagetest/providers/Microsoft.DocumentDB/databaseAccounts/shreytest14\",\r\n \"name\": \"shreytest14\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-20T00:49:36.6854744Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shreytest14.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d0b4d884-644a-4160-afe8-482b2301dc8e\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shreytest14-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shreytest14-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shreytest14-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shreytest14-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shreytest14-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shreytest14-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shreytest14-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/wmengstagetest/providers/Microsoft.DocumentDB/databaseAccounts/wmengstageeastus2a\",\r\n \"name\": \"wmengstageeastus2a\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-20T08:06:19.8438893Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://wmengstageeastus2a.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"18eab4fd-4b6b-4879-be92-6b6dc9011e89\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"wmengstageeastus2a-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://wmengstageeastus2a-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"wmengstageeastus2a-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://wmengstageeastus2a-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"wmengstageeastus2a-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://wmengstageeastus2a-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"wmengstageeastus2a-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ashwini-rg/providers/Microsoft.DocumentDB/databaseAccounts/mong-acis-test1\",\r\n \"name\": \"mong-acis-test1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-22T02:40:11.4494598Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mong-acis-test1.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://mong-acis-test1.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"f9215d75-c403-48a3-8583-0e0bc8805721\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mong-acis-test1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mong-acis-test1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mong-acis-test1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mong-acis-test1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mong-acis-test1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mong-acis-test1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mong-acis-test1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ashwsing-rg/providers/Microsoft.DocumentDB/databaseAccounts/mongo-acis-test2\",\r\n \"name\": \"mongo-acis-test2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-22T02:41:18.9456951Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongo-acis-test2.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://mongo-acis-test2.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a9c9e96c-6e94-49f6-a37f-85876f358394\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"4.0\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongo-acis-test2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongo-acis-test2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongo-acis-test2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongo-acis-test2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongo-acis-test2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongo-acis-test2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongo-acis-test2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/vivekrastage/providers/Microsoft.DocumentDB/databaseAccounts/eyaccounttest\",\r\n \"name\": \"eyaccounttest\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-22T19:36:19.4403448Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://eyaccounttest.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://eyaccounttest.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"ae788764-c612-4bc3-898e-5e02703614a0\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"eyaccounttest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://eyaccounttest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"eyaccounttest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://eyaccounttest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"eyaccounttest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://eyaccounttest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"eyaccounttest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shatri_vmss/providers/Microsoft.DocumentDB/databaseAccounts/shatrimongo\",\r\n \"name\": \"shatrimongo\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-22T21:35:10.2385338Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shatrimongo.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://shatrimongo.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"54d58514-d9af-4d5d-bea5-0135b5006330\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shatrimongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shatrimongo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shatrimongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shatrimongo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shatrimongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shatrimongo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shatrimongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/tvoellm-group/providers/Microsoft.DocumentDB/databaseAccounts/tvoellmdb1\",\r\n \"name\": \"tvoellmdb1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-23T16:55:24.7807978Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://tvoellmdb1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"00194f2d-6f8c-4c24-bda4-ad60c97111c4\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"tvoellmdb1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tvoellmdb1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"tvoellmdb1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tvoellmdb1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"tvoellmdb1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tvoellmdb1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"tvoellmdb1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/tvoellm-group/providers/Microsoft.DocumentDB/databaseAccounts/tvoellmdb3\",\r\n \"name\": \"tvoellmdb3\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-23T17:01:11.0478289Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://tvoellmdb3.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"11df0155-1170-412e-8d6a-6f58ee58e288\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"keyVaultKeyUri\": \"https://tvoellmkv1.vault.azure.net/keys/tvoellmkey1\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"tvoellmdb3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tvoellmdb3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"tvoellmdb3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tvoellmdb3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"tvoellmdb3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tvoellmdb3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"tvoellmdb3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/adt-stage-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/adt-stage-test\",\r\n \"name\": \"adt-stage-test\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlinv2\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-25T07:03:40.4901866Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://adt-stage-test.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://adt-stage-test.gremlin.cosmos.windows-ppe.net/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"GremlinV2\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"1acc9e5b-7a64-4dec-a2be-f8d928f14a49\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"clusterInstanceCount\": 1,\r\n \"clusterSize\": \"Cosmos.Gremlin.D8s\"\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"adt-stage-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://adt-stage-test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"adt-stage-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://adt-stage-test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"adt-stage-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://adt-stage-test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"adt-stage-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlinV2\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/restore-pitr-mongo32-stage-source\",\r\n \"name\": \"restore-pitr-mongo32-stage-source\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-26T18:11:03.2574337Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://restore-pitr-mongo32-stage-source.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"96aa7f5a-5292-44f3-9d3e-bec163b0de1a\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"restore-pitr-mongo32-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://restore-pitr-mongo32-stage-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"restore-pitr-mongo32-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://restore-pitr-mongo32-stage-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"restore-pitr-mongo32-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://restore-pitr-mongo32-stage-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"restore-pitr-mongo32-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8\",\r\n \"restoreTimestampInUtc\": \"2021-02-04T00:00:00Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/kakhandr-rg-2/providers/Microsoft.DocumentDB/databaseAccounts/pitr-serverless-test\",\r\n \"name\": \"pitr-serverless-test\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-08T22:40:04.4989269Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-serverless-test.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"06da6f05-e2dc-42ad-b5c1-eb3cb8b2384e\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-serverless-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-serverless-test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-serverless-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-serverless-test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-serverless-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-serverless-test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-serverless-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableServerless\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/kakhandr-rg-2/providers/Microsoft.DocumentDB/databaseAccounts/pitr-serverless-test-restored\",\r\n \"name\": \"pitr-serverless-test-restored\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-08T23:36:48.4648174Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-serverless-test-restored.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"1c4db817-dc87-4715-84d5-3b5c44da3cc1\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-serverless-test-restored-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-serverless-test-restored-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-serverless-test-restored-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-serverless-test-restored-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-serverless-test-restored-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-serverless-test-restored-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-serverless-test-restored-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableServerless\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/06da6f05-e2dc-42ad-b5c1-eb3cb8b2384e\",\r\n \"restoreTimestampInUtc\": \"2021-03-08T23:25:00Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/backup-restore/providers/Microsoft.DocumentDB/databaseAccounts/tepatest0310a\",\r\n \"name\": \"tepatest0310a\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-10T20:36:37.1720145Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://tepatest0310a.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"678dbef3-bf86-4a6c-acab-4ca4a77a100e\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"tepatest0310a-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tepatest0310a-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"tepatest0310a-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tepatest0310a-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"tepatest0310a-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tepatest0310a-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"tepatest0310a-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/backup-restore/providers/Microsoft.DocumentDB/databaseAccounts/tepatest0310b\",\r\n \"name\": \"tepatest0310b\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-10T21:21:45.3052045Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://tepatest0310b.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"1d2d8b93-5746-492c-bb7c-7a632ea2d086\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"tepatest0310b-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tepatest0310b-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"tepatest0310b-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tepatest0310b-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"tepatest0310b-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tepatest0310b-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"tepatest0310b-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/backup-restore/providers/Microsoft.DocumentDB/databaseAccounts/tepatest0310d\",\r\n \"name\": \"tepatest0310d\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-10T21:52:59.9199356Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://tepatest0310d.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"21b75fa2-c78b-46e4-bbec-95977d11ba36\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"tepatest0310d-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tepatest0310d-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"tepatest0310d-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tepatest0310d-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"tepatest0310d-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tepatest0310d-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"tepatest0310d-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shreygremlintest/providers/Microsoft.DocumentDB/databaseAccounts/shreygremlintest1\",\r\n \"name\": \"shreygremlintest1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlinv2\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-11T02:07:44.8615871Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shreygremlintest1.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://shreygremlintest1.gremlin.cosmos.windows-ppe.net/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"GremlinV2\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"161fd54c-fdb7-4d2d-8afc-324d806e74de\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"clusterInstanceCount\": 1,\r\n \"clusterSize\": \"Cosmos.D4s\"\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shreygremlintest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shreygremlintest1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shreygremlintest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shreygremlintest1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shreygremlintest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shreygremlintest1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shreygremlintest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlinV2\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shreystagetest/providers/Microsoft.DocumentDB/databaseAccounts/shreytest\",\r\n \"name\": \"shreytest\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-11T08:51:30.3079148Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://shreytest.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"6629d96d-be05-4211-9bce-73ebe715f174\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"shreytest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shreytest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"shreytest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shreytest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"shreytest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://shreytest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"shreytest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pjohari-stage-test/providers/Microsoft.DocumentDB/databaseAccounts/pjohari-stage-eu2\",\r\n \"name\": \"pjohari-stage-eu2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-11T18:12:43.4317687Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pjohari-stage-eu2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"91aeb50f-f34a-4af9-9eb0-62b652a168be\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pjohari-stage-eu2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pjohari-stage-eu2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pjohari-stage-eu2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pjohari-stage-eu2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pjohari-stage-eu2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pjohari-stage-eu2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pjohari-stage-eu2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi/providers/Microsoft.DocumentDB/databaseAccounts/testmvbuilder\",\r\n \"name\": \"testmvbuilder\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-11T22:31:41.8970707Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testmvbuilder.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://testmvbuilder.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"b9bca712-00cf-461b-a344-f649270bc433\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testmvbuilder-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testmvbuilder-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testmvbuilder-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testmvbuilder-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testmvbuilder-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testmvbuilder-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testmvbuilder-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi/providers/Microsoft.DocumentDB/databaseAccounts/testmvbuilder2\",\r\n \"name\": \"testmvbuilder2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-11T23:57:49.3229903Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testmvbuilder2.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://testmvbuilder2.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"fa0993ae-3451-49c2-9452-095e8f5902a0\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testmvbuilder2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testmvbuilder2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testmvbuilder2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testmvbuilder2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testmvbuilder2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testmvbuilder2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testmvbuilder2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi/providers/Microsoft.DocumentDB/databaseAccounts/tesmvbuilder3\",\r\n \"name\": \"tesmvbuilder3\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-12T00:40:27.5945409Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://tesmvbuilder3.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://tesmvbuilder3.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"319146c3-627a-41c5-a4e0-ffef0e10400a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"tesmvbuilder3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tesmvbuilder3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"tesmvbuilder3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tesmvbuilder3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"tesmvbuilder3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://tesmvbuilder3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"tesmvbuilder3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi/providers/Microsoft.DocumentDB/databaseAccounts/testmvbuilder4\",\r\n \"name\": \"testmvbuilder4\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-12T05:26:24.8742151Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testmvbuilder4.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://testmvbuilder4.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"ead85aba-bbed-4c41-b7f6-5d3221a4998c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testmvbuilder4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testmvbuilder4-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testmvbuilder4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testmvbuilder4-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testmvbuilder4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testmvbuilder4-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testmvbuilder4-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi/providers/Microsoft.DocumentDB/databaseAccounts/testmvbuilder5\",\r\n \"name\": \"testmvbuilder5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-12T05:37:32.4220539Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testmvbuilder5.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://testmvbuilder5.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"b879f341-2f6f-4696-b24f-14358f3a5c7b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testmvbuilder5-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testmvbuilder5-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testmvbuilder5-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testmvbuilder5-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testmvbuilder5-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testmvbuilder5-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testmvbuilder5-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/mekaushi/providers/Microsoft.DocumentDB/databaseAccounts/testmvbuilder8\",\r\n \"name\": \"testmvbuilder8\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-12T07:23:58.3503072Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testmvbuilder8.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://testmvbuilder8.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"dde7db97-a4d9-4dbf-a72f-2241a958f843\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": true,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testmvbuilder8-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testmvbuilder8-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testmvbuilder8-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testmvbuilder8-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testmvbuilder8-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testmvbuilder8-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testmvbuilder8-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CtlProfilingPrototypes/providers/Microsoft.DocumentDB/databaseAccounts/ecommerceworkloadtest\",\r\n \"name\": \"ecommerceworkloadtest\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-12T18:38:38.6044454Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ecommerceworkloadtest.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d9bc6200-0e96-4751-b1fa-26846ffbc35a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ecommerceworkloadtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ecommerceworkloadtest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ecommerceworkloadtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ecommerceworkloadtest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ecommerceworkloadtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://ecommerceworkloadtest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ecommerceworkloadtest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/SqlxStageSignoff/providers/Microsoft.DocumentDB/databaseAccounts/sqlxjavastagesignoff\",\r\n \"name\": \"sqlxjavastagesignoff\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-15T16:50:12.8435432Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sqlxjavastagesignoff.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"3dbdad58-e720-4d3f-bb94-9805fc4d4f78\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sqlxjavastagesignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sqlxjavastagesignoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sqlxjavastagesignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sqlxjavastagesignoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sqlxjavastagesignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sqlxjavastagesignoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sqlxjavastagesignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/SqlxStageSignoff/providers/Microsoft.DocumentDB/databaseAccounts/sqlxstagesignoff\",\r\n \"name\": \"sqlxstagesignoff\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-15T21:58:39.7593502Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sqlxstagesignoff.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"caf3fa53-e03e-4887-9c0d-45a5995f4755\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Eventual\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sqlxstagesignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sqlxstagesignoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sqlxstagesignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sqlxstagesignoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sqlxstagesignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sqlxstagesignoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sqlxstagesignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/SqlxStageSignoff/providers/Microsoft.DocumentDB/databaseAccounts/sqlxpythonstagesignoff\",\r\n \"name\": \"sqlxpythonstagesignoff\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-16T00:16:17.6580081Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sqlxpythonstagesignoff.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"05b26858-b489-4c1b-b85d-e47ae5060c29\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sqlxpythonstagesignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sqlxpythonstagesignoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sqlxpythonstagesignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sqlxpythonstagesignoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sqlxpythonstagesignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sqlxpythonstagesignoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sqlxpythonstagesignoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/viho-rg-stage/providers/Microsoft.DocumentDB/databaseAccounts/vihosqlaz\",\r\n \"name\": \"vihosqlaz\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-20T00:40:34.5604465Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://vihosqlaz.documents-staging.windows-ppe.net:443/\",\r\n \"sqlEndpoint\": \"https://vihosqlaz.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"398282d8-1c34-4785-92bf-4673e97a8619\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"vihosqlaz-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vihosqlaz-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"vihosqlaz-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vihosqlaz-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"vihosqlaz-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vihosqlaz-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"vihosqlaz-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableSql\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/viho-rg-stage/providers/Microsoft.DocumentDB/databaseAccounts/vihosqlaz2\",\r\n \"name\": \"vihosqlaz2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-20T00:41:09.2301281Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://vihosqlaz2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"dcb15e65-7448-4f97-b4dc-59723390c993\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"vihosqlaz2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vihosqlaz2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"vihosqlaz2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vihosqlaz2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"vihosqlaz2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vihosqlaz2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"vihosqlaz2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/viho-rg-stage/providers/Microsoft.DocumentDB/databaseAccounts/vihosqlaz3\",\r\n \"name\": \"vihosqlaz3\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-20T00:41:39.60151Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://vihosqlaz3.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"9342715d-092e-4fe6-a3f8-27cbbf09b4e3\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"vihosqlaz3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vihosqlaz3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"vihosqlaz3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vihosqlaz3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"vihosqlaz3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vihosqlaz3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"vihosqlaz3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/linkedIn/providers/Microsoft.DocumentDB/databaseAccounts/linkedin-ctl-staging\",\r\n \"name\": \"linkedin-ctl-staging\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-22T21:39:59.1959652Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://linkedin-ctl-staging.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"e1da48b5-748c-48a3-8891-725cb1b0f78e\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"linkedin-ctl-staging-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://linkedin-ctl-staging-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"linkedin-ctl-staging-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://linkedin-ctl-staging-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"linkedin-ctl-staging-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://linkedin-ctl-staging-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"linkedin-ctl-staging-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CANARY/providers/Microsoft.DocumentDB/databaseAccounts/canary-stageeastus2cm2-cassandra\",\r\n \"name\": \"canary-stageeastus2cm2-cassandra\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-26T17:38:39.5527019Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2cm2-cassandra.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://canary-stageeastus2cm2-cassandra.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"ce92655d-b1ef-4367-a0fc-ea69d12b32d6\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2cm2-cassandra-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2cm2-cassandra-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2cm2-cassandra-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2cm2-cassandra-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"canary-stageeastus2cm2-cassandra-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2cm2-cassandra-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"canary-stageeastus2cm2-cassandra-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CANARY/providers/Microsoft.DocumentDB/databaseAccounts/canary-stageeastus2cm4-cassandra\",\r\n \"name\": \"canary-stageeastus2cm4-cassandra\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-26T17:42:04.9313772Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2cm4-cassandra.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://canary-stageeastus2cm4-cassandra.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"26d28559-b84c-46eb-b728-328af4b074d1\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2cm4-cassandra-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2cm4-cassandra-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2cm4-cassandra-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2cm4-cassandra-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"canary-stageeastus2cm4-cassandra-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2cm4-cassandra-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"canary-stageeastus2cm4-cassandra-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CANARY/providers/Microsoft.DocumentDB/databaseAccounts/canary-stageeastus2cm5-cassandra\",\r\n \"name\": \"canary-stageeastus2cm5-cassandra\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-26T17:43:05.5503932Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2cm5-cassandra.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://canary-stageeastus2cm5-cassandra.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"476b9613-f016-433a-b852-dde54bacd240\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2cm5-cassandra-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2cm5-cassandra-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"canary-stageeastus2cm5-cassandra-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2cm5-cassandra-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"canary-stageeastus2cm5-cassandra-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://canary-stageeastus2cm5-cassandra-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"canary-stageeastus2cm5-cassandra-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/gaausfel-dev/providers/Microsoft.DocumentDB/databaseAccounts/gaausfel-staging-signoff\",\r\n \"name\": \"gaausfel-staging-signoff\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-29T18:07:56.8869506Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://gaausfel-staging-signoff.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"cf23349a-ffbe-47db-8f90-846d93a8e800\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"gaausfel-staging-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://gaausfel-staging-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"gaausfel-staging-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://gaausfel-staging-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"gaausfel-staging-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://gaausfel-staging-signoff-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"gaausfel-staging-signoff-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/backup-restore/providers/Microsoft.DocumentDB/databaseAccounts/stage-pitr-validation-source-restored1\",\r\n \"name\": \"stage-pitr-validation-source-restored1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-29T18:56:13.1795531Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://stage-pitr-validation-source-restored1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"9ba4de72-dcc5-4129-a64a-cbcdb3cdd9dc\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"stage-pitr-validation-source-restored1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-pitr-validation-source-restored1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"stage-pitr-validation-source-restored1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-pitr-validation-source-restored1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"stage-pitr-validation-source-restored1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-pitr-validation-source-restored1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"stage-pitr-validation-source-restored1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/a54115d5-4356-4771-b7b0-20f475ce5a38\",\r\n \"restoreTimestampInUtc\": \"2021-03-01T11:00:44Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/bar-stagevalidationtest/providers/Microsoft.DocumentDB/databaseAccounts/pitr-hotfix-stage-restored-rrr-20210331\",\r\n \"name\": \"pitr-hotfix-stage-restored-rrr-20210331\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-31T12:26:54.4557208Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-hotfix-stage-restored-rrr-20210331.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"25c89fdc-a256-429f-8288-2f0e6e5f39ed\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-hotfix-stage-restored-rrr-20210331-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-hotfix-stage-restored-rrr-20210331-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-hotfix-stage-restored-rrr-20210331-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-hotfix-stage-restored-rrr-20210331-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-hotfix-stage-restored-rrr-20210331-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-hotfix-stage-restored-rrr-20210331-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-hotfix-stage-restored-rrr-20210331-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/a54115d5-4356-4771-b7b0-20f475ce5a38\",\r\n \"restoreTimestampInUtc\": \"2021-03-31T12:05:22.1385897Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/bar-stagevalidationtest/providers/Microsoft.DocumentDB/databaseAccounts/pitr-hotfix-stage-restored-dr-20210331\",\r\n \"name\": \"pitr-hotfix-stage-restored-dr-20210331\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-31T12:56:29.9986368Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-hotfix-stage-restored-dr-20210331.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"6aac05b1-7b02-415d-9a7e-b7884b5505f8\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-hotfix-stage-restored-dr-20210331-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-hotfix-stage-restored-dr-20210331-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-hotfix-stage-restored-dr-20210331-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-hotfix-stage-restored-dr-20210331-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-hotfix-stage-restored-dr-20210331-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-hotfix-stage-restored-dr-20210331-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-hotfix-stage-restored-dr-20210331-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/e4238066-b529-481d-9371-0956f24ff55d\",\r\n \"restoreTimestampInUtc\": \"2021-03-31T12:27:47.4347058Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/bar-stagevalidationtest/providers/Microsoft.DocumentDB/databaseAccounts/pitr-hotfix-stage-restored-ror-20210331\",\r\n \"name\": \"pitr-hotfix-stage-restored-ror-20210331\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-31T13:20:21.0905569Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-hotfix-stage-restored-ror-20210331.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d81c1811-de53-4aee-9ef9-3378e7be9fc1\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-hotfix-stage-restored-ror-20210331-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-hotfix-stage-restored-ror-20210331-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-hotfix-stage-restored-ror-20210331-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-hotfix-stage-restored-ror-20210331-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-hotfix-stage-restored-ror-20210331-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-hotfix-stage-restored-ror-20210331-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-hotfix-stage-restored-ror-20210331-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/25c89fdc-a256-429f-8288-2f0e6e5f39ed\",\r\n \"restoreTimestampInUtc\": \"2021-03-31T12:58:04.5033658Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/samahanarg/providers/Microsoft.DocumentDB/databaseAccounts/samahanasqltest\",\r\n \"name\": \"samahanasqltest\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-13T18:48:03.6696958Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://samahanasqltest.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"13e0bf01-3f07-4d6d-a669-97df7611644c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"samahanasqltest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://samahanasqltest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"samahanasqltest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://samahanasqltest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"samahanasqltest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://samahanasqltest-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"samahanasqltest-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/samahanarg/providers/Microsoft.DocumentDB/databaseAccounts/samahanatest2\",\r\n \"name\": \"samahanatest2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-13T21:54:34.7268625Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://samahanatest2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"16a31465-d07d-4e3c-b020-4b2617ba349c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"samahanatest2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://samahanatest2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"samahanatest2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://samahanatest2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"samahanatest2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://samahanatest2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"samahanatest2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/backup-restore/providers/Microsoft.DocumentDB/databaseAccounts/stage-validation-source-r3\",\r\n \"name\": \"stage-validation-source-r3\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"restoredSourceDatabaseAccountName\": \"stage-validation-source\",\r\n \"restoredAtTimestamp\": \"4/14/2021 6:24:15 PM\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-14T18:31:35.5537137Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r3.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"b2b59808-8687-4485-b441-c9b289915a07\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"stage-validation-source-r3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"stage-validation-source-r3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"stage-validation-source-r3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"stage-validation-source-r3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations//restorableDatabaseAccounts/2e123a98-31b1-4603-a0e7-8a84fa28a1ee\",\r\n \"restoreTimestampInUtc\": \"2021-04-14T14:00:00Z\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/backup-restore/providers/Microsoft.DocumentDB/databaseAccounts/stage-validation-source-r2\",\r\n \"name\": \"stage-validation-source-r2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"restoredSourceDatabaseAccountName\": \"stage-validation-source\",\r\n \"restoredAtTimestamp\": \"4/14/2021 6:24:28 PM\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-14T18:33:57.3219104Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"66f72090-3feb-4bfc-846e-4a5aa03cd863\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"stage-validation-source-r2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"stage-validation-source-r2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"stage-validation-source-r2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"stage-validation-source-r2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Local\"\r\n }\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations//restorableDatabaseAccounts/2e123a98-31b1-4603-a0e7-8a84fa28a1ee\",\r\n \"restoreTimestampInUtc\": \"2021-04-14T14:00:00Z\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/backup-restore/providers/Microsoft.DocumentDB/databaseAccounts/stage-validation-source-r1\",\r\n \"name\": \"stage-validation-source-r1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"restoredSourceDatabaseAccountName\": \"stage-validation-source\",\r\n \"restoredAtTimestamp\": \"4/14/2021 6:24:38 PM\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-14T18:33:55.2592402Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"8b53dc96-dda3-4b43-b682-0cbec089e5e9\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"stage-validation-source-r1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"stage-validation-source-r1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"stage-validation-source-r1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"stage-validation-source-r1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 9,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations//restorableDatabaseAccounts/2e123a98-31b1-4603-a0e7-8a84fa28a1ee\",\r\n \"restoreTimestampInUtc\": \"2021-04-14T14:00:00Z\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/bar-stagevalidationtest/providers/Microsoft.DocumentDB/databaseAccounts/pitr-hotfix-stage-restored-rrr-20210414\",\r\n \"name\": \"pitr-hotfix-stage-restored-rrr-20210414\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-14T22:28:52.8596304Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-hotfix-stage-restored-rrr-20210414.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"3472b9a8-dce7-412f-908f-0ca07fab66b4\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-hotfix-stage-restored-rrr-20210414-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-hotfix-stage-restored-rrr-20210414-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-hotfix-stage-restored-rrr-20210414-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-hotfix-stage-restored-rrr-20210414-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-hotfix-stage-restored-rrr-20210414-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-hotfix-stage-restored-rrr-20210414-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-hotfix-stage-restored-rrr-20210414-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/a54115d5-4356-4771-b7b0-20f475ce5a38\",\r\n \"restoreTimestampInUtc\": \"2021-04-14T21:49:40.8690981Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/viho-rg-stage/providers/Microsoft.DocumentDB/databaseAccounts/vihocassaz2\",\r\n \"name\": \"vihocassaz2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-14T22:39:09.1817003Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://vihocassaz2.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://vihocassaz2.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"99e728ed-7484-4fad-b7f8-cb22b4feeae0\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"vihocassaz2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vihocassaz2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"vihocassaz2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vihocassaz2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"vihocassaz2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vihocassaz2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": true\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"vihocassaz2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/backup-restore/providers/Microsoft.DocumentDB/databaseAccounts/stage-validation-source-r44-r1\",\r\n \"name\": \"stage-validation-source-r44-r1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"restoredSourceDatabaseAccountName\": \"stage-validation-source,stage-validation-source-r44\",\r\n \"restoredAtTimestamp\": \"4/14/2021 6:24:38 PM,4/15/2021 2:02:54 AM\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-15T02:10:59.4427334Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r44-r1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"4e67451b-4561-4e86-8977-5cae9561a5db\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"stage-validation-source-r44-r1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r44-r1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"stage-validation-source-r44-r1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r44-r1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"stage-validation-source-r44-r1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r44-r1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"stage-validation-source-r44-r1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations//restorableDatabaseAccounts/0a330a35-66f6-412b-bc7d-5fb09028d7c6\",\r\n \"restoreTimestampInUtc\": \"2021-04-14T21:57:20Z\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/bar-stagevalidationtest/providers/Microsoft.DocumentDB/databaseAccounts/pitr-hotfix-stage-restored-dr-20210414\",\r\n \"name\": \"pitr-hotfix-stage-restored-dr-20210414\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-15T02:32:17.0028163Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-hotfix-stage-restored-dr-20210414.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"86d7038a-f878-403a-844e-743f89abbb1f\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-hotfix-stage-restored-dr-20210414-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-hotfix-stage-restored-dr-20210414-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-hotfix-stage-restored-dr-20210414-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-hotfix-stage-restored-dr-20210414-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-hotfix-stage-restored-dr-20210414-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-hotfix-stage-restored-dr-20210414-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-hotfix-stage-restored-dr-20210414-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/663857f1-9f11-442b-9d89-f20cc7fd8585\",\r\n \"restoreTimestampInUtc\": \"2021-04-14T22:29:35.0741176Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/bar-stagevalidationtest/providers/Microsoft.DocumentDB/databaseAccounts/pitr-hotfix-stage-restored-ror-20210414\",\r\n \"name\": \"pitr-hotfix-stage-restored-ror-20210414\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-15T02:57:02.1149308Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-hotfix-stage-restored-ror-20210414.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a0c919ea-bb0b-4389-9639-532e9f5d245e\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-hotfix-stage-restored-ror-20210414-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-hotfix-stage-restored-ror-20210414-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-hotfix-stage-restored-ror-20210414-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-hotfix-stage-restored-ror-20210414-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-hotfix-stage-restored-ror-20210414-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-hotfix-stage-restored-ror-20210414-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-hotfix-stage-restored-ror-20210414-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/3472b9a8-dce7-412f-908f-0ca07fab66b4\",\r\n \"restoreTimestampInUtc\": \"2021-04-15T02:33:24.2017963Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/backup-restore/providers/Microsoft.DocumentDB/databaseAccounts/stage-validation-source-r1-r1\",\r\n \"name\": \"stage-validation-source-r1-r1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"restoredSourceDatabaseAccountName\": \"stage-validation-source,stage-validation-source-r1\",\r\n \"restoredAtTimestamp\": \"4/14/2021 6:24:38 PM,4/15/2021 2:55:52 AM\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-15T03:04:16.3322126Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r1-r1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"0562f411-1d0f-4216-bd2c-df536ea36187\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"stage-validation-source-r1-r1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r1-r1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"stage-validation-source-r1-r1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r1-r1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"stage-validation-source-r1-r1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r1-r1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"stage-validation-source-r1-r1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations//restorableDatabaseAccounts/8b53dc96-dda3-4b43-b682-0cbec089e5e9\",\r\n \"restoreTimestampInUtc\": \"2021-04-15T02:30:00Z\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/backup-restore/providers/Microsoft.DocumentDB/databaseAccounts/stage-validation-source-r44-r2\",\r\n \"name\": \"stage-validation-source-r44-r2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"restoredSourceDatabaseAccountName\": \"stage-validation-source,stage-validation-source-r44\",\r\n \"restoredAtTimestamp\": \"4/14/2021 6:24:38 PM,4/15/2021 2:56:14 AM\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-15T03:04:14.0459422Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r44-r2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"368cd767-96e6-4092-9e2c-f550703824de\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"stage-validation-source-r44-r2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r44-r2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"stage-validation-source-r44-r2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r44-r2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"stage-validation-source-r44-r2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r44-r2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"stage-validation-source-r44-r2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations//restorableDatabaseAccounts/0a330a35-66f6-412b-bc7d-5fb09028d7c6\",\r\n \"restoreTimestampInUtc\": \"2021-04-14T21:57:20Z\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/backup-restore/providers/Microsoft.DocumentDB/databaseAccounts/stage-validation-source-r44-r3\",\r\n \"name\": \"stage-validation-source-r44-r3\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"restoredSourceDatabaseAccountName\": \"stage-validation-source,stage-validation-source-r44\",\r\n \"restoredAtTimestamp\": \"4/14/2021 6:24:38 PM,4/15/2021 3:31:38 AM\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-15T03:39:36.2620695Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r44-r3.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"981d4867-855d-4384-b333-4a76a2e1be79\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"stage-validation-source-r44-r3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r44-r3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"stage-validation-source-r44-r3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r44-r3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"stage-validation-source-r44-r3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://stage-validation-source-r44-r3-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"stage-validation-source-r44-r3-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations//restorableDatabaseAccounts/0a330a35-66f6-412b-bc7d-5fb09028d7c6\",\r\n \"restoreTimestampInUtc\": \"2021-04-14T21:57:20Z\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-as-stage-signoff/providers/Microsoft.DocumentDB/databaseAccounts/pitr-as-stage-validation-source\",\r\n \"name\": \"pitr-as-stage-validation-source\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-16T17:45:40.5722792Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-as-stage-validation-source.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"f297a3ff-0d28-4b55-9886-aab70c231eb9\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-as-stage-validation-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-as-stage-validation-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-as-stage-validation-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-as-stage-validation-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-as-stage-validation-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-as-stage-validation-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-as-stage-validation-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-as-stage-signoff/providers/Microsoft.DocumentDB/databaseAccounts/pitr-as-stage-validation-source-r0416\",\r\n \"name\": \"pitr-as-stage-validation-source-r0416\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-16T18:24:14.8974132Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-as-stage-validation-source-r0416.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d7f028d4-f830-42e1-b048-1f1bb9b4f8b1\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-as-stage-validation-source-r0416-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-as-stage-validation-source-r0416-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-as-stage-validation-source-r0416-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-as-stage-validation-source-r0416-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-as-stage-validation-source-r0416-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-as-stage-validation-source-r0416-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-as-stage-validation-source-r0416-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/f297a3ff-0d28-4b55-9886-aab70c231eb9\",\r\n \"restoreTimestampInUtc\": \"2021-04-16T18:00:00Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/masi_rg/providers/Microsoft.DocumentDB/databaseAccounts/masi-signoff0321\",\r\n \"name\": \"masi-signoff0321\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-16T19:50:48.1133519Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://masi-signoff0321.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"0240aa6b-7f81-4eae-930c-5f679c62aa5c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"masi-signoff0321-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://masi-signoff0321-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"masi-signoff0321-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://masi-signoff0321-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"masi-signoff0321-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://masi-signoff0321-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"masi-signoff0321-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/artrejo/providers/Microsoft.DocumentDB/databaseAccounts/20210419-sql\",\r\n \"name\": \"20210419-sql\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-19T18:20:37.7815072Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://20210419-sql.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"f4b91bdc-5573-4b84-9fc3-31f3e8d8aa11\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Strong\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"20210419-sql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://20210419-sql-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"20210419-sql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://20210419-sql-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"20210419-sql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://20210419-sql-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"20210419-sql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/craigmci/providers/Microsoft.DocumentDB/databaseAccounts/craigmci-kafkaconnect\",\r\n \"name\": \"craigmci-kafkaconnect\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-20T14:11:00.1030608Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://craigmci-kafkaconnect.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://craigmci-kafkaconnect.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"74396831-a0d5-4b44-b0bf-c1b2c3580551\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"craigmci-kafkaconnect-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://craigmci-kafkaconnect-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"craigmci-kafkaconnect-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://craigmci-kafkaconnect-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"craigmci-kafkaconnect-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://craigmci-kafkaconnect-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"craigmci-kafkaconnect-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/artrejo/providers/Microsoft.DocumentDB/databaseAccounts/20210420-mongo\",\r\n \"name\": \"20210420-mongo\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-20T17:22:30.8156974Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://20210420-mongo.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a9d3391d-9772-4a20-a441-d8df8f552800\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"20210420-mongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://20210420-mongo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"20210420-mongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://20210420-mongo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"20210420-mongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://20210420-mongo-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"20210420-mongo-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/artrejo/providers/Microsoft.DocumentDB/databaseAccounts/20210420-cassandra\",\r\n \"name\": \"20210420-cassandra\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-20T17:23:47.829748Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://20210420-cassandra.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://20210420-cassandra.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"034b59a2-aa7b-4d4f-99b0-acc26c4e1751\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"20210420-cassandra-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://20210420-cassandra-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"20210420-cassandra-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://20210420-cassandra-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"20210420-cassandra-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://20210420-cassandra-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"20210420-cassandra-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/samahanarg/providers/Microsoft.DocumentDB/databaseAccounts/samahanasqltest1\",\r\n \"name\": \"samahanasqltest1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-23T21:35:24.2799601Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://samahanasqltest1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"3bf3600a-f65c-4e8b-9047-18c0e4db7a1d\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"samahanasqltest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://samahanasqltest1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"samahanasqltest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://samahanasqltest1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"samahanasqltest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://samahanasqltest1-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"samahanasqltest1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/srpalive-cassandra-rg/providers/Microsoft.DocumentDB/databaseAccounts/srpalive-stage-cassandra2\",\r\n \"name\": \"srpalive-stage-cassandra2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-23T23:37:14.5487129Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://srpalive-stage-cassandra2.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://srpalive-stage-cassandra2.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c19e8126-654b-46e3-832a-832d8eca0465\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"srpalive-stage-cassandra2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://srpalive-stage-cassandra2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"srpalive-stage-cassandra2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://srpalive-stage-cassandra2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"srpalive-stage-cassandra2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://srpalive-stage-cassandra2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"srpalive-stage-cassandra2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394/providers/Microsoft.DocumentDB/databaseAccounts/accountname9088\",\r\n \"name\": \"accountname9088\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-27T17:25:41.0988424Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://accountname9088.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://accountname9088.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": true,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c3f52ca9-535e-46c4-85d4-8b8c6a46d967\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": true,\r\n \"connectorOffer\": \"Small\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"AzureServices\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname9088-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname9088-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname9088-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName\",\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName2\"\r\n ]\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/cph-stage-eastus2-rg/providers/Microsoft.DocumentDB/databaseAccounts/cph-stage-eastus2\",\r\n \"name\": \"cph-stage-eastus2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-27T17:33:55.0660227Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"48044c82-d102-494c-bf04-214eb00e9adf\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"cph-stage-eastus2-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Deleting\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"cph-stage-eastus2-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Deleting\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"cph-stage-eastus2-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/cph-stage-eastus2-rg/providers/Microsoft.DocumentDB/databaseAccounts/cph-stage-eastus2-sql\",\r\n \"name\": \"cph-stage-eastus2-sql\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-27T17:33:51.3629073Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-sql.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"ccb99521-6326-44b6-ba7f-d97fd8308500\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-sql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-sql-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-sql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-sql-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-sql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-sql-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-sql-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/cph-stage-eastus2-rg/providers/Microsoft.DocumentDB/databaseAccounts/cph-stage-eastus2-mgo36\",\r\n \"name\": \"cph-stage-eastus2-mgo36\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-27T17:34:27.1777552Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-mgo36.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://cph-stage-eastus2-mgo36.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a638ac91-3ead-4e70-92f8-7ff5712dcd74\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-mgo36-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-mgo36-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-mgo36-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-mgo36-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-mgo36-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-mgo36-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-mgo36-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/cph-stage-eastus2-rg/providers/Microsoft.DocumentDB/databaseAccounts/cph-stage-eastus2-mgo32\",\r\n \"name\": \"cph-stage-eastus2-mgo32\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-27T17:33:57.4744345Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-mgo32.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"140e3b01-687e-4ef0-a871-7785a358a3c8\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-mgo32-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-mgo32-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-mgo32-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-mgo32-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-mgo32-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-mgo32-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-mgo32-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/cph-stage-eastus2-rg/providers/Microsoft.DocumentDB/databaseAccounts/cph-stage-eastus2-gln\",\r\n \"name\": \"cph-stage-eastus2-gln\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-27T17:34:21.1682207Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-gln.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://cph-stage-eastus2-gln.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"4b4d194d-3eaf-4c45-aae9-4890f90ab0c4\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-gln-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-gln-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-gln-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-gln-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-gln-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-gln-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-gln-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/cph-stage-eastus2-rg/providers/Microsoft.DocumentDB/databaseAccounts/cph-stage-eastus2-cx\",\r\n \"name\": \"cph-stage-eastus2-cx\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-27T17:34:25.8852635Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-cx.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://cph-stage-eastus2-cx.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"3281f91a-2e59-4fb4-81ca-9487b5e33f55\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-cx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-cx-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-cx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-cx-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-cx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-cx-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-cx-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/cph-stage-eastus2-rg/providers/Microsoft.DocumentDB/databaseAccounts/cph-stage-eastus2-tbl\",\r\n \"name\": \"cph-stage-eastus2-tbl\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-27T17:34:30.5884147Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-tbl.documents-staging.windows-ppe.net:443/\",\r\n \"tableEndpoint\": \"https://cph-stage-eastus2-tbl.table.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Table, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"736b628d-c74b-42c2-af7f-daf4431a5531\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 86400,\r\n \"maxStalenessPrefix\": 1000000\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-tbl-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-tbl-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-tbl-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-tbl-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-tbl-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-eastus2-tbl-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cph-stage-eastus2-tbl-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableTable\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/cassandra-stage-signoff/providers/Microsoft.DocumentDB/databaseAccounts/cassandrastagesignoff-sea\",\r\n \"name\": \"cassandrastagesignoff-sea\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-01T17:58:49.1912309Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cassandrastagesignoff-sea.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://cassandrastagesignoff-sea.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"f414f7a1-0a00-4e90-8f47-38d2a9dca706\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cassandrastagesignoff-sea-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cassandrastagesignoff-sea-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cassandrastagesignoff-sea-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cassandrastagesignoff-sea-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cassandrastagesignoff-sea-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cassandrastagesignoff-sea-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cassandrastagesignoff-sea-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ash/providers/Microsoft.DocumentDB/databaseAccounts/ash-gremlin1-nb\",\r\n \"name\": \"ash-gremlin1-nb\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlin (graph)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-09-25T23:59:54.3197186Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ash-gremlin1-nb.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://ash-gremlin1-nb.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"25bcf201-a6c5-4a2e-a05f-174e0be70e39\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ash-gremlin1-nb-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://ash-gremlin1-nb-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ash-gremlin1-nb-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://ash-gremlin1-nb-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ash-gremlin1-nb-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://ash-gremlin1-nb-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ash-gremlin1-nb-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n },\r\n {\r\n \"name\": \"EnableNotebooks\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ankisrgsea/providers/Microsoft.DocumentDB/databaseAccounts/ankis-cosmos-sea\",\r\n \"name\": \"ankis-cosmos-sea\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-01-30T11:18:31.8357791Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ankis-cosmos-sea.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"e56e34b2-cd4a-4339-a7a3-b58168fa01ee\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ankis-cosmos-sea-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://ankis-cosmos-sea-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"ankis-cosmos-sea-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ankis-cosmos-sea-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ankis-cosmos-sea-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://ankis-cosmos-sea-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"ankis-cosmos-sea-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ankis-cosmos-sea-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ankis-cosmos-sea-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://ankis-cosmos-sea-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"ankis-cosmos-sea-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://ankis-cosmos-sea-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ankis-cosmos-sea-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"ankis-cosmos-sea-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CANARY/providers/Microsoft.DocumentDB/databaseAccounts/canary-stagesoutheastasia1cm1\",\r\n \"name\": \"canary-stagesoutheastasia1cm1\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"DocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-12T22:41:30.4176647Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://canary-stagesoutheastasia1cm1.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://canary-stagesoutheastasia1cm1.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"646e3e7d-f2c7-4656-83bd-52969dae6294\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"canary-stagesoutheastasia1cm1-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://canary-stagesoutheastasia1cm1-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"canary-stagesoutheastasia1cm1-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://canary-stagesoutheastasia1cm1-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"canary-stagesoutheastasia1cm1-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://canary-stagesoutheastasia1cm1-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"canary-stagesoutheastasia1cm1-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/babatsai-rg-signoff/providers/Microsoft.DocumentDB/databaseAccounts/cass-stage-test\",\r\n \"name\": \"cass-stage-test\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-07-04T00:05:39.9258705Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cass-stage-test.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://cass-stage-test.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a4e87698-1313-46ca-80bd-a1779e626e00\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cass-stage-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cass-stage-test-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cass-stage-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cass-stage-test-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cass-stage-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cass-stage-test-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cass-stage-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/devenj-rg-sea/providers/Microsoft.DocumentDB/databaseAccounts/devenjtestmigrate2\",\r\n \"name\": \"devenjtestmigrate2\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2018-12-04T19:44:10.547179Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://devenjtestmigrate2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"6216b5fa-0a6f-4408-8788-f472c1cd9778\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"devenjtestmigrate2-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://devenjtestmigrate2-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"devenjtestmigrate2-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://devenjtestmigrate2-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"devenjtestmigrate2-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://devenjtestmigrate2-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"devenjtestmigrate2-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/abinav_stage_rg/providers/Microsoft.DocumentDB/databaseAccounts/collectiontest\",\r\n \"name\": \"collectiontest\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-12-21T02:49:36.6550005Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://collectiontest.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"176a9124-1378-4828-9291-b1e21bd79736\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"collectiontest-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://collectiontest-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"collectiontest-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://collectiontest-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"collectiontest-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://collectiontest-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"collectiontest-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/gremlin/providers/Microsoft.DocumentDB/databaseAccounts/gremlin-stage-cli\",\r\n \"name\": \"gremlin-stage-cli\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-06-06T23:46:54.9893772Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://gremlin-stage-cli.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://gremlin-stage-cli.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"41f63eae-7a21-442c-8edb-d74398f087e8\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"gremlin-stage-cli-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://gremlin-stage-cli-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"gremlin-stage-cli-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://gremlin-stage-cli-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"gremlin-stage-cli-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://gremlin-stage-cli-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"gremlin-stage-cli-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/gremlin/providers/Microsoft.DocumentDB/databaseAccounts/gremlin-stage\",\r\n \"name\": \"gremlin-stage\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlin (graph)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-06-06T22:47:26.669989Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://gremlin-stage.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://gremlin-stage.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"a3f63ba1-94b2-4ddb-b49c-2cc457a7adf5\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"gremlin-stage-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://gremlin-stage-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"gremlin-stage-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://gremlin-stage-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"gremlin-stage-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://gremlin-stage-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"gremlin-stage-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/arkhetar-staging/providers/Microsoft.DocumentDB/databaseAccounts/arkhetar-operation-log-test\",\r\n \"name\": \"arkhetar-operation-log-test\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-01-10T20:52:05.6104687Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://arkhetar-operation-log-test.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"216716d2-7f59-4f8b-be8d-f242703cfdb8\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"arkhetar-operation-log-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://arkhetar-operation-log-test-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"arkhetar-operation-log-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://arkhetar-operation-log-test-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"arkhetar-operation-log-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://arkhetar-operation-log-test-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"arkhetar-operation-log-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/babatsai-rg-signoff/providers/Microsoft.DocumentDB/databaseAccounts/mongo-stage-test\",\r\n \"name\": \"mongo-stage-test\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-07-04T00:05:37.7510335Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongo-stage-test.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"b1e06879-5f95-47c5-bf21-29d62e080c5a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongo-stage-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://mongo-stage-test-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongo-stage-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://mongo-stage-test-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongo-stage-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://mongo-stage-test-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongo-stage-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/shtan-stage-signoff/providers/Microsoft.DocumentDB/databaseAccounts/restored-shtan-stage\",\r\n \"name\": \"restored-shtan-stage\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\",\r\n \"restoredSourceDatabaseAccountName\": \"shtan-stage\",\r\n \"restoredAtTimestamp\": \"10/30/2019 5:29:18 PM\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-10-30T17:47:49.8052668Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://restored-shtan-stage.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"cff6e11d-6879-4530-bb43-ececf73b1499\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"restored-shtan-stage-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://restored-shtan-stage-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"restored-shtan-stage-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://restored-shtan-stage-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"restored-shtan-stage-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://restored-shtan-stage-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"restored-shtan-stage-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/test-mongo-vir\",\r\n \"name\": \"test-mongo-vir\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-26T21:17:16.5969022Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test-mongo-vir.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"abec24f9-4e6a-45d4-8bbe-fefe85aea77d\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test-mongo-vir-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://test-mongo-vir-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test-mongo-vir-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://test-mongo-vir-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test-mongo-vir-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://test-mongo-vir-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test-mongo-vir-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"104.42.195.92\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"40.76.54.131\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.176.6.30\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.169.50.45\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.187.184.26\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/test-virangai-mongo\",\r\n \"name\": \"test-virangai-mongo\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-26T19:50:46.97713Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test-virangai-mongo.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://test-virangai-mongo.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"54db8f31-155f-461e-a007-4a87ff5c4165\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test-virangai-mongo-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://test-virangai-mongo-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"test-virangai-mongo-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://test-virangai-mongo-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test-virangai-mongo-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://test-virangai-mongo-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"test-virangai-mongo-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://test-virangai-mongo-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test-virangai-mongo-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://test-virangai-mongo-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"test-virangai-mongo-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://test-virangai-mongo-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test-virangai-mongo-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"test-virangai-mongo-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/test/providers/Microsoft.DocumentDB/databaseAccounts/testps1stage\",\r\n \"name\": \"testps1stage\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"DocumentDB\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2018-08-22T20:38:40.0420574Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testps1stage.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"72684018-71c7-435e-b4d6-eedb27097b8c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testps1stage-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testps1stage-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testps1stage-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testps1stage-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"testps1stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testps1stage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testps1stage-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testps1stage-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"testps1stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://testps1stage-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testps1stage-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"testps1stage-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/abinav_stage_rg/providers/Microsoft.DocumentDB/databaseAccounts/testrupergbchange\",\r\n \"name\": \"testrupergbchange\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-02-04T21:47:25.8300419Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testrupergbchange.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"aeb09751-074e-4ac0-a763-513f0b5ddd5f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testrupergbchange-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testrupergbchange-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testrupergbchange-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testrupergbchange-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testrupergbchange-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testrupergbchange-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testrupergbchange-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/abinav_stage_rg/providers/Microsoft.DocumentDB/databaseAccounts/testsnapshotacrossisolation\",\r\n \"name\": \"testsnapshotacrossisolation\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-02-07T05:12:12.3503504Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testsnapshotacrossisolation.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"15e797c4-efb5-4fc4-b7d3-67e0eb8cc98a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testsnapshotacrossisolation-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testsnapshotacrossisolation-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testsnapshotacrossisolation-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testsnapshotacrossisolation-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testsnapshotacrossisolation-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testsnapshotacrossisolation-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testsnapshotacrossisolation-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/abinav_stage_rg/providers/Microsoft.DocumentDB/databaseAccounts/todeletestageaccount\",\r\n \"name\": \"todeletestageaccount\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-02-16T01:08:17.9789915Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://todeletestageaccount.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c761b4d0-3564-4436-856c-3565caba9250\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"todeletestageaccount-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://todeletestageaccount-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"todeletestageaccount-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://todeletestageaccount-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"todeletestageaccount-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://todeletestageaccount-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"todeletestageaccount-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/babatsai-rg-signoff/providers/Microsoft.DocumentDB/databaseAccounts/gremlin-stage-test\",\r\n \"name\": \"gremlin-stage-test\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlin (graph)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-07-04T00:03:36.6216702Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://gremlin-stage-test.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://gremlin-stage-test.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"e91f4e41-cc91-40dc-a28e-40a43daf061b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"gremlin-stage-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://gremlin-stage-test-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"gremlin-stage-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://gremlin-stage-test-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"gremlin-stage-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://gremlin-stage-test-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"gremlin-stage-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/arkhetar-staging/providers/Microsoft.DocumentDB/databaseAccounts/arkhetar-operation-log-v2\",\r\n \"name\": \"arkhetar-operation-log-v2\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-01-11T03:26:07.898302Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://arkhetar-operation-log-v2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"92370172-7225-4cca-b8c4-0649071b150d\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"arkhetar-operation-log-v2-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://arkhetar-operation-log-v2-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"arkhetar-operation-log-v2-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://arkhetar-operation-log-v2-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"arkhetar-operation-log-v2-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://arkhetar-operation-log-v2-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"arkhetar-operation-log-v2-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/jasontho/providers/Microsoft.DocumentDB/databaseAccounts/mongostagesignoff10\",\r\n \"name\": \"mongostagesignoff10\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-26T21:15:49.1409234Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongostagesignoff10.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://mongostagesignoff10.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"8d294fdb-23d3-406d-8f89-43fef80850e0\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongostagesignoff10-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://mongostagesignoff10-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"mongostagesignoff10-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongostagesignoff10-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongostagesignoff10-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://mongostagesignoff10-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"mongostagesignoff10-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongostagesignoff10-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongostagesignoff10-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://mongostagesignoff10-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"mongostagesignoff10-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://mongostagesignoff10-northcentralus.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongostagesignoff10-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"mongostagesignoff10-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sanayak-test/providers/Microsoft.DocumentDB/databaseAccounts/synapsetest\",\r\n \"name\": \"synapsetest\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-11-07T06:30:14.5936506Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://synapsetest.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"56f736d8-a386-43cf-83ba-726caa749422\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"synapsetest-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://synapsetest-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"synapsetest-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://synapsetest-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"synapsetest-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://synapsetest-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"synapsetest-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/abinav_stage_rg/providers/Microsoft.DocumentDB/databaseAccounts/testrupergbnewchanges\",\r\n \"name\": \"testrupergbnewchanges\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-02-05T00:14:11.884366Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testrupergbnewchanges.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"5ad586e0-7aa5-4c6f-afae-a9676b19ba58\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testrupergbnewchanges-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testrupergbnewchanges-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testrupergbnewchanges-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testrupergbnewchanges-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testrupergbnewchanges-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testrupergbnewchanges-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testrupergbnewchanges-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/jasontho/providers/Microsoft.DocumentDB/databaseAccounts/mongostagesignoff6\",\r\n \"name\": \"mongostagesignoff6\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-26T18:02:08.3103789Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongostagesignoff6.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://mongostagesignoff6.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"f0798ce6-45be-41fe-8fcc-1f4f02e26ec4\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongostagesignoff6-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://mongostagesignoff6-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongostagesignoff6-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://mongostagesignoff6-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongostagesignoff6-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://mongostagesignoff6-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongostagesignoff6-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"104.42.195.92\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"40.76.54.131\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.176.6.30\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.169.50.45\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.187.184.26\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/sanayak-test/providers/Microsoft.DocumentDB/databaseAccounts/synapsetest2\",\r\n \"name\": \"synapsetest2\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2019-11-12T11:28:24.2523803Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://synapsetest2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"1f06202e-7069-4eec-b1e9-59e133121ccf\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"synapsetest2-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://synapsetest2-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"synapsetest2-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://synapsetest2-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"synapsetest2-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://synapsetest2-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"synapsetest2-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableStorageAnalytics\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/abinav_stage_rg/providers/Microsoft.DocumentDB/databaseAccounts/testrupergbnewchanges3\",\r\n \"name\": \"testrupergbnewchanges3\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-02-05T05:44:27.7389572Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testrupergbnewchanges3.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"8d5f7daa-9eff-499a-be92-6fc12668f40c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testrupergbnewchanges3-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testrupergbnewchanges3-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testrupergbnewchanges3-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testrupergbnewchanges3-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testrupergbnewchanges3-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://testrupergbnewchanges3-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testrupergbnewchanges3-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/jasontho/providers/Microsoft.DocumentDB/databaseAccounts/mongostagesignoff9\",\r\n \"name\": \"mongostagesignoff9\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-06-26T20:34:41.6072311Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongostagesignoff9.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://mongostagesignoff9.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"6eb158ff-8c80-433e-b1e0-0a6425f2cd4a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongostagesignoff9-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://mongostagesignoff9-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongostagesignoff9-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://mongostagesignoff9-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongostagesignoff9-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://mongostagesignoff9-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongostagesignoff9-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"104.42.195.92\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"40.76.54.131\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.176.6.30\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.169.50.45\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.187.184.26\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/babatsai-rg-signoff/providers/Microsoft.DocumentDB/databaseAccounts/table-stage-signoff\",\r\n \"name\": \"table-stage-signoff\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Table\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2019-07-04T00:07:39.5017435Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://table-stage-signoff.documents-staging.windows-ppe.net:443/\",\r\n \"tableEndpoint\": \"https://table-stage-signoff.table.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Table, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"fd8515df-67f5-4748-b951-c10606f2823d\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 86400,\r\n \"maxStalenessPrefix\": 1000000\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"table-stage-signoff-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://table-stage-signoff-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"table-stage-signoff-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://table-stage-signoff-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"table-stage-signoff-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://table-stage-signoff-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"table-stage-signoff-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableTable\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CANARY/providers/Microsoft.DocumentDB/databaseAccounts/canary-staging1\",\r\n \"name\": \"canary-staging1\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"DocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-16T21:38:27.5972509Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://canary-staging1.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"155de475-9b6d-4553-91e0-47203504dc22\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"canary-staging1-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://canary-staging1-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"canary-staging1-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://canary-staging1-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"canary-staging1-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://canary-staging1-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"canary-staging1-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ashwsing-rg/providers/Microsoft.DocumentDB/databaseAccounts/mongo-acis-test4\",\r\n \"name\": \"mongo-acis-test4\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-22T03:18:28.6833509Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongo-acis-test4.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://mongo-acis-test4.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"7a2285d2-e2d5-45a0-8daa-de1e71153c1f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"4.0\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongo-acis-test4-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://mongo-acis-test4-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongo-acis-test4-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://mongo-acis-test4-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongo-acis-test4-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://mongo-acis-test4-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongo-acis-test4-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ashwini-rg/providers/Microsoft.DocumentDB/databaseAccounts/mongo-acis-test5\",\r\n \"name\": \"mongo-acis-test5\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-22T04:01:38.5811379Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongo-acis-test5.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://mongo-acis-test5.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c23aa4da-a098-4aa0-9136-f2cb30175840\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongo-acis-test5-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://mongo-acis-test5-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongo-acis-test5-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://mongo-acis-test5-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongo-acis-test5-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://mongo-acis-test5-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongo-acis-test5-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/ashwsing-rg/providers/Microsoft.DocumentDB/databaseAccounts/mongo-acis-test6\",\r\n \"name\": \"mongo-acis-test6\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-22T04:25:11.5767367Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongo-acis-test6.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"40c9c14c-81f4-4d92-b7aa-f8e1e90291eb\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongo-acis-test6-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://mongo-acis-test6-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongo-acis-test6-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://mongo-acis-test6-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongo-acis-test6-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://mongo-acis-test6-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongo-acis-test6-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/akgoe-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/akgoe-aad-outage-test\",\r\n \"name\": \"akgoe-aad-outage-test\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-16T01:06:39.8208278Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://akgoe-aad-outage-test.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://akgoe-aad-outage-test.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"18cdabc9-e133-4976-8966-e6e650845b1b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"akgoe-aad-outage-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://akgoe-aad-outage-test-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"akgoe-aad-outage-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://akgoe-aad-outage-test-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"akgoe-aad-outage-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://akgoe-aad-outage-test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"akgoe-aad-outage-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://akgoe-aad-outage-test-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"akgoe-aad-outage-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://akgoe-aad-outage-test-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"akgoe-aad-outage-test-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"akgoe-aad-outage-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/akgoe-stage-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/serverless-7nsb66ggfyxg4\",\r\n \"name\": \"serverless-7nsb66ggfyxg4\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-17T08:14:58.9901007Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://serverless-7nsb66ggfyxg4.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d387fcc7-e8fe-45d0-8370-ef86c3d1a052\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Strong\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"serverless-7nsb66ggfyxg4-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://serverless-7nsb66ggfyxg4-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"serverless-7nsb66ggfyxg4-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://serverless-7nsb66ggfyxg4-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"serverless-7nsb66ggfyxg4-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://serverless-7nsb66ggfyxg4-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"serverless-7nsb66ggfyxg4-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableServerless\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/viho-rg-stage/providers/Microsoft.DocumentDB/databaseAccounts/vihosqllegacygateway\",\r\n \"name\": \"vihosqllegacygateway\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-17T18:53:49.6216166Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://vihosqllegacygateway.documents-staging.windows-ppe.net:443/\",\r\n \"sqlEndpoint\": \"https://vihosqllegacygateway.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"cae53a5f-529c-4080-b877-4f722465ba37\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"vihosqllegacygateway-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vihosqllegacygateway-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"vihosqllegacygateway-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vihosqllegacygateway-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"vihosqllegacygateway-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://vihosqllegacygateway-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"vihosqllegacygateway-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://vihosqllegacygateway-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"vihosqllegacygateway-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://vihosqllegacygateway-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"vihosqllegacygateway-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://vihosqllegacygateway-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"vihosqllegacygateway-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://vihosqllegacygateway-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"vihosqllegacygateway-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"vihosqllegacygateway-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 1\r\n },\r\n {\r\n \"id\": \"vihosqllegacygateway-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 2\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableSql\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/viho-rg-stage/providers/Microsoft.DocumentDB/databaseAccounts/vihosqllegacygateway2\",\r\n \"name\": \"vihosqllegacygateway2\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-18T01:20:13.6590586Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://vihosqllegacygateway2.documents-staging.windows-ppe.net:443/\",\r\n \"sqlEndpoint\": \"https://vihosqllegacygateway2.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"e7f0483b-dc86-4a7b-82bd-a29a15797e5c\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"vihosqllegacygateway2-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://vihosqllegacygateway2-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"vihosqllegacygateway2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://vihosqllegacygateway2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"vihosqllegacygateway2-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://vihosqllegacygateway2-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"vihosqllegacygateway2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://vihosqllegacygateway2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"vihosqllegacygateway2-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://vihosqllegacygateway2-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"vihosqllegacygateway2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://vihosqllegacygateway2-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"vihosqllegacygateway2-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"vihosqllegacygateway2-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableSql\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/hidhawal-pkstats/providers/Microsoft.DocumentDB/databaseAccounts/pkstats-elasticity\",\r\n \"name\": \"pkstats-elasticity\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-01T23:45:28.2413987Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pkstats-elasticity.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"9e7ca50d-fa69-4bb9-ab53-baae1085a6e8\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pkstats-elasticity-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://pkstats-elasticity-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pkstats-elasticity-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://pkstats-elasticity-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pkstats-elasticity-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://pkstats-elasticity-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pkstats-elasticity-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/cph-stage-southeastasia-rg/providers/Microsoft.DocumentDB/databaseAccounts/cph-stage-southeastasia-cx\",\r\n \"name\": \"cph-stage-southeastasia-cx\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-27T17:28:51.6553611Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cph-stage-southeastasia-cx.documents-staging.windows-ppe.net:443/\",\r\n \"cassandraEndpoint\": \"https://cph-stage-southeastasia-cx.cassandra.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"81855c26-e244-4274-8ebf-00f59d0ec9dc\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cph-stage-southeastasia-cx-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cph-stage-southeastasia-cx-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cph-stage-southeastasia-cx-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cph-stage-southeastasia-cx-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cph-stage-southeastasia-cx-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cph-stage-southeastasia-cx-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cph-stage-southeastasia-cx-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/cph-stage-southeastasia-rg/providers/Microsoft.DocumentDB/databaseAccounts/cph-stage-southeastasia-mgo32\",\r\n \"name\": \"cph-stage-southeastasia-mgo32\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-27T17:28:11.7253011Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cph-stage-southeastasia-mgo32.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"9d5772bd-8334-4a4d-af7f-acdcdb55892d\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cph-stage-southeastasia-mgo32-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cph-stage-southeastasia-mgo32-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cph-stage-southeastasia-mgo32-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cph-stage-southeastasia-mgo32-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cph-stage-southeastasia-mgo32-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cph-stage-southeastasia-mgo32-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cph-stage-southeastasia-mgo32-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/cph-stage-southeastasia-rg/providers/Microsoft.DocumentDB/databaseAccounts/cph-stage-southeastasia-sql\",\r\n \"name\": \"cph-stage-southeastasia-sql\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-27T17:28:21.0073918Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cph-stage-southeastasia-sql.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c4a567a6-b24c-4480-98b7-27a8b5746ed8\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cph-stage-southeastasia-sql-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cph-stage-southeastasia-sql-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cph-stage-southeastasia-sql-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cph-stage-southeastasia-sql-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cph-stage-southeastasia-sql-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cph-stage-southeastasia-sql-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cph-stage-southeastasia-sql-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/cph-stage-southeastasia-rg/providers/Microsoft.DocumentDB/databaseAccounts/cph-stage-southeastasia\",\r\n \"name\": \"cph-stage-southeastasia\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-27T17:28:31.3048546Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cph-stage-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"61a9b97e-8bb2-45df-aade-7c56b7293fcd\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cph-stage-southeastasia-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cph-stage-southeastasia-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cph-stage-southeastasia-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cph-stage-southeastasia-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"cph-stage-southeastasia-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-southeastasia-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Deleting\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cph-stage-southeastasia-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cph-stage-southeastasia-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"cph-stage-southeastasia-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cph-stage-southeastasia-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Deleting\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cph-stage-southeastasia-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"cph-stage-southeastasia-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/cph-stage-southeastasia-rg/providers/Microsoft.DocumentDB/databaseAccounts/cph-stage-southeastasia-gln\",\r\n \"name\": \"cph-stage-southeastasia-gln\",\r\n \"location\": \"Southeast Asia\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-27T17:29:26.8546415Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cph-stage-southeastasia-gln.documents-staging.windows-ppe.net:443/\",\r\n \"gremlinEndpoint\": \"https://cph-stage-southeastasia-gln.gremlin.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"d79cffde-f2cb-4536-b48e-d1019859ff93\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cph-stage-southeastasia-gln-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cph-stage-southeastasia-gln-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cph-stage-southeastasia-gln-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cph-stage-southeastasia-gln-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cph-stage-southeastasia-gln-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://cph-stage-southeastasia-gln-southeastasia.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cph-stage-southeastasia-gln-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/kakhandr-rd/providers/Microsoft.DocumentDB/databaseAccounts/activity-logs-pitr-src\",\r\n \"name\": \"activity-logs-pitr-src\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-21T03:08:39.622539Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://activity-logs-pitr-src.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"aea3afe4-2717-415b-93a4-e1dd19cc4595\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"activity-logs-pitr-src-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://activity-logs-pitr-src-northcentralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"activity-logs-pitr-src-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://activity-logs-pitr-src-northcentralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"activity-logs-pitr-src-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://activity-logs-pitr-src-northcentralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"activity-logs-pitr-src-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/kakhandr-rd/providers/Microsoft.DocumentDB/databaseAccounts/activity-logs-pitr-restored\",\r\n \"name\": \"activity-logs-pitr-restored\",\r\n \"location\": \"North Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-21T03:30:55.6934721Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://activity-logs-pitr-restored.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"014c15d8-92f0-4230-b57b-a1fe7bd2cf35\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"activity-logs-pitr-restored-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://activity-logs-pitr-restored-northcentralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"activity-logs-pitr-restored-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://activity-logs-pitr-restored-northcentralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"activity-logs-pitr-restored-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://activity-logs-pitr-restored-northcentralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"activity-logs-pitr-restored-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/northcentralus/restorableDatabaseAccounts/aea3afe4-2717-415b-93a4-e1dd19cc4595\",\r\n \"restoreTimestampInUtc\": \"2021-04-21T03:15:08Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/bugbashbackup/providers/Microsoft.DocumentDB/databaseAccounts/tepatest-0505\",\r\n \"name\": \"tepatest-0505\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-05-05T18:57:53.1875804Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://tepatest-0505.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"388acaef-7633-406d-a8d2-5d1f43287aad\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"tepatest-0505-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://tepatest-0505-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"tepatest-0505-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://tepatest-0505-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"tepatest-0505-westcentralus\",\r\n \"locationName\": \"West Central US\",\r\n \"documentEndpoint\": \"https://tepatest-0505-westcentralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"tepatest-0505-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://tepatest-0505-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"tepatest-0505-westcentralus\",\r\n \"locationName\": \"West Central US\",\r\n \"documentEndpoint\": \"https://tepatest-0505-westcentralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"tepatest-0505-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"tepatest-0505-westcentralus\",\r\n \"locationName\": \"West Central US\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Local\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/kakhandr-rd/providers/Microsoft.DocumentDB/databaseAccounts/kal-empty-account-test\",\r\n \"name\": \"kal-empty-account-test\",\r\n \"location\": \"Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-05-14T17:51:16.715232Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://kal-empty-account-test.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"f18ba477-02b4-44b1-b57a-0183592073e6\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"kal-empty-account-test-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://kal-empty-account-test-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"kal-empty-account-test-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://kal-empty-account-test-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"kal-empty-account-test-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"documentEndpoint\": \"https://kal-empty-account-test-centralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"kal-empty-account-test-centralus\",\r\n \"locationName\": \"Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/bugbashrg/providers/Microsoft.DocumentDB/databaseAccounts/vinhoffset\",\r\n \"name\": \"vinhoffset\",\r\n \"location\": \"Canada Central\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-11T17:14:04.3125161Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://vinhoffset.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"ec6a16ed-81f1-43b4-88e6-d9cd76a392ca\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"vinhoffset-canadacentral\",\r\n \"locationName\": \"Canada Central\",\r\n \"documentEndpoint\": \"https://vinhoffset-canadacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"vinhoffset-canadacentral\",\r\n \"locationName\": \"Canada Central\",\r\n \"documentEndpoint\": \"https://vinhoffset-canadacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"vinhoffset-eastasia\",\r\n \"locationName\": \"East Asia\",\r\n \"documentEndpoint\": \"https://vinhoffset-eastasia.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"vinhoffset-canadacentral\",\r\n \"locationName\": \"Canada Central\",\r\n \"documentEndpoint\": \"https://vinhoffset-canadacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"vinhoffset-eastasia\",\r\n \"locationName\": \"East Asia\",\r\n \"documentEndpoint\": \"https://vinhoffset-eastasia.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"vinhoffset-canadacentral\",\r\n \"locationName\": \"Canada Central\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"vinhoffset-eastasia\",\r\n \"locationName\": \"East Asia\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/bugbashrg/providers/Microsoft.DocumentDB/databaseAccounts/vinhoffset-aftermig-wr-canadacentral\",\r\n \"name\": \"vinhoffset-aftermig-wr-canadacentral\",\r\n \"location\": \"Canada Central\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-11T18:30:39.8614379Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://vinhoffset-aftermig-wr-canadacentral.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"7766c42b-df2e-41d3-825f-05a5bedfa3a5\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"vinhoffset-aftermig-wr-canadacentral-canadacentral\",\r\n \"locationName\": \"Canada Central\",\r\n \"documentEndpoint\": \"https://vinhoffset-aftermig-wr-canadacentral-canadacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"vinhoffset-aftermig-wr-canadacentral-canadacentral\",\r\n \"locationName\": \"Canada Central\",\r\n \"documentEndpoint\": \"https://vinhoffset-aftermig-wr-canadacentral-canadacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"vinhoffset-aftermig-wr-canadacentral-canadacentral\",\r\n \"locationName\": \"Canada Central\",\r\n \"documentEndpoint\": \"https://vinhoffset-aftermig-wr-canadacentral-canadacentral.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"vinhoffset-aftermig-wr-canadacentral-canadacentral\",\r\n \"locationName\": \"Canada Central\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/canadacentral/restorableDatabaseAccounts/ec6a16ed-81f1-43b4-88e6-d9cd76a392ca\",\r\n \"restoreTimestampInUtc\": \"2021-06-11T18:10:00Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/bugbashrg/providers/Microsoft.DocumentDB/databaseAccounts/vinhoffset-aftermig-rr-eastasia-partial\",\r\n \"name\": \"vinhoffset-aftermig-rr-eastasia-partial\",\r\n \"location\": \"Canada Central\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-11T18:33:08.9881654Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://vinhoffset-aftermig-rr-eastasia-partial.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"2337c75e-d7db-4829-9344-bc5dd6fe5255\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"vinhoffset-aftermig-rr-eastasia-partial-eastasia\",\r\n \"locationName\": \"East Asia\",\r\n \"documentEndpoint\": \"https://vinhoffset-aftermig-rr-eastasia-partial-eastasia.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"vinhoffset-aftermig-rr-eastasia-partial-eastasia\",\r\n \"locationName\": \"East Asia\",\r\n \"documentEndpoint\": \"https://vinhoffset-aftermig-rr-eastasia-partial-eastasia.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"vinhoffset-aftermig-rr-eastasia-partial-eastasia\",\r\n \"locationName\": \"East Asia\",\r\n \"documentEndpoint\": \"https://vinhoffset-aftermig-rr-eastasia-partial-eastasia.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"vinhoffset-aftermig-rr-eastasia-partial-eastasia\",\r\n \"locationName\": \"East Asia\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/canadacentral/restorableDatabaseAccounts/ec6a16ed-81f1-43b4-88e6-d9cd76a392ca\",\r\n \"restoreTimestampInUtc\": \"2021-06-11T18:11:00Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"sharedrudb2\",\r\n \"collectionNames\": [\r\n \"sharedColl0\",\r\n \"sharedColl4\",\r\n \"sharedDBProviosnedColl2\",\r\n \"sharedColl1\",\r\n \"sharedColl2\",\r\n \"sharedDBProviosnedColl1\",\r\n \"sharedColl3\",\r\n \"sharedDBProviosnedColl0\"\r\n ]\r\n },\r\n {\r\n \"databaseName\": \"dbWithEmptyColl\",\r\n \"collectionNames\": [\r\n \"emptycoll\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/virangai-test-mongo-pitr\",\r\n \"name\": \"virangai-test-mongo-pitr\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-11-24T21:46:06.459782Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://virangai-test-mongo-pitr.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://virangai-test-mongo-pitr.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"c0291614-213c-4629-a26a-12802ca1b761\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"virangai-test-mongo-pitr-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://virangai-test-mongo-pitr-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"virangai-test-mongo-pitr-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://virangai-test-mongo-pitr-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"virangai-test-mongo-pitr-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://virangai-test-mongo-pitr-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"virangai-test-mongo-pitr-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/test-virangai-cont-bk-noafec\",\r\n \"name\": \"test-virangai-cont-bk-noafec\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-09T00:21:08.3618286Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test-virangai-cont-bk-noafec.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"da7bc674-bba2-4d4f-902a-c20b3553e2ce\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test-virangai-cont-bk-noafec-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-virangai-cont-bk-noafec-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test-virangai-cont-bk-noafec-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-virangai-cont-bk-noafec-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test-virangai-cont-bk-noafec-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test-virangai-cont-bk-noafec-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test-virangai-cont-bk-noafec-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"73.83.18.99\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"0.0.0.0\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"104.42.195.92\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"40.76.54.131\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.176.6.30\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.169.50.45\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.187.184.26\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/targetacct7\",\r\n \"name\": \"targetacct7\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-20T19:02:57.1071152Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://targetacct7.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://targetacct7.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"f6c06aad-47cc-4e02-bffc-acf599a4df1d\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"targetacct7-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://targetacct7-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"targetacct7-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://targetacct7-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"targetacct7-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://targetacct7-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"targetacct7-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/c0291614-213c-4629-a26a-12802ca1b761\",\r\n \"restoreTimestampInUtc\": \"2021-02-11T00:00:00Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"Test\",\r\n \"collectionNames\": [\r\n \"Test\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/targetacct6\",\r\n \"name\": \"targetacct6\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-20T19:05:53.3379035Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://targetacct6.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://targetacct6.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"7194cffb-815b-4eac-b125-d841f1ab2d0c\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"targetacct6-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://targetacct6-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"targetacct6-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://targetacct6-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"targetacct6-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://targetacct6-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"targetacct6-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/c0291614-213c-4629-a26a-12802ca1b761\",\r\n \"restoreTimestampInUtc\": \"2021-02-12T00:00:00Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"Test\",\r\n \"collectionNames\": [\r\n \"Test\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/targetacct8\",\r\n \"name\": \"targetacct8\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-20T19:18:23.0799683Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://targetacct8.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://targetacct8.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"062e63d1-f782-4dc6-8e12-3050890f8bd8\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"targetacct8-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://targetacct8-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"targetacct8-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://targetacct8-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"targetacct8-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://targetacct8-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"targetacct8-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/c0291614-213c-4629-a26a-12802ca1b761\",\r\n \"restoreTimestampInUtc\": \"2021-02-18T00:00:00Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/targetacct9\",\r\n \"name\": \"targetacct9\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-20T19:17:51.4677131Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://targetacct9.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://targetacct9.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"37328587-b42b-4572-a089-1a0e9e9d8b0d\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"targetacct9-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://targetacct9-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"targetacct9-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://targetacct9-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"targetacct9-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://targetacct9-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"targetacct9-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/c0291614-213c-4629-a26a-12802ca1b761\",\r\n \"restoreTimestampInUtc\": \"2021-02-11T00:00:00Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"Test\",\r\n \"collectionNames\": [\r\n \"Test\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/virangai-test-mongo-pitr-res\",\r\n \"name\": \"virangai-test-mongo-pitr-res\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-26T10:56:24.76548Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://virangai-test-mongo-pitr-res.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://virangai-test-mongo-pitr-res.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"f1120981-eb0a-4928-8c93-296c992135ab\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"virangai-test-mongo-pitr-res-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://virangai-test-mongo-pitr-res-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"virangai-test-mongo-pitr-res-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://virangai-test-mongo-pitr-res-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"virangai-test-mongo-pitr-res-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://virangai-test-mongo-pitr-res-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"virangai-test-mongo-pitr-res-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/c0291614-213c-4629-a26a-12802ca1b761\",\r\n \"restoreTimestampInUtc\": \"2021-01-28T00:58:03Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/virangai-test-mongo-pitr-restore\",\r\n \"name\": \"virangai-test-mongo-pitr-restore\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-26T11:13:03.1540076Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://virangai-test-mongo-pitr-restore.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://virangai-test-mongo-pitr-restore.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"ac54ad8c-e894-4c4b-bfd2-bc89f0d885bf\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"virangai-test-mongo-pitr-restore-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://virangai-test-mongo-pitr-restore-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"virangai-test-mongo-pitr-restore-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://virangai-test-mongo-pitr-restore-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"virangai-test-mongo-pitr-restore-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://virangai-test-mongo-pitr-restore-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"virangai-test-mongo-pitr-restore-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/c0291614-213c-4629-a26a-12802ca1b761\",\r\n \"restoreTimestampInUtc\": \"2021-02-04T21:47:21Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"Test\",\r\n \"collectionNames\": [\r\n \"Test\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/bugbashbackup/providers/Microsoft.DocumentDB/databaseAccounts/test0329-1\",\r\n \"name\": \"test0329-1\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-29T16:57:26.3880463Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test0329-1.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"4d0c329d-9f2e-4505-a4c0-3873e0875fd9\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test0329-1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test0329-1-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test0329-1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test0329-1-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test0329-1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test0329-1-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test0329-1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Zone\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/bugbashrg/providers/Microsoft.DocumentDB/databaseAccounts/test0329-zone\",\r\n \"name\": \"test0329-zone\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-29T18:55:08.4892993Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test0329-zone.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"69ca96eb-9694-4240-8f14-9f0d962764f3\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test0329-zone-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test0329-zone-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test0329-zone-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test0329-zone-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"test0329-zone-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://test0329-zone-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test0329-zone-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test0329-zone-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"test0329-zone-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://test0329-zone-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test0329-zone-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"test0329-zone-eastus\",\r\n \"locationName\": \"East US\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Zone\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/co-wus2-amnonetemplate-cosmo-t011\",\r\n \"name\": \"co-wus2-amnonetemplate-cosmo-t011\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"application\": \"amnone\",\r\n \"charge-to\": \"101-71200-5000-9500\",\r\n \"role\": \"infrastructure\",\r\n \"environment\": \"Test\",\r\n \"amnonecomponent\": \"template\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-10T19:45:25.014772Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://co-wus2-amnonetemplate-cosmo-t011.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"760b8a29-18fd-4e12-adb9-c9ec34af0d7e\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Strong\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"co-wus2-amnonetemplate-cosmo-t011-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://co-wus2-amnonetemplate-cosmo-t011-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"co-wus2-amnonetemplate-cosmo-t011-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://co-wus2-amnonetemplate-cosmo-t011-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"co-wus2-amnonetemplate-cosmo-t011-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://co-wus2-amnonetemplate-cosmo-t011-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"co-wus2-amnonetemplate-cosmo-t011-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"40.125.122.212\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"104.42.195.92\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"40.76.54.131\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.176.6.30\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.169.50.45\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.187.184.26\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/co-wus2-amnonetemplate-cosmo-t012\",\r\n \"name\": \"co-wus2-amnonetemplate-cosmo-t012\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"application\": \"amnone\",\r\n \"charge-to\": \"101-71200-5000-9500\",\r\n \"role\": \"infrastructure\",\r\n \"environment\": \"Test\",\r\n \"amnonecomponent\": \"template\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-10T19:59:33.7585986Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://co-wus2-amnonetemplate-cosmo-t012.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"c9e7de2e-cb5d-49a6-8b76-09df7e447d9f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Strong\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"co-wus2-amnonetemplate-cosmo-t012-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://co-wus2-amnonetemplate-cosmo-t012-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"co-wus2-amnonetemplate-cosmo-t012-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://co-wus2-amnonetemplate-cosmo-t012-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"co-wus2-amnonetemplate-cosmo-t012-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://co-wus2-amnonetemplate-cosmo-t012-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"co-wus2-amnonetemplate-cosmo-t012-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"40.125.122.212\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"104.42.195.92\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"40.76.54.131\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.176.6.30\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.169.50.45\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.187.184.26\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/accountname1810\",\r\n \"name\": \"accountname1810\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-09T19:27:53.2441895Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://accountname1810.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"bbcddd1c-3776-4380-afd4-7dd38b207ed4\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname1810-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname1810-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname1810-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname1810-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname1810-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname1810-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname1810-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048\",\r\n \"name\": \"db2048\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Table\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-09T19:42:16.999702Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://db2048.documents.azure.com:443/\",\r\n \"tableEndpoint\": \"https://db2048.table.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Table, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"30ae2025-1bbd-4642-bc86-92b2a3f3b37b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 86400,\r\n \"maxStalenessPrefix\": 1000000\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"db2048-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db2048-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"db2048-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db2048-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"db2048-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db2048-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"db2048-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableTable\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001-test\",\r\n \"name\": \"db001-test\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-09T19:57:13.9692694Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://db001-test.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://db001-test.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"57c70f2e-5d12-4cdd-9ed8-84e14f511529\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"db001-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db001-test-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"db001-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db001-test-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"db001-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db001-test-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"db001-test-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096\",\r\n \"name\": \"db4096\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlin (graph)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-09T20:04:27.0791866Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://db4096.documents.azure.com:443/\",\r\n \"gremlinEndpoint\": \"https://db4096.gremlin.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"7d559a00-61f2-4cd3-a25a-e78b42d7e8a2\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"db4096-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db4096-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"db4096-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db4096-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"db4096-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db4096-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"db4096-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192\",\r\n \"name\": \"db8192\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-09T20:12:54.0324485Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://db8192.documents.azure.com:443/\",\r\n \"cassandraEndpoint\": \"https://db8192.cassandra.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"dda94333-0150-44b4-be66-2eba77251036\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"db8192-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db8192-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"db8192-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db8192-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"db8192-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db8192-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"db8192-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db1024\",\r\n \"name\": \"db1024\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-02T08:14:36.6199599Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://db1024.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"5dac8423-a56a-42db-a60b-74f714c2b79b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"db1024-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db1024-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"db1024-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db1024-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"db1024-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db1024-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"db1024-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/mongotestaccount\",\r\n \"name\": \"mongotestaccount\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-02T19:34:25.9844437Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongotestaccount.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://mongotestaccount.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"fccbe297-cb19-424b-a8d7-e996a6b7b689\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"4.0\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongotestaccount-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongotestaccount-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongotestaccount-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongotestaccount-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongotestaccount-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongotestaccount-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongotestaccount-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/pitr-sql-stage-source\",\r\n \"name\": \"pitr-sql-stage-source\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-02T23:30:42.158286Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"c6b53e1d-0dec-4ff2-ab70-2e9d24a3ed27\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/pitr-mongo32-stage-source\",\r\n \"name\": \"pitr-mongo32-stage-source\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-02T23:32:30.6744226Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-mongo32-stage-source.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://pitr-mongo32-stage-source.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"990590c0-4db8-4b0e-96ef-55f0be03615d\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"4.0\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-mongo32-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo32-stage-source-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-mongo32-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo32-stage-source-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-mongo32-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo32-stage-source-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-mongo32-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/pitr-mongo36-stage-source\",\r\n \"name\": \"pitr-mongo36-stage-source\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-02T23:33:00.4293513Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-mongo36-stage-source.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://pitr-mongo36-stage-source.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"60a54911-db9e-436f-b282-34779e0a2a7f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"4.0\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-mongo36-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo36-stage-source-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-mongo36-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo36-stage-source-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-mongo36-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo36-stage-source-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-mongo36-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/mongo-continuous-1212\",\r\n \"name\": \"mongo-continuous-1212\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-04T22:09:25.2046679Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongo-continuous-1212.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://mongo-continuous-1212.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"b0736fc7-cb53-4b6f-bd2f-aac904085da4\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"4.0\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongo-continuous-1212-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongo-continuous-1212-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongo-continuous-1212-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongo-continuous-1212-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongo-continuous-1212-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongo-continuous-1212-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongo-continuous-1212-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup27/providers/Microsoft.DocumentDB/databaseAccounts/table-db2527\",\r\n \"name\": \"table-db2527\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Table\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-07T20:02:00.7424001Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://table-db2527.documents.azure.com:443/\",\r\n \"tableEndpoint\": \"https://table-db2527.table.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Table, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"aedea0ac-c5cd-4ef9-ad79-d5968d9a747d\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 86400,\r\n \"maxStalenessPrefix\": 1000000\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"table-db2527-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://table-db2527-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"table-db2527-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://table-db2527-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"table-db2527-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://table-db2527-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"table-db2527-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableTable\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/restored-cosmosdb-1212\",\r\n \"name\": \"restored-cosmosdb-1212\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-07T21:06:02.0001319Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://restored-cosmosdb-1212.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"2301188f-cf13-419d-b7c2-5321c5476526\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"restored-cosmosdb-1212-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://restored-cosmosdb-1212-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"restored-cosmosdb-1212-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://restored-cosmosdb-1212-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"restored-cosmosdb-1212-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://restored-cosmosdb-1212-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"restored-cosmosdb-1212-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c6b53e1d-0dec-4ff2-ab70-2e9d24a3ed27\",\r\n \"restoreTimestampInUtc\": \"2021-06-07T19:55:00Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"TestDB1\",\r\n \"collectionNames\": [\r\n \"TestCollectionInDB1\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup29/providers/Microsoft.DocumentDB/databaseAccounts/table-29\",\r\n \"name\": \"table-29\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Table\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-07T21:17:01.4003531Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://table-29.documents.azure.com:443/\",\r\n \"tableEndpoint\": \"https://table-29.table.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Table, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"008c5961-bd05-4b5d-8ddd-7c5cfc93683a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 86400,\r\n \"maxStalenessPrefix\": 1000000\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"table-29-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://table-29-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"table-29-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://table-29-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"table-29-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://table-29-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"table-29-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableTable\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup29/providers/Microsoft.DocumentDB/databaseAccounts/dbaccount29-1\",\r\n \"name\": \"dbaccount29-1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-07T21:24:51.5417257Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://dbaccount29-1.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"24302a82-123a-487a-bede-054ade2860f1\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"dbaccount29-1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://dbaccount29-1-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"dbaccount29-1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://dbaccount29-1-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"dbaccount29-1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://dbaccount29-1-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"dbaccount29-1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/rbactestps12\",\r\n \"name\": \"rbactestps12\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-07T21:27:23.3827637Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://rbactestps12.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"e157f1a1-6837-46fa-8f4f-ef3e7266ab3a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"rbactestps12-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://rbactestps12-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"rbactestps12-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://rbactestps12-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"rbactestps12-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://rbactestps12-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"rbactestps12-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup29/providers/Microsoft.DocumentDB/databaseAccounts/mongo-db0002\",\r\n \"name\": \"mongo-db0002\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-07T23:44:53.741164Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://mongo-db0002.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://mongo-db0002.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"72706ac1-0d0a-40be-a30a-1b4af0911131\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"4.0\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"mongo-db0002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongo-db0002-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"mongo-db0002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongo-db0002-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"mongo-db0002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://mongo-db0002-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"mongo-db0002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup27/providers/Microsoft.DocumentDB/databaseAccounts/cassandra-db2725\",\r\n \"name\": \"cassandra-db2725\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-07T23:45:44.3838628Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cassandra-db2725.documents.azure.com:443/\",\r\n \"cassandraEndpoint\": \"https://cassandra-db2725.cassandra.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"6af03dfe-5dc4-4bb0-b6dd-ffa3d1f38b3e\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cassandra-db2725-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cassandra-db2725-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cassandra-db2725-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cassandra-db2725-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cassandra-db2725-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cassandra-db2725-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cassandra-db2725-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup27/providers/Microsoft.DocumentDB/databaseAccounts/gremlin-db1002\",\r\n \"name\": \"gremlin-db1002\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Gremlin (graph)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-07T23:46:03.6280254Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://gremlin-db1002.documents.azure.com:443/\",\r\n \"gremlinEndpoint\": \"https://gremlin-db1002.gremlin.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"033e692d-71d0-47a4-8f5b-013768d5581b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"gremlin-db1002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://gremlin-db1002-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"gremlin-db1002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://gremlin-db1002-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"gremlin-db1002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://gremlin-db1002-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"gremlin-db1002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup27/providers/Microsoft.DocumentDB/databaseAccounts/dbaccount27-1\",\r\n \"name\": \"dbaccount27-1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-08T17:39:45.8022668Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://dbaccount27-1.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"41ea7d9e-553f-4259-872f-676c969e9a0b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"dbaccount27-1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://dbaccount27-1-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"dbaccount27-1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://dbaccount27-1-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"dbaccount27-1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://dbaccount27-1-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"dbaccount27-1-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli125\",\r\n \"name\": \"cli125\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-09T19:06:12.2299472Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cli125.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"ceacd38f-9e6b-4a81-b2f7-ecd341c6fbbd\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cli125-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cli125-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cli125-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cli125-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cli125-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cli125-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cli125-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac125\",\r\n \"name\": \"rbac125\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-09T19:06:26.9195815Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://rbac125.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"0bec9b44-156a-4a9b-882b-bc5f13719bdf\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"rbac125-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://rbac125-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"rbac125-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://rbac125-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"rbac125-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://rbac125-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"rbac125-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/sqltestaccount123\",\r\n \"name\": \"sqltestaccount123\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-09T19:09:53.110489Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sqltestaccount123.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"88d48073-10d1-402e-8cf5-c79e4e2de08e\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sqltestaccount123-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sqltestaccount123-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sqltestaccount123-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sqltestaccount123-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sqltestaccount123-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sqltestaccount123-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sqltestaccount123-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8732/providers/Microsoft.DocumentDB/databaseAccounts/accountname2112\",\r\n \"name\": \"accountname2112\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-09T19:57:34.3301135Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://accountname2112.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://accountname2112.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"708204e9-49b5-46da-96d7-79a8902a07f3\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 1000,\r\n \"maxStalenessPrefix\": 300\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname2112-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname2112-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname2112-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname2112-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname2112-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname2112-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname2112-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003\",\r\n \"name\": \"db003\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-09T20:16:39.4077427Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://db003.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://db003.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"bb9b3beb-42c4-4ae4-a983-58e20bcd71a5\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"4.0\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"db003-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db003-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"db003-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db003-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"db003-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://db003-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"db003-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/sqltestaccount124\",\r\n \"name\": \"sqltestaccount124\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-10T05:06:01.1543083Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sqltestaccount124.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"9f8ee54b-f275-44fa-b2c5-9983644c131f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sqltestaccount124-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sqltestaccount124-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sqltestaccount124-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sqltestaccount124-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sqltestaccount124-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sqltestaccount124-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sqltestaccount124-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126\",\r\n \"name\": \"rbac126\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-10T05:07:55.084806Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://rbac126.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"5074765d-799e-48e0-9d5a-2ce00a90eb6f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"rbac126-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://rbac126-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"rbac126-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://rbac126-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"rbac126-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://rbac126-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"rbac126-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/restoredaccountname7595\",\r\n \"name\": \"restoredaccountname7595\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-10T18:00:34.1983541Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://restoredaccountname7595.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"c2601a38-bee1-400e-bc5e-8d817318cf31\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"restoredaccountname7595-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname7595-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"restoredaccountname7595-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname7595-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"restoredaccountname7595-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname7595-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"restoredaccountname7595-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9f8ee54b-f275-44fa-b2c5-9983644c131f\",\r\n \"restoreTimestampInUtc\": \"2021-06-10T17:45:11.0041684Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/restoredaccountname4020\",\r\n \"name\": \"restoredaccountname4020\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-15T21:27:03.102793Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://restoredaccountname4020.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"33035d50-7f15-4450-a71d-a4da4dcd039f\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"restoredaccountname4020-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname4020-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"restoredaccountname4020-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname4020-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"restoredaccountname4020-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname4020-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"restoredaccountname4020-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9f8ee54b-f275-44fa-b2c5-9983644c131f\",\r\n \"restoreTimestampInUtc\": \"2021-06-15T21:14:08.4938549Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126\",\r\n \"name\": \"cli126\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-16T00:24:00.8135849Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cli126.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"e7f55622-acc4-4521-80a4-fd9e79b10091\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cli126-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cli126-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cli126-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cli126-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cli126-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cli126-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cli126-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts/accountname4002\",\r\n \"name\": \"accountname4002\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-16T05:10:36.0450002Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://accountname4002.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://accountname4002.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": true,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"125165e8-3796-40d3-80cd-83d7f3094110\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"AzureServices\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname4002-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname4002-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname4002-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName\",\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName2\"\r\n ]\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/bugbashbackup/providers/Microsoft.DocumentDB/databaseAccounts/targetacct10\",\r\n \"name\": \"targetacct10\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-01T02:05:28.2926734Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://targetacct10.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"4b9c5465-8bbc-4c8e-bc7f-5a8999c4e840\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"targetacct10-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://targetacct10-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"targetacct10-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://targetacct10-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"targetacct10-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://targetacct10-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"targetacct10-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/0034883d-1a13-418f-9eaf-5dbbaabdd901\",\r\n \"restoreTimestampInUtc\": \"2021-02-04T00:00:00Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/gskcss/providers/Microsoft.DocumentDB/databaseAccounts/targetacct112\",\r\n \"name\": \"targetacct112\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-01T10:33:40.2122225Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://targetacct112.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"3564d9f8-5f2d-4d00-a66f-5d370d970371\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"targetacct112-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://targetacct112-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"targetacct112-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://targetacct112-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"targetacct112-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://targetacct112-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"targetacct112-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/5c84891d-ee24-4dc7-aa2b-d8968baf7936\",\r\n \"restoreTimestampInUtc\": \"2021-02-06T00:00:00Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"ToDoList\",\r\n \"collectionNames\": [\r\n \"Items\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/analyticstest/providers/Microsoft.DocumentDB/databaseAccounts/analyticstest01072021\",\r\n \"name\": \"analyticstest01072021\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-07T20:28:47.6081066Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://analyticstest01072021.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"f8dfcb44-15b2-4667-a00d-6611d51b8ad1\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"analyticstest01072021-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://analyticstest01072021-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"analyticstest01072021-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://analyticstest01072021-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"analyticstest01072021-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://analyticstest01072021-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"analyticstest01072021-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/analyticstest/providers/Microsoft.DocumentDB/databaseAccounts/clid4bvkfsumrnr-restore\",\r\n \"name\": \"clid4bvkfsumrnr-restore\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-08T20:25:48.8761516Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://clid4bvkfsumrnr-restore.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://clid4bvkfsumrnr-restore.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"1cea11b1-c170-4ffe-993d-63da1bff9a94\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"clid4bvkfsumrnr-restore-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clid4bvkfsumrnr-restore-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"clid4bvkfsumrnr-restore-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clid4bvkfsumrnr-restore-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"clid4bvkfsumrnr-restore-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clid4bvkfsumrnr-restore-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"clid4bvkfsumrnr-restore-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/1d16299c-e79e-4130-9647-1fa47f738892\",\r\n \"restoreTimestampInUtc\": \"2020-12-10T21:45:00Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/cli_test_cosmosdb_mongodb_restorable_commandsgdb7nmuyk4whgiqmuvmvwmkl7zuov7/providers/Microsoft.DocumentDB/databaseAccounts/cliweraslfbdxmi\",\r\n \"name\": \"cliweraslfbdxmi\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-28T22:55:57.8949097Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cliweraslfbdxmi.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://cliweraslfbdxmi.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"28bc2837-a17f-4038-8569-7ffb33794333\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cliweraslfbdxmi-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cliweraslfbdxmi-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cliweraslfbdxmi-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cliweraslfbdxmi-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cliweraslfbdxmi-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cliweraslfbdxmi-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cliweraslfbdxmi-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup30/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdb-1212\",\r\n \"name\": \"cosmosdb-1212\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-08T02:05:36.1618683Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cosmosdb-1212.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"31869788-6f92-47f9-8f8b-6619582d2381\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1212-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1212-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cosmosdb-1212-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1212-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cosmosdb-1212-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cosmosdb-1212-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cosmosdb-1212-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"131.107.174.17\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"104.42.195.92\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"40.76.54.131\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.176.6.30\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.169.50.45\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"52.187.184.26\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/gskcss/providers/Microsoft.DocumentDB/databaseAccounts/gskcssdemo-r1\",\r\n \"name\": \"gskcssdemo-r1\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-15T05:24:39.2844442Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://gskcssdemo-r1.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"cc9b5676-f21b-4bd4-b3d9-26ded6884aaa\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"gskcssdemo-r1-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://gskcssdemo-r1-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"gskcssdemo-r1-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://gskcssdemo-r1-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"gskcssdemo-r1-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://gskcssdemo-r1-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"gskcssdemo-r1-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/5c84891d-ee24-4dc7-aa2b-d8968baf7936\",\r\n \"restoreTimestampInUtc\": \"2021-01-15T02:50:50Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"ToDoList\",\r\n \"collectionNames\": [\r\n \"Items\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/gskcss/providers/Microsoft.DocumentDB/databaseAccounts/gskcssdemo\",\r\n \"name\": \"gskcssdemo\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-14T21:53:51.2837017Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://gskcssdemo.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"5c84891d-ee24-4dc7-aa2b-d8968baf7936\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"gskcssdemo-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://gskcssdemo-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"gskcssdemo-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://gskcssdemo-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"gskcssdemo-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://gskcssdemo-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"gskcssdemo-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/kakhandr-rd/providers/Microsoft.DocumentDB/databaseAccounts/kal-continuous\",\r\n \"name\": \"kal-continuous\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-08-05T01:00:24.1857393Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://kal-continuous.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"d92d948a-afb9-4bb3-9a4c-d6b8fcf8d204\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"kal-continuous-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-continuous-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"kal-continuous-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-continuous-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"kal-continuous-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://kal-continuous-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"kal-continuous-southcentralus\",\r\n \"locationName\": \"South Central US\",\r\n \"documentEndpoint\": \"https://kal-continuous-southcentralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"kal-continuous-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-continuous-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"kal-continuous-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://kal-continuous-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"kal-continuous-southcentralus\",\r\n \"locationName\": \"South Central US\",\r\n \"documentEndpoint\": \"https://kal-continuous-southcentralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"kal-continuous-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"kal-continuous-eastus\",\r\n \"locationName\": \"East US\",\r\n \"failoverPriority\": 1\r\n },\r\n {\r\n \"id\": \"kal-continuous-southcentralus\",\r\n \"locationName\": \"South Central US\",\r\n \"failoverPriority\": 2\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"20.10.10.10\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"12.12.122.122\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"12.22.11.11\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"167.220.2.63\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/cli_test_cosmosdb_mongodb_restorable_commandsu4wgkcdknfjkhd56fmfgat65ycgxwo/providers/Microsoft.DocumentDB/databaseAccounts/clikbicro7ly5p2\",\r\n \"name\": \"clikbicro7ly5p2\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-16T01:25:44.6494055Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://clikbicro7ly5p2.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"16e57fca-6555-4c92-bb57-1afa38d69371\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"clikbicro7ly5p2-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clikbicro7ly5p2-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"clikbicro7ly5p2-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clikbicro7ly5p2-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"clikbicro7ly5p2-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clikbicro7ly5p2-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"clikbicro7ly5p2-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/pitrdemocus/providers/Microsoft.DocumentDB/databaseAccounts/nonpitracc\",\r\n \"name\": \"nonpitracc\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-15T06:51:43.6326198Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://nonpitracc.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"60f5f9a3-4993-4c9d-a17f-c23bd4e3a8eb\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"nonpitracc-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://nonpitracc-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"nonpitracc-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://nonpitracc-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"nonpitracc-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://nonpitracc-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"nonpitracc-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/pitrdemocus/providers/Microsoft.DocumentDB/databaseAccounts/pitrmongotest\",\r\n \"name\": \"pitrmongotest\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-01T17:27:21.7773462Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitrmongotest.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://pitrmongotest.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"74ebfb99-1914-4ea9-b802-736b5bda12a7\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitrmongotest-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://pitrmongotest-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitrmongotest-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://pitrmongotest-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitrmongotest-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://pitrmongotest-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitrmongotest-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/pitrdemocus/providers/Microsoft.DocumentDB/databaseAccounts/pitrmongowithsnapshots\",\r\n \"name\": \"pitrmongowithsnapshots\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-07T19:45:06.8272227Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitrmongowithsnapshots.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://pitrmongowithsnapshots.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"a081024d-5e38-45c1-b1cb-9c99552d42b3\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitrmongowithsnapshots-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://pitrmongowithsnapshots-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitrmongowithsnapshots-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://pitrmongowithsnapshots-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitrmongowithsnapshots-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://pitrmongowithsnapshots-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitrmongowithsnapshots-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/74ebfb99-1914-4ea9-b802-736b5bda12a7\",\r\n \"restoreTimestampInUtc\": \"2021-01-07T19:16:12.574Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/analyticstest/providers/Microsoft.DocumentDB/databaseAccounts/targetacct4\",\r\n \"name\": \"targetacct4\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-20T17:59:46.9392257Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://targetacct4.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"ac7dc153-2571-425f-b8a1-c812706ad3dc\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"targetacct4-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://targetacct4-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"targetacct4-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://targetacct4-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"targetacct4-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://targetacct4-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"targetacct4-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/0034883d-1a13-418f-9eaf-5dbbaabdd901\",\r\n \"restoreTimestampInUtc\": \"2021-02-04T00:00:00Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/kakhandr-rd/providers/Microsoft.DocumentDB/databaseAccounts/test-bk-cont-restore1\",\r\n \"name\": \"test-bk-cont-restore1\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-15T23:55:02.6142219Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test-bk-cont-restore1.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"2cfb9266-6837-4c5c-b7ae-ec8e72913cd1\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test-bk-cont-restore1-southcentralus\",\r\n \"locationName\": \"South Central US\",\r\n \"documentEndpoint\": \"https://test-bk-cont-restore1-southcentralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test-bk-cont-restore1-southcentralus\",\r\n \"locationName\": \"South Central US\",\r\n \"documentEndpoint\": \"https://test-bk-cont-restore1-southcentralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test-bk-cont-restore1-southcentralus\",\r\n \"locationName\": \"South Central US\",\r\n \"documentEndpoint\": \"https://test-bk-cont-restore1-southcentralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test-bk-cont-restore1-southcentralus\",\r\n \"locationName\": \"South Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"20.10.10.10\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"12.12.122.122\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"12.22.11.11\"\r\n },\r\n {\r\n \"ipAddressOrRange\": \"167.220.2.63\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/d92d948a-afb9-4bb3-9a4c-d6b8fcf8d204\",\r\n \"restoreTimestampInUtc\": \"2020-10-15T23:40:31Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/testResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/test0319\",\r\n \"name\": \"test0319\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-03-19T22:18:56.9312129Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test0319.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": true,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"10917701-a6f8-4f77-a6c8-4f4ab1879abb\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test0319-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://test0319-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test0319-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://test0319-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"test0319-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://test0319-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"test0319-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://test0319-southeastasia.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test0319-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://test0319-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"test0319-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://test0319-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"test0319-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"documentEndpoint\": \"https://test0319-southeastasia.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 2,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test0319-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"test0319-eastus\",\r\n \"locationName\": \"East US\",\r\n \"failoverPriority\": 1\r\n },\r\n {\r\n \"id\": \"test0319-southeastasia\",\r\n \"locationName\": \"Southeast Asia\",\r\n \"failoverPriority\": 2\r\n }\r\n ],\r\n \"cors\": [\r\n {\r\n \"allowedOrigins\": \"*\"\r\n }\r\n ],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 70,\r\n \"backupRetentionIntervalInHours\": 48,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/test-restore-pitr1\",\r\n \"name\": \"test-restore-pitr1\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-06T09:20:16.8700059Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test-restore-pitr1.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"329aedaa-1997-4c0d-b3c9-40e890c3dc08\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test-restore-pitr1-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://test-restore-pitr1-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test-restore-pitr1-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://test-restore-pitr1-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test-restore-pitr1-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://test-restore-pitr1-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test-restore-pitr1-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/7ccb546f-804d-4fe3-902f-bdb162d2ca51\",\r\n \"restoreTimestampInUtc\": \"2020-12-10T02:06:51Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"Test\",\r\n \"collectionNames\": [\r\n \"Test\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/analyticstest/providers/Microsoft.DocumentDB/databaseAccounts/virangai-test-bkpol-mm\",\r\n \"name\": \"virangai-test-bkpol-mm\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-12T23:20:54.3396585Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://virangai-test-bkpol-mm.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"7faecf9d-1192-45a1-896f-a06f828cd893\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"virangai-test-bkpol-mm-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-bkpol-mm-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"virangai-test-bkpol-mm-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-bkpol-mm-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"virangai-test-bkpol-mm-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-bkpol-mm-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"virangai-test-bkpol-mm-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/virangai-test-pitr-restore-del-restore1\",\r\n \"name\": \"virangai-test-pitr-restore-del-restore1\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-08T01:07:15.7554376Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del-restore1.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"e89306b9-137a-4293-b692-263bb3406366\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del-restore1-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del-restore1-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del-restore1-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del-restore1-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del-restore1-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del-restore1-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del-restore1-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/7ccb546f-804d-4fe3-902f-bdb162d2ca51\",\r\n \"restoreTimestampInUtc\": \"2020-12-10T02:06:51Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/virangai-test-pitr-restore-del-restore3\",\r\n \"name\": \"virangai-test-pitr-restore-del-restore3\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-08T01:15:25.1204738Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del-restore3.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"b2bcdd92-0b33-4574-ba6e-56f1b3e346e4\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del-restore3-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del-restore3-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del-restore3-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del-restore3-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del-restore3-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del-restore3-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del-restore3-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/7ccb546f-804d-4fe3-902f-bdb162d2ca51\",\r\n \"restoreTimestampInUtc\": \"2020-12-10T02:06:51Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/virangai-test-pitr-restore-del-restore4\",\r\n \"name\": \"virangai-test-pitr-restore-del-restore4\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-08T01:36:21.1122263Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del-restore4.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"e96a653a-cc5e-49f0-a3ae-36a4d461cf07\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del-restore4-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del-restore4-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del-restore4-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del-restore4-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del-restore4-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del-restore4-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del-restore4-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/7ccb546f-804d-4fe3-902f-bdb162d2ca51\",\r\n \"restoreTimestampInUtc\": \"2021-01-08T00:00:00Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"Test\",\r\n \"collectionNames\": [\r\n \"Test\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/bugbashbackup/providers/Microsoft.DocumentDB/databaseAccounts/balaksrestorebug\",\r\n \"name\": \"balaksrestorebug\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-09T01:08:24.6458103Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://balaksrestorebug.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"70f3ea16-d3bc-46f6-98e8-576fc201eabf\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"balaksrestorebug-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://balaksrestorebug-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"balaksrestorebug-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://balaksrestorebug-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"balaksrestorebug-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://balaksrestorebug-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"balaksrestorebug-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/virangai-test-pitr-restore-del2\",\r\n \"name\": \"virangai-test-pitr-restore-del2\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-08T20:20:19.9256406Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del2.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"86db30d3-1725-4ece-b2f5-591ea37e14f9\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del2-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del2-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del2-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del2-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del2-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del2-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del2-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/7ccb546f-804d-4fe3-902f-bdb162d2ca51\",\r\n \"restoreTimestampInUtc\": \"2020-12-12T02:01:51Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"Test\",\r\n \"collectionNames\": [\r\n \"Test\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/kakhandr-rd/providers/Microsoft.DocumentDB/databaseAccounts/kal-cassandra-test\",\r\n \"name\": \"kal-cassandra-test\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Cassandra\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-14T22:31:30.7767808Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://kal-cassandra-test.documents.azure.com:443/\",\r\n \"cassandraEndpoint\": \"https://kal-cassandra-test.cassandra.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Cassandra\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"a4e50135-6c3f-4a8e-9207-eebb764f7e00\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"kal-cassandra-test-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-cassandra-test-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"kal-cassandra-test-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-cassandra-test-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"kal-cassandra-test-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-cassandra-test-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"kal-cassandra-test-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableCassandra\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/test-cli2loqd5ro7y4w-restore-del\",\r\n \"name\": \"test-cli2loqd5ro7y4w-restore-del\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-08T01:37:38.8450248Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test-cli2loqd5ro7y4w-restore-del.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"05640131-c5c8-4d30-adec-aa623e28866b\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test-cli2loqd5ro7y4w-restore-del-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://test-cli2loqd5ro7y4w-restore-del-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test-cli2loqd5ro7y4w-restore-del-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://test-cli2loqd5ro7y4w-restore-del-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test-cli2loqd5ro7y4w-restore-del-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://test-cli2loqd5ro7y4w-restore-del-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test-cli2loqd5ro7y4w-restore-del-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/d3f80d92-65bc-4c29-9441-a9a048d304d7\",\r\n \"restoreTimestampInUtc\": \"2020-12-10T06:25:00Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/testResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/test0319-r1\",\r\n \"name\": \"test0319-r1\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-05T21:53:12.0189791Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test0319-r1.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": true,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"36d321ce-5c39-4d66-9347-47beebff1142\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test0319-r1-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://test0319-r1-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test0319-r1-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://test0319-r1-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"test0319-r1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test0319-r1-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test0319-r1-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://test0319-r1-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"test0319-r1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://test0319-r1-westus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test0319-r1-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"test0319-r1-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 50,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations//restorableDatabaseAccounts/10917701-a6f8-4f77-a6c8-4f4ab1879abb\",\r\n \"restoreTimestampInUtc\": \"2021-01-05T20:00:18Z\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/kakhandr-rd/providers/Microsoft.DocumentDB/databaseAccounts/kal-continuous-dedicated-test\",\r\n \"name\": \"kal-continuous-dedicated-test\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-05T23:45:25.9865024Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://kal-continuous-dedicated-test.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"11d8ee78-2502-4ad6-becd-291aef9ac258\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"ConsistentPrefix\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"kal-continuous-dedicated-test-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-continuous-dedicated-test-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"kal-continuous-dedicated-test-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-continuous-dedicated-test-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"kal-continuous-dedicated-test-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-continuous-dedicated-test-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"kal-continuous-dedicated-test-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/pitrdemocus/providers/Microsoft.DocumentDB/databaseAccounts/pitracctdemo2\",\r\n \"name\": \"pitracctdemo2\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-08-11T02:34:22.7041021Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitracctdemo2.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"1e2bec8e-adcc-4c5a-aa5b-82091d6c8a37\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitracctdemo2-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://pitracctdemo2-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitracctdemo2-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://pitracctdemo2-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitracctdemo2-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://pitracctdemo2-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitracctdemo2-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/virangai-test-pitr-restore-del\",\r\n \"name\": \"virangai-test-pitr-restore-del\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-10T02:06:21.2690247Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"7ccb546f-804d-4fe3-902f-bdb162d2ca51\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/4fae7f97-17a8-4e16-b1ec-c403112381e1\",\r\n \"restoreTimestampInUtc\": \"2020-11-17T12:00:00Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/test-rg/providers/Microsoft.DocumentDB/databaseAccounts/ptr-target\",\r\n \"name\": \"ptr-target\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-05T22:25:23.9313421Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://ptr-target.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"b4c688c1-2ea7-477e-b994-4affe5d3ea35\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"ptr-target-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://ptr-target-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"ptr-target-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://ptr-target-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"ptr-target-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://ptr-target-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"ptr-target-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/e27e7197-8a10-4082-808f-bdd67fc65d93\",\r\n \"restoreTimestampInUtc\": \"2021-01-05T21:45:02Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"db1\",\r\n \"collectionNames\": [\r\n \"procol1\",\r\n \"procol2\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/pitrdemocus/providers/Microsoft.DocumentDB/databaseAccounts/pitrmongotest-restore\",\r\n \"name\": \"pitrmongotest-restore\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-01T21:24:44.2340464Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitrmongotest-restore.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://pitrmongotest-restore.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"9905e7ca-6f2d-4b24-a4c5-8e7529036a74\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitrmongotest-restore-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://pitrmongotest-restore-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitrmongotest-restore-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://pitrmongotest-restore-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitrmongotest-restore-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://pitrmongotest-restore-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitrmongotest-restore-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/74ebfb99-1914-4ea9-b802-736b5bda12a7\",\r\n \"restoreTimestampInUtc\": \"2020-10-01T20:45:11.687Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/virangai-test-pitr-restore-del-restore2\",\r\n \"name\": \"virangai-test-pitr-restore-del-restore2\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-08T01:12:06.1467817Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del-restore2.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"adc221c8-8826-4d48-8c8d-af48be84b678\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del-restore2-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del-restore2-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del-restore2-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del-restore2-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del-restore2-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del-restore2-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del-restore2-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/7ccb546f-804d-4fe3-902f-bdb162d2ca51\",\r\n \"restoreTimestampInUtc\": \"2020-12-10T02:06:51Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/cli_test_cosmosdb_mongodb_restorable_commandsoiookrfblvv4haktupow2swcpf4o74/providers/Microsoft.DocumentDB/databaseAccounts/cli56zv275qols2\",\r\n \"name\": \"cli56zv275qols2\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-28T22:28:27.9505924Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cli56zv275qols2.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://cli56zv275qols2.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"5f95bef8-07b9-400b-aac2-4e09efbc47c2\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cli56zv275qols2-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cli56zv275qols2-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cli56zv275qols2-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cli56zv275qols2-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cli56zv275qols2-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cli56zv275qols2-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cli56zv275qols2-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/virangai-test-pitr-restore-del5\",\r\n \"name\": \"virangai-test-pitr-restore-del5\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-08T20:23:31.7886358Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del5.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"baf212fa-867f-4979-a007-4db919a87868\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del5-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del5-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del5-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del5-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del5-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del5-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del5-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/7ccb546f-804d-4fe3-902f-bdb162d2ca51\",\r\n \"restoreTimestampInUtc\": \"2021-01-08T20:12:26.046Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/virangai-test-pitr-restore-del1\",\r\n \"name\": \"virangai-test-pitr-restore-del1\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-08T20:19:56.8841402Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del1.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"bb466093-aad0-4e58-8ae5-94c4b48caa3d\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del1-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del1-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del1-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del1-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del1-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del1-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del1-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/7ccb546f-804d-4fe3-902f-bdb162d2ca51\",\r\n \"restoreTimestampInUtc\": \"2020-12-12T02:01:51Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/kakhandr-rd/providers/Microsoft.DocumentDB/databaseAccounts/kal-cli-test\",\r\n \"name\": \"kal-cli-test\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-29T19:26:06.4198764Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://kal-cli-test.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"92c911cf-962a-4cad-8a68-fb0e21a4f257\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"kal-cli-test-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-cli-test-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"kal-cli-test-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-cli-test-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"kal-cli-test-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-cli-test-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"kal-cli-test-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/kakhandr-rd/providers/Microsoft.DocumentDB/databaseAccounts/kal-doc-test-continuous\",\r\n \"name\": \"kal-doc-test-continuous\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-28T23:39:09.6312581Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://kal-doc-test-continuous.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"ae351691-d2fb-4878-abe4-5305062a3356\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"kal-doc-test-continuous-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-doc-test-continuous-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"kal-doc-test-continuous-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-doc-test-continuous-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"kal-doc-test-continuous-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-doc-test-continuous-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"kal-doc-test-continuous-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/kakhandr-rd/providers/Microsoft.DocumentDB/databaseAccounts/kal-cli-test-mongo\",\r\n \"name\": \"kal-cli-test-mongo\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-29T19:37:28.3236619Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://kal-cli-test-mongo.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://kal-cli-test-mongo.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"4416eb73-6313-48e3-be87-5f22d8860c3e\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"kal-cli-test-mongo-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-cli-test-mongo-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"kal-cli-test-mongo-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-cli-test-mongo-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"kal-cli-test-mongo-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-cli-test-mongo-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"kal-cli-test-mongo-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/pitrdemocus/providers/Microsoft.DocumentDB/databaseAccounts/pitrdemo1015\",\r\n \"name\": \"pitrdemo1015\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-15T17:28:58.4349667Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitrdemo1015.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"6fd844b3-71af-4e89-9b9d-f829945272bf\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitrdemo1015-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://pitrdemo1015-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitrdemo1015-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://pitrdemo1015-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitrdemo1015-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://pitrdemo1015-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitrdemo1015-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/virangai-test/providers/Microsoft.DocumentDB/databaseAccounts/virangai-test-pitr-restore-del-restore\",\r\n \"name\": \"virangai-test-pitr-restore-del-restore\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-08T00:50:34.3936917Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del-restore.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"26c6c802-2477-422f-b3a0-9da58299b82e\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del-restore-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del-restore-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del-restore-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del-restore-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del-restore-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://virangai-test-pitr-restore-del-restore-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"virangai-test-pitr-restore-del-restore-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/7ccb546f-804d-4fe3-902f-bdb162d2ca51\",\r\n \"restoreTimestampInUtc\": \"2020-12-10T02:06:51Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/testResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/test0319-r2\",\r\n \"name\": \"test0319-r2\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-05T21:05:48.5760539Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test0319-r2.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": true,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"9aa726e0-7284-474e-a876-cc74aed374c4\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test0319-r2-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://test0319-r2-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test0319-r2-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://test0319-r2-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test0319-r2-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://test0319-r2-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test0319-r2-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 239,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Local\"\r\n }\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations//restorableDatabaseAccounts/10917701-a6f8-4f77-a6c8-4f4ab1879abb\",\r\n \"restoreTimestampInUtc\": \"2021-01-05T20:00:18Z\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/kakhandr-rd/providers/Microsoft.DocumentDB/databaseAccounts/kal-powershell-release-test\",\r\n \"name\": \"kal-powershell-release-test\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-02-11T00:05:00.5372927Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://kal-powershell-release-test.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"1450ead6-0a1b-4de3-8d25-e551543ef6bd\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"kal-powershell-release-test-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-powershell-release-test-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"kal-powershell-release-test-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-powershell-release-test-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"kal-powershell-release-test-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-powershell-release-test-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"kal-powershell-release-test-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/dde7f2d9-1ebc-4843-bb47-6b80d5429160\",\r\n \"restoreTimestampInUtc\": \"2021-02-10T01:00:00Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/kakhandr-rd/providers/Microsoft.DocumentDB/databaseAccounts/sivarv-test\",\r\n \"name\": \"sivarv-test\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-05T23:13:22.5920959Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sivarv-test.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"1e9c8685-1f15-4b3b-ab1c-0ad505f0cd24\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sivarv-test-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://sivarv-test-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sivarv-test-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://sivarv-test-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sivarv-test-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://sivarv-test-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sivarv-test-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/e27e7197-8a10-4082-808f-bdd67fc65d93\",\r\n \"restoreTimestampInUtc\": \"2021-01-05T21:45:00Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/pitrdemocus/providers/Microsoft.DocumentDB/databaseAccounts/pitrdemorestored1015\",\r\n \"name\": \"pitrdemorestored1015\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-15T17:37:19.7445957Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitrdemorestored1015.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"3f392004-9f83-4ae9-ac1c-fa5f6542f245\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitrdemorestored1015-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://pitrdemorestored1015-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitrdemorestored1015-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://pitrdemorestored1015-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitrdemorestored1015-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://pitrdemorestored1015-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitrdemorestored1015-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/3325eb2c-3a59-4ebb-882f-27fe519f2253\",\r\n \"restoreTimestampInUtc\": \"2020-10-15T17:00:00Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"VinhDB1\",\r\n \"collectionNames\": [\r\n \"VinhContainer2\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/testResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/test0319-r3\",\r\n \"name\": \"test0319-r3\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\",\r\n \"restoredSourceDatabaseAccountName\": \"test0319\",\r\n \"restoredAtTimestamp\": \"1/6/2021 6:45:10 PM\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-06T18:52:38.3866184Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test0319-r3.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": true,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"b86014d9-a1da-4bb7-8863-2d4dd66454b5\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test0319-r3-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://test0319-r3-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test0319-r3-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://test0319-r3-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test0319-r3-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://test0319-r3-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test0319-r3-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations//restorableDatabaseAccounts/10917701-a6f8-4f77-a6c8-4f4ab1879abb\",\r\n \"restoreTimestampInUtc\": \"2021-01-06T18:05:59Z\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/kakhandr-rd/providers/Microsoft.DocumentDB/databaseAccounts/kal-ps-release-mongo\",\r\n \"name\": \"kal-ps-release-mongo\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-29T07:53:36.7462661Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://kal-ps-release-mongo.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://kal-ps-release-mongo.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"0a0e4393-fd1c-4294-b04f-871b1fd3d6cc\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"kal-ps-release-mongo-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-ps-release-mongo-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"kal-ps-release-mongo-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-ps-release-mongo-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"kal-ps-release-mongo-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-ps-release-mongo-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"kal-ps-release-mongo-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/testResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/subbannageeta\",\r\n \"name\": \"subbannageeta\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-08-08T01:04:52.0701907Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://subbannageeta.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"23e99a35-cd36-4df4-9614-f767a03b9995\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"subbannageeta-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://subbannageeta-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"subbannageeta-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://subbannageeta-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"subbannageeta-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://subbannageeta-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"subbannageeta-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://subbannageeta-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"subbannageeta-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://subbannageeta-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"subbannageeta-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"subbannageeta-eastus\",\r\n \"locationName\": \"East US\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/testResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/test0319-r4\",\r\n \"name\": \"test0319-r4\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\",\r\n \"restoredSourceDatabaseAccountName\": \"test0319\",\r\n \"restoredAtTimestamp\": \"1/6/2021 6:48:40 PM\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-06T18:56:04.1483926Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test0319-r4.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": true,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"fb7d69ad-3a14-4af1-9f17-b31bb8abb3a5\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test0319-r4-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://test0319-r4-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test0319-r4-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://test0319-r4-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test0319-r4-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://test0319-r4-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test0319-r4-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Local\"\r\n }\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations//restorableDatabaseAccounts/\",\r\n \"restoreTimestampInUtc\": \"2021-01-06T18:05:59Z\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/kakhandr-rd/providers/Microsoft.DocumentDB/databaseAccounts/kal-ps-release-mongo-restore\",\r\n \"name\": \"kal-ps-release-mongo-restore\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-29T08:22:38.9423202Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://kal-ps-release-mongo-restore.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://kal-ps-release-mongo-restore.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"1429ae40-9437-4da2-a170-06319cff03f1\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"kal-ps-release-mongo-restore-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-ps-release-mongo-restore-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"kal-ps-release-mongo-restore-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-ps-release-mongo-restore-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"kal-ps-release-mongo-restore-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-ps-release-mongo-restore-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"kal-ps-release-mongo-restore-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/0a0e4393-fd1c-4294-b04f-871b1fd3d6cc\",\r\n \"restoreTimestampInUtc\": \"2021-01-29T08:04:29Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/bugbashrg/providers/Microsoft.DocumentDB/databaseAccounts/target-mongo36-beforecolla\",\r\n \"name\": \"target-mongo36-beforecolla\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-06T00:06:54.9020003Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://target-mongo36-beforecolla.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://target-mongo36-beforecolla.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"a97044b4-5be9-4f17-acc5-05bd58f0156e\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"target-mongo36-beforecolla-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://target-mongo36-beforecolla-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"target-mongo36-beforecolla-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://target-mongo36-beforecolla-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"target-mongo36-beforecolla-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://target-mongo36-beforecolla-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"target-mongo36-beforecolla-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/cc78ddc0-94a1-499d-8820-3b97ead9329d\",\r\n \"restoreTimestampInUtc\": \"2021-01-05T22:58:35Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"mongodb1\",\r\n \"collectionNames\": [\r\n \"mongoCollectionA\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/testResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/testsoutheastasiaaccount\",\r\n \"name\": \"testsoutheastasiaaccount\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-08-24T22:14:48.8629298Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testsoutheastasiaaccount.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"d532671b-7e07-4b3e-9a62-5e3e3ed01681\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testsoutheastasiaaccount-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://testsoutheastasiaaccount-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testsoutheastasiaaccount-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://testsoutheastasiaaccount-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testsoutheastasiaaccount-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://testsoutheastasiaaccount-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testsoutheastasiaaccount-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/kakhandr-rd/providers/Microsoft.DocumentDB/databaseAccounts/kal-ps-sql-release-restore\",\r\n \"name\": \"kal-ps-sql-release-restore\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-01-29T08:10:41.9241121Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://kal-ps-sql-release-restore.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"5002d808-7276-4de1-8a7e-82a8561f4ae1\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"kal-ps-sql-release-restore-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-ps-sql-release-restore-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"kal-ps-sql-release-restore-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-ps-sql-release-restore-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"kal-ps-sql-release-restore-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://kal-ps-sql-release-restore-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"kal-ps-sql-release-restore-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/dde7f2d9-1ebc-4843-bb47-6b80d5429160\",\r\n \"restoreTimestampInUtc\": \"2021-01-29T07:34:00Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"testdb1\",\r\n \"collectionNames\": [\r\n \"testcontainer1\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/bugbashrg/providers/Microsoft.DocumentDB/databaseAccounts/testacct412\",\r\n \"name\": \"testacct412\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-03T19:54:13.9993614Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://testacct412.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"d800a65d-80cb-4d21-b4e8-ae5995b582fc\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"testacct412-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://testacct412-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"testacct412-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://testacct412-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"testacct412-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://testacct412-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"testacct412-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/0034883d-1a13-418f-9eaf-5dbbaabdd901\",\r\n \"restoreTimestampInUtc\": \"2021-02-06T00:00:00Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/testResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/test0322\",\r\n \"name\": \"test0322\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-22T21:55:21.0115327Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://test0322.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"7eec73a2-6814-49db-8f53-f843ebd254bf\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"test0322-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://test0322-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"test0322-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://test0322-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"test0322-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://test0322-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"test0322-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 60,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/gskcss/providers/Microsoft.DocumentDB/databaseAccounts/scottkirill\",\r\n \"name\": \"scottkirill\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-15T17:21:19.5679947Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://scottkirill.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"afe6a47d-1fbd-41e1-992b-db16beeeae3c\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"scottkirill-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://scottkirill-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"scottkirill-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://scottkirill-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"scottkirill-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://scottkirill-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"scottkirill-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/5c84891d-ee24-4dc7-aa2b-d8968baf7936\",\r\n \"restoreTimestampInUtc\": \"2021-04-01T00:00:00Z\",\r\n \"databasesToRestore\": [\r\n {\r\n \"databaseName\": \"ToDoList\",\r\n \"collectionNames\": [\r\n \"Items\"\r\n ]\r\n }\r\n ]\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/kakhandr-rd/providers/Microsoft.DocumentDB/databaseAccounts/activitylogs-cli-pitr-test\",\r\n \"name\": \"activitylogs-cli-pitr-test\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-21T03:10:35.9791105Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://activitylogs-cli-pitr-test.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"e9b7c772-b404-4874-866a-09677b0e68a5\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"activitylogs-cli-pitr-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://activitylogs-cli-pitr-test-northcentralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"activitylogs-cli-pitr-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://activitylogs-cli-pitr-test-northcentralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"activitylogs-cli-pitr-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"documentEndpoint\": \"https://activitylogs-cli-pitr-test-northcentralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"activitylogs-cli-pitr-test-northcentralus\",\r\n \"locationName\": \"North Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/rgtest9921232812/providers/Microsoft.DocumentDB/databaseAccounts/rgtest9921232812\",\r\n \"name\": \"rgtest9921232812\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-07T21:26:26.8333984Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://rgtest9921232812.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"6afbd660-3eba-46e4-bae2-79041ac7edc7\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"rgtest9921232812-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://rgtest9921232812-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"rgtest9921232812-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://rgtest9921232812-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"rgtest9921232812-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://rgtest9921232812-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"rgtest9921232812-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/cli_test_cosmosdb_databaseczz7upvnz5kzgpqh7hixauzwzojnng64hmvus23eq7677xv34/providers/Microsoft.DocumentDB/databaseAccounts/clipfgiwe35om4e\",\r\n \"name\": \"clipfgiwe35om4e\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-14T21:47:00.8039195Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://clipfgiwe35om4e.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"dbf26c3d-90bc-4a54-b184-cffb09728547\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"clipfgiwe35om4e-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clipfgiwe35om4e-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"clipfgiwe35om4e-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clipfgiwe35om4e-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"clipfgiwe35om4e-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clipfgiwe35om4e-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"clipfgiwe35om4e-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/cli_test_cosmosdb_database44ivz7ruagwsr44y6ty7kf3ug2uhfpj6iqcehtvoxwzojxotg/providers/Microsoft.DocumentDB/databaseAccounts/cliv4exa6abnsde\",\r\n \"name\": \"cliv4exa6abnsde\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-15T00:06:00.5714705Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cliv4exa6abnsde.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"c40937be-5e76-40ff-ab42-61de613e55dc\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cliv4exa6abnsde-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cliv4exa6abnsde-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cliv4exa6abnsde-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cliv4exa6abnsde-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cliv4exa6abnsde-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cliv4exa6abnsde-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cliv4exa6abnsde-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/cli_test_cosmosdb_gremlin_databasefcqqgpw6ar6m3h4ff7iaf6lxyzmqclkpibck3chp7/providers/Microsoft.DocumentDB/databaseAccounts/clizpj6hkbx3i4b\",\r\n \"name\": \"clizpj6hkbx3i4b\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-15T00:06:39.2387962Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://clizpj6hkbx3i4b.documents.azure.com:443/\",\r\n \"gremlinEndpoint\": \"https://clizpj6hkbx3i4b.gremlin.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"c8591511-a8b3-4d30-971f-1db01632d976\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"clizpj6hkbx3i4b-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clizpj6hkbx3i4b-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"clizpj6hkbx3i4b-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clizpj6hkbx3i4b-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"clizpj6hkbx3i4b-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clizpj6hkbx3i4b-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"clizpj6hkbx3i4b-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/cli_test_cosmosdb_plrtjv6zs6hrqhn75zcajsmzyrczge2ibckvdgnupm66ansbdb7fhxsqc/providers/Microsoft.DocumentDB/databaseAccounts/cli-test-cosmosdb-plr-ptljkd\",\r\n \"name\": \"cli-test-cosmosdb-plr-ptljkd\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-15T00:35:10.0448626Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cli-test-cosmosdb-plr-ptljkd.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"0bad343b-425a-49fe-bfa1-ba8639d3c158\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cli-test-cosmosdb-plr-ptljkd-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cli-test-cosmosdb-plr-ptljkd-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cli-test-cosmosdb-plr-ptljkd-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cli-test-cosmosdb-plr-ptljkd-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cli-test-cosmosdb-plr-ptljkd-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cli-test-cosmosdb-plr-ptljkd-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cli-test-cosmosdb-plr-ptljkd-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/cli_test_cosmosdb_accountqmmfz4umkz6s5kfwbju2tg3qx2vq3eerrgj4mllfjklp7tkrab/providers/Microsoft.DocumentDB/databaseAccounts/clixieuufhegq7eqpy4kr2ho74cyan37avondobv\",\r\n \"name\": \"clixieuufhegq7eqpy4kr2ho74cyan37avondobv\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-15T00:37:42.1110545Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://clixieuufhegq7eqpy4kr2ho74cyan37avondobv.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": true,\r\n \"virtualNetworkRules\": [\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/cli_test_cosmosdb_accountqmmfz4umkz6s5kfwbju2tg3qx2vq3eerrgj4mllfjklp7tkrab/providers/Microsoft.Network/virtualNetworks/clihulcgsgod322vskt3gh266hixtkjikhdyq6v2/subnets/clibzhqwhhp5dntxe45vmj65o4cmp2rkqqukg7b3\",\r\n \"ignoreMissingVNetServiceEndpoint\": false\r\n }\r\n ],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"625c91b5-cad6-4133-a3f4-1d6f7163ce64\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"clixieuufhegq7eqpy4kr2ho74cyan37avondobv-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clixieuufhegq7eqpy4kr2ho74cyan37avondobv-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"clixieuufhegq7eqpy4kr2ho74cyan37avondobv-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clixieuufhegq7eqpy4kr2ho74cyan37avondobv-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"clixieuufhegq7eqpy4kr2ho74cyan37avondobv-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clixieuufhegq7eqpy4kr2ho74cyan37avondobv-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"clixieuufhegq7eqpy4kr2ho74cyan37avondobv-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/cli_test_cosmosdb_mongodb_restorable_commands2fltuutylruikmauwbbaue5xssba7v/providers/Microsoft.DocumentDB/databaseAccounts/clitg4ll5ikqmab\",\r\n \"name\": \"clitg4ll5ikqmab\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-15T01:21:58.0243896Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://clitg4ll5ikqmab.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://clitg4ll5ikqmab.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"2d7c9954-bebe-4355-aa03-191b3398f64a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"clitg4ll5ikqmab-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clitg4ll5ikqmab-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"clitg4ll5ikqmab-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clitg4ll5ikqmab-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"clitg4ll5ikqmab-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clitg4ll5ikqmab-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"clitg4ll5ikqmab-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/cli_test_cosmosdb_collection4jmmyu5cy6yl4yvwo5zt7j6p6riezby2g36vpbgaf7rcryv/providers/Microsoft.DocumentDB/databaseAccounts/clio2ggbs552pa4\",\r\n \"name\": \"clio2ggbs552pa4\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-15T01:45:51.1759653Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://clio2ggbs552pa4.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"f558f7b4-708c-4bd3-8ec1-5874ec331d97\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"clio2ggbs552pa4-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clio2ggbs552pa4-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"clio2ggbs552pa4-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clio2ggbs552pa4-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"clio2ggbs552pa4-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clio2ggbs552pa4-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"clio2ggbs552pa4-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/cli_test_cosmosdb_gremlin_graphm5pq45wtksr5d2v47ipjxw6z6uztyp3qa3hwaq5fx3nc/providers/Microsoft.DocumentDB/databaseAccounts/cli77nzlbsv4655\",\r\n \"name\": \"cli77nzlbsv4655\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-15T01:47:15.0827185Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cli77nzlbsv4655.documents.azure.com:443/\",\r\n \"gremlinEndpoint\": \"https://cli77nzlbsv4655.gremlin.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"a75d5cb2-2318-415b-99ab-b92489b19c4f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cli77nzlbsv4655-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cli77nzlbsv4655-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cli77nzlbsv4655-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cli77nzlbsv4655-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cli77nzlbsv4655-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cli77nzlbsv4655-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cli77nzlbsv4655-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/cli_test_cosmosdb_gremlin_databasexckkvrc6ixikvz77aw4cvojm4i6vseqpae4b6jxmb/providers/Microsoft.DocumentDB/databaseAccounts/cliao4jep5ayfse\",\r\n \"name\": \"cliao4jep5ayfse\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-15T01:49:15.8735901Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cliao4jep5ayfse.documents.azure.com:443/\",\r\n \"gremlinEndpoint\": \"https://cliao4jep5ayfse.gremlin.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"8ae4e99a-8bc4-404d-8bc0-140a7c1f5091\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cliao4jep5ayfse-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cliao4jep5ayfse-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cliao4jep5ayfse-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cliao4jep5ayfse-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cliao4jep5ayfse-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cliao4jep5ayfse-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cliao4jep5ayfse-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/cli_test_cosmosdb_gremlin_resource_throughput_autoscalexj45jiwevxpgtenmdnkj/providers/Microsoft.DocumentDB/databaseAccounts/cli6n7srd6jjitr\",\r\n \"name\": \"cli6n7srd6jjitr\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-15T04:38:40.9369414Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cli6n7srd6jjitr.documents.azure.com:443/\",\r\n \"gremlinEndpoint\": \"https://cli6n7srd6jjitr.gremlin.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Gremlin, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"4fcbe37e-25b9-458c-9701-589524494157\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cli6n7srd6jjitr-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cli6n7srd6jjitr-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cli6n7srd6jjitr-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cli6n7srd6jjitr-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cli6n7srd6jjitr-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cli6n7srd6jjitr-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cli6n7srd6jjitr-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableGremlin\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/cli_test_cosmosdb_mongodb_collectionbjhsd5izic2stmql7rehy5wipp4szuqukbhaqfj/providers/Microsoft.DocumentDB/databaseAccounts/climbpvjuhit7r5\",\r\n \"name\": \"climbpvjuhit7r5\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-15T04:40:26.2069732Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://climbpvjuhit7r5.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": true,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"9682959d-4f8f-41fa-9e10-2ef1e5b569cc\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"climbpvjuhit7r5-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://climbpvjuhit7r5-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"climbpvjuhit7r5-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://climbpvjuhit7r5-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"climbpvjuhit7r5-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://climbpvjuhit7r5-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"climbpvjuhit7r5-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/cli_test_cosmosdb_key_vault_key_urivnuy7shfk3js2socz7gu732n4pf5fqe37xpscp52/providers/Microsoft.DocumentDB/databaseAccounts/cliuwdawg7ecrgu\",\r\n \"name\": \"cliuwdawg7ecrgu\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-15T04:43:16.4298305Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cliuwdawg7ecrgu.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"c410b487-4a7f-40bf-a291-0212e5592814\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"keyVaultKeyUri\": \"https://clik4innit62zx3.vault.azure.net/keys/cliwtl7farjf7vl\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cliuwdawg7ecrgu-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cliuwdawg7ecrgu-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cliuwdawg7ecrgu-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cliuwdawg7ecrgu-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cliuwdawg7ecrgu-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://cliuwdawg7ecrgu-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cliuwdawg7ecrgu-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/cli_test_cosmosdb_restore_using_createtl4ul5oaohhv7zroqvirz5le464ad4cqrn2o7/providers/Microsoft.DocumentDB/databaseAccounts/clix7mfbnl5lhqc\",\r\n \"name\": \"clix7mfbnl5lhqc\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-15T21:38:12.398056Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://clix7mfbnl5lhqc.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"ed492eb3-1c3c-4abc-ab87-9ec9ee7a406a\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"clix7mfbnl5lhqc-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clix7mfbnl5lhqc-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"clix7mfbnl5lhqc-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clix7mfbnl5lhqc-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"clix7mfbnl5lhqc-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clix7mfbnl5lhqc-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"clix7mfbnl5lhqc-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/cli_test_cosmosdb_table_resource_throughputsawoplrehdp6kolrlynkuzib765s2uan/providers/Microsoft.DocumentDB/databaseAccounts/cli37h5ssnszd3z\",\r\n \"name\": \"cli37h5ssnszd3z\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-15T21:43:36.8084057Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://cli37h5ssnszd3z.documents.azure.com:443/\",\r\n \"tableEndpoint\": \"https://cli37h5ssnszd3z.table.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Table, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"4d309cf9-4071-4334-ada2-d7af593ce684\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 86400,\r\n \"maxStalenessPrefix\": 1000000\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"cli37h5ssnszd3z-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cli37h5ssnszd3z-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"cli37h5ssnszd3z-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cli37h5ssnszd3z-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"cli37h5ssnszd3z-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://cli37h5ssnszd3z-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"cli37h5ssnszd3z-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableTable\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/cli_test_cosmosdb_table5q3hsxazw22bgdso4yc2dkiuqgba63f23kyeb2f5xh3zof6zbcml/providers/Microsoft.DocumentDB/databaseAccounts/clit3enewtlkml2\",\r\n \"name\": \"clit3enewtlkml2\",\r\n \"location\": \"West US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-15T21:43:08.0385772Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://clit3enewtlkml2.documents.azure.com:443/\",\r\n \"tableEndpoint\": \"https://clit3enewtlkml2.table.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Table, Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"6d4956c3-6c72-42ca-ad2a-0a8c992c55da\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 86400,\r\n \"maxStalenessPrefix\": 1000000\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"clit3enewtlkml2-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clit3enewtlkml2-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"clit3enewtlkml2-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clit3enewtlkml2-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"clit3enewtlkml2-westus\",\r\n \"locationName\": \"West US\",\r\n \"documentEndpoint\": \"https://clit3enewtlkml2-westus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"clit3enewtlkml2-westus\",\r\n \"locationName\": \"West US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableTable\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/kakhandr-rd/providers/Microsoft.DocumentDB/databaseAccounts/kal-dedicated-test\",\r\n \"name\": \"kal-dedicated-test\",\r\n \"location\": \"South Central US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\",\r\n \"CosmosAccountType\": \"Non-Production\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2020-10-05T23:57:44.8347861Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://kal-dedicated-test.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"ed1b5536-d225-4af9-bf33-71ff5fc8ef4b\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"kal-dedicated-test-southcentralus\",\r\n \"locationName\": \"South Central US\",\r\n \"documentEndpoint\": \"https://kal-dedicated-test-southcentralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"kal-dedicated-test-southcentralus\",\r\n \"locationName\": \"South Central US\",\r\n \"documentEndpoint\": \"https://kal-dedicated-test-southcentralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"kal-dedicated-test-southcentralus\",\r\n \"locationName\": \"South Central US\",\r\n \"documentEndpoint\": \"https://kal-dedicated-test-southcentralus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"kal-dedicated-test-southcentralus\",\r\n \"locationName\": \"South Central US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/amisirg/providers/Microsoft.DocumentDB/databaseAccounts/amisitestaccount\",\r\n \"name\": \"amisitestaccount\",\r\n \"location\": \"East US\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-14T18:25:56.8104699Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://amisitestaccount.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"afd28572-807d-4ea2-bf0f-65f0b4e411dc\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"amisitestaccount-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://amisitestaccount-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"amisitestaccount-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://amisitestaccount-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"amisitestaccount-eastus\",\r\n \"locationName\": \"East US\",\r\n \"documentEndpoint\": \"https://amisitestaccount-eastus.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"amisitestaccount-eastus\",\r\n \"locationName\": \"East US\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394/providers/Microsoft.DocumentDB/databaseAccounts?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDYzOTQvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHM/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDg2NTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHM/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c78274a6-8971-46d8-a083-f470cdd47dd4" + "78d0f1c7-6744-40b1-8ec7-c6eb8ba5e92a" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -2948,55 +2209,55 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11952" + "11966" ], "x-ms-request-id": [ - "5706bcde-9159-4812-9a48-17841dad405d" + "eaccf451-d0c9-4879-a38a-0986de621e89" ], "x-ms-correlation-request-id": [ - "5706bcde-9159-4812-9a48-17841dad405d" + "eaccf451-d0c9-4879-a38a-0986de621e89" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T173824Z:5706bcde-9159-4812-9a48-17841dad405d" + "WESTUS2:20210616T052243Z:eaccf451-d0c9-4879-a38a-0986de621e89" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:38:23 GMT" + "Wed, 16 Jun 2021 05:22:42 GMT" ], "Content-Length": [ - "2822" + "2701" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394/providers/Microsoft.DocumentDB/databaseAccounts/accountname9088\",\r\n \"name\": \"accountname9088\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-04-27T17:25:41.0988424Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://accountname9088.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://accountname9088.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": true,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": null,\r\n \"instanceId\": \"c3f52ca9-535e-46c4-85d4-8b8c6a46d967\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": true,\r\n \"connectorOffer\": \"Small\",\r\n \"enableMaterializedViews\": false,\r\n \"enableFullFidelityChangeFeed\": false,\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"AzureServices\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname9088-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname9088-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname9088-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname9088-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName\",\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName2\"\r\n ]\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts/accountname4002\",\r\n \"name\": \"accountname4002\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-16T05:10:36.0450002Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://accountname4002.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://accountname4002.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": true,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": true,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"125165e8-3796-40d3-80cd-83d7f3094110\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"AzureServices\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname4002-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname4002-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname4002-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname4002-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName\",\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName2\"\r\n ]\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394/providers/Microsoft.DocumentDB/databaseAccounts/accountname9088/listKeys?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDYzOTQvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU5MDg4L2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts/accountname4002/listKeys?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDg2NTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU0MDAyL2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f93f9807-9035-48a3-b2c0-30e8e5d7fa2a" + "d295339f-a806-4dcf-b5ca-ea416b05ebb5" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -3011,7 +2272,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -3020,46 +2281,46 @@ "1199" ], "x-ms-request-id": [ - "a9c374c5-3149-4478-b434-34146f959469" + "8aa7ed92-f863-4fe5-a815-5d7e96a129a1" ], "x-ms-correlation-request-id": [ - "a9c374c5-3149-4478-b434-34146f959469" + "8aa7ed92-f863-4fe5-a815-5d7e96a129a1" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T173825Z:a9c374c5-3149-4478-b434-34146f959469" + "WESTUS2:20210616T052243Z:8aa7ed92-f863-4fe5-a815-5d7e96a129a1" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:38:24 GMT" + "Wed, 16 Jun 2021 05:22:42 GMT" ], "Content-Length": [ - "719" + "461" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"primaryMasterKey\": \"cn8JnL6wyR77VxhVC7dX0YOhm01C2HEXeSUM1WMHBtjlDxpVEdOpCxTBnhVHIENcr5XKGGagXAfPgyFCO8Sepg==\",\r\n \"secondaryMasterKey\": \"hv9XLdkdyjIGGkMUAdwSObpNuj9i38jN7bDXuBcexBDujQX6hH2o8nPnGt0VTCCYB8r2XidZeCYHnY7uMtTHpw==\",\r\n \"primaryReadonlyMasterKey\": \"KBMoDHC8Wh2cDjl7cCFtc2TYY6E8ZVSUkgYBwbIcjjtyBalMpwmt30VHKzSdmQvK3F3pQxVAGpgNHvzV5e58zw==\",\r\n \"secondaryReadonlyMasterKey\": \"LONlmuOHYRIYGbdy44DNj6fywBxkPfcorIRXnfvP6xUelhiY3pvP2pijb7uOvlOoQwynuHnsGZAnutkTMJoDDA==\",\r\n \"connectorMetadataAccountPrimaryKey\": \"O4TYOgw5iIlEAGCPGgDYyby4LdsmZUNCw831WDyvVT90ErvonQnlDqwlEh3wLK8SrjEstT15ahYIuiSjltOuyA==\",\r\n \"connectorMetadataAccountSecondaryKey\": \"DhPltJbFttaHBnKcNowi15Cv72bvcXpIaH55p8SqoW1alCqg2AULLx5zXwYk5oHA61KDuao6LUq6oQXVBZCj3w==\"\r\n}", + "ResponseBody": "{\r\n \"primaryMasterKey\": \"I0vkb0fxBcUNAoSPkJI0FlgXXPSqJdR52VDAaTwDkWi2z7iDpt98UqtEMmBldWuyCPF0T8Nt9PVNXAzBP1dwpQ==\",\r\n \"secondaryMasterKey\": \"V7GAVfjiLGhs8p3RrFy0sGRLV8D44VYGf4Pw5OZcfPp6UMgOASi4gA0F1nPQRxHaQCvnvb7QuGLIETN7wle49g==\",\r\n \"primaryReadonlyMasterKey\": \"elCzBt6lrbSyJf6XxpnOISvkQxPKEh8OXublWqmy7DQ8oWgqZ84Csek3i22pWAjklU76rwqTOTdy3Wx5EJNFLQ==\",\r\n \"secondaryReadonlyMasterKey\": \"5oFjTxp9JVD40aufNS6AnJehvYSfFxzg6Q4BODP2pGeNJcjmpQTGK0b2IHwbvPJTMtsWjec1UW2EB1wqZYJF3A==\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394/providers/Microsoft.DocumentDB/databaseAccounts/accountname9088/listKeys?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDYzOTQvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU5MDg4L2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts/accountname4002/listKeys?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDg2NTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU0MDAyL2xpc3RLZXlzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f9aaf61f-61fd-4f54-8fa9-a09ad8e3bd84" + "76087f7c-9fd0-43ba-b517-cbf04d6d5316" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -3074,7 +2335,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -3083,46 +2344,46 @@ "1199" ], "x-ms-request-id": [ - "418e54bd-474b-4038-96e4-4a4370f065d9" + "65142a1c-c400-4452-a59e-cbd7921250a5" ], "x-ms-correlation-request-id": [ - "418e54bd-474b-4038-96e4-4a4370f065d9" + "65142a1c-c400-4452-a59e-cbd7921250a5" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T173832Z:418e54bd-474b-4038-96e4-4a4370f065d9" + "WESTUS2:20210616T052244Z:65142a1c-c400-4452-a59e-cbd7921250a5" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:38:31 GMT" + "Wed, 16 Jun 2021 05:22:44 GMT" ], "Content-Length": [ - "719" + "461" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"primaryMasterKey\": \"cn8JnL6wyR77VxhVC7dX0YOhm01C2HEXeSUM1WMHBtjlDxpVEdOpCxTBnhVHIENcr5XKGGagXAfPgyFCO8Sepg==\",\r\n \"secondaryMasterKey\": \"hv9XLdkdyjIGGkMUAdwSObpNuj9i38jN7bDXuBcexBDujQX6hH2o8nPnGt0VTCCYB8r2XidZeCYHnY7uMtTHpw==\",\r\n \"primaryReadonlyMasterKey\": \"KBMoDHC8Wh2cDjl7cCFtc2TYY6E8ZVSUkgYBwbIcjjtyBalMpwmt30VHKzSdmQvK3F3pQxVAGpgNHvzV5e58zw==\",\r\n \"secondaryReadonlyMasterKey\": \"LONlmuOHYRIYGbdy44DNj6fywBxkPfcorIRXnfvP6xUelhiY3pvP2pijb7uOvlOoQwynuHnsGZAnutkTMJoDDA==\",\r\n \"connectorMetadataAccountPrimaryKey\": \"O4TYOgw5iIlEAGCPGgDYyby4LdsmZUNCw831WDyvVT90ErvonQnlDqwlEh3wLK8SrjEstT15ahYIuiSjltOuyA==\",\r\n \"connectorMetadataAccountSecondaryKey\": \"DhPltJbFttaHBnKcNowi15Cv72bvcXpIaH55p8SqoW1alCqg2AULLx5zXwYk5oHA61KDuao6LUq6oQXVBZCj3w==\"\r\n}", + "ResponseBody": "{\r\n \"primaryMasterKey\": \"I0vkb0fxBcUNAoSPkJI0FlgXXPSqJdR52VDAaTwDkWi2z7iDpt98UqtEMmBldWuyCPF0T8Nt9PVNXAzBP1dwpQ==\",\r\n \"secondaryMasterKey\": \"V7GAVfjiLGhs8p3RrFy0sGRLV8D44VYGf4Pw5OZcfPp6UMgOASi4gA0F1nPQRxHaQCvnvb7QuGLIETN7wle49g==\",\r\n \"primaryReadonlyMasterKey\": \"elCzBt6lrbSyJf6XxpnOISvkQxPKEh8OXublWqmy7DQ8oWgqZ84Csek3i22pWAjklU76rwqTOTdy3Wx5EJNFLQ==\",\r\n \"secondaryReadonlyMasterKey\": \"5oFjTxp9JVD40aufNS6AnJehvYSfFxzg6Q4BODP2pGeNJcjmpQTGK0b2IHwbvPJTMtsWjec1UW2EB1wqZYJF3A==\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394/providers/Microsoft.DocumentDB/databaseAccounts/accountname9088/listConnectionStrings?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDYzOTQvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU5MDg4L2xpc3RDb25uZWN0aW9uU3RyaW5ncz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts/accountname4002/listConnectionStrings?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDg2NTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU0MDAyL2xpc3RDb25uZWN0aW9uU3RyaW5ncz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1eb93336-41d6-492b-8534-d355f283c4d1" + "443dc192-fea4-43a2-9a2c-8ef540818142" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -3137,7 +2398,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -3146,46 +2407,46 @@ "1198" ], "x-ms-request-id": [ - "d099f608-942d-4497-8327-379a0cc95340" + "caac6a4b-fb81-44e8-a50b-1dea2eaeac2c" ], "x-ms-correlation-request-id": [ - "d099f608-942d-4497-8327-379a0cc95340" + "caac6a4b-fb81-44e8-a50b-1dea2eaeac2c" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T173830Z:d099f608-942d-4497-8327-379a0cc95340" + "WESTUS2:20210616T052243Z:caac6a4b-fb81-44e8-a50b-1dea2eaeac2c" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:38:29 GMT" + "Wed, 16 Jun 2021 05:22:43 GMT" ], "Content-Length": [ - "1383" + "1359" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"connectionStrings\": [\r\n {\r\n \"connectionString\": \"mongodb://accountname9088:cn8JnL6wyR77VxhVC7dX0YOhm01C2HEXeSUM1WMHBtjlDxpVEdOpCxTBnhVHIENcr5XKGGagXAfPgyFCO8Sepg==@accountname9088.mongo.cosmos.windows-ppe.net:10255/?ssl=true&replicaSet=globaldb&retrywrites=false&maxIdleTimeMS=120000&appName=@accountname9088@\",\r\n \"description\": \"Primary MongoDB Connection String\"\r\n },\r\n {\r\n \"connectionString\": \"mongodb://accountname9088:hv9XLdkdyjIGGkMUAdwSObpNuj9i38jN7bDXuBcexBDujQX6hH2o8nPnGt0VTCCYB8r2XidZeCYHnY7uMtTHpw==@accountname9088.mongo.cosmos.windows-ppe.net:10255/?ssl=true&replicaSet=globaldb&retrywrites=false&maxIdleTimeMS=120000&appName=@accountname9088@\",\r\n \"description\": \"Secondary MongoDB Connection String\"\r\n },\r\n {\r\n \"connectionString\": \"mongodb://accountname9088:KBMoDHC8Wh2cDjl7cCFtc2TYY6E8ZVSUkgYBwbIcjjtyBalMpwmt30VHKzSdmQvK3F3pQxVAGpgNHvzV5e58zw==@accountname9088.mongo.cosmos.windows-ppe.net:10255/?ssl=true&replicaSet=globaldb&retrywrites=false&maxIdleTimeMS=120000&appName=@accountname9088@\",\r\n \"description\": \"Primary Read-Only MongoDB Connection String\"\r\n },\r\n {\r\n \"connectionString\": \"mongodb://accountname9088:LONlmuOHYRIYGbdy44DNj6fywBxkPfcorIRXnfvP6xUelhiY3pvP2pijb7uOvlOoQwynuHnsGZAnutkTMJoDDA==@accountname9088.mongo.cosmos.windows-ppe.net:10255/?ssl=true&replicaSet=globaldb&retrywrites=false&maxIdleTimeMS=120000&appName=@accountname9088@\",\r\n \"description\": \"Secondary Read-Only MongoDB Connection String\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"connectionStrings\": [\r\n {\r\n \"connectionString\": \"mongodb://accountname4002:I0vkb0fxBcUNAoSPkJI0FlgXXPSqJdR52VDAaTwDkWi2z7iDpt98UqtEMmBldWuyCPF0T8Nt9PVNXAzBP1dwpQ==@accountname4002.mongo.cosmos.azure.com:10255/?ssl=true&replicaSet=globaldb&retrywrites=false&maxIdleTimeMS=120000&appName=@accountname4002@\",\r\n \"description\": \"Primary MongoDB Connection String\"\r\n },\r\n {\r\n \"connectionString\": \"mongodb://accountname4002:V7GAVfjiLGhs8p3RrFy0sGRLV8D44VYGf4Pw5OZcfPp6UMgOASi4gA0F1nPQRxHaQCvnvb7QuGLIETN7wle49g==@accountname4002.mongo.cosmos.azure.com:10255/?ssl=true&replicaSet=globaldb&retrywrites=false&maxIdleTimeMS=120000&appName=@accountname4002@\",\r\n \"description\": \"Secondary MongoDB Connection String\"\r\n },\r\n {\r\n \"connectionString\": \"mongodb://accountname4002:elCzBt6lrbSyJf6XxpnOISvkQxPKEh8OXublWqmy7DQ8oWgqZ84Csek3i22pWAjklU76rwqTOTdy3Wx5EJNFLQ==@accountname4002.mongo.cosmos.azure.com:10255/?ssl=true&replicaSet=globaldb&retrywrites=false&maxIdleTimeMS=120000&appName=@accountname4002@\",\r\n \"description\": \"Primary Read-Only MongoDB Connection String\"\r\n },\r\n {\r\n \"connectionString\": \"mongodb://accountname4002:5oFjTxp9JVD40aufNS6AnJehvYSfFxzg6Q4BODP2pGeNJcjmpQTGK0b2IHwbvPJTMtsWjec1UW2EB1wqZYJF3A==@accountname4002.mongo.cosmos.azure.com:10255/?ssl=true&replicaSet=globaldb&retrywrites=false&maxIdleTimeMS=120000&appName=@accountname4002@\",\r\n \"description\": \"Secondary Read-Only MongoDB Connection String\"\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394/providers/Microsoft.DocumentDB/databaseAccounts/accountname9088/readonlykeys?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDYzOTQvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU5MDg4L3JlYWRvbmx5a2V5cz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts/accountname4002/readonlykeys?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDg2NTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU0MDAyL3JlYWRvbmx5a2V5cz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8cdcb2cf-23c7-4cfb-ae0b-e65df86d3f1a" + "35ffae11-269e-43cb-a972-5747b1a214e1" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -3200,7 +2461,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -3209,19 +2470,19 @@ "1197" ], "x-ms-request-id": [ - "d0e1063c-036c-4518-aaf7-1de216c95bec" + "16c1b391-5ae3-40a7-9aad-bfec34e73a4d" ], "x-ms-correlation-request-id": [ - "d0e1063c-036c-4518-aaf7-1de216c95bec" + "16c1b391-5ae3-40a7-9aad-bfec34e73a4d" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T173831Z:d0e1063c-036c-4518-aaf7-1de216c95bec" + "WESTUS2:20210616T052243Z:16c1b391-5ae3-40a7-9aad-bfec34e73a4d" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:38:30 GMT" + "Wed, 16 Jun 2021 05:22:43 GMT" ], "Content-Length": [ "239" @@ -3230,25 +2491,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"primaryReadonlyMasterKey\": \"KBMoDHC8Wh2cDjl7cCFtc2TYY6E8ZVSUkgYBwbIcjjtyBalMpwmt30VHKzSdmQvK3F3pQxVAGpgNHvzV5e58zw==\",\r\n \"secondaryReadonlyMasterKey\": \"LONlmuOHYRIYGbdy44DNj6fywBxkPfcorIRXnfvP6xUelhiY3pvP2pijb7uOvlOoQwynuHnsGZAnutkTMJoDDA==\"\r\n}", + "ResponseBody": "{\r\n \"primaryReadonlyMasterKey\": \"elCzBt6lrbSyJf6XxpnOISvkQxPKEh8OXublWqmy7DQ8oWgqZ84Csek3i22pWAjklU76rwqTOTdy3Wx5EJNFLQ==\",\r\n \"secondaryReadonlyMasterKey\": \"5oFjTxp9JVD40aufNS6AnJehvYSfFxzg6Q4BODP2pGeNJcjmpQTGK0b2IHwbvPJTMtsWjec1UW2EB1wqZYJF3A==\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394/providers/Microsoft.DocumentDB/databaseAccounts/accountname9088/readonlykeys?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDYzOTQvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU5MDg4L3JlYWRvbmx5a2V5cz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts/accountname4002/readonlykeys?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDg2NTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU0MDAyL3JlYWRvbmx5a2V5cz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "dc7e7323-a880-492c-91f5-ba9e1841e51b" + "529c284e-c152-41e8-8105-ac760ac27469" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -3263,7 +2524,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -3272,19 +2533,19 @@ "1196" ], "x-ms-request-id": [ - "f4707b37-b562-4118-beb3-57e20f106ee0" + "2bdd9425-cc25-4395-9431-47c4809737d8" ], "x-ms-correlation-request-id": [ - "f4707b37-b562-4118-beb3-57e20f106ee0" + "2bdd9425-cc25-4395-9431-47c4809737d8" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T173831Z:f4707b37-b562-4118-beb3-57e20f106ee0" + "WESTUS2:20210616T052244Z:2bdd9425-cc25-4395-9431-47c4809737d8" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:38:30 GMT" + "Wed, 16 Jun 2021 05:22:43 GMT" ], "Content-Length": [ "239" @@ -3293,25 +2554,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"primaryReadonlyMasterKey\": \"KBMoDHC8Wh2cDjl7cCFtc2TYY6E8ZVSUkgYBwbIcjjtyBalMpwmt30VHKzSdmQvK3F3pQxVAGpgNHvzV5e58zw==\",\r\n \"secondaryReadonlyMasterKey\": \"LONlmuOHYRIYGbdy44DNj6fywBxkPfcorIRXnfvP6xUelhiY3pvP2pijb7uOvlOoQwynuHnsGZAnutkTMJoDDA==\"\r\n}", + "ResponseBody": "{\r\n \"primaryReadonlyMasterKey\": \"elCzBt6lrbSyJf6XxpnOISvkQxPKEh8OXublWqmy7DQ8oWgqZ84Csek3i22pWAjklU76rwqTOTdy3Wx5EJNFLQ==\",\r\n \"secondaryReadonlyMasterKey\": \"5oFjTxp9JVD40aufNS6AnJehvYSfFxzg6Q4BODP2pGeNJcjmpQTGK0b2IHwbvPJTMtsWjec1UW2EB1wqZYJF3A==\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394/providers/Microsoft.DocumentDB/databaseAccounts/accountname9088/regenerateKey?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDYzOTQvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU5MDg4L3JlZ2VuZXJhdGVLZXk/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts/accountname4002/regenerateKey?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDg2NTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU0MDAyL3JlZ2VuZXJhdGVLZXk/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "POST", "RequestBody": "{\r\n \"keyKind\": \"primaryReadonly\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "6729a347-2410-4252-b158-08be9da76f67" + "575e95c6-0d80-4e34-b7b0-adeb1f162a35" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ @@ -3332,76 +2593,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-request-id": [ - "b8719fe0-bbf1-4b47-b528-bccfc4e093c1" - ], - "x-ms-correlation-request-id": [ - "b8719fe0-bbf1-4b47-b528-bccfc4e093c1" - ], - "x-ms-routing-request-id": [ - "WESTUS:20210427T173832Z:b8719fe0-bbf1-4b47-b528-bccfc4e093c1" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 27 Apr 2021 17:38:32 GMT" - ], - "Content-Length": [ - "282" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"code\": \"PreconditionFailed\",\r\n \"message\": \"There is already an operation in progress which requires exclusive lock on this service accountname9088. Please retry the operation after sometime.\\r\\nActivityId: 6729a347-2410-4252-b158-08be9da76f67, Microsoft.Azure.Documents.Common/2.11.0\"\r\n}", - "StatusCode": 412 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394/providers/Microsoft.DocumentDB/databaseAccounts/accountname9088/regenerateKey?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDYzOTQvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU5MDg4L3JlZ2VuZXJhdGVLZXk/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"keyKind\": \"secondary\"\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e6905fdc-3f77-4263-b29c-af51f9515aab" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29916.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "30" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -3410,19 +2602,19 @@ "1199" ], "x-ms-request-id": [ - "bd5f391f-d4fc-4df1-85b0-81176b1ae002" + "dba75260-3711-4b58-95fe-de6b82a4e892" ], "x-ms-correlation-request-id": [ - "bd5f391f-d4fc-4df1-85b0-81176b1ae002" + "dba75260-3711-4b58-95fe-de6b82a4e892" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T173832Z:bd5f391f-d4fc-4df1-85b0-81176b1ae002" + "WESTUS2:20210616T052244Z:dba75260-3711-4b58-95fe-de6b82a4e892" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:38:32 GMT" + "Wed, 16 Jun 2021 05:22:44 GMT" ], "Content-Length": [ "282" @@ -3431,25 +2623,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"code\": \"PreconditionFailed\",\r\n \"message\": \"There is already an operation in progress which requires exclusive lock on this service accountname9088. Please retry the operation after sometime.\\r\\nActivityId: e6905fdc-3f77-4263-b29c-af51f9515aab, Microsoft.Azure.Documents.Common/2.11.0\"\r\n}", + "ResponseBody": "{\r\n \"code\": \"PreconditionFailed\",\r\n \"message\": \"There is already an operation in progress which requires exclusive lock on this service accountname4002. Please retry the operation after sometime.\\r\\nActivityId: 575e95c6-0d80-4e34-b7b0-adeb1f162a35, Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", "StatusCode": 412 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394/providers/Microsoft.DocumentDB/databaseAccounts/accountname9088/regenerateKey?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDYzOTQvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU5MDg4L3JlZ2VuZXJhdGVLZXk/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts/accountname4002/regenerateKey?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDg2NTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU0MDAyL3JlZ2VuZXJhdGVLZXk/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "POST", "RequestBody": "{\r\n \"keyKind\": \"secondaryReadonly\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "fdeb64e9-17b2-45b4-8480-7096d96bf2dd" + "34a4318a-1535-402d-ae24-7b44297d1a3c" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ @@ -3470,28 +2662,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1199" ], "x-ms-request-id": [ - "07247ff6-b283-405c-90ad-179de00ae311" + "fb29f1a4-9949-4440-9424-2dc56251743b" ], "x-ms-correlation-request-id": [ - "07247ff6-b283-405c-90ad-179de00ae311" + "fb29f1a4-9949-4440-9424-2dc56251743b" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T173832Z:07247ff6-b283-405c-90ad-179de00ae311" + "WESTUS2:20210616T052245Z:fb29f1a4-9949-4440-9424-2dc56251743b" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:38:32 GMT" + "Wed, 16 Jun 2021 05:22:44 GMT" ], "Content-Length": [ "282" @@ -3500,25 +2692,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"code\": \"PreconditionFailed\",\r\n \"message\": \"There is already an operation in progress which requires exclusive lock on this service accountname9088. Please retry the operation after sometime.\\r\\nActivityId: fdeb64e9-17b2-45b4-8480-7096d96bf2dd, Microsoft.Azure.Documents.Common/2.11.0\"\r\n}", + "ResponseBody": "{\r\n \"code\": \"PreconditionFailed\",\r\n \"message\": \"There is already an operation in progress which requires exclusive lock on this service accountname4002. Please retry the operation after sometime.\\r\\nActivityId: 34a4318a-1535-402d-ae24-7b44297d1a3c, Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", "StatusCode": 412 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394/providers/Microsoft.DocumentDB/databaseAccounts/accountname9088/regenerateKey?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDYzOTQvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU5MDg4L3JlZ2VuZXJhdGVLZXk/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts/accountname4002/regenerateKey?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDg2NTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU0MDAyL3JlZ2VuZXJhdGVLZXk/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "POST", "RequestBody": "{\r\n \"keyKind\": \"primary\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "d5d8c923-3791-43f7-b2bb-211f10402828" + "2bd3c425-68ef-49dc-92c4-30f6a191104c" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ @@ -3536,19 +2728,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup6394/providers/Microsoft.DocumentDB/databaseAccounts/accountname9088/regenerateKey/operationResults/3c260433-b461-4cb5-969d-fcebd83514d5?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts/accountname4002/regenerateKey/operationResults/56f660ab-de00-42d4-97f8-7cc66554d9be?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/3c260433-b461-4cb5-969d-fcebd83514d5?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/56f660ab-de00-42d4-97f8-7cc66554d9be?api-version=2021-06-15" ], "x-ms-request-id": [ - "3c260433-b461-4cb5-969d-fcebd83514d5" + "56f660ab-de00-42d4-97f8-7cc66554d9be" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -3557,16 +2749,16 @@ "1195" ], "x-ms-correlation-request-id": [ - "18d997c8-64e7-4e0f-b6e6-5b500e79cdae" + "25a62c47-f7f3-4461-a5ec-c52cc529989b" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T173833Z:18d997c8-64e7-4e0f-b6e6-5b500e79cdae" + "WESTUS2:20210616T052245Z:25a62c47-f7f3-4461-a5ec-c52cc529989b" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:38:33 GMT" + "Wed, 16 Jun 2021 05:22:45 GMT" ], "Content-Length": [ "21" @@ -3581,13 +2773,13 @@ ], "Names": { "CreateResourceGroup": [ - "CosmosDBResourceGroup6394" + "CosmosDBResourceGroup8650" ], "DatabaseAccountCRUDTests": [ - "accountname9088" + "accountname4002" ] }, "Variables": { - "SubscriptionId": "80be3961-0521-4a0a-8570-5cd5a4e2f98c" + "SubscriptionId": "259fbb24-9bcd-4cfc-865c-fc33b22fe38a" } } \ No newline at end of file diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/DatabaseAccountOperationsTests/RestorableSqlDatabaseResourceFeedTest.json b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/DatabaseAccountOperationsTests/RestorableSqlDatabaseResourceFeedTest.json new file mode 100644 index 000000000000..5d8f1b28db08 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/DatabaseAccountOperationsTests/RestorableSqlDatabaseResourceFeedTest.json @@ -0,0 +1,3240 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts/accountname4002/regenerateKey?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDg2NTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU0MDAyL3JlZ2VuZXJhdGVLZXk/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"keyKind\": \"secondary\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1f3ee822-d115-4823-bee1-632f5d5a6bac" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "30" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "2add8827-368f-4df9-aaf4-a435512c0cc2" + ], + "x-ms-correlation-request-id": [ + "2add8827-368f-4df9-aaf4-a435512c0cc2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T052246Z:2add8827-368f-4df9-aaf4-a435512c0cc2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:22:45 GMT" + ], + "Content-Length": [ + "282" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"code\": \"PreconditionFailed\",\r\n \"message\": \"There is already an operation in progress which requires exclusive lock on this service accountname4002. Please retry the operation after sometime.\\r\\nActivityId: 1f3ee822-d115-4823-bee1-632f5d5a6bac, Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", + "StatusCode": 412 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup8650/providers/Microsoft.DocumentDB/databaseAccounts/accountname4002?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDg2NTAvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU0MDAyP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "96beec80-c321-48d8-b46b-363bc910f41e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "c48b8219-24ad-4dec-b865-521ec39fba5d" + ], + "x-ms-correlation-request-id": [ + "c48b8219-24ad-4dec-b865-521ec39fba5d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T052246Z:c48b8219-24ad-4dec-b865-521ec39fba5d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:22:45 GMT" + ], + "Content-Length": [ + "282" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"code\": \"PreconditionFailed\",\r\n \"message\": \"There is already an operation in progress which requires exclusive lock on this service accountname4002. Please retry the operation after sometime.\\r\\nActivityId: 96beec80-c321-48d8-b46b-363bc910f41e, Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", + "StatusCode": 412 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourcegroups/CosmosDBResourceGroup1226?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlZ3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEyMjY/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "HEAD", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "091373d7-0291-4418-a5c7-f29af1e4afb7" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "baa812d2-879d-46be-b393-d7b6cc8bde3c" + ], + "x-ms-correlation-request-id": [ + "baa812d2-879d-46be-b393-d7b6cc8bde3c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T052246Z:baa812d2-879d-46be-b393-d7b6cc8bde3c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:22:46 GMT" + ], + "Content-Length": [ + "117" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourcegroups/CosmosDBResourceGroup1226?api-version=2015-11-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlZ3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEyMjY/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5b58d77d-6538-4383-a9a8-11febb88cc21" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "ba664ff1-0699-4677-b503-0a9822920819" + ], + "x-ms-correlation-request-id": [ + "ba664ff1-0699-4677-b503-0a9822920819" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T052247Z:ba664ff1-0699-4677-b503-0a9822920819" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:22:47 GMT" + ], + "Content-Length": [ + "204" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup1226\",\r\n \"name\": \"CosmosDBResourceGroup1226\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup1226/providers/Microsoft.DocumentDB/databaseAccounts/accountname5926?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEyMjYvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU1OTI2P2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"kind\": \"MongoDB\",\r\n \"properties\": {\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxStalenessPrefix\": 300,\r\n \"maxIntervalInSeconds\": 1000\r\n },\r\n \"locations\": [\r\n {\r\n \"locationName\": \"East US 2\"\r\n }\r\n ],\r\n \"databaseAccountOfferType\": \"Standard\"\r\n },\r\n \"location\": \"EAST US 2\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ceb62fcd-3504-47db-883a-092b0648e134" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "429" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup1226/providers/Microsoft.DocumentDB/databaseAccounts/accountname5926/operationResults/25dd1c50-f982-4191-afaf-dd16f1610d4a?api-version=2021-06-15" + ], + "x-ms-request-id": [ + "25dd1c50-f982-4191-afaf-dd16f1610d4a" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/25dd1c50-f982-4191-afaf-dd16f1610d4a?api-version=2021-06-15" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "a71769fd-3495-4a83-902d-2bf6a15ede1c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T052253Z:a71769fd-3495-4a83-902d-2bf6a15ede1c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:22:53 GMT" + ], + "Content-Length": [ + "2042" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup1226/providers/Microsoft.DocumentDB/databaseAccounts/accountname5926\",\r\n \"name\": \"accountname5926\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-16T05:22:51.2503884Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"de5f73f7-a0cd-4e91-8759-ceb44df5464d\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 1000,\r\n \"maxStalenessPrefix\": 300\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname5926-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname5926-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname5926-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname5926-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/25dd1c50-f982-4191-afaf-dd16f1610d4a?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI1ZGQxYzUwLWY5ODItNDE5MS1hZmFmLWRkMTZmMTYxMGQ0YT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "e797e9bc-ca8d-4700-8090-ae1d73d00aa6" + ], + "x-ms-correlation-request-id": [ + "e797e9bc-ca8d-4700-8090-ae1d73d00aa6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T052323Z:e797e9bc-ca8d-4700-8090-ae1d73d00aa6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:23:23 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/25dd1c50-f982-4191-afaf-dd16f1610d4a?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI1ZGQxYzUwLWY5ODItNDE5MS1hZmFmLWRkMTZmMTYxMGQ0YT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "e7a0ce43-f66f-40b7-9646-a724f2fa4b55" + ], + "x-ms-correlation-request-id": [ + "e7a0ce43-f66f-40b7-9646-a724f2fa4b55" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T052354Z:e7a0ce43-f66f-40b7-9646-a724f2fa4b55" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:23:54 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/25dd1c50-f982-4191-afaf-dd16f1610d4a?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI1ZGQxYzUwLWY5ODItNDE5MS1hZmFmLWRkMTZmMTYxMGQ0YT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "9b593a2d-caad-4fa7-aa2a-d0635188466c" + ], + "x-ms-correlation-request-id": [ + "9b593a2d-caad-4fa7-aa2a-d0635188466c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T052424Z:9b593a2d-caad-4fa7-aa2a-d0635188466c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:24:23 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/25dd1c50-f982-4191-afaf-dd16f1610d4a?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI1ZGQxYzUwLWY5ODItNDE5MS1hZmFmLWRkMTZmMTYxMGQ0YT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "2b181270-f68e-455d-847e-6775bab11567" + ], + "x-ms-correlation-request-id": [ + "2b181270-f68e-455d-847e-6775bab11567" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T052454Z:2b181270-f68e-455d-847e-6775bab11567" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:24:53 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/25dd1c50-f982-4191-afaf-dd16f1610d4a?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI1ZGQxYzUwLWY5ODItNDE5MS1hZmFmLWRkMTZmMTYxMGQ0YT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "f0aeb388-76a1-4498-985f-5b889403dadc" + ], + "x-ms-correlation-request-id": [ + "f0aeb388-76a1-4498-985f-5b889403dadc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T052524Z:f0aeb388-76a1-4498-985f-5b889403dadc" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:25:24 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup1226/providers/Microsoft.DocumentDB/databaseAccounts/accountname5926?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEyMjYvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU1OTI2P2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "33528c7e-6c61-405c-85ae-0cfd56679d1f" + ], + "x-ms-correlation-request-id": [ + "33528c7e-6c61-405c-85ae-0cfd56679d1f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T052524Z:33528c7e-6c61-405c-85ae-0cfd56679d1f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:25:24 GMT" + ], + "Content-Length": [ + "2463" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup1226/providers/Microsoft.DocumentDB/databaseAccounts/accountname5926\",\r\n \"name\": \"accountname5926\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-16T05:24:29.9157773Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://accountname5926.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://accountname5926.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"de5f73f7-a0cd-4e91-8759-ceb44df5464d\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 1000,\r\n \"maxStalenessPrefix\": 300\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname5926-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname5926-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname5926-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname5926-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname5926-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname5926-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname5926-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup1226/providers/Microsoft.DocumentDB/databaseAccounts/accountname5926?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEyMjYvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU1OTI2P2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11973" + ], + "x-ms-request-id": [ + "7f3fec8d-e25f-4ca6-a47f-890ce4bc95b8" + ], + "x-ms-correlation-request-id": [ + "7f3fec8d-e25f-4ca6-a47f-890ce4bc95b8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T053500Z:7f3fec8d-e25f-4ca6-a47f-890ce4bc95b8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:35:00 GMT" + ], + "Content-Length": [ + "2690" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup1226/providers/Microsoft.DocumentDB/databaseAccounts/accountname5926\",\r\n \"name\": \"accountname5926\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-16T05:24:29.9157773Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://accountname5926.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://accountname5926.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": true,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"de5f73f7-a0cd-4e91-8759-ceb44df5464d\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"AzureServices\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname5926-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname5926-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname5926-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname5926-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname5926-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname5926-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname5926-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName\",\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName2\"\r\n ]\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup1226/providers/Microsoft.DocumentDB/databaseAccounts?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEyMjYvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHM/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3f11b57e-d584-4e77-b4bb-a161c77978f1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "bdf38e1c-5656-4b6e-ba09-192ba6fee56b" + ], + "x-ms-correlation-request-id": [ + "bdf38e1c-5656-4b6e-ba09-192ba6fee56b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T052524Z:bdf38e1c-5656-4b6e-ba09-192ba6fee56b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:25:24 GMT" + ], + "Content-Length": [ + "2475" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup1226/providers/Microsoft.DocumentDB/databaseAccounts/accountname5926\",\r\n \"name\": \"accountname5926\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-16T05:24:29.9157773Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://accountname5926.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://accountname5926.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"de5f73f7-a0cd-4e91-8759-ceb44df5464d\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 1000,\r\n \"maxStalenessPrefix\": 300\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname5926-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname5926-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname5926-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname5926-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname5926-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname5926-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname5926-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup1226/providers/Microsoft.DocumentDB/databaseAccounts?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEyMjYvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHM/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e1c1ccb9-b3ef-485b-b4cc-3464fcaf0558" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11972" + ], + "x-ms-request-id": [ + "cd635a52-0153-436e-a568-37747e03a15f" + ], + "x-ms-correlation-request-id": [ + "cd635a52-0153-436e-a568-37747e03a15f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T053501Z:cd635a52-0153-436e-a568-37747e03a15f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:35:00 GMT" + ], + "Content-Length": [ + "2702" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup1226/providers/Microsoft.DocumentDB/databaseAccounts/accountname5926\",\r\n \"name\": \"accountname5926\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-16T05:24:29.9157773Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://accountname5926.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://accountname5926.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": true,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": true,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"de5f73f7-a0cd-4e91-8759-ceb44df5464d\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"AzureServices\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname5926-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname5926-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname5926-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname5926-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname5926-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname5926-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname5926-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": [\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName\",\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName2\"\r\n ]\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup1226/providers/Microsoft.DocumentDB/databaseAccounts/accountname5926?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEyMjYvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU1OTI2P2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n },\r\n \"location\": \"EAST US 2\",\r\n \"properties\": {\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxStalenessPrefix\": 1300,\r\n \"maxIntervalInSeconds\": 12000\r\n },\r\n \"locations\": [\r\n {\r\n \"locationName\": \"East US 2\"\r\n }\r\n ],\r\n \"ipRules\": [\r\n {\r\n \"ipAddressOrRange\": \"23.43.230.120\"\r\n }\r\n ],\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"enableAutomaticFailover\": true,\r\n \"disableKeyBasedMetadataWriteAccess\": true,\r\n \"networkAclBypass\": \"AzureServices\",\r\n \"networkAclBypassResourceIds\": [\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName\",\r\n \"/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName2\"\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8c1e54ad-853a-41b2-bd79-7c4f304294c5" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "876" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup1226/providers/Microsoft.DocumentDB/databaseAccounts/accountname5926/operationResults/2668811a-bff7-4c9e-acdf-9f304fccd3ac?api-version=2021-06-15" + ], + "x-ms-request-id": [ + "2668811a-bff7-4c9e-acdf-9f304fccd3ac" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2668811a-bff7-4c9e-acdf-9f304fccd3ac?api-version=2021-06-15" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "1b702e80-6513-426e-832f-ccf85f3a71a8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T052528Z:1b702e80-6513-426e-832f-ccf85f3a71a8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:25:27 GMT" + ], + "Content-Length": [ + "2459" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup1226/providers/Microsoft.DocumentDB/databaseAccounts/accountname5926\",\r\n \"name\": \"accountname5926\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-16T05:24:29.9157773Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"documentEndpoint\": \"https://accountname5926.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://accountname5926.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"de5f73f7-a0cd-4e91-8759-ceb44df5464d\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"BoundedStaleness\",\r\n \"maxIntervalInSeconds\": 1000,\r\n \"maxStalenessPrefix\": 300\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"accountname5926-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname5926-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"accountname5926-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname5926-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"accountname5926-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://accountname5926-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Updating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"accountname5926-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Periodic\",\r\n \"periodicModeProperties\": {\r\n \"backupIntervalInMinutes\": 240,\r\n \"backupRetentionIntervalInHours\": 8,\r\n \"backupStorageRedundancy\": \"Geo\"\r\n }\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2668811a-bff7-4c9e-acdf-9f304fccd3ac?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI2Njg4MTFhLWJmZjctNGM5ZS1hY2RmLTlmMzA0ZmNjZDNhYz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "a9b44ee4-8941-4e74-af05-200fd0451f95" + ], + "x-ms-correlation-request-id": [ + "a9b44ee4-8941-4e74-af05-200fd0451f95" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T052558Z:a9b44ee4-8941-4e74-af05-200fd0451f95" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:25:57 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2668811a-bff7-4c9e-acdf-9f304fccd3ac?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI2Njg4MTFhLWJmZjctNGM5ZS1hY2RmLTlmMzA0ZmNjZDNhYz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "93a1d3b2-f1cf-404d-837d-8fd229c3aa6a" + ], + "x-ms-correlation-request-id": [ + "93a1d3b2-f1cf-404d-837d-8fd229c3aa6a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T052628Z:93a1d3b2-f1cf-404d-837d-8fd229c3aa6a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:26:27 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2668811a-bff7-4c9e-acdf-9f304fccd3ac?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI2Njg4MTFhLWJmZjctNGM5ZS1hY2RmLTlmMzA0ZmNjZDNhYz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-request-id": [ + "1c4d0406-5b8b-421a-bbd3-54ae3b11265d" + ], + "x-ms-correlation-request-id": [ + "1c4d0406-5b8b-421a-bbd3-54ae3b11265d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T052658Z:1c4d0406-5b8b-421a-bbd3-54ae3b11265d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:26:58 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2668811a-bff7-4c9e-acdf-9f304fccd3ac?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI2Njg4MTFhLWJmZjctNGM5ZS1hY2RmLTlmMzA0ZmNjZDNhYz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-request-id": [ + "31def7bb-63f1-4b90-b6f7-a0e9cbb06b26" + ], + "x-ms-correlation-request-id": [ + "31def7bb-63f1-4b90-b6f7-a0e9cbb06b26" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T052728Z:31def7bb-63f1-4b90-b6f7-a0e9cbb06b26" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:27:27 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2668811a-bff7-4c9e-acdf-9f304fccd3ac?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI2Njg4MTFhLWJmZjctNGM5ZS1hY2RmLTlmMzA0ZmNjZDNhYz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-request-id": [ + "8aecbf54-26eb-431e-9c7d-1b177de13dc1" + ], + "x-ms-correlation-request-id": [ + "8aecbf54-26eb-431e-9c7d-1b177de13dc1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T052758Z:8aecbf54-26eb-431e-9c7d-1b177de13dc1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:27:57 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2668811a-bff7-4c9e-acdf-9f304fccd3ac?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI2Njg4MTFhLWJmZjctNGM5ZS1hY2RmLTlmMzA0ZmNjZDNhYz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-request-id": [ + "6ff35172-2b78-4948-bc29-a643f16f2672" + ], + "x-ms-correlation-request-id": [ + "6ff35172-2b78-4948-bc29-a643f16f2672" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T052828Z:6ff35172-2b78-4948-bc29-a643f16f2672" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:28:28 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2668811a-bff7-4c9e-acdf-9f304fccd3ac?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI2Njg4MTFhLWJmZjctNGM5ZS1hY2RmLTlmMzA0ZmNjZDNhYz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-request-id": [ + "4f78153f-560b-45b3-b15a-5e8b6bc09b2f" + ], + "x-ms-correlation-request-id": [ + "4f78153f-560b-45b3-b15a-5e8b6bc09b2f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T052858Z:4f78153f-560b-45b3-b15a-5e8b6bc09b2f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:28:57 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2668811a-bff7-4c9e-acdf-9f304fccd3ac?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI2Njg4MTFhLWJmZjctNGM5ZS1hY2RmLTlmMzA0ZmNjZDNhYz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-request-id": [ + "c809e7c4-0f6c-4d36-b42e-189ba7338b0c" + ], + "x-ms-correlation-request-id": [ + "c809e7c4-0f6c-4d36-b42e-189ba7338b0c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T052929Z:c809e7c4-0f6c-4d36-b42e-189ba7338b0c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:29:28 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2668811a-bff7-4c9e-acdf-9f304fccd3ac?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI2Njg4MTFhLWJmZjctNGM5ZS1hY2RmLTlmMzA0ZmNjZDNhYz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-request-id": [ + "45704e0f-1ef0-428b-9f0d-f9064aabebf6" + ], + "x-ms-correlation-request-id": [ + "45704e0f-1ef0-428b-9f0d-f9064aabebf6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T052959Z:45704e0f-1ef0-428b-9f0d-f9064aabebf6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:29:58 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2668811a-bff7-4c9e-acdf-9f304fccd3ac?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI2Njg4MTFhLWJmZjctNGM5ZS1hY2RmLTlmMzA0ZmNjZDNhYz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-request-id": [ + "86e42424-fab6-4096-82bf-a650b45419f1" + ], + "x-ms-correlation-request-id": [ + "86e42424-fab6-4096-82bf-a650b45419f1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T053029Z:86e42424-fab6-4096-82bf-a650b45419f1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:30:29 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2668811a-bff7-4c9e-acdf-9f304fccd3ac?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI2Njg4MTFhLWJmZjctNGM5ZS1hY2RmLTlmMzA0ZmNjZDNhYz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-request-id": [ + "8692c096-ff22-44f9-9ba5-188ad23e86f3" + ], + "x-ms-correlation-request-id": [ + "8692c096-ff22-44f9-9ba5-188ad23e86f3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T053059Z:8692c096-ff22-44f9-9ba5-188ad23e86f3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:30:59 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2668811a-bff7-4c9e-acdf-9f304fccd3ac?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI2Njg4MTFhLWJmZjctNGM5ZS1hY2RmLTlmMzA0ZmNjZDNhYz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-request-id": [ + "84173e18-ffa0-4e92-8a35-f0c791088524" + ], + "x-ms-correlation-request-id": [ + "84173e18-ffa0-4e92-8a35-f0c791088524" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T053129Z:84173e18-ffa0-4e92-8a35-f0c791088524" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:31:28 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2668811a-bff7-4c9e-acdf-9f304fccd3ac?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI2Njg4MTFhLWJmZjctNGM5ZS1hY2RmLTlmMzA0ZmNjZDNhYz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-request-id": [ + "e5b82d12-16f4-4b16-bea1-118a53f5fd81" + ], + "x-ms-correlation-request-id": [ + "e5b82d12-16f4-4b16-bea1-118a53f5fd81" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T053159Z:e5b82d12-16f4-4b16-bea1-118a53f5fd81" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:31:59 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2668811a-bff7-4c9e-acdf-9f304fccd3ac?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI2Njg4MTFhLWJmZjctNGM5ZS1hY2RmLTlmMzA0ZmNjZDNhYz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-request-id": [ + "637b78bf-3e90-4e69-9ce8-e8ffa3fcf729" + ], + "x-ms-correlation-request-id": [ + "637b78bf-3e90-4e69-9ce8-e8ffa3fcf729" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T053229Z:637b78bf-3e90-4e69-9ce8-e8ffa3fcf729" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:32:29 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2668811a-bff7-4c9e-acdf-9f304fccd3ac?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI2Njg4MTFhLWJmZjctNGM5ZS1hY2RmLTlmMzA0ZmNjZDNhYz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-request-id": [ + "b63fdbd8-0a37-40b5-98c9-fedee4e44df3" + ], + "x-ms-correlation-request-id": [ + "b63fdbd8-0a37-40b5-98c9-fedee4e44df3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T053300Z:b63fdbd8-0a37-40b5-98c9-fedee4e44df3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:32:59 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2668811a-bff7-4c9e-acdf-9f304fccd3ac?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI2Njg4MTFhLWJmZjctNGM5ZS1hY2RmLTlmMzA0ZmNjZDNhYz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "x-ms-request-id": [ + "5aeb6523-7538-4d7a-8e78-16f95d2b56fb" + ], + "x-ms-correlation-request-id": [ + "5aeb6523-7538-4d7a-8e78-16f95d2b56fb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T053330Z:5aeb6523-7538-4d7a-8e78-16f95d2b56fb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:33:30 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2668811a-bff7-4c9e-acdf-9f304fccd3ac?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI2Njg4MTFhLWJmZjctNGM5ZS1hY2RmLTlmMzA0ZmNjZDNhYz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11976" + ], + "x-ms-request-id": [ + "191612bd-8ad5-4f8c-b0d8-e24271fe4e48" + ], + "x-ms-correlation-request-id": [ + "191612bd-8ad5-4f8c-b0d8-e24271fe4e48" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T053400Z:191612bd-8ad5-4f8c-b0d8-e24271fe4e48" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:33:59 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2668811a-bff7-4c9e-acdf-9f304fccd3ac?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI2Njg4MTFhLWJmZjctNGM5ZS1hY2RmLTlmMzA0ZmNjZDNhYz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11975" + ], + "x-ms-request-id": [ + "d186e639-9b3e-4524-a473-f02c3a98d5d1" + ], + "x-ms-correlation-request-id": [ + "d186e639-9b3e-4524-a473-f02c3a98d5d1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T053430Z:d186e639-9b3e-4524-a473-f02c3a98d5d1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:34:29 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2668811a-bff7-4c9e-acdf-9f304fccd3ac?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI2Njg4MTFhLWJmZjctNGM5ZS1hY2RmLTlmMzA0ZmNjZDNhYz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11974" + ], + "x-ms-request-id": [ + "2b93bc09-d5f3-4104-82ce-6597c91f2b3d" + ], + "x-ms-correlation-request-id": [ + "2b93bc09-d5f3-4104-82ce-6597c91f2b3d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T053500Z:2b93bc09-d5f3-4104-82ce-6597c91f2b3d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:35:00 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup1226/providers/Microsoft.DocumentDB/databaseAccounts/accountname5926?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDEyMjYvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvYWNjb3VudG5hbWU1OTI2P2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "87cebe70-1a76-445a-9236-0aed4b2cf399" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationResults/29539922-9bc0-445d-be5c-1ed418901195?api-version=2021-06-15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/29539922-9bc0-445d-be5c-1ed418901195?api-version=2021-06-15" + ], + "x-ms-request-id": [ + "29539922-9bc0-445d-be5c-1ed418901195" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "9a24541d-2e88-4fe5-b6db-499156c6e56e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T053502Z:9a24541d-2e88-4fe5-b6db-499156c6e56e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:35:02 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/29539922-9bc0-445d-be5c-1ed418901195?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI5NTM5OTIyLTliYzAtNDQ1ZC1iZTVjLTFlZDQxODkwMTE5NT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11971" + ], + "x-ms-request-id": [ + "e2ede0ec-5b3f-4fa5-baa7-8dd6fdbfc1a1" + ], + "x-ms-correlation-request-id": [ + "e2ede0ec-5b3f-4fa5-baa7-8dd6fdbfc1a1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T053532Z:e2ede0ec-5b3f-4fa5-baa7-8dd6fdbfc1a1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:35:32 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/29539922-9bc0-445d-be5c-1ed418901195?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI5NTM5OTIyLTliYzAtNDQ1ZC1iZTVjLTFlZDQxODkwMTE5NT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11970" + ], + "x-ms-request-id": [ + "7bb2c019-2bf4-4b22-8a99-b56be31929b7" + ], + "x-ms-correlation-request-id": [ + "7bb2c019-2bf4-4b22-8a99-b56be31929b7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T053603Z:7bb2c019-2bf4-4b22-8a99-b56be31929b7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:36:02 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/29539922-9bc0-445d-be5c-1ed418901195?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI5NTM5OTIyLTliYzAtNDQ1ZC1iZTVjLTFlZDQxODkwMTE5NT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11969" + ], + "x-ms-request-id": [ + "9b7e8ec9-a465-4dbb-8a9b-96336c2a74b7" + ], + "x-ms-correlation-request-id": [ + "9b7e8ec9-a465-4dbb-8a9b-96336c2a74b7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T053633Z:9b7e8ec9-a465-4dbb-8a9b-96336c2a74b7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:36:32 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/29539922-9bc0-445d-be5c-1ed418901195?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI5NTM5OTIyLTliYzAtNDQ1ZC1iZTVjLTFlZDQxODkwMTE5NT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11968" + ], + "x-ms-request-id": [ + "82fd95d6-a4ff-4ca3-bdaf-12368b999035" + ], + "x-ms-correlation-request-id": [ + "82fd95d6-a4ff-4ca3-bdaf-12368b999035" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T053703Z:82fd95d6-a4ff-4ca3-bdaf-12368b999035" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:37:02 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/29539922-9bc0-445d-be5c-1ed418901195?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI5NTM5OTIyLTliYzAtNDQ1ZC1iZTVjLTFlZDQxODkwMTE5NT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11967" + ], + "x-ms-request-id": [ + "b0a43577-0986-4c4b-97f0-9e171274cbe7" + ], + "x-ms-correlation-request-id": [ + "b0a43577-0986-4c4b-97f0-9e171274cbe7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T053733Z:b0a43577-0986-4c4b-97f0-9e171274cbe7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:37:33 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/29539922-9bc0-445d-be5c-1ed418901195?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI5NTM5OTIyLTliYzAtNDQ1ZC1iZTVjLTFlZDQxODkwMTE5NT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11966" + ], + "x-ms-request-id": [ + "3e6121f0-9c16-491d-b315-79077e35f2ec" + ], + "x-ms-correlation-request-id": [ + "3e6121f0-9c16-491d-b315-79077e35f2ec" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T053803Z:3e6121f0-9c16-491d-b315-79077e35f2ec" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:38:03 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/29539922-9bc0-445d-be5c-1ed418901195?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI5NTM5OTIyLTliYzAtNDQ1ZC1iZTVjLTFlZDQxODkwMTE5NT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11965" + ], + "x-ms-request-id": [ + "05e7a490-7c08-4501-8849-fc5c55a5f7c1" + ], + "x-ms-correlation-request-id": [ + "05e7a490-7c08-4501-8849-fc5c55a5f7c1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T053833Z:05e7a490-7c08-4501-8849-fc5c55a5f7c1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:38:32 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/29539922-9bc0-445d-be5c-1ed418901195?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI5NTM5OTIyLTliYzAtNDQ1ZC1iZTVjLTFlZDQxODkwMTE5NT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11964" + ], + "x-ms-request-id": [ + "84b82b54-b774-4eba-a2d5-653ba18f7616" + ], + "x-ms-correlation-request-id": [ + "84b82b54-b774-4eba-a2d5-653ba18f7616" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T053903Z:84b82b54-b774-4eba-a2d5-653ba18f7616" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:39:03 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/29539922-9bc0-445d-be5c-1ed418901195?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI5NTM5OTIyLTliYzAtNDQ1ZC1iZTVjLTFlZDQxODkwMTE5NT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11963" + ], + "x-ms-request-id": [ + "c7ffbaca-eb7e-4a33-ac55-bdf2c83f0da1" + ], + "x-ms-correlation-request-id": [ + "c7ffbaca-eb7e-4a33-ac55-bdf2c83f0da1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T053933Z:c7ffbaca-eb7e-4a33-ac55-bdf2c83f0da1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:39:33 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/29539922-9bc0-445d-be5c-1ed418901195?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI5NTM5OTIyLTliYzAtNDQ1ZC1iZTVjLTFlZDQxODkwMTE5NT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11962" + ], + "x-ms-request-id": [ + "0e14e1c6-6e8e-4e48-a0b9-ee0be91ad6e8" + ], + "x-ms-correlation-request-id": [ + "0e14e1c6-6e8e-4e48-a0b9-ee0be91ad6e8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T054004Z:0e14e1c6-6e8e-4e48-a0b9-ee0be91ad6e8" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:40:03 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/29539922-9bc0-445d-be5c-1ed418901195?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI5NTM5OTIyLTliYzAtNDQ1ZC1iZTVjLTFlZDQxODkwMTE5NT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11961" + ], + "x-ms-request-id": [ + "a82097bb-b241-4085-a742-f7bb2096ccc2" + ], + "x-ms-correlation-request-id": [ + "a82097bb-b241-4085-a742-f7bb2096ccc2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T054034Z:a82097bb-b241-4085-a742-f7bb2096ccc2" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:40:34 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/29539922-9bc0-445d-be5c-1ed418901195?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI5NTM5OTIyLTliYzAtNDQ1ZC1iZTVjLTFlZDQxODkwMTE5NT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11960" + ], + "x-ms-request-id": [ + "efcf7148-add4-4b05-8de1-200d25e604b5" + ], + "x-ms-correlation-request-id": [ + "efcf7148-add4-4b05-8de1-200d25e604b5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T054104Z:efcf7148-add4-4b05-8de1-200d25e604b5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:41:03 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/29539922-9bc0-445d-be5c-1ed418901195?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI5NTM5OTIyLTliYzAtNDQ1ZC1iZTVjLTFlZDQxODkwMTE5NT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11959" + ], + "x-ms-request-id": [ + "76945ef1-24b2-4443-a491-a119c2cb17ec" + ], + "x-ms-correlation-request-id": [ + "76945ef1-24b2-4443-a491-a119c2cb17ec" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T054134Z:76945ef1-24b2-4443-a491-a119c2cb17ec" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:41:33 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/29539922-9bc0-445d-be5c-1ed418901195?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI5NTM5OTIyLTliYzAtNDQ1ZC1iZTVjLTFlZDQxODkwMTE5NT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11958" + ], + "x-ms-request-id": [ + "036aca5d-1bee-4716-9b0f-af7441934d5c" + ], + "x-ms-correlation-request-id": [ + "036aca5d-1bee-4716-9b0f-af7441934d5c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T054204Z:036aca5d-1bee-4716-9b0f-af7441934d5c" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:42:04 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/29539922-9bc0-445d-be5c-1ed418901195?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI5NTM5OTIyLTliYzAtNDQ1ZC1iZTVjLTFlZDQxODkwMTE5NT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11957" + ], + "x-ms-request-id": [ + "8e5268cd-be02-4857-b3bc-97fd1711f6c3" + ], + "x-ms-correlation-request-id": [ + "8e5268cd-be02-4857-b3bc-97fd1711f6c3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T054234Z:8e5268cd-be02-4857-b3bc-97fd1711f6c3" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:42:34 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/29539922-9bc0-445d-be5c-1ed418901195?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI5NTM5OTIyLTliYzAtNDQ1ZC1iZTVjLTFlZDQxODkwMTE5NT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11956" + ], + "x-ms-request-id": [ + "e619d1ea-106c-4335-a5ac-0a4f84609a37" + ], + "x-ms-correlation-request-id": [ + "e619d1ea-106c-4335-a5ac-0a4f84609a37" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T054304Z:e619d1ea-106c-4335-a5ac-0a4f84609a37" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:43:04 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/29539922-9bc0-445d-be5c-1ed418901195?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI5NTM5OTIyLTliYzAtNDQ1ZC1iZTVjLTFlZDQxODkwMTE5NT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11955" + ], + "x-ms-request-id": [ + "56ec5b03-564a-4bb1-be0a-e13532d1c715" + ], + "x-ms-correlation-request-id": [ + "56ec5b03-564a-4bb1-be0a-e13532d1c715" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T054335Z:56ec5b03-564a-4bb1-be0a-e13532d1c715" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:43:34 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/29539922-9bc0-445d-be5c-1ed418901195?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI5NTM5OTIyLTliYzAtNDQ1ZC1iZTVjLTFlZDQxODkwMTE5NT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11954" + ], + "x-ms-request-id": [ + "096633dc-2f71-46ab-b27e-43cd42ffaa44" + ], + "x-ms-correlation-request-id": [ + "096633dc-2f71-46ab-b27e-43cd42ffaa44" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T054405Z:096633dc-2f71-46ab-b27e-43cd42ffaa44" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:44:05 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/29539922-9bc0-445d-be5c-1ed418901195?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI5NTM5OTIyLTliYzAtNDQ1ZC1iZTVjLTFlZDQxODkwMTE5NT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11953" + ], + "x-ms-request-id": [ + "222c6eae-2886-433a-b6a8-40e9e97f123d" + ], + "x-ms-correlation-request-id": [ + "222c6eae-2886-433a-b6a8-40e9e97f123d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T054435Z:222c6eae-2886-433a-b6a8-40e9e97f123d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:44:34 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationResults/29539922-9bc0-445d-be5c-1ed418901195?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25SZXN1bHRzLzI5NTM5OTIyLTliYzAtNDQ1ZC1iZTVjLTFlZDQxODkwMTE5NT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-activity-id": [ + "dd319370-dd56-47e1-8a5f-74870c526e9e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11952" + ], + "x-ms-request-id": [ + "3ca63e5e-5bbd-4098-b386-0d1a8a406cbb" + ], + "x-ms-correlation-request-id": [ + "3ca63e5e-5bbd-4098-b386-0d1a8a406cbb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T054435Z:3ca63e5e-5bbd-4098-b386-0d1a8a406cbb" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 05:44:34 GMT" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "CreateResourceGroup": [ + "CosmosDBResourceGroup1226" + ], + "RestorableSqlDatabaseResourceFeedTest": [ + "accountname5926" + ] + }, + "Variables": { + "SubscriptionId": "259fbb24-9bcd-4cfc-865c-fc33b22fe38a" + } +} \ No newline at end of file diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/GraphResourcesOperationsTests/GraphCRUDTests.json b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/GraphResourcesOperationsTests/GraphCRUDTests.json index 6b6552d95a91..6fc193712047 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/GraphResourcesOperationsTests/GraphCRUDTests.json +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/GraphResourcesOperationsTests/GraphCRUDTests.json @@ -1,21 +1,21 @@ { "Entries": [ { - "RequestUri": "/providers/Microsoft.DocumentDB/databaseAccountNames/db4096?api-version=2021-04-15", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnROYW1lcy9kYjQwOTY/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", + "RequestUri": "/providers/Microsoft.DocumentDB/databaseAccountNames/db4096?api-version=2021-06-15", + "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnROYW1lcy9kYjQwOTY/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "HEAD", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "75d82f44-14d7-48b4-9f87-aab365ab3d1d" + "4c085c12-6d7f-4553-8cf4-74521194dd5c" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -30,7 +30,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-activity-id": [ - "75d82f44-14d7-48b4-9f87-aab365ab3d1d" + "4c085c12-6d7f-4553-8cf4-74521194dd5c" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -39,19 +39,19 @@ "11999" ], "x-ms-request-id": [ - "c1dfb875-47d9-4ac2-a868-e4ff240c072a" + "a78e6c8b-a862-4096-9a14-ed10d108256d" ], "x-ms-correlation-request-id": [ - "c1dfb875-47d9-4ac2-a868-e4ff240c072a" + "a78e6c8b-a862-4096-9a14-ed10d108256d" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174918Z:c1dfb875-47d9-4ac2-a868-e4ff240c072a" + "WESTUS2:20210616T054702Z:a78e6c8b-a862-4096-9a14-ed10d108256d" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:49:17 GMT" + "Wed, 16 Jun 2021 05:47:01 GMT" ], "Content-Length": [ "0" @@ -61,21 +61,21 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXMvZGF0YWJhc2VOYW1lMTAwMj9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXMvZGF0YWJhc2VOYW1lMTAwMj9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName1002\"\r\n },\r\n \"options\": {}\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "64f5054d-189e-4eed-aaaa-54cc95b7a271" + "80d1f8c4-81c2-4c4f-b814-d33354965ae4" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ @@ -93,19 +93,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002/operationResults/a3daecf7-f769-4ed4-81cc-81627360ad07?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002/operationResults/29e74157-84eb-4d05-ba0b-629de16f5718?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/a3daecf7-f769-4ed4-81cc-81627360ad07?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/29e74157-84eb-4d05-ba0b-629de16f5718?api-version=2021-06-15" ], "x-ms-request-id": [ - "a3daecf7-f769-4ed4-81cc-81627360ad07" + "29e74157-84eb-4d05-ba0b-629de16f5718" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -114,16 +114,16 @@ "1199" ], "x-ms-correlation-request-id": [ - "2de28430-11f8-4594-b2fa-ef3ac70b7800" + "a6195cf7-d893-407f-8d34-ef0be014814a" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174919Z:2de28430-11f8-4594-b2fa-ef3ac70b7800" + "WESTUS2:20210616T054703Z:a6195cf7-d893-407f-8d34-ef0be014814a" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:49:18 GMT" + "Wed, 16 Jun 2021 05:47:03 GMT" ], "Content-Length": [ "21" @@ -136,15 +136,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/a3daecf7-f769-4ed4-81cc-81627360ad07?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2EzZGFlY2Y3LWY3NjktNGVkNC04MWNjLTgxNjI3MzYwYWQwNz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/29e74157-84eb-4d05-ba0b-629de16f5718?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI5ZTc0MTU3LTg0ZWItNGQwNS1iYTBiLTYyOWRlMTZmNTcxOD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -159,7 +159,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -168,19 +168,19 @@ "11999" ], "x-ms-request-id": [ - "3dee28ea-de3c-4551-a638-b93541d83f99" + "37b2c5e2-7298-4a10-a2b7-d14252fac38d" ], "x-ms-correlation-request-id": [ - "3dee28ea-de3c-4551-a638-b93541d83f99" + "37b2c5e2-7298-4a10-a2b7-d14252fac38d" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174949Z:3dee28ea-de3c-4551-a638-b93541d83f99" + "WESTUS2:20210616T054733Z:37b2c5e2-7298-4a10-a2b7-d14252fac38d" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:49:48 GMT" + "Wed, 16 Jun 2021 05:47:33 GMT" ], "Content-Length": [ "22" @@ -193,15 +193,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXMvZGF0YWJhc2VOYW1lMTAwMj9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXMvZGF0YWJhc2VOYW1lMTAwMj9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -216,7 +216,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -225,19 +225,19 @@ "11998" ], "x-ms-request-id": [ - "3fc614ce-d6be-482b-848b-1fddc596a3b4" + "6c0d3fc4-47c6-404d-a473-d4e4050d7741" ], "x-ms-correlation-request-id": [ - "3fc614ce-d6be-482b-848b-1fddc596a3b4" + "6c0d3fc4-47c6-404d-a473-d4e4050d7741" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174949Z:3fc614ce-d6be-482b-848b-1fddc596a3b4" + "WESTUS2:20210616T054734Z:6c0d3fc4-47c6-404d-a473-d4e4050d7741" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:49:49 GMT" + "Wed, 16 Jun 2021 05:47:33 GMT" ], "Content-Length": [ "478" @@ -246,25 +246,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases\",\r\n \"name\": \"databaseName1002\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName1002\",\r\n \"_rid\": \"9EkUAA==\",\r\n \"_self\": \"dbs/9EkUAA==/\",\r\n \"_etag\": \"\\\"00002900-0000-0200-0000-60884ea50000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1619545765\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases\",\r\n \"name\": \"databaseName1002\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName1002\",\r\n \"_rid\": \"sYJ4AA==\",\r\n \"_self\": \"dbs/sYJ4AA==/\",\r\n \"_etag\": \"\\\"00007d00-0000-0200-0000-60b8476e0000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1622689646\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXMvZGF0YWJhc2VOYW1lMTAwMj9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXMvZGF0YWJhc2VOYW1lMTAwMj9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7e414d83-e914-4537-beb1-e4ee3aeab76f" + "f9860c4c-9360-410e-9cac-e94bf2c5b152" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -279,7 +279,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -288,19 +288,19 @@ "11997" ], "x-ms-request-id": [ - "d6b51202-4242-49f1-81cc-afaf18d8125e" + "b592d124-66f3-490c-a255-9e6e0b1e4fc9" ], "x-ms-correlation-request-id": [ - "d6b51202-4242-49f1-81cc-afaf18d8125e" + "b592d124-66f3-490c-a255-9e6e0b1e4fc9" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174949Z:d6b51202-4242-49f1-81cc-afaf18d8125e" + "WESTUS2:20210616T054734Z:b592d124-66f3-490c-a255-9e6e0b1e4fc9" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:49:49 GMT" + "Wed, 16 Jun 2021 05:47:33 GMT" ], "Content-Length": [ "478" @@ -309,25 +309,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases\",\r\n \"name\": \"databaseName1002\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName1002\",\r\n \"_rid\": \"9EkUAA==\",\r\n \"_self\": \"dbs/9EkUAA==/\",\r\n \"_etag\": \"\\\"00002900-0000-0200-0000-60884ea50000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1619545765\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases\",\r\n \"name\": \"databaseName1002\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName1002\",\r\n \"_rid\": \"sYJ4AA==\",\r\n \"_self\": \"dbs/sYJ4AA==/\",\r\n \"_etag\": \"\\\"00007d00-0000-0200-0000-60b8476e0000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1622689646\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName21002?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXMvZGF0YWJhc2VOYW1lMjEwMDI/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName21002?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXMvZGF0YWJhc2VOYW1lMjEwMDI/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName21002\"\r\n },\r\n \"options\": {\r\n \"throughput\": 700\r\n }\r\n },\r\n \"location\": \"EAST US 2\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "3de0caef-fcb8-4f81-9a58-cf70e93198a2" + "88f038ba-94a2-4c65-a397-9ce4cc9e6d5d" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ @@ -345,19 +345,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName21002/operationResults/04ec06f2-0436-4822-b9d4-64caa06ecd51?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName21002/operationResults/854d2eee-b13b-44ba-a5c4-bcb0a592a993?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/04ec06f2-0436-4822-b9d4-64caa06ecd51?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/854d2eee-b13b-44ba-a5c4-bcb0a592a993?api-version=2021-06-15" ], "x-ms-request-id": [ - "04ec06f2-0436-4822-b9d4-64caa06ecd51" + "854d2eee-b13b-44ba-a5c4-bcb0a592a993" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -366,16 +366,16 @@ "1198" ], "x-ms-correlation-request-id": [ - "15be98dd-253b-4382-90be-a9367ae0f131" + "09c8d88f-0843-46ad-8ba7-5358b401962a" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174950Z:15be98dd-253b-4382-90be-a9367ae0f131" + "WESTUS2:20210616T054735Z:09c8d88f-0843-46ad-8ba7-5358b401962a" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:49:50 GMT" + "Wed, 16 Jun 2021 05:47:34 GMT" ], "Content-Length": [ "21" @@ -388,15 +388,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/04ec06f2-0436-4822-b9d4-64caa06ecd51?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzA0ZWMwNmYyLTA0MzYtNDgyMi1iOWQ0LTY0Y2FhMDZlY2Q1MT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/854d2eee-b13b-44ba-a5c4-bcb0a592a993?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzg1NGQyZWVlLWIxM2ItNDRiYS1hNWM0LWJjYjBhNTkyYTk5Mz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -411,7 +411,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -420,19 +420,19 @@ "11996" ], "x-ms-request-id": [ - "e433265c-a709-483d-ada9-3479efed1944" + "b5384bc7-2092-4116-87e7-594a4b762cc8" ], "x-ms-correlation-request-id": [ - "e433265c-a709-483d-ada9-3479efed1944" + "b5384bc7-2092-4116-87e7-594a4b762cc8" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T175020Z:e433265c-a709-483d-ada9-3479efed1944" + "WESTUS2:20210616T054805Z:b5384bc7-2092-4116-87e7-594a4b762cc8" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:50:20 GMT" + "Wed, 16 Jun 2021 05:48:05 GMT" ], "Content-Length": [ "22" @@ -445,15 +445,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName21002?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXMvZGF0YWJhc2VOYW1lMjEwMDI/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName21002?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXMvZGF0YWJhc2VOYW1lMjEwMDI/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -468,7 +468,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -477,19 +477,19 @@ "11995" ], "x-ms-request-id": [ - "254a9938-06dd-41de-a01c-1d80994198f6" + "2b8583a0-08c3-48b2-a4f1-a0a4d582990e" ], "x-ms-correlation-request-id": [ - "254a9938-06dd-41de-a01c-1d80994198f6" + "2b8583a0-08c3-48b2-a4f1-a0a4d582990e" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T175021Z:254a9938-06dd-41de-a01c-1d80994198f6" + "WESTUS2:20210616T054805Z:2b8583a0-08c3-48b2-a4f1-a0a4d582990e" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:50:20 GMT" + "Wed, 16 Jun 2021 05:48:05 GMT" ], "Content-Length": [ "481" @@ -498,25 +498,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName21002\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases\",\r\n \"name\": \"databaseName21002\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName21002\",\r\n \"_rid\": \"flEiAA==\",\r\n \"_self\": \"dbs/flEiAA==/\",\r\n \"_etag\": \"\\\"00002b00-0000-0200-0000-60884ec80000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1619545800\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName21002\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases\",\r\n \"name\": \"databaseName21002\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName21002\",\r\n \"_rid\": \"U0t7AA==\",\r\n \"_self\": \"dbs/U0t7AA==/\",\r\n \"_etag\": \"\\\"00007f00-0000-0200-0000-60b8478f0000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1622689679\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXM/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXM/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "cc480037-4ee8-48fc-ac08-56aaf406d578" + "8019e4b8-c0ac-4ed0-aa3e-f6f8768066d6" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -531,7 +531,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -540,19 +540,19 @@ "11994" ], "x-ms-request-id": [ - "d9e6d40d-7e4d-429c-88b3-5eb9885a0af3" + "c5529915-015b-436c-82cc-412382458c97" ], "x-ms-correlation-request-id": [ - "d9e6d40d-7e4d-429c-88b3-5eb9885a0af3" + "c5529915-015b-436c-82cc-412382458c97" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T175021Z:d9e6d40d-7e4d-429c-88b3-5eb9885a0af3" + "WESTUS2:20210616T054805Z:c5529915-015b-436c-82cc-412382458c97" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:50:20 GMT" + "Wed, 16 Jun 2021 05:48:05 GMT" ], "Content-Length": [ "972" @@ -561,25 +561,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases\",\r\n \"name\": \"databaseName1002\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName1002\",\r\n \"_rid\": \"9EkUAA==\",\r\n \"_self\": \"dbs/9EkUAA==/\",\r\n \"_etag\": \"\\\"00002900-0000-0200-0000-60884ea50000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1619545765\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName21002\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases\",\r\n \"name\": \"databaseName21002\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName21002\",\r\n \"_rid\": \"flEiAA==\",\r\n \"_self\": \"dbs/flEiAA==/\",\r\n \"_etag\": \"\\\"00002b00-0000-0200-0000-60884ec80000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1619545800\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases\",\r\n \"name\": \"databaseName1002\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName1002\",\r\n \"_rid\": \"sYJ4AA==\",\r\n \"_self\": \"dbs/sYJ4AA==/\",\r\n \"_etag\": \"\\\"00007d00-0000-0200-0000-60b8476e0000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1622689646\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName21002\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases\",\r\n \"name\": \"databaseName21002\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName21002\",\r\n \"_rid\": \"U0t7AA==\",\r\n \"_self\": \"dbs/U0t7AA==/\",\r\n \"_etag\": \"\\\"00007f00-0000-0200-0000-60b8478f0000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1622689679\r\n }\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName21002/throughputSettings/default?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXMvZGF0YWJhc2VOYW1lMjEwMDIvdGhyb3VnaHB1dFNldHRpbmdzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName21002/throughputSettings/default?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXMvZGF0YWJhc2VOYW1lMjEwMDIvdGhyb3VnaHB1dFNldHRpbmdzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "5587286c-281b-40f2-a760-fcac8711a036" + "c3c70f1d-b87e-49ee-9696-53189c599729" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -594,7 +594,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -603,19 +603,19 @@ "11993" ], "x-ms-request-id": [ - "5acf72c6-9ede-4d90-8aee-47cb9dbca85c" + "88c9c236-f338-408d-b15b-beda12eb5889" ], "x-ms-correlation-request-id": [ - "5acf72c6-9ede-4d90-8aee-47cb9dbca85c" + "88c9c236-f338-408d-b15b-beda12eb5889" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T175021Z:5acf72c6-9ede-4d90-8aee-47cb9dbca85c" + "WESTUS2:20210616T054805Z:88c9c236-f338-408d-b15b-beda12eb5889" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:50:20 GMT" + "Wed, 16 Jun 2021 05:48:05 GMT" ], "Content-Length": [ "386" @@ -624,25 +624,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName21002/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings\",\r\n \"name\": \"4Uzx\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 700,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName21002/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings\",\r\n \"name\": \"qvak\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 700,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002/graphs/gremlinGraphName1002?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXMvZGF0YWJhc2VOYW1lMTAwMi9ncmFwaHMvZ3JlbWxpbkdyYXBoTmFtZTEwMDI/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002/graphs/gremlinGraphName1002?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXMvZGF0YWJhc2VOYW1lMTAwMi9ncmFwaHMvZ3JlbWxpbkdyYXBoTmFtZTEwMDI/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"gremlinGraphName1002\",\r\n \"indexingPolicy\": {\r\n \"automatic\": true,\r\n \"indexingMode\": \"consistent\",\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/pathToNotIndex/*\"\r\n }\r\n ],\r\n \"compositeIndexes\": [\r\n [\r\n {\r\n \"path\": \"/orderByPath1\",\r\n \"order\": \"ascending\"\r\n },\r\n {\r\n \"path\": \"/orderByPath2\",\r\n \"order\": \"descending\"\r\n }\r\n ],\r\n [\r\n {\r\n \"path\": \"/orderByPath3\",\r\n \"order\": \"ascending\"\r\n },\r\n {\r\n \"path\": \"/orderByPath4\",\r\n \"order\": \"descending\"\r\n }\r\n ]\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/address\"\r\n ],\r\n \"kind\": \"Hash\"\r\n },\r\n \"defaultTtl\": -1\r\n },\r\n \"options\": {\r\n \"throughput\": 700\r\n }\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "da7457df-f7af-4034-8190-43227a5f0436" + "9ba4bc55-3006-4acb-b402-1143b74ce4c1" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ @@ -660,19 +660,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002/graphs/gremlinGraphName1002/operationResults/5594962a-7f38-4347-a1e9-fe800c6cdc66?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002/graphs/gremlinGraphName1002/operationResults/308f611f-818f-4849-abda-6058f9b8cb8c?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/5594962a-7f38-4347-a1e9-fe800c6cdc66?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/308f611f-818f-4849-abda-6058f9b8cb8c?api-version=2021-06-15" ], "x-ms-request-id": [ - "5594962a-7f38-4347-a1e9-fe800c6cdc66" + "308f611f-818f-4849-abda-6058f9b8cb8c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -681,16 +681,16 @@ "1197" ], "x-ms-correlation-request-id": [ - "191f5643-e170-4844-b0a8-a46b3d5ee2e5" + "ca64ba62-f07d-44a8-9035-68100ba3a195" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T175022Z:191f5643-e170-4844-b0a8-a46b3d5ee2e5" + "WESTUS2:20210616T054806Z:ca64ba62-f07d-44a8-9035-68100ba3a195" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:50:21 GMT" + "Wed, 16 Jun 2021 05:48:06 GMT" ], "Content-Length": [ "21" @@ -703,15 +703,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/5594962a-7f38-4347-a1e9-fe800c6cdc66?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzU1OTQ5NjJhLTdmMzgtNDM0Ny1hMWU5LWZlODAwYzZjZGM2Nj9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/308f611f-818f-4849-abda-6058f9b8cb8c?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzMwOGY2MTFmLTgxOGYtNDg0OS1hYmRhLTYwNThmOWI4Y2I4Yz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -726,7 +726,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -735,19 +735,19 @@ "11992" ], "x-ms-request-id": [ - "618b4fcb-1ad1-44a8-9495-0c37dc7adf6d" + "4aaffd6c-3a5d-44ef-b26f-f5bbbfa2c806" ], "x-ms-correlation-request-id": [ - "618b4fcb-1ad1-44a8-9495-0c37dc7adf6d" + "4aaffd6c-3a5d-44ef-b26f-f5bbbfa2c806" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T175052Z:618b4fcb-1ad1-44a8-9495-0c37dc7adf6d" + "WESTUS2:20210616T054836Z:4aaffd6c-3a5d-44ef-b26f-f5bbbfa2c806" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:50:51 GMT" + "Wed, 16 Jun 2021 05:48:36 GMT" ], "Content-Length": [ "22" @@ -760,15 +760,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002/graphs/gremlinGraphName1002?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXMvZGF0YWJhc2VOYW1lMTAwMi9ncmFwaHMvZ3JlbWxpbkdyYXBoTmFtZTEwMDI/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002/graphs/gremlinGraphName1002?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXMvZGF0YWJhc2VOYW1lMTAwMi9ncmFwaHMvZ3JlbWxpbkdyYXBoTmFtZTEwMDI/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -783,7 +783,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -792,19 +792,19 @@ "11991" ], "x-ms-request-id": [ - "70c9cd8f-9dee-4701-8ff8-98ed718cdc2d" + "b5c1754e-3f12-4f44-ad52-13311315d571" ], "x-ms-correlation-request-id": [ - "70c9cd8f-9dee-4701-8ff8-98ed718cdc2d" + "b5c1754e-3f12-4f44-ad52-13311315d571" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T175052Z:70c9cd8f-9dee-4701-8ff8-98ed718cdc2d" + "WESTUS2:20210616T054836Z:b5c1754e-3f12-4f44-ad52-13311315d571" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:50:52 GMT" + "Wed, 16 Jun 2021 05:48:36 GMT" ], "Content-Length": [ "1353" @@ -813,25 +813,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002/graphs/gremlinGraphName1002\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs\",\r\n \"name\": \"gremlinGraphName1002\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"gremlinGraphName1002\",\r\n \"indexingPolicy\": {\r\n \"indexingMode\": \"consistent\",\r\n \"automatic\": true,\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/pathToNotIndex/*\"\r\n },\r\n {\r\n \"path\": \"/\\\"_etag\\\"/?\"\r\n }\r\n ],\r\n \"compositeIndexes\": [\r\n [\r\n {\r\n \"path\": \"/orderByPath1\",\r\n \"order\": \"ascending\"\r\n },\r\n {\r\n \"path\": \"/orderByPath2\",\r\n \"order\": \"descending\"\r\n }\r\n ],\r\n [\r\n {\r\n \"path\": \"/orderByPath3\",\r\n \"order\": \"ascending\"\r\n },\r\n {\r\n \"path\": \"/orderByPath4\",\r\n \"order\": \"descending\"\r\n }\r\n ]\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/address\"\r\n ],\r\n \"kind\": \"Hash\"\r\n },\r\n \"defaultTtl\": -1,\r\n \"uniqueKeyPolicy\": {\r\n \"uniqueKeys\": []\r\n },\r\n \"conflictResolutionPolicy\": {\r\n \"mode\": \"LastWriterWins\",\r\n \"conflictResolutionPath\": \"/_ts\",\r\n \"conflictResolutionProcedure\": \"\"\r\n },\r\n \"allowMaterializedViews\": false,\r\n \"geospatialConfig\": {\r\n \"type\": \"Geography\"\r\n },\r\n \"_rid\": \"9EkUAMq6vvQ=\",\r\n \"_ts\": 1619545830,\r\n \"_self\": \"dbs/9EkUAA==/colls/9EkUAMq6vvQ=/\",\r\n \"_etag\": \"\\\"00002f00-0000-0200-0000-60884ee60000\\\"\",\r\n \"_docs\": \"docs/\",\r\n \"_sprocs\": \"sprocs/\",\r\n \"_triggers\": \"triggers/\",\r\n \"_udfs\": \"udfs/\",\r\n \"_conflicts\": \"conflicts/\",\r\n \"statistics\": [\r\n {\r\n \"id\": \"0\",\r\n \"sizeInKB\": 0,\r\n \"documentCount\": 0,\r\n \"partitionKeys\": []\r\n }\r\n ]\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002/graphs/gremlinGraphName1002\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs\",\r\n \"name\": \"gremlinGraphName1002\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"gremlinGraphName1002\",\r\n \"indexingPolicy\": {\r\n \"indexingMode\": \"consistent\",\r\n \"automatic\": true,\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/pathToNotIndex/*\"\r\n },\r\n {\r\n \"path\": \"/\\\"_etag\\\"/?\"\r\n }\r\n ],\r\n \"compositeIndexes\": [\r\n [\r\n {\r\n \"path\": \"/orderByPath1\",\r\n \"order\": \"ascending\"\r\n },\r\n {\r\n \"path\": \"/orderByPath2\",\r\n \"order\": \"descending\"\r\n }\r\n ],\r\n [\r\n {\r\n \"path\": \"/orderByPath3\",\r\n \"order\": \"ascending\"\r\n },\r\n {\r\n \"path\": \"/orderByPath4\",\r\n \"order\": \"descending\"\r\n }\r\n ]\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/address\"\r\n ],\r\n \"kind\": \"Hash\"\r\n },\r\n \"defaultTtl\": -1,\r\n \"uniqueKeyPolicy\": {\r\n \"uniqueKeys\": []\r\n },\r\n \"conflictResolutionPolicy\": {\r\n \"mode\": \"LastWriterWins\",\r\n \"conflictResolutionPath\": \"/_ts\",\r\n \"conflictResolutionProcedure\": \"\"\r\n },\r\n \"allowMaterializedViews\": false,\r\n \"geospatialConfig\": {\r\n \"type\": \"Geography\"\r\n },\r\n \"_rid\": \"sYJ4AOkirhU=\",\r\n \"_ts\": 1623822492,\r\n \"_self\": \"dbs/sYJ4AA==/colls/sYJ4AOkirhU=/\",\r\n \"_etag\": \"\\\"00004006-0000-0200-0000-60c9909c0000\\\"\",\r\n \"_docs\": \"docs/\",\r\n \"_sprocs\": \"sprocs/\",\r\n \"_triggers\": \"triggers/\",\r\n \"_udfs\": \"udfs/\",\r\n \"_conflicts\": \"conflicts/\",\r\n \"statistics\": [\r\n {\r\n \"id\": \"0\",\r\n \"sizeInKB\": 0,\r\n \"documentCount\": 0,\r\n \"partitionKeys\": []\r\n }\r\n ]\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002/graphs?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXMvZGF0YWJhc2VOYW1lMTAwMi9ncmFwaHM/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002/graphs?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXMvZGF0YWJhc2VOYW1lMTAwMi9ncmFwaHM/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bd87f071-1101-4325-9d06-82d0e523045c" + "3d28f9d2-1684-41c7-b49d-c3ba246c2f84" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -846,7 +846,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -855,19 +855,19 @@ "11990" ], "x-ms-request-id": [ - "3783fa7f-b492-40ed-af27-0fd164ab73f6" + "349369fd-8c48-4162-9592-103092ab8b6f" ], "x-ms-correlation-request-id": [ - "3783fa7f-b492-40ed-af27-0fd164ab73f6" + "349369fd-8c48-4162-9592-103092ab8b6f" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T175053Z:3783fa7f-b492-40ed-af27-0fd164ab73f6" + "WESTUS2:20210616T054837Z:349369fd-8c48-4162-9592-103092ab8b6f" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:50:52 GMT" + "Wed, 16 Jun 2021 05:48:36 GMT" ], "Content-Length": [ "1289" @@ -876,12 +876,12 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002/graphs/gremlinGraphName1002\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs\",\r\n \"name\": \"gremlinGraphName1002\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"gremlinGraphName1002\",\r\n \"indexingPolicy\": {\r\n \"indexingMode\": \"consistent\",\r\n \"automatic\": true,\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/pathToNotIndex/*\"\r\n },\r\n {\r\n \"path\": \"/\\\"_etag\\\"/?\"\r\n }\r\n ],\r\n \"compositeIndexes\": [\r\n [\r\n {\r\n \"path\": \"/orderByPath1\",\r\n \"order\": \"ascending\"\r\n },\r\n {\r\n \"path\": \"/orderByPath2\",\r\n \"order\": \"descending\"\r\n }\r\n ],\r\n [\r\n {\r\n \"path\": \"/orderByPath3\",\r\n \"order\": \"ascending\"\r\n },\r\n {\r\n \"path\": \"/orderByPath4\",\r\n \"order\": \"descending\"\r\n }\r\n ]\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/address\"\r\n ],\r\n \"kind\": \"Hash\"\r\n },\r\n \"defaultTtl\": -1,\r\n \"uniqueKeyPolicy\": {\r\n \"uniqueKeys\": []\r\n },\r\n \"conflictResolutionPolicy\": {\r\n \"mode\": \"LastWriterWins\",\r\n \"conflictResolutionPath\": \"/_ts\",\r\n \"conflictResolutionProcedure\": \"\"\r\n },\r\n \"allowMaterializedViews\": false,\r\n \"geospatialConfig\": {\r\n \"type\": \"Geography\"\r\n },\r\n \"_rid\": \"9EkUAMq6vvQ=\",\r\n \"_ts\": 1619545830,\r\n \"_self\": \"dbs/9EkUAA==/colls/9EkUAMq6vvQ=/\",\r\n \"_etag\": \"\\\"00002f00-0000-0200-0000-60884ee60000\\\"\",\r\n \"_docs\": \"docs/\",\r\n \"_sprocs\": \"sprocs/\",\r\n \"_triggers\": \"triggers/\",\r\n \"_udfs\": \"udfs/\",\r\n \"_conflicts\": \"conflicts/\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002/graphs/gremlinGraphName1002\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs\",\r\n \"name\": \"gremlinGraphName1002\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"gremlinGraphName1002\",\r\n \"indexingPolicy\": {\r\n \"indexingMode\": \"consistent\",\r\n \"automatic\": true,\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/pathToNotIndex/*\"\r\n },\r\n {\r\n \"path\": \"/\\\"_etag\\\"/?\"\r\n }\r\n ],\r\n \"compositeIndexes\": [\r\n [\r\n {\r\n \"path\": \"/orderByPath1\",\r\n \"order\": \"ascending\"\r\n },\r\n {\r\n \"path\": \"/orderByPath2\",\r\n \"order\": \"descending\"\r\n }\r\n ],\r\n [\r\n {\r\n \"path\": \"/orderByPath3\",\r\n \"order\": \"ascending\"\r\n },\r\n {\r\n \"path\": \"/orderByPath4\",\r\n \"order\": \"descending\"\r\n }\r\n ]\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/address\"\r\n ],\r\n \"kind\": \"Hash\"\r\n },\r\n \"defaultTtl\": -1,\r\n \"uniqueKeyPolicy\": {\r\n \"uniqueKeys\": []\r\n },\r\n \"conflictResolutionPolicy\": {\r\n \"mode\": \"LastWriterWins\",\r\n \"conflictResolutionPath\": \"/_ts\",\r\n \"conflictResolutionProcedure\": \"\"\r\n },\r\n \"allowMaterializedViews\": false,\r\n \"geospatialConfig\": {\r\n \"type\": \"Geography\"\r\n },\r\n \"_rid\": \"sYJ4AOkirhU=\",\r\n \"_ts\": 1623822492,\r\n \"_self\": \"dbs/sYJ4AA==/colls/sYJ4AOkirhU=/\",\r\n \"_etag\": \"\\\"00004006-0000-0200-0000-60c9909c0000\\\"\",\r\n \"_docs\": \"docs/\",\r\n \"_sprocs\": \"sprocs/\",\r\n \"_triggers\": \"triggers/\",\r\n \"_udfs\": \"udfs/\",\r\n \"_conflicts\": \"conflicts/\"\r\n }\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 } ], "Names": {}, "Variables": { - "SubscriptionId": "80be3961-0521-4a0a-8570-5cd5a4e2f98c" + "SubscriptionId": "259fbb24-9bcd-4cfc-865c-fc33b22fe38a" } } \ No newline at end of file diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/ManagedCassandraResourcesOperationsTests/ManagedCassandraCRUDTests.json b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/ManagedCassandraResourcesOperationsTests/ManagedCassandraCRUDTests.json deleted file mode 100644 index 4c723d602fb5..000000000000 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/ManagedCassandraResourcesOperationsTests/ManagedCassandraCRUDTests.json +++ /dev/null @@ -1,3877 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourcegroups/CosmosDBResourceGroup9148?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlZ3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDg/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "HEAD", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e421bb23-6616-4455-8b7e-2e299fec58b0" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-failure-cause": [ - "gateway" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "023d12d2-9002-44ed-a677-8c0079085825" - ], - "x-ms-correlation-request-id": [ - "023d12d2-9002-44ed-a677-8c0079085825" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T173201Z:023d12d2-9002-44ed-a677-8c0079085825" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:32:00 GMT" - ], - "Content-Length": [ - "117" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 404 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourcegroups/CosmosDBResourceGroup9148?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlZ3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDg/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e5a75cb0-e90c-4eae-a16a-049753d30d13" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-request-id": [ - "435a3874-530d-4e10-aa03-2a98232343e6" - ], - "x-ms-correlation-request-id": [ - "435a3874-530d-4e10-aa03-2a98232343e6" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T173202Z:435a3874-530d-4e10-aa03-2a98232343e6" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:32:02 GMT" - ], - "Content-Length": [ - "204" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148\",\r\n \"name\": \"CosmosDBResourceGroup9148\",\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourcegroups/CosmosDBResourceGroup9148/providers/Microsoft.Resources/deployments/vnet-deployment?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlZ3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5SZXNvdXJjZXMvZGVwbG95bWVudHMvdm5ldC1kZXBsb3ltZW50P2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"template\": {\r\n \"$schema\": \"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#\",\r\n \"contentVersion\": \"1.0.0.0\",\r\n \"parameters\": {\r\n \"vnetName\": {\r\n \"type\": \"string\",\r\n \"metadata\": {\r\n \"description\": \"The name for the virtual network to create.\"\r\n }\r\n }\r\n },\r\n \"variables\": {\r\n \"subnetName\": \"cassandra-subnet\",\r\n \"subnetId\": \"[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('vnetName'), variables('subnetName'))]\",\r\n \"cosmosDbPrincipalId\": \"e5007d2c-4b13-4a74-9b6a-605d99f03501\",\r\n \"networkContributorRoleId\": \"[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Authorization/roleDefinitions/', '4d97b98b-1d4f-4787-a291-c67834d212e7')]\"\r\n },\r\n \"resources\": [\r\n {\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"name\": \"[parameters('vnetName')]\",\r\n \"location\": \"[resourceGroup().location]\",\r\n \"apiVersion\": \"2020-07-01\",\r\n \"properties\": {\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"[variables('subnetName')]\",\r\n \"properties\": {\r\n \"addressPrefix\": \"10.0.0.0/24\"\r\n }\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"type\": \"Microsoft.Network/virtualNetworks/providers/roleAssignments\",\r\n \"apiVersion\": \"2020-04-01-preview\",\r\n \"name\": \"[concat(parameters('vnetName'), '/Microsoft.Authorization/', guid(concat('add-cosmosdb-contributor',resourceGroup().id,parameters('vnetName'))))]\",\r\n \"dependsOn\": [\r\n \"[parameters('vnetName')]\"\r\n ],\r\n \"properties\": {\r\n \"scope\": \"[resourceId('Microsoft.Network/virtualNetworks/', parameters('vnetName'))]\",\r\n \"roleDefinitionId\": \"[variables('networkContributorRoleId')]\",\r\n \"principalId\": \"[variables('cosmosDbPrincipalId')]\",\r\n \"principalType\": \"ServicePrincipal\",\r\n \"description\": \"Allow Azure CosmosDB to attach NICs to this virtual network.\"\r\n }\r\n }\r\n ],\r\n \"outputs\": {\r\n \"SubnetId\": {\r\n \"type\": \"string\",\r\n \"value\": \"[variables('subnetId')]\"\r\n }\r\n }\r\n },\r\n \"parameters\": {\r\n \"vnetName\": {\r\n \"value\": \"CosmosDBVirtualNetwork840\"\r\n }\r\n },\r\n \"mode\": \"Incremental\"\r\n }\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "493b7e06-d376-43d1-92c7-d0a964fe9c30" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "2615" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourcegroups/CosmosDBResourceGroup9148/providers/Microsoft.Resources/deployments/vnet-deployment/operationStatuses/08585867277621131734?api-version=2015-11-01" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-request-id": [ - "42f9cc8a-84d1-430c-b4a0-02e1e68e4d37" - ], - "x-ms-correlation-request-id": [ - "42f9cc8a-84d1-430c-b4a0-02e1e68e4d37" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T173204Z:42f9cc8a-84d1-430c-b4a0-02e1e68e4d37" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:32:04 GMT" - ], - "Content-Length": [ - "1434" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.Resources/deployments/vnet-deployment\",\r\n \"name\": \"vnet-deployment\",\r\n \"properties\": {\r\n \"templateHash\": \"2193819948344295874\",\r\n \"parameters\": {\r\n \"vnetName\": {\r\n \"type\": \"String\",\r\n \"value\": \"CosmosDBVirtualNetwork840\"\r\n }\r\n },\r\n \"mode\": \"Incremental\",\r\n \"provisioningState\": \"Accepted\",\r\n \"timestamp\": \"2021-03-04T17:32:04.3626743Z\",\r\n \"duration\": \"PT0.9982136S\",\r\n \"correlationId\": \"42f9cc8a-84d1-430c-b4a0-02e1e68e4d37\",\r\n \"providers\": [\r\n {\r\n \"namespace\": \"Microsoft.Network\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"virtualNetworks\",\r\n \"locations\": [\r\n \"eastus2\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"virtualNetworks/providers/roleAssignments\",\r\n \"locations\": [\r\n null\r\n ]\r\n }\r\n ]\r\n }\r\n ],\r\n \"dependencies\": [\r\n {\r\n \"dependsOn\": [\r\n {\r\n \"id\": \"/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.Network/virtualNetworks/CosmosDBVirtualNetwork840\",\r\n \"resourceType\": \"Microsoft.Network/virtualNetworks\",\r\n \"resourceName\": \"CosmosDBVirtualNetwork840\"\r\n }\r\n ],\r\n \"id\": \"/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.Network/virtualNetworks/CosmosDBVirtualNetwork840/providers/Microsoft.Authorization/roleAssignments/e70fb779-f3dc-5fb5-98a6-e7e9f1644c4f\",\r\n \"resourceType\": \"Microsoft.Network/virtualNetworks/providers/roleAssignments\",\r\n \"resourceName\": \"CosmosDBVirtualNetwork840/Microsoft.Authorization/e70fb779-f3dc-5fb5-98a6-e7e9f1644c4f\"\r\n }\r\n ]\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourcegroups/CosmosDBResourceGroup9148/providers/Microsoft.Resources/deployments/vnet-deployment/operationStatuses/08585867277621131734?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlZ3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5SZXNvdXJjZXMvZGVwbG95bWVudHMvdm5ldC1kZXBsb3ltZW50L29wZXJhdGlvblN0YXR1c2VzLzA4NTg1ODY3Mjc3NjIxMTMxNzM0P2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-request-id": [ - "e0ad81a5-495a-497e-9abf-88e5c48771c0" - ], - "x-ms-correlation-request-id": [ - "e0ad81a5-495a-497e-9abf-88e5c48771c0" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T173235Z:e0ad81a5-495a-497e-9abf-88e5c48771c0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:32:34 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "22" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourcegroups/CosmosDBResourceGroup9148/providers/Microsoft.Resources/deployments/vnet-deployment?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlZ3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5SZXNvdXJjZXMvZGVwbG95bWVudHMvdm5ldC1kZXBsb3ltZW50P2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-request-id": [ - "b1c297a2-9338-4031-b55b-a7ac703b042a" - ], - "x-ms-correlation-request-id": [ - "b1c297a2-9338-4031-b55b-a7ac703b042a" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T173235Z:b1c297a2-9338-4031-b55b-a7ac703b042a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:32:34 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "1920" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.Resources/deployments/vnet-deployment\",\r\n \"name\": \"vnet-deployment\",\r\n \"properties\": {\r\n \"templateHash\": \"2193819948344295874\",\r\n \"parameters\": {\r\n \"vnetName\": {\r\n \"type\": \"String\",\r\n \"value\": \"CosmosDBVirtualNetwork840\"\r\n }\r\n },\r\n \"mode\": \"Incremental\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"timestamp\": \"2021-03-04T17:32:14.0142582Z\",\r\n \"duration\": \"PT10.6497975S\",\r\n \"correlationId\": \"42f9cc8a-84d1-430c-b4a0-02e1e68e4d37\",\r\n \"providers\": [\r\n {\r\n \"namespace\": \"Microsoft.Network\",\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"virtualNetworks\",\r\n \"locations\": [\r\n \"eastus2\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"virtualNetworks/providers/roleAssignments\",\r\n \"locations\": [\r\n null\r\n ]\r\n }\r\n ]\r\n }\r\n ],\r\n \"dependencies\": [\r\n {\r\n \"dependsOn\": [\r\n {\r\n \"id\": \"/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.Network/virtualNetworks/CosmosDBVirtualNetwork840\",\r\n \"resourceType\": \"Microsoft.Network/virtualNetworks\",\r\n \"resourceName\": \"CosmosDBVirtualNetwork840\"\r\n }\r\n ],\r\n \"id\": \"/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.Network/virtualNetworks/CosmosDBVirtualNetwork840/providers/Microsoft.Authorization/roleAssignments/e70fb779-f3dc-5fb5-98a6-e7e9f1644c4f\",\r\n \"resourceType\": \"Microsoft.Network/virtualNetworks/providers/roleAssignments\",\r\n \"resourceName\": \"CosmosDBVirtualNetwork840/Microsoft.Authorization/e70fb779-f3dc-5fb5-98a6-e7e9f1644c4f\"\r\n }\r\n ],\r\n \"outputs\": {\r\n \"subnetId\": {\r\n \"type\": \"String\",\r\n \"value\": \"/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.Network/virtualNetworks/CosmosDBVirtualNetwork840/subnets/cassandra-subnet\"\r\n }\r\n },\r\n \"outputResources\": [\r\n {\r\n \"id\": \"Microsoft.Network/virtualNetworks/CosmosDBVirtualNetwork840\"\r\n },\r\n {\r\n \"id\": \"Microsoft.Network/virtualNetworks/CosmosDBVirtualNetwork840/providers/Microsoft.Authorization/roleAssignments/e70fb779-f3dc-5fb5-98a6-e7e9f1644c4f\"\r\n }\r\n ]\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2Nhc3NhbmRyYUNsdXN0ZXJzL21hbmFnZWRjbHVzdGVyNTQ/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"delegatedManagementSubnetId\": \"/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.Network/virtualNetworks/CosmosDBVirtualNetwork840/subnets/cassandra-subnet\",\r\n \"initialCassandraAdminPassword\": \"password\",\r\n \"externalSeedNodes\": [\r\n {\r\n \"ipAddress\": \"10.0.1.1\"\r\n }\r\n ]\r\n },\r\n \"location\": \"East US 2\"\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "ae63a875-37c0-41a8-b978-d0f53cc2af83" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "419" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/c413c3e3-0272-4a78-8bb5-3ba9a72c3311?api-version=2021-03-01-preview" - ], - "x-ms-request-id": [ - "c413c3e3-0272-4a78-8bb5-3ba9a72c3311" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "25e6d24c-3fa4-45ac-8a0c-a0c75b7d0ac2" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T173239Z:25e6d24c-3fa4-45ac-8a0c-a0c75b7d0ac2" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:32:39 GMT" - ], - "Content-Length": [ - "806" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54\",\r\n \"name\": \"managedcluster54\",\r\n \"type\": \"Microsoft.DocumentDB/cassandraClusters\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"delegatedManagementSubnetId\": \"/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.Network/virtualNetworks/CosmosDBVirtualNetwork840/subnets/cassandra-subnet\",\r\n \"clusterNameOverride\": \"managedcluster54\",\r\n \"authenticationMethod\": \"Cassandra\",\r\n \"hoursBetweenBackups\": 0,\r\n \"clientCertificates\": [],\r\n \"externalGossipCertificates\": [],\r\n \"gossipCertificates\": [],\r\n \"externalSeedNodes\": [\r\n {\r\n \"ipAddress\": \"10.0.1.1\"\r\n }\r\n ],\r\n \"prometheusEndpoint\": {},\r\n \"seedNodes\": []\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2Nhc3NhbmRyYUNsdXN0ZXJzL21hbmFnZWRjbHVzdGVyNTQ/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"delegatedManagementSubnetId\": \"/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.Network/virtualNetworks/CosmosDBVirtualNetwork840/subnets/cassandra-subnet\",\r\n \"initialCassandraAdminPassword\": \"password\",\r\n \"externalSeedNodes\": [\r\n {\r\n \"ipAddress\": \"192.168.12.1\"\r\n }\r\n ]\r\n },\r\n \"location\": \"East US 2\"\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "ab8014a1-ff1a-4ec8-a0d4-e1f6da272bfe" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "423" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2d44f18a-b9f8-4c4f-87ea-46c79d8c033c?api-version=2021-03-01-preview" - ], - "x-ms-request-id": [ - "2d44f18a-b9f8-4c4f-87ea-46c79d8c033c" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-correlation-request-id": [ - "91d15380-a30e-46fa-bacb-f9c789a6b6ae" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T173641Z:91d15380-a30e-46fa-bacb-f9c789a6b6ae" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:36:40 GMT" - ], - "Content-Length": [ - "8921" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54\",\r\n \"name\": \"managedcluster54\",\r\n \"type\": \"Microsoft.DocumentDB/cassandraClusters\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"delegatedManagementSubnetId\": \"/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.Network/virtualNetworks/CosmosDBVirtualNetwork840/subnets/cassandra-subnet\",\r\n \"clusterNameOverride\": \"managedcluster54\",\r\n \"authenticationMethod\": \"Cassandra\",\r\n \"hoursBetweenBackups\": 0,\r\n \"clientCertificates\": [],\r\n \"externalGossipCertificates\": [],\r\n \"gossipCertificates\": [\r\n {\r\n \"pem\": \"\\r\\n-----BEGIN CERTIFICATE-----\\r\\nMIIF8zCCBNugAwIBAgIQCq+mxcpjxFFB6jvh98dTFzANBgkqhkiG9w0BAQwFADBh\\r\\nMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3\\r\\nd3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBH\\r\\nMjAeFw0yMDA3MjkxMjMwMDBaFw0yNDA2MjcyMzU5NTlaMFkxCzAJBgNVBAYTAlVT\\r\\nMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKjAoBgNVBAMTIU1pY3Jv\\r\\nc29mdCBBenVyZSBUTFMgSXNzdWluZyBDQSAwMTCCAiIwDQYJKoZIhvcNAQEBBQAD\\r\\nggIPADCCAgoCggIBAMedcDrkXufP7pxVm1FHLDNA9IjwHaMoaY8arqqZ4Gff4xyr\\r\\nRygnavXL7g12MPAx8Q6Dd9hfBzrfWxkF0Br2wIvlvkzW01naNVSkHp+OS3hL3W6n\\r\\nl/jYvZnVeJXjtsKYcXIf/6WtspcF5awlQ9LZJcjwaH7KoZuK+THpXCMtzD8XNVdm\\r\\nGW/JI0C/7U/E7evXn9XDio8SYkGSM63aLO5BtLCv092+1d4GGBSQYolRq+7Pd1kR\\r\\nEkWBPm0ywZ2Vb8GIS5DLrjelEkBnKCyy3B0yQud9dpVsiUeE7F5sY8Me96WVxQcb\\r\\nOyYdEY/j/9UpDlOG+vA+YgOvBhkKEjiqygVpP8EZoMMijephzg43b5Qi9r5UrvYo\\r\\no19oR/8pf4HJNDPF0/FJwFVMW8PmCBLGstin3NE1+NeWTkGt0TzpHjgKyfaDP2tO\\r\\n4bCk1G7pP2kDFT7SYfc8xbgCkFQ2UCEXsaH/f5YmpLn4YPiNFCeeIida7xnfTvc4\\r\\n7IxyVccHHq1FzGygOqemrxEETKh8hvDR6eBdrBwmCHVgZrnAqnn93JtGyPLi6+cj\\r\\nWGVGtMZHwzVvX1HvSFG771sskcEjJxiQNQDQRWHEh3NxvNb7kFlAXnVdRkkvhjpR\\r\\nGchFhTAzqmwltdWhWDEyCMKC2x/mSZvZtlZGY+g37Y72qHzidwtyW7rBetZJAgMB\\r\\nAAGjggGtMIIBqTAdBgNVHQ4EFgQUDyBd16FXlduSzyvQx8J3BM5ygHYwHwYDVR0j\\r\\nBBgwFoAUTiJUIBiV5uNu5g/6+rkS7QYXjzkwDgYDVR0PAQH/BAQDAgGGMB0GA1Ud\\r\\nJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjASBgNVHRMBAf8ECDAGAQH/AgEAMHYG\\r\\nCCsGAQUFBwEBBGowaDAkBggrBgEFBQcwAYYYaHR0cDovL29jc3AuZGlnaWNlcnQu\\r\\nY29tMEAGCCsGAQUFBzAChjRodHRwOi8vY2FjZXJ0cy5kaWdpY2VydC5jb20vRGln\\r\\naUNlcnRHbG9iYWxSb290RzIuY3J0MHsGA1UdHwR0MHIwN6A1oDOGMWh0dHA6Ly9j\\r\\ncmwzLmRpZ2ljZXJ0LmNvbS9EaWdpQ2VydEdsb2JhbFJvb3RHMi5jcmwwN6A1oDOG\\r\\nMWh0dHA6Ly9jcmw0LmRpZ2ljZXJ0LmNvbS9EaWdpQ2VydEdsb2JhbFJvb3RHMi5j\\r\\ncmwwHQYDVR0gBBYwFDAIBgZngQwBAgEwCAYGZ4EMAQICMBAGCSsGAQQBgjcVAQQD\\r\\nAgEAMA0GCSqGSIb3DQEBDAUAA4IBAQAlFvNh7QgXVLAZSsNR2XRmIn9iS8OHFCBA\\r\\nWxKJoi8YYQafpMTkMqeuzoL3HWb1pYEipsDkhiMnrpfeYZEA7Lz7yqEEtfgHcEBs\\r\\nK9KcStQGGZRfmWU07hPXHnFz+5gTXqzCE2PBMlRgVUYJiA25mJPXfB00gDvGhtYa\\r\\n+mENwM9Bq1B9YYLyLjRtUz8cyGsdyTIG/bBM/Q9jcV8JGqMU/UjAdh1pFyTnnHEl\\r\\nY59Npi7F87ZqYYJEHJM2LGD+le8VsHjgeWX2CJQko7klXvcizuZvUEDTjHaQcs2J\\r\\n+kPgfyMIOY1DMJ21NxOJ2xPRC/wAh/hzSBRVtoAnyuxtkZ4VjIOh\\r\\n-----END CERTIFICATE-----\\r\\n\"\r\n },\r\n {\r\n \"pem\": \"\\r\\n-----BEGIN CERTIFICATE-----\\r\\nMIIF8zCCBNugAwIBAgIQDGrpfM7VmYOGkKAKnqUyFDANBgkqhkiG9w0BAQwFADBh\\r\\nMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3\\r\\nd3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBH\\r\\nMjAeFw0yMDA3MjkxMjMwMDBaFw0yNDA2MjcyMzU5NTlaMFkxCzAJBgNVBAYTAlVT\\r\\nMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKjAoBgNVBAMTIU1pY3Jv\\r\\nc29mdCBBenVyZSBUTFMgSXNzdWluZyBDQSAwMjCCAiIwDQYJKoZIhvcNAQEBBQAD\\r\\nggIPADCCAgoCggIBAOBiO1K6Fk4fHI6t3mJkpg7lxoeUgL8tz9wuI2z0UgY8vFra\\r\\n3VBo7QznC4K3s9jqKWEyIQY11Le0108bSYa/TK0aioO6itpGiigEG+vH/iqtQXPS\\r\\nu6D804ri0NFZ1SOP9IzjYuQiK6AWntCqP4WAcZAPtpNrNLPBIyiqmiTDS4dlFg1d\\r\\nskMuVpT4z0MpgEMmxQnrSZ615rBQ25vnVbBNig04FCsh1V3S8ve5Gzh08oIrL/g5\\r\\nxq95oRrgEeOBIeiegQpoKrLYyo3R1Tt48HmSJCBYQ52Qc34RgxQdZsLXMUrWuL1J\\r\\nLAZP6yeo47ySSxKCjhq5/AUWvQBP3N/cP/iJzKKKw23qJ/kkVrE0DSVDiIiXWF0c\\r\\n9abSGhYl9SPl86IHcIAIzwelJ4SKpHrVbh0/w4YHdFi5QbdAp7O5KxfxBYhQOeHy\\r\\nis01zkpYn6SqUFGvbK8eZ8y9Aclt8PIUftMG6q5BhdlBZkDDV3n70RlXwYvllzfZ\\r\\n/nV94l+hYp+GLW7jSmpxZLG/XEz4OXtTtWwLV+IkIOe/EDF79KCazW2SXOIvVInP\\r\\noi1PqN4TudNv0GyBF5tRC/aBjUqply1YYfeKwgRVs83z5kuiOicmdGZKH9SqU5bn\\r\\nKse7IlyfZLg6yAxYyTNe7A9acJ3/pGmCIkJ/9dfLUFc4hYb3YyIIYGmqm2/3AgMB\\r\\nAAGjggGtMIIBqTAdBgNVHQ4EFgQUAKuR/CFiJpeaqHkbYUGQYKliZ/0wHwYDVR0j\\r\\nBBgwFoAUTiJUIBiV5uNu5g/6+rkS7QYXjzkwDgYDVR0PAQH/BAQDAgGGMB0GA1Ud\\r\\nJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjASBgNVHRMBAf8ECDAGAQH/AgEAMHYG\\r\\nCCsGAQUFBwEBBGowaDAkBggrBgEFBQcwAYYYaHR0cDovL29jc3AuZGlnaWNlcnQu\\r\\nY29tMEAGCCsGAQUFBzAChjRodHRwOi8vY2FjZXJ0cy5kaWdpY2VydC5jb20vRGln\\r\\naUNlcnRHbG9iYWxSb290RzIuY3J0MHsGA1UdHwR0MHIwN6A1oDOGMWh0dHA6Ly9j\\r\\ncmwzLmRpZ2ljZXJ0LmNvbS9EaWdpQ2VydEdsb2JhbFJvb3RHMi5jcmwwN6A1oDOG\\r\\nMWh0dHA6Ly9jcmw0LmRpZ2ljZXJ0LmNvbS9EaWdpQ2VydEdsb2JhbFJvb3RHMi5j\\r\\ncmwwHQYDVR0gBBYwFDAIBgZngQwBAgEwCAYGZ4EMAQICMBAGCSsGAQQBgjcVAQQD\\r\\nAgEAMA0GCSqGSIb3DQEBDAUAA4IBAQAzo/KdmWPPTaYLQW7J5DqxEiBT9QyYGUfe\\r\\nZd7TR1837H6DSkFa/mGM1kLwi5y9miZKA9k6T9OwTx8CflcvbNO2UkFW0VCldEGH\\r\\niyx5421+HpRxMQIRjligePtOtRGXwaNOQ7ySWfJhRhKcPKe2PGFHQI7/3n+T3kXQ\\r\\n/SLu2lk9Qs5YgSJ3VhxBUznYn1KVKJWPE07M55kuUgCquAV0PksZj7EC4nK6e/UV\\r\\nbPumlj1nyjlxhvNud4WYmr4ntbBev6cSbK78dpI/3cr7P/WJPYJuL0EsO3MgjS3e\\r\\nDCX7NXp5ylue3TcpQfRU8BL+yZC1wqX98R4ndw7X4qfGaE7SlF7I\\r\\n-----END CERTIFICATE-----\\r\\n\"\r\n },\r\n {\r\n \"pem\": \"\\r\\n-----BEGIN CERTIFICATE-----\\r\\nMIIDjjCCAnagAwIBAgIQAzrx5qcRqaC7KGSxHQn65TANBgkqhkiG9w0BAQsFADBh\\r\\nMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3\\r\\nd3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBH\\r\\nMjAeFw0xMzA4MDExMjAwMDBaFw0zODAxMTUxMjAwMDBaMGExCzAJBgNVBAYTAlVT\\r\\nMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5j\\r\\nb20xIDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IEcyMIIBIjANBgkqhkiG\\r\\n9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuzfNNNx7a8myaJCtSnX/RrohCgiN9RlUyfuI\\r\\n2/Ou8jqJkTx65qsGGmvPrC3oXgkkRLpimn7Wo6h+4FR1IAWsULecYxpsMNzaHxmx\\r\\n1x7e/dfgy5SDN67sH0NO3Xss0r0upS/kqbitOtSZpLYl6ZtrAGCSYP9PIUkY92eQ\\r\\nq2EGnI/yuum06ZIya7XzV+hdG82MHauVBJVJ8zUtluNJbd134/tJS7SsVQepj5Wz\\r\\ntCO7TG1F8PapspUwtP1MVYwnSlcUfIKdzXOS0xZKBgyMUNGPHgm+F6HmIcr9g+UQ\\r\\nvIOlCsRnKPZzFBQ9RnbDhxSJITRNrw9FDKZJobq7nMWxM4MphQIDAQABo0IwQDAP\\r\\nBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAdBgNVHQ4EFgQUTiJUIBiV\\r\\n5uNu5g/6+rkS7QYXjzkwDQYJKoZIhvcNAQELBQADggEBAGBnKJRvDkhj6zHd6mcY\\r\\n1Yl9PMWLSn/pvtsrF9+wX3N3KjITOYFnQoQj8kVnNeyIv/iPsGEMNKSuIEyExtv4\\r\\nNeF22d+mQrvHRAiGfzZ0JFrabA0UWTW98kndth/Jsw1HKj2ZL7tcu7XUIOGZX1NG\\r\\nFdtom/DzMNU+MeKNhJ7jitralj41E6Vf8PlwUHBHQRFXGU7Aj64GxJUTFy8bJZ91\\r\\n8rGOmaFvE7FBcf6IKshPECBV1/MUReXgRPTqh5Uykw7+U0b6LJ3/iyK5S9kJRaTe\\r\\npLiaWN0bfVKfjllDiIGknibVb63dDcY3fe0Dkhvld1927jyNxF1WW6LZZm6zNTfl\\r\\nMrY=\\r\\n-----END CERTIFICATE-----\\r\\n\"\r\n },\r\n {\r\n \"pem\": \"\\r\\n-----BEGIN CERTIFICATE-----\\r\\nMIIF8zCCBNugAwIBAgIQAueRcfuAIek/4tmDg0xQwDANBgkqhkiG9w0BAQwFADBh\\r\\nMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3\\r\\nd3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBH\\r\\nMjAeFw0yMDA3MjkxMjMwMDBaFw0yNDA2MjcyMzU5NTlaMFkxCzAJBgNVBAYTAlVT\\r\\nMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKjAoBgNVBAMTIU1pY3Jv\\r\\nc29mdCBBenVyZSBUTFMgSXNzdWluZyBDQSAwNjCCAiIwDQYJKoZIhvcNAQEBBQAD\\r\\nggIPADCCAgoCggIBALVGARl56bx3KBUSGuPc4H5uoNFkFH4e7pvTCxRi4j/+z+Xb\\r\\nwjEz+5CipDOqjx9/jWjskL5dk7PaQkzItidsAAnDCW1leZBOIi68Lff1bjTeZgMY\\r\\niwdRd3Y39b/lcGpiuP2d23W95YHkMMT8IlWosYIX0f4kYb62rphyfnAjYb/4Od99\\r\\nThnhlAxGtfvSbXcBVIKCYfZgqRvV+5lReUnd1aNjRYVzPOoifgSx2fRyy1+pO1Uz\\r\\naMMNnIOE71bVYW0A1hr19w7kOb0KkJXoALTDDj1ukUEDqQuBfBxReL5mXiu1O7WG\\r\\n0vltg0VZ/SZzctBsdBlx1BkmWYBW261KZgBivrql5ELTKKd8qgtHcLQA5fl6JB0Q\\r\\ngs5XDaWehN86Gps5JW8ArjGtjcWAIP+X8CQaWfaCnuRm6Bk/03PQWhgdi84qwA0s\\r\\nsRfFJwHUPTNSnE8EiGVk2frt0u8PG1pwSQsFuNJfcYIHEv1vOzP7uEOuDydsmCjh\\r\\nlxuoK2n5/2aVR3BMTu+p4+gl8alXoBycyLmj3J/PUgqD8SL5fTCUegGsdia/Sa60\\r\\nN2oV7vQ17wjMN+LXa2rjj/b4ZlZgXVojDmAjDwIRdDUujQu0RVsJqFLMzSIHpp2C\\r\\nZp7mIoLrySay2YYBu7SiNwL95X6He2kS8eefBBHjzwW/9FxGqry57i71c2cDAgMB\\r\\nAAGjggGtMIIBqTAdBgNVHQ4EFgQU1cFnOsKjnfR3UltZEjgp5lVou6UwHwYDVR0j\\r\\nBBgwFoAUTiJUIBiV5uNu5g/6+rkS7QYXjzkwDgYDVR0PAQH/BAQDAgGGMB0GA1Ud\\r\\nJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjASBgNVHRMBAf8ECDAGAQH/AgEAMHYG\\r\\nCCsGAQUFBwEBBGowaDAkBggrBgEFBQcwAYYYaHR0cDovL29jc3AuZGlnaWNlcnQu\\r\\nY29tMEAGCCsGAQUFBzAChjRodHRwOi8vY2FjZXJ0cy5kaWdpY2VydC5jb20vRGln\\r\\naUNlcnRHbG9iYWxSb290RzIuY3J0MHsGA1UdHwR0MHIwN6A1oDOGMWh0dHA6Ly9j\\r\\ncmwzLmRpZ2ljZXJ0LmNvbS9EaWdpQ2VydEdsb2JhbFJvb3RHMi5jcmwwN6A1oDOG\\r\\nMWh0dHA6Ly9jcmw0LmRpZ2ljZXJ0LmNvbS9EaWdpQ2VydEdsb2JhbFJvb3RHMi5j\\r\\ncmwwHQYDVR0gBBYwFDAIBgZngQwBAgEwCAYGZ4EMAQICMBAGCSsGAQQBgjcVAQQD\\r\\nAgEAMA0GCSqGSIb3DQEBDAUAA4IBAQB2oWc93fB8esci/8esixj++N22meiGDjgF\\r\\n+rA2LUK5IOQOgcUSTGKSqF9lYfAxPjrqPjDCUPHCURv+26ad5P/BYtXtbmtxJWu+\\r\\ncS5BhMDPPeG3oPZwXRHBJFAkY4O4AF7RIAAUW6EzDflUoDHKv83zOiPfYGcpHc9s\\r\\nkxAInCedk7QSgXvMARjjOqdakor21DTmNIUotxo8kHv5hwRlGhBJwps6fEVi1Bt0\\r\\ntrpM/3wYxlr473WSPUFZPgP1j519kLpWOJ8z09wxay+Br29irPcBYv0GMXlHqThy\\r\\n8y4m/HyTQeI2IMvMrQnwqPpY+rLIXyviI2vLoI+4xKE4Rn38ZZ8m\\r\\n-----END CERTIFICATE-----\\r\\n\"\r\n }\r\n ],\r\n \"externalSeedNodes\": [\r\n {\r\n \"ipAddress\": \"10.0.1.1\"\r\n }\r\n ],\r\n \"prometheusEndpoint\": {\r\n \"ipAddress\": \"127.0.0.1\"\r\n },\r\n \"seedNodes\": []\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/c413c3e3-0272-4a78-8bb5-3ba9a72c3311?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2M0MTNjM2UzLTAyNzItNGE3OC04YmI1LTNiYTlhNzJjMzMxMT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "20fd4dbf-4d9c-4ecf-95ca-97c22d2b3c41" - ], - "x-ms-correlation-request-id": [ - "20fd4dbf-4d9c-4ecf-95ca-97c22d2b3c41" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T173309Z:20fd4dbf-4d9c-4ecf-95ca-97c22d2b3c41" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:33:09 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/c413c3e3-0272-4a78-8bb5-3ba9a72c3311?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2M0MTNjM2UzLTAyNzItNGE3OC04YmI1LTNiYTlhNzJjMzMxMT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-request-id": [ - "3caf2f34-06de-4cde-bbd1-030cd804435b" - ], - "x-ms-correlation-request-id": [ - "3caf2f34-06de-4cde-bbd1-030cd804435b" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T173339Z:3caf2f34-06de-4cde-bbd1-030cd804435b" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:33:38 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/c413c3e3-0272-4a78-8bb5-3ba9a72c3311?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2M0MTNjM2UzLTAyNzItNGE3OC04YmI1LTNiYTlhNzJjMzMxMT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-request-id": [ - "9d97965c-8c8f-42ad-89fc-55585164cc27" - ], - "x-ms-correlation-request-id": [ - "9d97965c-8c8f-42ad-89fc-55585164cc27" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T173409Z:9d97965c-8c8f-42ad-89fc-55585164cc27" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:34:09 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/c413c3e3-0272-4a78-8bb5-3ba9a72c3311?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2M0MTNjM2UzLTAyNzItNGE3OC04YmI1LTNiYTlhNzJjMzMxMT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-request-id": [ - "fcc7bf7e-a6d1-4dce-a375-d5257981d626" - ], - "x-ms-correlation-request-id": [ - "fcc7bf7e-a6d1-4dce-a375-d5257981d626" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T173439Z:fcc7bf7e-a6d1-4dce-a375-d5257981d626" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:34:39 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/c413c3e3-0272-4a78-8bb5-3ba9a72c3311?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2M0MTNjM2UzLTAyNzItNGE3OC04YmI1LTNiYTlhNzJjMzMxMT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11995" - ], - "x-ms-request-id": [ - "286ac656-b50d-4b72-a423-1e1610cfe80c" - ], - "x-ms-correlation-request-id": [ - "286ac656-b50d-4b72-a423-1e1610cfe80c" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T173509Z:286ac656-b50d-4b72-a423-1e1610cfe80c" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:35:09 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/c413c3e3-0272-4a78-8bb5-3ba9a72c3311?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2M0MTNjM2UzLTAyNzItNGE3OC04YmI1LTNiYTlhNzJjMzMxMT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" - ], - "x-ms-request-id": [ - "41d3b320-1f82-47b4-a3f5-130792ac5379" - ], - "x-ms-correlation-request-id": [ - "41d3b320-1f82-47b4-a3f5-130792ac5379" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T173540Z:41d3b320-1f82-47b4-a3f5-130792ac5379" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:35:39 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/c413c3e3-0272-4a78-8bb5-3ba9a72c3311?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2M0MTNjM2UzLTAyNzItNGE3OC04YmI1LTNiYTlhNzJjMzMxMT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11993" - ], - "x-ms-request-id": [ - "17bd3568-89b0-49a0-9dd0-72d2343c7257" - ], - "x-ms-correlation-request-id": [ - "17bd3568-89b0-49a0-9dd0-72d2343c7257" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T173610Z:17bd3568-89b0-49a0-9dd0-72d2343c7257" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:36:09 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/c413c3e3-0272-4a78-8bb5-3ba9a72c3311?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2M0MTNjM2UzLTAyNzItNGE3OC04YmI1LTNiYTlhNzJjMzMxMT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11992" - ], - "x-ms-request-id": [ - "df4e029e-80f6-4d65-8de4-47b1056ce726" - ], - "x-ms-correlation-request-id": [ - "df4e029e-80f6-4d65-8de4-47b1056ce726" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T173640Z:df4e029e-80f6-4d65-8de4-47b1056ce726" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:36:39 GMT" - ], - "Content-Length": [ - "22" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2Nhc3NhbmRyYUNsdXN0ZXJzL21hbmFnZWRjbHVzdGVyNTQ/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" - ], - "x-ms-request-id": [ - "73f85d89-658a-49f4-be22-d8d84f360444" - ], - "x-ms-correlation-request-id": [ - "73f85d89-658a-49f4-be22-d8d84f360444" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T173640Z:73f85d89-658a-49f4-be22-d8d84f360444" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:36:40 GMT" - ], - "Content-Length": [ - "8921" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54\",\r\n \"name\": \"managedcluster54\",\r\n \"type\": \"Microsoft.DocumentDB/cassandraClusters\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"delegatedManagementSubnetId\": \"/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.Network/virtualNetworks/CosmosDBVirtualNetwork840/subnets/cassandra-subnet\",\r\n \"clusterNameOverride\": \"managedcluster54\",\r\n \"authenticationMethod\": \"Cassandra\",\r\n \"hoursBetweenBackups\": 0,\r\n \"clientCertificates\": [],\r\n \"externalGossipCertificates\": [],\r\n \"gossipCertificates\": [\r\n {\r\n \"pem\": \"\\r\\n-----BEGIN CERTIFICATE-----\\r\\nMIIF8zCCBNugAwIBAgIQCq+mxcpjxFFB6jvh98dTFzANBgkqhkiG9w0BAQwFADBh\\r\\nMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3\\r\\nd3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBH\\r\\nMjAeFw0yMDA3MjkxMjMwMDBaFw0yNDA2MjcyMzU5NTlaMFkxCzAJBgNVBAYTAlVT\\r\\nMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKjAoBgNVBAMTIU1pY3Jv\\r\\nc29mdCBBenVyZSBUTFMgSXNzdWluZyBDQSAwMTCCAiIwDQYJKoZIhvcNAQEBBQAD\\r\\nggIPADCCAgoCggIBAMedcDrkXufP7pxVm1FHLDNA9IjwHaMoaY8arqqZ4Gff4xyr\\r\\nRygnavXL7g12MPAx8Q6Dd9hfBzrfWxkF0Br2wIvlvkzW01naNVSkHp+OS3hL3W6n\\r\\nl/jYvZnVeJXjtsKYcXIf/6WtspcF5awlQ9LZJcjwaH7KoZuK+THpXCMtzD8XNVdm\\r\\nGW/JI0C/7U/E7evXn9XDio8SYkGSM63aLO5BtLCv092+1d4GGBSQYolRq+7Pd1kR\\r\\nEkWBPm0ywZ2Vb8GIS5DLrjelEkBnKCyy3B0yQud9dpVsiUeE7F5sY8Me96WVxQcb\\r\\nOyYdEY/j/9UpDlOG+vA+YgOvBhkKEjiqygVpP8EZoMMijephzg43b5Qi9r5UrvYo\\r\\no19oR/8pf4HJNDPF0/FJwFVMW8PmCBLGstin3NE1+NeWTkGt0TzpHjgKyfaDP2tO\\r\\n4bCk1G7pP2kDFT7SYfc8xbgCkFQ2UCEXsaH/f5YmpLn4YPiNFCeeIida7xnfTvc4\\r\\n7IxyVccHHq1FzGygOqemrxEETKh8hvDR6eBdrBwmCHVgZrnAqnn93JtGyPLi6+cj\\r\\nWGVGtMZHwzVvX1HvSFG771sskcEjJxiQNQDQRWHEh3NxvNb7kFlAXnVdRkkvhjpR\\r\\nGchFhTAzqmwltdWhWDEyCMKC2x/mSZvZtlZGY+g37Y72qHzidwtyW7rBetZJAgMB\\r\\nAAGjggGtMIIBqTAdBgNVHQ4EFgQUDyBd16FXlduSzyvQx8J3BM5ygHYwHwYDVR0j\\r\\nBBgwFoAUTiJUIBiV5uNu5g/6+rkS7QYXjzkwDgYDVR0PAQH/BAQDAgGGMB0GA1Ud\\r\\nJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjASBgNVHRMBAf8ECDAGAQH/AgEAMHYG\\r\\nCCsGAQUFBwEBBGowaDAkBggrBgEFBQcwAYYYaHR0cDovL29jc3AuZGlnaWNlcnQu\\r\\nY29tMEAGCCsGAQUFBzAChjRodHRwOi8vY2FjZXJ0cy5kaWdpY2VydC5jb20vRGln\\r\\naUNlcnRHbG9iYWxSb290RzIuY3J0MHsGA1UdHwR0MHIwN6A1oDOGMWh0dHA6Ly9j\\r\\ncmwzLmRpZ2ljZXJ0LmNvbS9EaWdpQ2VydEdsb2JhbFJvb3RHMi5jcmwwN6A1oDOG\\r\\nMWh0dHA6Ly9jcmw0LmRpZ2ljZXJ0LmNvbS9EaWdpQ2VydEdsb2JhbFJvb3RHMi5j\\r\\ncmwwHQYDVR0gBBYwFDAIBgZngQwBAgEwCAYGZ4EMAQICMBAGCSsGAQQBgjcVAQQD\\r\\nAgEAMA0GCSqGSIb3DQEBDAUAA4IBAQAlFvNh7QgXVLAZSsNR2XRmIn9iS8OHFCBA\\r\\nWxKJoi8YYQafpMTkMqeuzoL3HWb1pYEipsDkhiMnrpfeYZEA7Lz7yqEEtfgHcEBs\\r\\nK9KcStQGGZRfmWU07hPXHnFz+5gTXqzCE2PBMlRgVUYJiA25mJPXfB00gDvGhtYa\\r\\n+mENwM9Bq1B9YYLyLjRtUz8cyGsdyTIG/bBM/Q9jcV8JGqMU/UjAdh1pFyTnnHEl\\r\\nY59Npi7F87ZqYYJEHJM2LGD+le8VsHjgeWX2CJQko7klXvcizuZvUEDTjHaQcs2J\\r\\n+kPgfyMIOY1DMJ21NxOJ2xPRC/wAh/hzSBRVtoAnyuxtkZ4VjIOh\\r\\n-----END CERTIFICATE-----\\r\\n\"\r\n },\r\n {\r\n \"pem\": \"\\r\\n-----BEGIN CERTIFICATE-----\\r\\nMIIF8zCCBNugAwIBAgIQDGrpfM7VmYOGkKAKnqUyFDANBgkqhkiG9w0BAQwFADBh\\r\\nMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3\\r\\nd3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBH\\r\\nMjAeFw0yMDA3MjkxMjMwMDBaFw0yNDA2MjcyMzU5NTlaMFkxCzAJBgNVBAYTAlVT\\r\\nMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKjAoBgNVBAMTIU1pY3Jv\\r\\nc29mdCBBenVyZSBUTFMgSXNzdWluZyBDQSAwMjCCAiIwDQYJKoZIhvcNAQEBBQAD\\r\\nggIPADCCAgoCggIBAOBiO1K6Fk4fHI6t3mJkpg7lxoeUgL8tz9wuI2z0UgY8vFra\\r\\n3VBo7QznC4K3s9jqKWEyIQY11Le0108bSYa/TK0aioO6itpGiigEG+vH/iqtQXPS\\r\\nu6D804ri0NFZ1SOP9IzjYuQiK6AWntCqP4WAcZAPtpNrNLPBIyiqmiTDS4dlFg1d\\r\\nskMuVpT4z0MpgEMmxQnrSZ615rBQ25vnVbBNig04FCsh1V3S8ve5Gzh08oIrL/g5\\r\\nxq95oRrgEeOBIeiegQpoKrLYyo3R1Tt48HmSJCBYQ52Qc34RgxQdZsLXMUrWuL1J\\r\\nLAZP6yeo47ySSxKCjhq5/AUWvQBP3N/cP/iJzKKKw23qJ/kkVrE0DSVDiIiXWF0c\\r\\n9abSGhYl9SPl86IHcIAIzwelJ4SKpHrVbh0/w4YHdFi5QbdAp7O5KxfxBYhQOeHy\\r\\nis01zkpYn6SqUFGvbK8eZ8y9Aclt8PIUftMG6q5BhdlBZkDDV3n70RlXwYvllzfZ\\r\\n/nV94l+hYp+GLW7jSmpxZLG/XEz4OXtTtWwLV+IkIOe/EDF79KCazW2SXOIvVInP\\r\\noi1PqN4TudNv0GyBF5tRC/aBjUqply1YYfeKwgRVs83z5kuiOicmdGZKH9SqU5bn\\r\\nKse7IlyfZLg6yAxYyTNe7A9acJ3/pGmCIkJ/9dfLUFc4hYb3YyIIYGmqm2/3AgMB\\r\\nAAGjggGtMIIBqTAdBgNVHQ4EFgQUAKuR/CFiJpeaqHkbYUGQYKliZ/0wHwYDVR0j\\r\\nBBgwFoAUTiJUIBiV5uNu5g/6+rkS7QYXjzkwDgYDVR0PAQH/BAQDAgGGMB0GA1Ud\\r\\nJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjASBgNVHRMBAf8ECDAGAQH/AgEAMHYG\\r\\nCCsGAQUFBwEBBGowaDAkBggrBgEFBQcwAYYYaHR0cDovL29jc3AuZGlnaWNlcnQu\\r\\nY29tMEAGCCsGAQUFBzAChjRodHRwOi8vY2FjZXJ0cy5kaWdpY2VydC5jb20vRGln\\r\\naUNlcnRHbG9iYWxSb290RzIuY3J0MHsGA1UdHwR0MHIwN6A1oDOGMWh0dHA6Ly9j\\r\\ncmwzLmRpZ2ljZXJ0LmNvbS9EaWdpQ2VydEdsb2JhbFJvb3RHMi5jcmwwN6A1oDOG\\r\\nMWh0dHA6Ly9jcmw0LmRpZ2ljZXJ0LmNvbS9EaWdpQ2VydEdsb2JhbFJvb3RHMi5j\\r\\ncmwwHQYDVR0gBBYwFDAIBgZngQwBAgEwCAYGZ4EMAQICMBAGCSsGAQQBgjcVAQQD\\r\\nAgEAMA0GCSqGSIb3DQEBDAUAA4IBAQAzo/KdmWPPTaYLQW7J5DqxEiBT9QyYGUfe\\r\\nZd7TR1837H6DSkFa/mGM1kLwi5y9miZKA9k6T9OwTx8CflcvbNO2UkFW0VCldEGH\\r\\niyx5421+HpRxMQIRjligePtOtRGXwaNOQ7ySWfJhRhKcPKe2PGFHQI7/3n+T3kXQ\\r\\n/SLu2lk9Qs5YgSJ3VhxBUznYn1KVKJWPE07M55kuUgCquAV0PksZj7EC4nK6e/UV\\r\\nbPumlj1nyjlxhvNud4WYmr4ntbBev6cSbK78dpI/3cr7P/WJPYJuL0EsO3MgjS3e\\r\\nDCX7NXp5ylue3TcpQfRU8BL+yZC1wqX98R4ndw7X4qfGaE7SlF7I\\r\\n-----END CERTIFICATE-----\\r\\n\"\r\n },\r\n {\r\n \"pem\": \"\\r\\n-----BEGIN CERTIFICATE-----\\r\\nMIIDjjCCAnagAwIBAgIQAzrx5qcRqaC7KGSxHQn65TANBgkqhkiG9w0BAQsFADBh\\r\\nMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3\\r\\nd3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBH\\r\\nMjAeFw0xMzA4MDExMjAwMDBaFw0zODAxMTUxMjAwMDBaMGExCzAJBgNVBAYTAlVT\\r\\nMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5j\\r\\nb20xIDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IEcyMIIBIjANBgkqhkiG\\r\\n9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuzfNNNx7a8myaJCtSnX/RrohCgiN9RlUyfuI\\r\\n2/Ou8jqJkTx65qsGGmvPrC3oXgkkRLpimn7Wo6h+4FR1IAWsULecYxpsMNzaHxmx\\r\\n1x7e/dfgy5SDN67sH0NO3Xss0r0upS/kqbitOtSZpLYl6ZtrAGCSYP9PIUkY92eQ\\r\\nq2EGnI/yuum06ZIya7XzV+hdG82MHauVBJVJ8zUtluNJbd134/tJS7SsVQepj5Wz\\r\\ntCO7TG1F8PapspUwtP1MVYwnSlcUfIKdzXOS0xZKBgyMUNGPHgm+F6HmIcr9g+UQ\\r\\nvIOlCsRnKPZzFBQ9RnbDhxSJITRNrw9FDKZJobq7nMWxM4MphQIDAQABo0IwQDAP\\r\\nBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAdBgNVHQ4EFgQUTiJUIBiV\\r\\n5uNu5g/6+rkS7QYXjzkwDQYJKoZIhvcNAQELBQADggEBAGBnKJRvDkhj6zHd6mcY\\r\\n1Yl9PMWLSn/pvtsrF9+wX3N3KjITOYFnQoQj8kVnNeyIv/iPsGEMNKSuIEyExtv4\\r\\nNeF22d+mQrvHRAiGfzZ0JFrabA0UWTW98kndth/Jsw1HKj2ZL7tcu7XUIOGZX1NG\\r\\nFdtom/DzMNU+MeKNhJ7jitralj41E6Vf8PlwUHBHQRFXGU7Aj64GxJUTFy8bJZ91\\r\\n8rGOmaFvE7FBcf6IKshPECBV1/MUReXgRPTqh5Uykw7+U0b6LJ3/iyK5S9kJRaTe\\r\\npLiaWN0bfVKfjllDiIGknibVb63dDcY3fe0Dkhvld1927jyNxF1WW6LZZm6zNTfl\\r\\nMrY=\\r\\n-----END CERTIFICATE-----\\r\\n\"\r\n },\r\n {\r\n \"pem\": \"\\r\\n-----BEGIN CERTIFICATE-----\\r\\nMIIF8zCCBNugAwIBAgIQAueRcfuAIek/4tmDg0xQwDANBgkqhkiG9w0BAQwFADBh\\r\\nMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3\\r\\nd3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBH\\r\\nMjAeFw0yMDA3MjkxMjMwMDBaFw0yNDA2MjcyMzU5NTlaMFkxCzAJBgNVBAYTAlVT\\r\\nMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKjAoBgNVBAMTIU1pY3Jv\\r\\nc29mdCBBenVyZSBUTFMgSXNzdWluZyBDQSAwNjCCAiIwDQYJKoZIhvcNAQEBBQAD\\r\\nggIPADCCAgoCggIBALVGARl56bx3KBUSGuPc4H5uoNFkFH4e7pvTCxRi4j/+z+Xb\\r\\nwjEz+5CipDOqjx9/jWjskL5dk7PaQkzItidsAAnDCW1leZBOIi68Lff1bjTeZgMY\\r\\niwdRd3Y39b/lcGpiuP2d23W95YHkMMT8IlWosYIX0f4kYb62rphyfnAjYb/4Od99\\r\\nThnhlAxGtfvSbXcBVIKCYfZgqRvV+5lReUnd1aNjRYVzPOoifgSx2fRyy1+pO1Uz\\r\\naMMNnIOE71bVYW0A1hr19w7kOb0KkJXoALTDDj1ukUEDqQuBfBxReL5mXiu1O7WG\\r\\n0vltg0VZ/SZzctBsdBlx1BkmWYBW261KZgBivrql5ELTKKd8qgtHcLQA5fl6JB0Q\\r\\ngs5XDaWehN86Gps5JW8ArjGtjcWAIP+X8CQaWfaCnuRm6Bk/03PQWhgdi84qwA0s\\r\\nsRfFJwHUPTNSnE8EiGVk2frt0u8PG1pwSQsFuNJfcYIHEv1vOzP7uEOuDydsmCjh\\r\\nlxuoK2n5/2aVR3BMTu+p4+gl8alXoBycyLmj3J/PUgqD8SL5fTCUegGsdia/Sa60\\r\\nN2oV7vQ17wjMN+LXa2rjj/b4ZlZgXVojDmAjDwIRdDUujQu0RVsJqFLMzSIHpp2C\\r\\nZp7mIoLrySay2YYBu7SiNwL95X6He2kS8eefBBHjzwW/9FxGqry57i71c2cDAgMB\\r\\nAAGjggGtMIIBqTAdBgNVHQ4EFgQU1cFnOsKjnfR3UltZEjgp5lVou6UwHwYDVR0j\\r\\nBBgwFoAUTiJUIBiV5uNu5g/6+rkS7QYXjzkwDgYDVR0PAQH/BAQDAgGGMB0GA1Ud\\r\\nJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjASBgNVHRMBAf8ECDAGAQH/AgEAMHYG\\r\\nCCsGAQUFBwEBBGowaDAkBggrBgEFBQcwAYYYaHR0cDovL29jc3AuZGlnaWNlcnQu\\r\\nY29tMEAGCCsGAQUFBzAChjRodHRwOi8vY2FjZXJ0cy5kaWdpY2VydC5jb20vRGln\\r\\naUNlcnRHbG9iYWxSb290RzIuY3J0MHsGA1UdHwR0MHIwN6A1oDOGMWh0dHA6Ly9j\\r\\ncmwzLmRpZ2ljZXJ0LmNvbS9EaWdpQ2VydEdsb2JhbFJvb3RHMi5jcmwwN6A1oDOG\\r\\nMWh0dHA6Ly9jcmw0LmRpZ2ljZXJ0LmNvbS9EaWdpQ2VydEdsb2JhbFJvb3RHMi5j\\r\\ncmwwHQYDVR0gBBYwFDAIBgZngQwBAgEwCAYGZ4EMAQICMBAGCSsGAQQBgjcVAQQD\\r\\nAgEAMA0GCSqGSIb3DQEBDAUAA4IBAQB2oWc93fB8esci/8esixj++N22meiGDjgF\\r\\n+rA2LUK5IOQOgcUSTGKSqF9lYfAxPjrqPjDCUPHCURv+26ad5P/BYtXtbmtxJWu+\\r\\ncS5BhMDPPeG3oPZwXRHBJFAkY4O4AF7RIAAUW6EzDflUoDHKv83zOiPfYGcpHc9s\\r\\nkxAInCedk7QSgXvMARjjOqdakor21DTmNIUotxo8kHv5hwRlGhBJwps6fEVi1Bt0\\r\\ntrpM/3wYxlr473WSPUFZPgP1j519kLpWOJ8z09wxay+Br29irPcBYv0GMXlHqThy\\r\\n8y4m/HyTQeI2IMvMrQnwqPpY+rLIXyviI2vLoI+4xKE4Rn38ZZ8m\\r\\n-----END CERTIFICATE-----\\r\\n\"\r\n }\r\n ],\r\n \"externalSeedNodes\": [\r\n {\r\n \"ipAddress\": \"10.0.1.1\"\r\n }\r\n ],\r\n \"prometheusEndpoint\": {\r\n \"ipAddress\": \"127.0.0.1\"\r\n },\r\n \"seedNodes\": []\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2Nhc3NhbmRyYUNsdXN0ZXJzL21hbmFnZWRjbHVzdGVyNTQ/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11990" - ], - "x-ms-request-id": [ - "46dcbbea-3f65-4ffc-9795-4b9afcf4acf6" - ], - "x-ms-correlation-request-id": [ - "46dcbbea-3f65-4ffc-9795-4b9afcf4acf6" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T173641Z:46dcbbea-3f65-4ffc-9795-4b9afcf4acf6" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:36:40 GMT" - ], - "Content-Length": [ - "8921" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54\",\r\n \"name\": \"managedcluster54\",\r\n \"type\": \"Microsoft.DocumentDB/cassandraClusters\",\r\n \"location\": \"East US 2\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"delegatedManagementSubnetId\": \"/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.Network/virtualNetworks/CosmosDBVirtualNetwork840/subnets/cassandra-subnet\",\r\n \"clusterNameOverride\": \"managedcluster54\",\r\n \"authenticationMethod\": \"Cassandra\",\r\n \"hoursBetweenBackups\": 0,\r\n \"clientCertificates\": [],\r\n \"externalGossipCertificates\": [],\r\n \"gossipCertificates\": [\r\n {\r\n \"pem\": \"\\r\\n-----BEGIN CERTIFICATE-----\\r\\nMIIF8zCCBNugAwIBAgIQCq+mxcpjxFFB6jvh98dTFzANBgkqhkiG9w0BAQwFADBh\\r\\nMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3\\r\\nd3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBH\\r\\nMjAeFw0yMDA3MjkxMjMwMDBaFw0yNDA2MjcyMzU5NTlaMFkxCzAJBgNVBAYTAlVT\\r\\nMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKjAoBgNVBAMTIU1pY3Jv\\r\\nc29mdCBBenVyZSBUTFMgSXNzdWluZyBDQSAwMTCCAiIwDQYJKoZIhvcNAQEBBQAD\\r\\nggIPADCCAgoCggIBAMedcDrkXufP7pxVm1FHLDNA9IjwHaMoaY8arqqZ4Gff4xyr\\r\\nRygnavXL7g12MPAx8Q6Dd9hfBzrfWxkF0Br2wIvlvkzW01naNVSkHp+OS3hL3W6n\\r\\nl/jYvZnVeJXjtsKYcXIf/6WtspcF5awlQ9LZJcjwaH7KoZuK+THpXCMtzD8XNVdm\\r\\nGW/JI0C/7U/E7evXn9XDio8SYkGSM63aLO5BtLCv092+1d4GGBSQYolRq+7Pd1kR\\r\\nEkWBPm0ywZ2Vb8GIS5DLrjelEkBnKCyy3B0yQud9dpVsiUeE7F5sY8Me96WVxQcb\\r\\nOyYdEY/j/9UpDlOG+vA+YgOvBhkKEjiqygVpP8EZoMMijephzg43b5Qi9r5UrvYo\\r\\no19oR/8pf4HJNDPF0/FJwFVMW8PmCBLGstin3NE1+NeWTkGt0TzpHjgKyfaDP2tO\\r\\n4bCk1G7pP2kDFT7SYfc8xbgCkFQ2UCEXsaH/f5YmpLn4YPiNFCeeIida7xnfTvc4\\r\\n7IxyVccHHq1FzGygOqemrxEETKh8hvDR6eBdrBwmCHVgZrnAqnn93JtGyPLi6+cj\\r\\nWGVGtMZHwzVvX1HvSFG771sskcEjJxiQNQDQRWHEh3NxvNb7kFlAXnVdRkkvhjpR\\r\\nGchFhTAzqmwltdWhWDEyCMKC2x/mSZvZtlZGY+g37Y72qHzidwtyW7rBetZJAgMB\\r\\nAAGjggGtMIIBqTAdBgNVHQ4EFgQUDyBd16FXlduSzyvQx8J3BM5ygHYwHwYDVR0j\\r\\nBBgwFoAUTiJUIBiV5uNu5g/6+rkS7QYXjzkwDgYDVR0PAQH/BAQDAgGGMB0GA1Ud\\r\\nJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjASBgNVHRMBAf8ECDAGAQH/AgEAMHYG\\r\\nCCsGAQUFBwEBBGowaDAkBggrBgEFBQcwAYYYaHR0cDovL29jc3AuZGlnaWNlcnQu\\r\\nY29tMEAGCCsGAQUFBzAChjRodHRwOi8vY2FjZXJ0cy5kaWdpY2VydC5jb20vRGln\\r\\naUNlcnRHbG9iYWxSb290RzIuY3J0MHsGA1UdHwR0MHIwN6A1oDOGMWh0dHA6Ly9j\\r\\ncmwzLmRpZ2ljZXJ0LmNvbS9EaWdpQ2VydEdsb2JhbFJvb3RHMi5jcmwwN6A1oDOG\\r\\nMWh0dHA6Ly9jcmw0LmRpZ2ljZXJ0LmNvbS9EaWdpQ2VydEdsb2JhbFJvb3RHMi5j\\r\\ncmwwHQYDVR0gBBYwFDAIBgZngQwBAgEwCAYGZ4EMAQICMBAGCSsGAQQBgjcVAQQD\\r\\nAgEAMA0GCSqGSIb3DQEBDAUAA4IBAQAlFvNh7QgXVLAZSsNR2XRmIn9iS8OHFCBA\\r\\nWxKJoi8YYQafpMTkMqeuzoL3HWb1pYEipsDkhiMnrpfeYZEA7Lz7yqEEtfgHcEBs\\r\\nK9KcStQGGZRfmWU07hPXHnFz+5gTXqzCE2PBMlRgVUYJiA25mJPXfB00gDvGhtYa\\r\\n+mENwM9Bq1B9YYLyLjRtUz8cyGsdyTIG/bBM/Q9jcV8JGqMU/UjAdh1pFyTnnHEl\\r\\nY59Npi7F87ZqYYJEHJM2LGD+le8VsHjgeWX2CJQko7klXvcizuZvUEDTjHaQcs2J\\r\\n+kPgfyMIOY1DMJ21NxOJ2xPRC/wAh/hzSBRVtoAnyuxtkZ4VjIOh\\r\\n-----END CERTIFICATE-----\\r\\n\"\r\n },\r\n {\r\n \"pem\": \"\\r\\n-----BEGIN CERTIFICATE-----\\r\\nMIIF8zCCBNugAwIBAgIQDGrpfM7VmYOGkKAKnqUyFDANBgkqhkiG9w0BAQwFADBh\\r\\nMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3\\r\\nd3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBH\\r\\nMjAeFw0yMDA3MjkxMjMwMDBaFw0yNDA2MjcyMzU5NTlaMFkxCzAJBgNVBAYTAlVT\\r\\nMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKjAoBgNVBAMTIU1pY3Jv\\r\\nc29mdCBBenVyZSBUTFMgSXNzdWluZyBDQSAwMjCCAiIwDQYJKoZIhvcNAQEBBQAD\\r\\nggIPADCCAgoCggIBAOBiO1K6Fk4fHI6t3mJkpg7lxoeUgL8tz9wuI2z0UgY8vFra\\r\\n3VBo7QznC4K3s9jqKWEyIQY11Le0108bSYa/TK0aioO6itpGiigEG+vH/iqtQXPS\\r\\nu6D804ri0NFZ1SOP9IzjYuQiK6AWntCqP4WAcZAPtpNrNLPBIyiqmiTDS4dlFg1d\\r\\nskMuVpT4z0MpgEMmxQnrSZ615rBQ25vnVbBNig04FCsh1V3S8ve5Gzh08oIrL/g5\\r\\nxq95oRrgEeOBIeiegQpoKrLYyo3R1Tt48HmSJCBYQ52Qc34RgxQdZsLXMUrWuL1J\\r\\nLAZP6yeo47ySSxKCjhq5/AUWvQBP3N/cP/iJzKKKw23qJ/kkVrE0DSVDiIiXWF0c\\r\\n9abSGhYl9SPl86IHcIAIzwelJ4SKpHrVbh0/w4YHdFi5QbdAp7O5KxfxBYhQOeHy\\r\\nis01zkpYn6SqUFGvbK8eZ8y9Aclt8PIUftMG6q5BhdlBZkDDV3n70RlXwYvllzfZ\\r\\n/nV94l+hYp+GLW7jSmpxZLG/XEz4OXtTtWwLV+IkIOe/EDF79KCazW2SXOIvVInP\\r\\noi1PqN4TudNv0GyBF5tRC/aBjUqply1YYfeKwgRVs83z5kuiOicmdGZKH9SqU5bn\\r\\nKse7IlyfZLg6yAxYyTNe7A9acJ3/pGmCIkJ/9dfLUFc4hYb3YyIIYGmqm2/3AgMB\\r\\nAAGjggGtMIIBqTAdBgNVHQ4EFgQUAKuR/CFiJpeaqHkbYUGQYKliZ/0wHwYDVR0j\\r\\nBBgwFoAUTiJUIBiV5uNu5g/6+rkS7QYXjzkwDgYDVR0PAQH/BAQDAgGGMB0GA1Ud\\r\\nJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjASBgNVHRMBAf8ECDAGAQH/AgEAMHYG\\r\\nCCsGAQUFBwEBBGowaDAkBggrBgEFBQcwAYYYaHR0cDovL29jc3AuZGlnaWNlcnQu\\r\\nY29tMEAGCCsGAQUFBzAChjRodHRwOi8vY2FjZXJ0cy5kaWdpY2VydC5jb20vRGln\\r\\naUNlcnRHbG9iYWxSb290RzIuY3J0MHsGA1UdHwR0MHIwN6A1oDOGMWh0dHA6Ly9j\\r\\ncmwzLmRpZ2ljZXJ0LmNvbS9EaWdpQ2VydEdsb2JhbFJvb3RHMi5jcmwwN6A1oDOG\\r\\nMWh0dHA6Ly9jcmw0LmRpZ2ljZXJ0LmNvbS9EaWdpQ2VydEdsb2JhbFJvb3RHMi5j\\r\\ncmwwHQYDVR0gBBYwFDAIBgZngQwBAgEwCAYGZ4EMAQICMBAGCSsGAQQBgjcVAQQD\\r\\nAgEAMA0GCSqGSIb3DQEBDAUAA4IBAQAzo/KdmWPPTaYLQW7J5DqxEiBT9QyYGUfe\\r\\nZd7TR1837H6DSkFa/mGM1kLwi5y9miZKA9k6T9OwTx8CflcvbNO2UkFW0VCldEGH\\r\\niyx5421+HpRxMQIRjligePtOtRGXwaNOQ7ySWfJhRhKcPKe2PGFHQI7/3n+T3kXQ\\r\\n/SLu2lk9Qs5YgSJ3VhxBUznYn1KVKJWPE07M55kuUgCquAV0PksZj7EC4nK6e/UV\\r\\nbPumlj1nyjlxhvNud4WYmr4ntbBev6cSbK78dpI/3cr7P/WJPYJuL0EsO3MgjS3e\\r\\nDCX7NXp5ylue3TcpQfRU8BL+yZC1wqX98R4ndw7X4qfGaE7SlF7I\\r\\n-----END CERTIFICATE-----\\r\\n\"\r\n },\r\n {\r\n \"pem\": \"\\r\\n-----BEGIN CERTIFICATE-----\\r\\nMIIDjjCCAnagAwIBAgIQAzrx5qcRqaC7KGSxHQn65TANBgkqhkiG9w0BAQsFADBh\\r\\nMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3\\r\\nd3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBH\\r\\nMjAeFw0xMzA4MDExMjAwMDBaFw0zODAxMTUxMjAwMDBaMGExCzAJBgNVBAYTAlVT\\r\\nMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5j\\r\\nb20xIDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IEcyMIIBIjANBgkqhkiG\\r\\n9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuzfNNNx7a8myaJCtSnX/RrohCgiN9RlUyfuI\\r\\n2/Ou8jqJkTx65qsGGmvPrC3oXgkkRLpimn7Wo6h+4FR1IAWsULecYxpsMNzaHxmx\\r\\n1x7e/dfgy5SDN67sH0NO3Xss0r0upS/kqbitOtSZpLYl6ZtrAGCSYP9PIUkY92eQ\\r\\nq2EGnI/yuum06ZIya7XzV+hdG82MHauVBJVJ8zUtluNJbd134/tJS7SsVQepj5Wz\\r\\ntCO7TG1F8PapspUwtP1MVYwnSlcUfIKdzXOS0xZKBgyMUNGPHgm+F6HmIcr9g+UQ\\r\\nvIOlCsRnKPZzFBQ9RnbDhxSJITRNrw9FDKZJobq7nMWxM4MphQIDAQABo0IwQDAP\\r\\nBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjAdBgNVHQ4EFgQUTiJUIBiV\\r\\n5uNu5g/6+rkS7QYXjzkwDQYJKoZIhvcNAQELBQADggEBAGBnKJRvDkhj6zHd6mcY\\r\\n1Yl9PMWLSn/pvtsrF9+wX3N3KjITOYFnQoQj8kVnNeyIv/iPsGEMNKSuIEyExtv4\\r\\nNeF22d+mQrvHRAiGfzZ0JFrabA0UWTW98kndth/Jsw1HKj2ZL7tcu7XUIOGZX1NG\\r\\nFdtom/DzMNU+MeKNhJ7jitralj41E6Vf8PlwUHBHQRFXGU7Aj64GxJUTFy8bJZ91\\r\\n8rGOmaFvE7FBcf6IKshPECBV1/MUReXgRPTqh5Uykw7+U0b6LJ3/iyK5S9kJRaTe\\r\\npLiaWN0bfVKfjllDiIGknibVb63dDcY3fe0Dkhvld1927jyNxF1WW6LZZm6zNTfl\\r\\nMrY=\\r\\n-----END CERTIFICATE-----\\r\\n\"\r\n },\r\n {\r\n \"pem\": \"\\r\\n-----BEGIN CERTIFICATE-----\\r\\nMIIF8zCCBNugAwIBAgIQAueRcfuAIek/4tmDg0xQwDANBgkqhkiG9w0BAQwFADBh\\r\\nMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3\\r\\nd3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBH\\r\\nMjAeFw0yMDA3MjkxMjMwMDBaFw0yNDA2MjcyMzU5NTlaMFkxCzAJBgNVBAYTAlVT\\r\\nMR4wHAYDVQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xKjAoBgNVBAMTIU1pY3Jv\\r\\nc29mdCBBenVyZSBUTFMgSXNzdWluZyBDQSAwNjCCAiIwDQYJKoZIhvcNAQEBBQAD\\r\\nggIPADCCAgoCggIBALVGARl56bx3KBUSGuPc4H5uoNFkFH4e7pvTCxRi4j/+z+Xb\\r\\nwjEz+5CipDOqjx9/jWjskL5dk7PaQkzItidsAAnDCW1leZBOIi68Lff1bjTeZgMY\\r\\niwdRd3Y39b/lcGpiuP2d23W95YHkMMT8IlWosYIX0f4kYb62rphyfnAjYb/4Od99\\r\\nThnhlAxGtfvSbXcBVIKCYfZgqRvV+5lReUnd1aNjRYVzPOoifgSx2fRyy1+pO1Uz\\r\\naMMNnIOE71bVYW0A1hr19w7kOb0KkJXoALTDDj1ukUEDqQuBfBxReL5mXiu1O7WG\\r\\n0vltg0VZ/SZzctBsdBlx1BkmWYBW261KZgBivrql5ELTKKd8qgtHcLQA5fl6JB0Q\\r\\ngs5XDaWehN86Gps5JW8ArjGtjcWAIP+X8CQaWfaCnuRm6Bk/03PQWhgdi84qwA0s\\r\\nsRfFJwHUPTNSnE8EiGVk2frt0u8PG1pwSQsFuNJfcYIHEv1vOzP7uEOuDydsmCjh\\r\\nlxuoK2n5/2aVR3BMTu+p4+gl8alXoBycyLmj3J/PUgqD8SL5fTCUegGsdia/Sa60\\r\\nN2oV7vQ17wjMN+LXa2rjj/b4ZlZgXVojDmAjDwIRdDUujQu0RVsJqFLMzSIHpp2C\\r\\nZp7mIoLrySay2YYBu7SiNwL95X6He2kS8eefBBHjzwW/9FxGqry57i71c2cDAgMB\\r\\nAAGjggGtMIIBqTAdBgNVHQ4EFgQU1cFnOsKjnfR3UltZEjgp5lVou6UwHwYDVR0j\\r\\nBBgwFoAUTiJUIBiV5uNu5g/6+rkS7QYXjzkwDgYDVR0PAQH/BAQDAgGGMB0GA1Ud\\r\\nJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjASBgNVHRMBAf8ECDAGAQH/AgEAMHYG\\r\\nCCsGAQUFBwEBBGowaDAkBggrBgEFBQcwAYYYaHR0cDovL29jc3AuZGlnaWNlcnQu\\r\\nY29tMEAGCCsGAQUFBzAChjRodHRwOi8vY2FjZXJ0cy5kaWdpY2VydC5jb20vRGln\\r\\naUNlcnRHbG9iYWxSb290RzIuY3J0MHsGA1UdHwR0MHIwN6A1oDOGMWh0dHA6Ly9j\\r\\ncmwzLmRpZ2ljZXJ0LmNvbS9EaWdpQ2VydEdsb2JhbFJvb3RHMi5jcmwwN6A1oDOG\\r\\nMWh0dHA6Ly9jcmw0LmRpZ2ljZXJ0LmNvbS9EaWdpQ2VydEdsb2JhbFJvb3RHMi5j\\r\\ncmwwHQYDVR0gBBYwFDAIBgZngQwBAgEwCAYGZ4EMAQICMBAGCSsGAQQBgjcVAQQD\\r\\nAgEAMA0GCSqGSIb3DQEBDAUAA4IBAQB2oWc93fB8esci/8esixj++N22meiGDjgF\\r\\n+rA2LUK5IOQOgcUSTGKSqF9lYfAxPjrqPjDCUPHCURv+26ad5P/BYtXtbmtxJWu+\\r\\ncS5BhMDPPeG3oPZwXRHBJFAkY4O4AF7RIAAUW6EzDflUoDHKv83zOiPfYGcpHc9s\\r\\nkxAInCedk7QSgXvMARjjOqdakor21DTmNIUotxo8kHv5hwRlGhBJwps6fEVi1Bt0\\r\\ntrpM/3wYxlr473WSPUFZPgP1j519kLpWOJ8z09wxay+Br29irPcBYv0GMXlHqThy\\r\\n8y4m/HyTQeI2IMvMrQnwqPpY+rLIXyviI2vLoI+4xKE4Rn38ZZ8m\\r\\n-----END CERTIFICATE-----\\r\\n\"\r\n }\r\n ],\r\n \"externalSeedNodes\": [\r\n {\r\n \"ipAddress\": \"10.0.1.1\"\r\n }\r\n ],\r\n \"prometheusEndpoint\": {\r\n \"ipAddress\": \"127.0.0.1\"\r\n },\r\n \"seedNodes\": []\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/dataCenters/managedDC5187?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2Nhc3NhbmRyYUNsdXN0ZXJzL21hbmFnZWRjbHVzdGVyNTQvZGF0YUNlbnRlcnMvbWFuYWdlZERDNTE4Nz9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"dataCenterLocation\": \"East US 2\",\r\n \"delegatedSubnetId\": \"/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.Network/virtualNetworks/CosmosDBVirtualNetwork840/subnets/cassandra-subnet\",\r\n \"nodeCount\": 3\r\n }\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "1effe6e4-60e1-4736-8f5a-dad52b088f88" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "305" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/0ab744bd-9bb9-4e36-8dc9-5ceb12b9bdf9?api-version=2021-03-01-preview" - ], - "x-ms-request-id": [ - "0ab744bd-9bb9-4e36-8dc9-5ceb12b9bdf9" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" - ], - "x-ms-correlation-request-id": [ - "450ebe17-a665-4c08-af58-6cce6afea876" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T173642Z:450ebe17-a665-4c08-af58-6cce6afea876" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:36:41 GMT" - ], - "Content-Length": [ - "651" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/dataCenters/managedDC5187\",\r\n \"name\": \"managedcluster54/managedDC5187\",\r\n \"type\": \"Microsoft.DocumentDB/cassandraClusters/dataCenters\",\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"dataCenterLocation\": \"East US 2\",\r\n \"delegatedSubnetId\": \"/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.Network/virtualNetworks/CosmosDBVirtualNetwork840/subnets/cassandra-subnet\",\r\n \"nodeCount\": 3,\r\n \"seedNodes\": [],\r\n \"base64EncodedCassandraYamlFragment\": \"\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/0ab744bd-9bb9-4e36-8dc9-5ceb12b9bdf9?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzBhYjc0NGJkLTliYjktNGUzNi04ZGM5LTVjZWIxMmI5YmRmOT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" - ], - "x-ms-request-id": [ - "818f930d-a544-4d89-af46-5472c4559a1f" - ], - "x-ms-correlation-request-id": [ - "818f930d-a544-4d89-af46-5472c4559a1f" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T173712Z:818f930d-a544-4d89-af46-5472c4559a1f" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:37:12 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/0ab744bd-9bb9-4e36-8dc9-5ceb12b9bdf9?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzBhYjc0NGJkLTliYjktNGUzNi04ZGM5LTVjZWIxMmI5YmRmOT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11988" - ], - "x-ms-request-id": [ - "3ac83d37-f266-400b-9098-fccffbea7450" - ], - "x-ms-correlation-request-id": [ - "3ac83d37-f266-400b-9098-fccffbea7450" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T173742Z:3ac83d37-f266-400b-9098-fccffbea7450" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:37:41 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/0ab744bd-9bb9-4e36-8dc9-5ceb12b9bdf9?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzBhYjc0NGJkLTliYjktNGUzNi04ZGM5LTVjZWIxMmI5YmRmOT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11987" - ], - "x-ms-request-id": [ - "31c6a67e-959b-45ce-bc8c-2b7f552157e9" - ], - "x-ms-correlation-request-id": [ - "31c6a67e-959b-45ce-bc8c-2b7f552157e9" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T173812Z:31c6a67e-959b-45ce-bc8c-2b7f552157e9" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:38:12 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/0ab744bd-9bb9-4e36-8dc9-5ceb12b9bdf9?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzBhYjc0NGJkLTliYjktNGUzNi04ZGM5LTVjZWIxMmI5YmRmOT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11986" - ], - "x-ms-request-id": [ - "a5c5ce1b-1546-4524-89c1-171e00a7bc37" - ], - "x-ms-correlation-request-id": [ - "a5c5ce1b-1546-4524-89c1-171e00a7bc37" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T173842Z:a5c5ce1b-1546-4524-89c1-171e00a7bc37" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:38:42 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/0ab744bd-9bb9-4e36-8dc9-5ceb12b9bdf9?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzBhYjc0NGJkLTliYjktNGUzNi04ZGM5LTVjZWIxMmI5YmRmOT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11985" - ], - "x-ms-request-id": [ - "730eb55c-96ad-424b-9d4a-2663bb5935c0" - ], - "x-ms-correlation-request-id": [ - "730eb55c-96ad-424b-9d4a-2663bb5935c0" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T173913Z:730eb55c-96ad-424b-9d4a-2663bb5935c0" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:39:12 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/0ab744bd-9bb9-4e36-8dc9-5ceb12b9bdf9?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzBhYjc0NGJkLTliYjktNGUzNi04ZGM5LTVjZWIxMmI5YmRmOT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11984" - ], - "x-ms-request-id": [ - "e3815aa9-f278-4a88-82ea-18fbe269aa1b" - ], - "x-ms-correlation-request-id": [ - "e3815aa9-f278-4a88-82ea-18fbe269aa1b" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T173943Z:e3815aa9-f278-4a88-82ea-18fbe269aa1b" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:39:42 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/0ab744bd-9bb9-4e36-8dc9-5ceb12b9bdf9?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzBhYjc0NGJkLTliYjktNGUzNi04ZGM5LTVjZWIxMmI5YmRmOT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11983" - ], - "x-ms-request-id": [ - "9dc5fc2d-e736-4ef4-b403-f1317790f44f" - ], - "x-ms-correlation-request-id": [ - "9dc5fc2d-e736-4ef4-b403-f1317790f44f" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T174013Z:9dc5fc2d-e736-4ef4-b403-f1317790f44f" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:40:13 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/0ab744bd-9bb9-4e36-8dc9-5ceb12b9bdf9?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzBhYjc0NGJkLTliYjktNGUzNi04ZGM5LTVjZWIxMmI5YmRmOT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11982" - ], - "x-ms-request-id": [ - "1d86533b-d148-4f40-ba82-e45e20a4e165" - ], - "x-ms-correlation-request-id": [ - "1d86533b-d148-4f40-ba82-e45e20a4e165" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T174043Z:1d86533b-d148-4f40-ba82-e45e20a4e165" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:40:43 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/0ab744bd-9bb9-4e36-8dc9-5ceb12b9bdf9?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzBhYjc0NGJkLTliYjktNGUzNi04ZGM5LTVjZWIxMmI5YmRmOT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11981" - ], - "x-ms-request-id": [ - "ef1082c3-31c6-4955-8823-9204766908ee" - ], - "x-ms-correlation-request-id": [ - "ef1082c3-31c6-4955-8823-9204766908ee" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T174113Z:ef1082c3-31c6-4955-8823-9204766908ee" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:41:13 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/0ab744bd-9bb9-4e36-8dc9-5ceb12b9bdf9?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzBhYjc0NGJkLTliYjktNGUzNi04ZGM5LTVjZWIxMmI5YmRmOT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11980" - ], - "x-ms-request-id": [ - "6757afc1-507d-411a-aba8-290878b01288" - ], - "x-ms-correlation-request-id": [ - "6757afc1-507d-411a-aba8-290878b01288" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T174144Z:6757afc1-507d-411a-aba8-290878b01288" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:41:43 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/0ab744bd-9bb9-4e36-8dc9-5ceb12b9bdf9?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzBhYjc0NGJkLTliYjktNGUzNi04ZGM5LTVjZWIxMmI5YmRmOT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11979" - ], - "x-ms-request-id": [ - "34a40d55-c7a4-4b08-a48a-e9c8894c5768" - ], - "x-ms-correlation-request-id": [ - "34a40d55-c7a4-4b08-a48a-e9c8894c5768" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T174214Z:34a40d55-c7a4-4b08-a48a-e9c8894c5768" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:42:13 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/0ab744bd-9bb9-4e36-8dc9-5ceb12b9bdf9?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzBhYjc0NGJkLTliYjktNGUzNi04ZGM5LTVjZWIxMmI5YmRmOT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11978" - ], - "x-ms-request-id": [ - "67dbaa0d-0f04-481d-84a4-86e7381dee8c" - ], - "x-ms-correlation-request-id": [ - "67dbaa0d-0f04-481d-84a4-86e7381dee8c" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T174244Z:67dbaa0d-0f04-481d-84a4-86e7381dee8c" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:42:43 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/0ab744bd-9bb9-4e36-8dc9-5ceb12b9bdf9?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzBhYjc0NGJkLTliYjktNGUzNi04ZGM5LTVjZWIxMmI5YmRmOT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11977" - ], - "x-ms-request-id": [ - "ea4d6064-9521-4aed-94a6-043073fbe21a" - ], - "x-ms-correlation-request-id": [ - "ea4d6064-9521-4aed-94a6-043073fbe21a" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T174314Z:ea4d6064-9521-4aed-94a6-043073fbe21a" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:43:14 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/0ab744bd-9bb9-4e36-8dc9-5ceb12b9bdf9?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzBhYjc0NGJkLTliYjktNGUzNi04ZGM5LTVjZWIxMmI5YmRmOT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11976" - ], - "x-ms-request-id": [ - "f5513719-5319-4cef-a425-137c120dc78b" - ], - "x-ms-correlation-request-id": [ - "f5513719-5319-4cef-a425-137c120dc78b" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T174344Z:f5513719-5319-4cef-a425-137c120dc78b" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:43:43 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/0ab744bd-9bb9-4e36-8dc9-5ceb12b9bdf9?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzBhYjc0NGJkLTliYjktNGUzNi04ZGM5LTVjZWIxMmI5YmRmOT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11975" - ], - "x-ms-request-id": [ - "55d7e03d-f949-4539-a5e3-0518921e286c" - ], - "x-ms-correlation-request-id": [ - "55d7e03d-f949-4539-a5e3-0518921e286c" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T174414Z:55d7e03d-f949-4539-a5e3-0518921e286c" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:44:14 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/0ab744bd-9bb9-4e36-8dc9-5ceb12b9bdf9?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzBhYjc0NGJkLTliYjktNGUzNi04ZGM5LTVjZWIxMmI5YmRmOT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11974" - ], - "x-ms-request-id": [ - "50ff432d-e6ae-4e95-b635-ca8d6685f814" - ], - "x-ms-correlation-request-id": [ - "50ff432d-e6ae-4e95-b635-ca8d6685f814" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T174444Z:50ff432d-e6ae-4e95-b635-ca8d6685f814" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:44:43 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/0ab744bd-9bb9-4e36-8dc9-5ceb12b9bdf9?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzBhYjc0NGJkLTliYjktNGUzNi04ZGM5LTVjZWIxMmI5YmRmOT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11973" - ], - "x-ms-request-id": [ - "0dce99ec-9edc-4237-8ebf-4e191c571af1" - ], - "x-ms-correlation-request-id": [ - "0dce99ec-9edc-4237-8ebf-4e191c571af1" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T174514Z:0dce99ec-9edc-4237-8ebf-4e191c571af1" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:45:14 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/0ab744bd-9bb9-4e36-8dc9-5ceb12b9bdf9?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzBhYjc0NGJkLTliYjktNGUzNi04ZGM5LTVjZWIxMmI5YmRmOT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11972" - ], - "x-ms-request-id": [ - "1d328435-4bd5-4dd2-96e8-7c8c294b09cb" - ], - "x-ms-correlation-request-id": [ - "1d328435-4bd5-4dd2-96e8-7c8c294b09cb" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T174545Z:1d328435-4bd5-4dd2-96e8-7c8c294b09cb" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:45:44 GMT" - ], - "Content-Length": [ - "22" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/dataCenters/managedDC5187?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2Nhc3NhbmRyYUNsdXN0ZXJzL21hbmFnZWRjbHVzdGVyNTQvZGF0YUNlbnRlcnMvbWFuYWdlZERDNTE4Nz9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11971" - ], - "x-ms-request-id": [ - "17f7e65c-a2d9-4341-8cd2-440bc2c3d3bf" - ], - "x-ms-correlation-request-id": [ - "17f7e65c-a2d9-4341-8cd2-440bc2c3d3bf" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T174545Z:17f7e65c-a2d9-4341-8cd2-440bc2c3d3bf" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:45:44 GMT" - ], - "Content-Length": [ - "726" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/dataCenters/managedDC5187\",\r\n \"name\": \"managedcluster54/managedDC5187\",\r\n \"type\": \"Microsoft.DocumentDB/cassandraClusters/dataCenters\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"dataCenterLocation\": \"East US 2\",\r\n \"delegatedSubnetId\": \"/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.Network/virtualNetworks/CosmosDBVirtualNetwork840/subnets/cassandra-subnet\",\r\n \"nodeCount\": 3,\r\n \"seedNodes\": [\r\n {\r\n \"ipAddress\": \"10.0.0.6\"\r\n },\r\n {\r\n \"ipAddress\": \"10.0.0.7\"\r\n },\r\n {\r\n \"ipAddress\": \"10.0.0.9\"\r\n }\r\n ],\r\n \"base64EncodedCassandraYamlFragment\": \"\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/dataCenters/managedDC5187?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2Nhc3NhbmRyYUNsdXN0ZXJzL21hbmFnZWRjbHVzdGVyNTQvZGF0YUNlbnRlcnMvbWFuYWdlZERDNTE4Nz9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "60c7de9f-c7d6-4e4b-82a5-5236b314aa18" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/dataCenters/managedDC5187/operationResults/26235206-0afb-4b6f-a8aa-f1d3825acd4e?api-version=2021-03-01-preview" - ], - "x-ms-request-id": [ - "26235206-0afb-4b6f-a8aa-f1d3825acd4e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-correlation-request-id": [ - "f3c214ca-4caa-40ea-9d5d-815f3b0555ef" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T174546Z:f3c214ca-4caa-40ea-9d5d-815f3b0555ef" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:45:45 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/dataCenters/managedDC5187/operationResults/26235206-0afb-4b6f-a8aa-f1d3825acd4e?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2Nhc3NhbmRyYUNsdXN0ZXJzL21hbmFnZWRjbHVzdGVyNTQvZGF0YUNlbnRlcnMvbWFuYWdlZERDNTE4Ny9vcGVyYXRpb25SZXN1bHRzLzI2MjM1MjA2LTBhZmItNGI2Zi1hOGFhLWYxZDM4MjVhY2Q0ZT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11970" - ], - "x-ms-request-id": [ - "4c9f5416-3b15-4c89-93a1-c7cda912960a" - ], - "x-ms-correlation-request-id": [ - "4c9f5416-3b15-4c89-93a1-c7cda912960a" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T174616Z:4c9f5416-3b15-4c89-93a1-c7cda912960a" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:46:15 GMT" - ], - "Content-Length": [ - "22" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/dataCenters/managedDC5187/operationResults/26235206-0afb-4b6f-a8aa-f1d3825acd4e?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2Nhc3NhbmRyYUNsdXN0ZXJzL21hbmFnZWRjbHVzdGVyNTQvZGF0YUNlbnRlcnMvbWFuYWdlZERDNTE4Ny9vcGVyYXRpb25SZXN1bHRzLzI2MjM1MjA2LTBhZmItNGI2Zi1hOGFhLWYxZDM4MjVhY2Q0ZT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11969" - ], - "x-ms-request-id": [ - "5562a616-6594-4b54-83ee-d7dfd7e84b42" - ], - "x-ms-correlation-request-id": [ - "5562a616-6594-4b54-83ee-d7dfd7e84b42" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T174616Z:5562a616-6594-4b54-83ee-d7dfd7e84b42" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:46:16 GMT" - ], - "Content-Length": [ - "22" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2Nhc3NhbmRyYUNsdXN0ZXJzL21hbmFnZWRjbHVzdGVyNTQ/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "d4268eb5-2a71-44d8-8ed4-9994dd3f5402" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/operationResults/64cd6bb1-6090-49b2-9f90-870a507d4f7f?api-version=2021-03-01-preview" - ], - "x-ms-request-id": [ - "64cd6bb1-6090-49b2-9f90-870a507d4f7f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14998" - ], - "x-ms-correlation-request-id": [ - "a877c127-fd87-4123-8e66-c44a1e2d58a2" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T174617Z:a877c127-fd87-4123-8e66-c44a1e2d58a2" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:46:16 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2Nhc3NhbmRyYUNsdXN0ZXJzL21hbmFnZWRjbHVzdGVyNTQ/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "93d535a4-0c52-4c1b-9b5c-925ce2a38a11" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-activity-id": [ - "93d535a4-0c52-4c1b-9b5c-925ce2a38a11" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14997" - ], - "x-ms-request-id": [ - "4c40f38a-3f46-458d-b4d6-9f540bfdf281" - ], - "x-ms-correlation-request-id": [ - "4c40f38a-3f46-458d-b4d6-9f540bfdf281" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T175151Z:4c40f38a-3f46-458d-b4d6-9f540bfdf281" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:51:51 GMT" - ] - }, - "ResponseBody": "", - "StatusCode": 204 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/operationResults/64cd6bb1-6090-49b2-9f90-870a507d4f7f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2Nhc3NhbmRyYUNsdXN0ZXJzL21hbmFnZWRjbHVzdGVyNTQvb3BlcmF0aW9uUmVzdWx0cy82NGNkNmJiMS02MDkwLTQ5YjItOWY5MC04NzBhNTA3ZDRmN2Y/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/operationResults/64cd6bb1-6090-49b2-9f90-870a507d4f7f?api-version=2021-03-01-preview" - ], - "x-ms-request-id": [ - "64cd6bb1-6090-49b2-9f90-870a507d4f7f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11968" - ], - "x-ms-correlation-request-id": [ - "f9f31e17-80f7-43de-bf16-51cb59bf2264" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T174647Z:f9f31e17-80f7-43de-bf16-51cb59bf2264" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:46:47 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/operationResults/64cd6bb1-6090-49b2-9f90-870a507d4f7f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2Nhc3NhbmRyYUNsdXN0ZXJzL21hbmFnZWRjbHVzdGVyNTQvb3BlcmF0aW9uUmVzdWx0cy82NGNkNmJiMS02MDkwLTQ5YjItOWY5MC04NzBhNTA3ZDRmN2Y/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/operationResults/64cd6bb1-6090-49b2-9f90-870a507d4f7f?api-version=2021-03-01-preview" - ], - "x-ms-request-id": [ - "64cd6bb1-6090-49b2-9f90-870a507d4f7f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11967" - ], - "x-ms-correlation-request-id": [ - "589c8b0f-0dee-40c0-b2d9-07fe1cad4665" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T174717Z:589c8b0f-0dee-40c0-b2d9-07fe1cad4665" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:47:17 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/operationResults/64cd6bb1-6090-49b2-9f90-870a507d4f7f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2Nhc3NhbmRyYUNsdXN0ZXJzL21hbmFnZWRjbHVzdGVyNTQvb3BlcmF0aW9uUmVzdWx0cy82NGNkNmJiMS02MDkwLTQ5YjItOWY5MC04NzBhNTA3ZDRmN2Y/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/operationResults/64cd6bb1-6090-49b2-9f90-870a507d4f7f?api-version=2021-03-01-preview" - ], - "x-ms-request-id": [ - "64cd6bb1-6090-49b2-9f90-870a507d4f7f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11966" - ], - "x-ms-correlation-request-id": [ - "7cb15262-fcbe-4a4c-a646-b72ec72a2953" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T174747Z:7cb15262-fcbe-4a4c-a646-b72ec72a2953" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:47:47 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/operationResults/64cd6bb1-6090-49b2-9f90-870a507d4f7f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2Nhc3NhbmRyYUNsdXN0ZXJzL21hbmFnZWRjbHVzdGVyNTQvb3BlcmF0aW9uUmVzdWx0cy82NGNkNmJiMS02MDkwLTQ5YjItOWY5MC04NzBhNTA3ZDRmN2Y/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/operationResults/64cd6bb1-6090-49b2-9f90-870a507d4f7f?api-version=2021-03-01-preview" - ], - "x-ms-request-id": [ - "64cd6bb1-6090-49b2-9f90-870a507d4f7f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11965" - ], - "x-ms-correlation-request-id": [ - "3c9ab08c-3fdf-495f-8bb9-5732f47e75cc" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T174818Z:3c9ab08c-3fdf-495f-8bb9-5732f47e75cc" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:48:17 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/operationResults/64cd6bb1-6090-49b2-9f90-870a507d4f7f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2Nhc3NhbmRyYUNsdXN0ZXJzL21hbmFnZWRjbHVzdGVyNTQvb3BlcmF0aW9uUmVzdWx0cy82NGNkNmJiMS02MDkwLTQ5YjItOWY5MC04NzBhNTA3ZDRmN2Y/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/operationResults/64cd6bb1-6090-49b2-9f90-870a507d4f7f?api-version=2021-03-01-preview" - ], - "x-ms-request-id": [ - "64cd6bb1-6090-49b2-9f90-870a507d4f7f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11964" - ], - "x-ms-correlation-request-id": [ - "3c982e53-c795-4406-8329-b8c100e4b206" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T174848Z:3c982e53-c795-4406-8329-b8c100e4b206" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:48:48 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/operationResults/64cd6bb1-6090-49b2-9f90-870a507d4f7f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2Nhc3NhbmRyYUNsdXN0ZXJzL21hbmFnZWRjbHVzdGVyNTQvb3BlcmF0aW9uUmVzdWx0cy82NGNkNmJiMS02MDkwLTQ5YjItOWY5MC04NzBhNTA3ZDRmN2Y/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/operationResults/64cd6bb1-6090-49b2-9f90-870a507d4f7f?api-version=2021-03-01-preview" - ], - "x-ms-request-id": [ - "64cd6bb1-6090-49b2-9f90-870a507d4f7f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11963" - ], - "x-ms-correlation-request-id": [ - "c946ede7-faa9-4708-83b1-a12aefcdcddd" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T174918Z:c946ede7-faa9-4708-83b1-a12aefcdcddd" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:49:17 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/operationResults/64cd6bb1-6090-49b2-9f90-870a507d4f7f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2Nhc3NhbmRyYUNsdXN0ZXJzL21hbmFnZWRjbHVzdGVyNTQvb3BlcmF0aW9uUmVzdWx0cy82NGNkNmJiMS02MDkwLTQ5YjItOWY5MC04NzBhNTA3ZDRmN2Y/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/operationResults/64cd6bb1-6090-49b2-9f90-870a507d4f7f?api-version=2021-03-01-preview" - ], - "x-ms-request-id": [ - "64cd6bb1-6090-49b2-9f90-870a507d4f7f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11962" - ], - "x-ms-correlation-request-id": [ - "80fb99c9-0da4-4e3b-b5fb-a8a4555bd1e8" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T174948Z:80fb99c9-0da4-4e3b-b5fb-a8a4555bd1e8" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:49:48 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/operationResults/64cd6bb1-6090-49b2-9f90-870a507d4f7f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2Nhc3NhbmRyYUNsdXN0ZXJzL21hbmFnZWRjbHVzdGVyNTQvb3BlcmF0aW9uUmVzdWx0cy82NGNkNmJiMS02MDkwLTQ5YjItOWY5MC04NzBhNTA3ZDRmN2Y/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/operationResults/64cd6bb1-6090-49b2-9f90-870a507d4f7f?api-version=2021-03-01-preview" - ], - "x-ms-request-id": [ - "64cd6bb1-6090-49b2-9f90-870a507d4f7f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11961" - ], - "x-ms-correlation-request-id": [ - "4a91bc95-b4fe-4a39-80b4-740a80d87d28" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T175018Z:4a91bc95-b4fe-4a39-80b4-740a80d87d28" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:50:17 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/operationResults/64cd6bb1-6090-49b2-9f90-870a507d4f7f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2Nhc3NhbmRyYUNsdXN0ZXJzL21hbmFnZWRjbHVzdGVyNTQvb3BlcmF0aW9uUmVzdWx0cy82NGNkNmJiMS02MDkwLTQ5YjItOWY5MC04NzBhNTA3ZDRmN2Y/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/operationResults/64cd6bb1-6090-49b2-9f90-870a507d4f7f?api-version=2021-03-01-preview" - ], - "x-ms-request-id": [ - "64cd6bb1-6090-49b2-9f90-870a507d4f7f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11960" - ], - "x-ms-correlation-request-id": [ - "02822cb2-8590-488f-a109-c2098e97bf46" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T175048Z:02822cb2-8590-488f-a109-c2098e97bf46" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:50:48 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/operationResults/64cd6bb1-6090-49b2-9f90-870a507d4f7f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2Nhc3NhbmRyYUNsdXN0ZXJzL21hbmFnZWRjbHVzdGVyNTQvb3BlcmF0aW9uUmVzdWx0cy82NGNkNmJiMS02MDkwLTQ5YjItOWY5MC04NzBhNTA3ZDRmN2Y/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/operationResults/64cd6bb1-6090-49b2-9f90-870a507d4f7f?api-version=2021-03-01-preview" - ], - "x-ms-request-id": [ - "64cd6bb1-6090-49b2-9f90-870a507d4f7f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11959" - ], - "x-ms-correlation-request-id": [ - "65a46f94-dc37-49a1-aa55-adf44bf3c30e" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T175119Z:65a46f94-dc37-49a1-aa55-adf44bf3c30e" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:51:18 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/operationResults/64cd6bb1-6090-49b2-9f90-870a507d4f7f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2Nhc3NhbmRyYUNsdXN0ZXJzL21hbmFnZWRjbHVzdGVyNTQvb3BlcmF0aW9uUmVzdWx0cy82NGNkNmJiMS02MDkwLTQ5YjItOWY5MC04NzBhNTA3ZDRmN2Y/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11958" - ], - "x-ms-request-id": [ - "7f3df13b-02c0-479c-a981-29f1e2413008" - ], - "x-ms-correlation-request-id": [ - "7f3df13b-02c0-479c-a981-29f1e2413008" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T175149Z:7f3df13b-02c0-479c-a981-29f1e2413008" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:51:48 GMT" - ], - "Content-Length": [ - "22" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourceGroups/CosmosDBResourceGroup9148/providers/Microsoft.DocumentDB/cassandraClusters/managedcluster54/operationResults/64cd6bb1-6090-49b2-9f90-870a507d4f7f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2Nhc3NhbmRyYUNsdXN0ZXJzL21hbmFnZWRjbHVzdGVyNTQvb3BlcmF0aW9uUmVzdWx0cy82NGNkNmJiMS02MDkwLTQ5YjItOWY5MC04NzBhNTA3ZDRmN2Y/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.1.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11957" - ], - "x-ms-request-id": [ - "cc2da25a-4885-4d82-9fa7-21621771d7aa" - ], - "x-ms-correlation-request-id": [ - "cc2da25a-4885-4d82-9fa7-21621771d7aa" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T175149Z:cc2da25a-4885-4d82-9fa7-21621771d7aa" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:51:48 GMT" - ], - "Content-Length": [ - "22" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourcegroups/CosmosDBResourceGroup9148/providers/Microsoft.Resources/deployments/vnet-deployment?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlZ3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDgvcHJvdmlkZXJzL01pY3Jvc29mdC5SZXNvdXJjZXMvZGVwbG95bWVudHMvdm5ldC1kZXBsb3ltZW50P2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "27cd8b47-1eba-489c-987f-54155b02e226" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtQ09TTU9TREJSRVNPVVJDRUdST1VQOTE0OC1WTkVUOjJEREVQTE9ZTUVOVC0iLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14997" - ], - "x-ms-request-id": [ - "0fbb7c9d-0ea9-49d1-b0b9-b6e4b477a042" - ], - "x-ms-correlation-request-id": [ - "0fbb7c9d-0ea9-49d1-b0b9-b6e4b477a042" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T175153Z:0fbb7c9d-0ea9-49d1-b0b9-b6e4b477a042" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:51:53 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtQ09TTU9TREJSRVNPVVJDRUdST1VQOTE0OC1WTkVUOjJEREVQTE9ZTUVOVC0iLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWtSbGNHeHZlVzFsYm5SRVpXeGxkR2x2YmtwdllpMUhUbE10UTA5VFRVOVRSRUpTUlZOUFZWSkRSVWRTVDFWUU9URTBPQzFXVGtWVU9qSkVSRVZRVEU5WlRVVk9WQzBpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SWlmUT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "376dc5d7-2370-406a-9212-0b093d9e5288" - ], - "x-ms-correlation-request-id": [ - "376dc5d7-2370-406a-9212-0b093d9e5288" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T175208Z:376dc5d7-2370-406a-9212-0b093d9e5288" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:52:08 GMT" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 204 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtQ09TTU9TREJSRVNPVVJDRUdST1VQOTE0OC1WTkVUOjJEREVQTE9ZTUVOVC0iLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWtSbGNHeHZlVzFsYm5SRVpXeGxkR2x2YmtwdllpMUhUbE10UTA5VFRVOVRSRUpTUlZOUFZWSkRSVWRTVDFWUU9URTBPQzFXVGtWVU9qSkVSRVZRVEU5WlRVVk9WQzBpTENKcWIySk1iMk5oZEdsdmJpSTZJbVZoYzNSMWN6SWlmUT9hcGktdmVyc2lvbj0yMDE1LTExLTAx", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-request-id": [ - "4b2316d0-24aa-4d56-a668-52759a3def06" - ], - "x-ms-correlation-request-id": [ - "4b2316d0-24aa-4d56-a668-52759a3def06" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T175209Z:4b2316d0-24aa-4d56-a668-52759a3def06" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:52:08 GMT" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "", - "StatusCode": 204 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/resourcegroups/CosmosDBResourceGroup9148?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL3Jlc291cmNlZ3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDkxNDg/YXBpLXZlcnNpb249MjAxNS0xMS0wMQ==", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "b351e354-a882-4549-8a6b-3278cf530387" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DT1NNT1NEQlJFU09VUkNFR1JPVVA5MTQ4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14996" - ], - "x-ms-request-id": [ - "eda7da24-834b-49ab-a589-31960d61ad5f" - ], - "x-ms-correlation-request-id": [ - "eda7da24-834b-49ab-a589-31960d61ad5f" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T175210Z:eda7da24-834b-49ab-a589-31960d61ad5f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:52:09 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DT1NNT1NEQlJFU09VUkNFR1JPVVA5MTQ4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVDFOTlQxTkVRbEpGVTA5VlVrTkZSMUpQVlZBNU1UUTRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DT1NNT1NEQlJFU09VUkNFR1JPVVA5MTQ4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-request-id": [ - "7bec2c4a-02a1-4b26-b3f5-76a53759c107" - ], - "x-ms-correlation-request-id": [ - "7bec2c4a-02a1-4b26-b3f5-76a53759c107" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T175225Z:7bec2c4a-02a1-4b26-b3f5-76a53759c107" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:52:24 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DT1NNT1NEQlJFU09VUkNFR1JPVVA5MTQ4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVDFOTlQxTkVRbEpGVTA5VlVrTkZSMUpQVlZBNU1UUTRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DT1NNT1NEQlJFU09VUkNFR1JPVVA5MTQ4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-request-id": [ - "edd59666-1ab4-4e76-b2de-dd739a67626a" - ], - "x-ms-correlation-request-id": [ - "edd59666-1ab4-4e76-b2de-dd739a67626a" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T175240Z:edd59666-1ab4-4e76-b2de-dd739a67626a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:52:40 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DT1NNT1NEQlJFU09VUkNFR1JPVVA5MTQ4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVDFOTlQxTkVRbEpGVTA5VlVrTkZSMUpQVlZBNU1UUTRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DT1NNT1NEQlJFU09VUkNFR1JPVVA5MTQ4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11995" - ], - "x-ms-request-id": [ - "710cac62-7a11-4596-a503-6253d8392825" - ], - "x-ms-correlation-request-id": [ - "710cac62-7a11-4596-a503-6253d8392825" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T175255Z:710cac62-7a11-4596-a503-6253d8392825" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:52:55 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DT1NNT1NEQlJFU09VUkNFR1JPVVA5MTQ4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVDFOTlQxTkVRbEpGVTA5VlVrTkZSMUpQVlZBNU1UUTRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DT1NNT1NEQlJFU09VUkNFR1JPVVA5MTQ4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" - ], - "x-ms-request-id": [ - "9cfd8c1d-cb8f-48ff-adc5-d7f2371c394f" - ], - "x-ms-correlation-request-id": [ - "9cfd8c1d-cb8f-48ff-adc5-d7f2371c394f" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T175310Z:9cfd8c1d-cb8f-48ff-adc5-d7f2371c394f" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:53:10 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DT1NNT1NEQlJFU09VUkNFR1JPVVA5MTQ4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVDFOTlQxTkVRbEpGVTA5VlVrTkZSMUpQVlZBNU1UUTRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DT1NNT1NEQlJFU09VUkNFR1JPVVA5MTQ4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11993" - ], - "x-ms-request-id": [ - "ec53306c-b7db-4241-aa47-c1e93689116b" - ], - "x-ms-correlation-request-id": [ - "ec53306c-b7db-4241-aa47-c1e93689116b" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T175326Z:ec53306c-b7db-4241-aa47-c1e93689116b" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:53:25 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DT1NNT1NEQlJFU09VUkNFR1JPVVA5MTQ4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVDFOTlQxTkVRbEpGVTA5VlVrTkZSMUpQVlZBNU1UUTRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DT1NNT1NEQlJFU09VUkNFR1JPVVA5MTQ4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2015-11-01" - ], - "Retry-After": [ - "15" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11992" - ], - "x-ms-request-id": [ - "cb11ef9b-2244-4bfa-93c7-dd157f9381de" - ], - "x-ms-correlation-request-id": [ - "cb11ef9b-2244-4bfa-93c7-dd157f9381de" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T175341Z:cb11ef9b-2244-4bfa-93c7-dd157f9381de" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:53:40 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DT1NNT1NEQlJFU09VUkNFR1JPVVA5MTQ4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVDFOTlQxTkVRbEpGVTA5VlVrTkZSMUpQVlZBNU1UUTRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" - ], - "x-ms-request-id": [ - "028cef56-cf17-4c87-9448-3e6b13f7debd" - ], - "x-ms-correlation-request-id": [ - "028cef56-cf17-4c87-9448-3e6b13f7debd" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T175356Z:028cef56-cf17-4c87-9448-3e6b13f7debd" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:53:56 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dd31ecae-4522-468e-8b27-5befd051dd53/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DT1NNT1NEQlJFU09VUkNFR1JPVVA5MTQ4LUVBU1RVUzIiLCJqb2JMb2NhdGlvbiI6ImVhc3R1czIifQ?api-version=2015-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGQzMWVjYWUtNDUyMi00NjhlLThiMjctNWJlZmQwNTFkZDUzL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFEVDFOTlQxTkVRbEpGVTA5VlVrTkZSMUpQVlZBNU1UUTRMVVZCVTFSVlV6SWlMQ0pxYjJKTWIyTmhkR2x2YmlJNkltVmhjM1IxY3pJaWZRP2FwaS12ZXJzaW9uPTIwMTUtMTEtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.28207.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11990" - ], - "x-ms-request-id": [ - "9b98e2b9-436d-44b9-9508-12188c320779" - ], - "x-ms-correlation-request-id": [ - "9b98e2b9-436d-44b9-9508-12188c320779" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210304T175356Z:9b98e2b9-436d-44b9-9508-12188c320779" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Thu, 04 Mar 2021 17:53:56 GMT" - ], - "Expires": [ - "-1" - ], - "Content-Length": [ - "0" - ] - }, - "ResponseBody": "", - "StatusCode": 200 - } - ], - "Names": { - "CreateResourceGroup": [ - "CosmosDBResourceGroup9148" - ], - "ManagedCassandraCRUDTests": [ - "managedcluster54", - "managedDC5187" - ], - "CreateVirtualNetwork": [ - "CosmosDBVirtualNetwork840" - ] - }, - "Variables": { - "SubscriptionId": "dd31ecae-4522-468e-8b27-5befd051dd53" - } -} \ No newline at end of file diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/MongoResourcesOperationsTests/MongoCRUDTests.json b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/MongoResourcesOperationsTests/MongoCRUDTests.json index dc553138690d..e8c88b16515c 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/MongoResourcesOperationsTests/MongoCRUDTests.json +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/MongoResourcesOperationsTests/MongoCRUDTests.json @@ -1,90 +1,21 @@ { "Entries": [ { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002/graphs/gremlinGraphName1002?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXMvZGF0YWJhc2VOYW1lMTAwMi9ncmFwaHMvZ3JlbWxpbkdyYXBoTmFtZTEwMDI/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "b725f84b-455d-4c4e-b418-79d6745bc77e" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29916.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002/graphs/gremlinGraphName1002/operationResults/e5f57edc-14f9-489f-92ab-f7144743df73?api-version=2021-04-15" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e5f57edc-14f9-489f-92ab-f7144743df73?api-version=2021-04-15" - ], - "x-ms-request-id": [ - "e5f57edc-14f9-489f-92ab-f7144743df73" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-correlation-request-id": [ - "d9c1f30e-be4a-4ac0-b271-174883b69047" - ], - "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T175053Z:d9c1f30e-be4a-4ac0-b271-174883b69047" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 27 Apr 2021 17:50:52 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/providers/Microsoft.DocumentDB/databaseAccountNames/db001?api-version=2021-04-15", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnROYW1lcy9kYjAwMT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/providers/Microsoft.DocumentDB/databaseAccountNames/db003?api-version=2021-06-15", + "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnROYW1lcy9kYjAwMz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "HEAD", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "adcda962-10be-46bc-a68e-5970da812746" + "2dc92efd-d874-4754-a4c2-24d03a263aa7" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -99,7 +30,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-activity-id": [ - "adcda962-10be-46bc-a68e-5970da812746" + "2dc92efd-d874-4754-a4c2-24d03a263aa7" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -108,19 +39,19 @@ "11999" ], "x-ms-request-id": [ - "3b95ef45-ffce-4e0a-83e5-1f5d6a23c188" + "655c0357-ab3b-45d6-95bc-c6a657efdb33" ], "x-ms-correlation-request-id": [ - "3b95ef45-ffce-4e0a-83e5-1f5d6a23c188" + "655c0357-ab3b-45d6-95bc-c6a657efdb33" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T175054Z:3b95ef45-ffce-4e0a-83e5-1f5d6a23c188" + "WESTUS2:20210616T055600Z:655c0357-ab3b-45d6-95bc-c6a657efdb33" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:50:53 GMT" + "Wed, 16 Jun 2021 05:55:59 GMT" ], "Content-Length": [ "0" @@ -130,159 +61,21 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXMvZGF0YWJhc2VOYW1lMTAwMj9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "1b61aaa2-339a-41df-8178-1cd490dda0be" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29916.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002/operationResults/c075c014-202b-43d6-81f2-715f24d1de99?api-version=2021-04-15" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/c075c014-202b-43d6-81f2-715f24d1de99?api-version=2021-04-15" - ], - "x-ms-request-id": [ - "c075c014-202b-43d6-81f2-715f24d1de99" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-correlation-request-id": [ - "41090c33-2e13-45d7-b9ab-ec9bafb7bd18" - ], - "x-ms-routing-request-id": [ - "WESTUS:20210427T175054Z:41090c33-2e13-45d7-b9ab-ec9bafb7bd18" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 27 Apr 2021 17:50:54 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName21002?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXMvZGF0YWJhc2VOYW1lMjEwMDI/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "42aafa5b-708b-4797-a18e-fd75e095b7e5" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29916.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName21002/operationResults/caee984f-c115-4595-8a29-2615d2562c07?api-version=2021-04-15" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/caee984f-c115-4595-8a29-2615d2562c07?api-version=2021-04-15" - ], - "x-ms-request-id": [ - "caee984f-c115-4595-8a29-2615d2562c07" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-correlation-request-id": [ - "f6ae01df-bca0-4216-8239-75c24bea33af" - ], - "x-ms-routing-request-id": [ - "WESTUS:20210427T175054Z:f6ae01df-bca0-4216-8239-75c24bea33af" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 27 Apr 2021 17:50:53 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/databaseName3668?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYXRhYmFzZU5hbWUzNjY4P2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName3668?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDMvbW9uZ29kYkRhdGFiYXNlcy9kYXRhYmFzZU5hbWUzNjY4P2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName3668\"\r\n },\r\n \"options\": {}\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "644a9ed4-698c-49a9-a7f4-f8665ddd3434" + "fe6e3634-2a62-4aa9-aeef-7e18885f082a" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ @@ -300,19 +93,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/databaseName3668/operationResults/f49fedd3-076a-432f-b2aa-82f6515b00ba?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName3668/operationResults/d10c4c4d-76a3-4fc4-b719-1f37c4a5d4de?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/f49fedd3-076a-432f-b2aa-82f6515b00ba?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d10c4c4d-76a3-4fc4-b719-1f37c4a5d4de?api-version=2021-06-15" ], "x-ms-request-id": [ - "f49fedd3-076a-432f-b2aa-82f6515b00ba" + "d10c4c4d-76a3-4fc4-b719-1f37c4a5d4de" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -321,16 +114,16 @@ "1199" ], "x-ms-correlation-request-id": [ - "9d9e6e7a-bbe3-4da9-9530-d77c9b26960b" + "d4815f02-0d53-4fa5-9908-533125d2e16e" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T175055Z:9d9e6e7a-bbe3-4da9-9530-d77c9b26960b" + "WESTUS2:20210616T055601Z:d4815f02-0d53-4fa5-9908-533125d2e16e" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:50:54 GMT" + "Wed, 16 Jun 2021 05:56:00 GMT" ], "Content-Length": [ "21" @@ -343,15 +136,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/f49fedd3-076a-432f-b2aa-82f6515b00ba?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2Y0OWZlZGQzLTA3NmEtNDMyZi1iMmFhLTgyZjY1MTViMDBiYT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d10c4c4d-76a3-4fc4-b719-1f37c4a5d4de?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2QxMGM0YzRkLTc2YTMtNGZjNC1iNzE5LTFmMzdjNGE1ZDRkZT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -366,7 +159,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -375,19 +168,19 @@ "11999" ], "x-ms-request-id": [ - "26f10753-d9ae-4216-b887-52b4c808fa14" + "8d71120c-b919-4c5c-b60c-eb433bd4c1f5" ], "x-ms-correlation-request-id": [ - "26f10753-d9ae-4216-b887-52b4c808fa14" + "8d71120c-b919-4c5c-b60c-eb433bd4c1f5" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T175125Z:26f10753-d9ae-4216-b887-52b4c808fa14" + "WESTUS2:20210616T055631Z:8d71120c-b919-4c5c-b60c-eb433bd4c1f5" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:51:25 GMT" + "Wed, 16 Jun 2021 05:56:31 GMT" ], "Content-Length": [ "22" @@ -400,15 +193,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/databaseName3668?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYXRhYmFzZU5hbWUzNjY4P2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName3668?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDMvbW9uZ29kYkRhdGFiYXNlcy9kYXRhYmFzZU5hbWUzNjY4P2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -423,7 +216,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -432,46 +225,46 @@ "11998" ], "x-ms-request-id": [ - "d482e1fb-7295-4d5a-a96d-354503b580cb" + "3720c028-020e-4e26-bf31-8f7324ab1fe6" ], "x-ms-correlation-request-id": [ - "d482e1fb-7295-4d5a-a96d-354503b580cb" + "3720c028-020e-4e26-bf31-8f7324ab1fe6" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T175126Z:d482e1fb-7295-4d5a-a96d-354503b580cb" + "WESTUS2:20210616T055632Z:3720c028-020e-4e26-bf31-8f7324ab1fe6" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:51:25 GMT" + "Wed, 16 Jun 2021 05:56:31 GMT" ], "Content-Length": [ - "417" + "331" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/databaseName3668\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases\",\r\n \"name\": \"databaseName3668\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName3668\",\r\n \"_rid\": \"20hdAA==\",\r\n \"_etag\": \"\\\"00003300-0000-0200-0000-60884f040000\\\"\",\r\n \"_ts\": 1619545860\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName3668\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases\",\r\n \"name\": \"databaseName3668\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName3668\"\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/databaseName3668?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYXRhYmFzZU5hbWUzNjY4P2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName3668?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDMvbW9uZ29kYkRhdGFiYXNlcy9kYXRhYmFzZU5hbWUzNjY4P2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9450866a-99f6-4683-9814-c54da35b4e39" + "65153400-22c1-4e58-acad-34dbdadb6b55" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -486,7 +279,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -495,46 +288,46 @@ "11997" ], "x-ms-request-id": [ - "bc43a898-87ce-4ce4-9ecd-6f9fce066b52" + "fd17d084-8897-44b1-96d7-8a645ad05c53" ], "x-ms-correlation-request-id": [ - "bc43a898-87ce-4ce4-9ecd-6f9fce066b52" + "fd17d084-8897-44b1-96d7-8a645ad05c53" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T175126Z:bc43a898-87ce-4ce4-9ecd-6f9fce066b52" + "WESTUS2:20210616T055632Z:fd17d084-8897-44b1-96d7-8a645ad05c53" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:51:26 GMT" + "Wed, 16 Jun 2021 05:56:32 GMT" ], "Content-Length": [ - "417" + "331" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/databaseName3668\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases\",\r\n \"name\": \"databaseName3668\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName3668\",\r\n \"_rid\": \"20hdAA==\",\r\n \"_etag\": \"\\\"00003300-0000-0200-0000-60884f040000\\\"\",\r\n \"_ts\": 1619545860\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName3668\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases\",\r\n \"name\": \"databaseName3668\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName3668\"\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/databaseName23668?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYXRhYmFzZU5hbWUyMzY2OD9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName23668?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDMvbW9uZ29kYkRhdGFiYXNlcy9kYXRhYmFzZU5hbWUyMzY2OD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName23668\"\r\n },\r\n \"options\": {\r\n \"throughput\": 700\r\n }\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "08a534f3-0ee3-45c5-9bec-fd01226ecd28" + "cd096118-1667-463c-be5a-be80f6fa06a9" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ @@ -552,19 +345,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/databaseName23668/operationResults/2895e18a-a169-4523-8d59-5d6a487cd1bc?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName23668/operationResults/217189a6-b9d7-42f1-b5c9-1f95ea59d233?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2895e18a-a169-4523-8d59-5d6a487cd1bc?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/217189a6-b9d7-42f1-b5c9-1f95ea59d233?api-version=2021-06-15" ], "x-ms-request-id": [ - "2895e18a-a169-4523-8d59-5d6a487cd1bc" + "217189a6-b9d7-42f1-b5c9-1f95ea59d233" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -573,16 +366,16 @@ "1198" ], "x-ms-correlation-request-id": [ - "e2db0a1c-b9cb-4f35-9ae8-990de0a41fae" + "a845117b-6b08-4ba2-ba7b-acc550e744ab" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T175127Z:e2db0a1c-b9cb-4f35-9ae8-990de0a41fae" + "WESTUS2:20210616T055633Z:a845117b-6b08-4ba2-ba7b-acc550e744ab" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:51:27 GMT" + "Wed, 16 Jun 2021 05:56:32 GMT" ], "Content-Length": [ "21" @@ -595,15 +388,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2895e18a-a169-4523-8d59-5d6a487cd1bc?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI4OTVlMThhLWExNjktNDUyMy04ZDU5LTVkNmE0ODdjZDFiYz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/217189a6-b9d7-42f1-b5c9-1f95ea59d233?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzIxNzE4OWE2LWI5ZDctNDJmMS1iNWM5LTFmOTVlYTU5ZDIzMz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -618,7 +411,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -627,19 +420,19 @@ "11996" ], "x-ms-request-id": [ - "8f30c043-7a61-44ae-82b2-1bc10ab9f436" + "8ddef8b1-7ca6-4cf0-bd20-c249ea342b49" ], "x-ms-correlation-request-id": [ - "8f30c043-7a61-44ae-82b2-1bc10ab9f436" + "8ddef8b1-7ca6-4cf0-bd20-c249ea342b49" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T175157Z:8f30c043-7a61-44ae-82b2-1bc10ab9f436" + "WESTUS2:20210616T055703Z:8ddef8b1-7ca6-4cf0-bd20-c249ea342b49" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:51:57 GMT" + "Wed, 16 Jun 2021 05:57:02 GMT" ], "Content-Length": [ "22" @@ -652,15 +445,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/databaseName23668?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYXRhYmFzZU5hbWUyMzY2OD9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName23668?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDMvbW9uZ29kYkRhdGFiYXNlcy9kYXRhYmFzZU5hbWUyMzY2OD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -675,7 +468,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -684,46 +477,46 @@ "11995" ], "x-ms-request-id": [ - "97cf7c1b-06eb-4ad2-b93e-bffede0911ff" + "65d47f1d-d703-4aff-a70d-2d3562ea5b14" ], "x-ms-correlation-request-id": [ - "97cf7c1b-06eb-4ad2-b93e-bffede0911ff" + "65d47f1d-d703-4aff-a70d-2d3562ea5b14" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T175157Z:97cf7c1b-06eb-4ad2-b93e-bffede0911ff" + "WESTUS2:20210616T055703Z:65d47f1d-d703-4aff-a70d-2d3562ea5b14" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:51:57 GMT" + "Wed, 16 Jun 2021 05:57:03 GMT" ], "Content-Length": [ - "420" + "334" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/databaseName23668\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases\",\r\n \"name\": \"databaseName23668\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName23668\",\r\n \"_rid\": \"JxQ0AA==\",\r\n \"_etag\": \"\\\"00003500-0000-0200-0000-60884f280000\\\"\",\r\n \"_ts\": 1619545896\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName23668\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases\",\r\n \"name\": \"databaseName23668\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName23668\"\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDMvbW9uZ29kYkRhdGFiYXNlcz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "91dfe18f-a526-4987-864f-1beda1e6199c" + "4cf89757-6ba2-459f-814b-db970c8f357d" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -738,7 +531,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -747,46 +540,46 @@ "11994" ], "x-ms-request-id": [ - "f13de7f4-bd19-4325-bad0-ea40c9469666" + "7a153e4e-b0a5-4fa5-a310-54f3c604f446" ], "x-ms-correlation-request-id": [ - "f13de7f4-bd19-4325-bad0-ea40c9469666" + "7a153e4e-b0a5-4fa5-a310-54f3c604f446" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T175157Z:f13de7f4-bd19-4325-bad0-ea40c9469666" + "WESTUS2:20210616T055703Z:7a153e4e-b0a5-4fa5-a310-54f3c604f446" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:51:57 GMT" + "Wed, 16 Jun 2021 05:57:03 GMT" ], "Content-Length": [ - "850" + "678" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/databaseName23668\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases\",\r\n \"name\": \"databaseName23668\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName23668\",\r\n \"_rid\": \"JxQ0AA==\",\r\n \"_etag\": \"\\\"00003500-0000-0200-0000-60884f280000\\\"\",\r\n \"_ts\": 1619545896\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/databaseName3668\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases\",\r\n \"name\": \"databaseName3668\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName3668\",\r\n \"_rid\": \"20hdAA==\",\r\n \"_etag\": \"\\\"00003300-0000-0200-0000-60884f040000\\\"\",\r\n \"_ts\": 1619545860\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName23668\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases\",\r\n \"name\": \"databaseName23668\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName23668\"\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName3668\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases\",\r\n \"name\": \"databaseName3668\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName3668\"\r\n }\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/databaseName23668/throughputSettings/default?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYXRhYmFzZU5hbWUyMzY2OC90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName23668/throughputSettings/default?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDMvbW9uZ29kYkRhdGFiYXNlcy9kYXRhYmFzZU5hbWUyMzY2OC90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e96725cf-3c1a-4f80-b456-eb53b506a130" + "9f91ac3f-e632-40f3-bc5e-a7bd48f2b138" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -801,7 +594,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -810,19 +603,19 @@ "11993" ], "x-ms-request-id": [ - "51d9c157-877a-4b46-9adb-970ad46d23e7" + "424b94a4-39d5-4b9a-966b-a96282ff07f0" ], "x-ms-correlation-request-id": [ - "51d9c157-877a-4b46-9adb-970ad46d23e7" + "424b94a4-39d5-4b9a-966b-a96282ff07f0" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T175157Z:51d9c157-877a-4b46-9adb-970ad46d23e7" + "WESTUS2:20210616T055704Z:424b94a4-39d5-4b9a-966b-a96282ff07f0" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:51:57 GMT" + "Wed, 16 Jun 2021 05:57:03 GMT" ], "Content-Length": [ "385" @@ -831,25 +624,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/databaseName23668/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings\",\r\n \"name\": \"gg7c\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 700,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName23668/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings\",\r\n \"name\": \"wwh5\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 700,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/databaseName3668/collections/collectionName3668?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYXRhYmFzZU5hbWUzNjY4L2NvbGxlY3Rpb25zL2NvbGxlY3Rpb25OYW1lMzY2OD9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName3668/collections/collectionName3668?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDMvbW9uZ29kYkRhdGFiYXNlcy9kYXRhYmFzZU5hbWUzNjY4L2NvbGxlY3Rpb25zL2NvbGxlY3Rpb25OYW1lMzY2OD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"collectionName3668\",\r\n \"shardKey\": {\r\n \"partitionKey\": \"Hash\"\r\n }\r\n },\r\n \"options\": {}\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "f7cbbd40-9b1f-40d1-9b7d-b91f77fa6475" + "1d53ba09-688c-4e82-b8f3-65bd2e30d9ff" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ @@ -867,19 +660,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/databaseName3668/collections/collectionName3668/operationResults/9dcafcf7-c91f-4842-af80-8a284969fb7e?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName3668/collections/collectionName3668/operationResults/b741561e-fd86-4462-8541-7fe8f59fbdfd?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/9dcafcf7-c91f-4842-af80-8a284969fb7e?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/b741561e-fd86-4462-8541-7fe8f59fbdfd?api-version=2021-06-15" ], "x-ms-request-id": [ - "9dcafcf7-c91f-4842-af80-8a284969fb7e" + "b741561e-fd86-4462-8541-7fe8f59fbdfd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -888,16 +681,16 @@ "1197" ], "x-ms-correlation-request-id": [ - "99e98225-a9aa-4eb4-a663-08c2a99c7bb4" + "aea898bb-cfd8-4739-b1f0-f7d6478cd740" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T175159Z:99e98225-a9aa-4eb4-a663-08c2a99c7bb4" + "WESTUS2:20210616T055705Z:aea898bb-cfd8-4739-b1f0-f7d6478cd740" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:51:58 GMT" + "Wed, 16 Jun 2021 05:57:04 GMT" ], "Content-Length": [ "21" @@ -910,15 +703,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/9dcafcf7-c91f-4842-af80-8a284969fb7e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzlkY2FmY2Y3LWM5MWYtNDg0Mi1hZjgwLThhMjg0OTY5ZmI3ZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/b741561e-fd86-4462-8541-7fe8f59fbdfd?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2I3NDE1NjFlLWZkODYtNDQ2Mi04NTQxLTdmZThmNTlmYmRmZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -933,7 +726,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -942,19 +735,19 @@ "11992" ], "x-ms-request-id": [ - "da25da2e-338c-4fda-b19e-d6a5c2e53529" + "1fe7ccd7-7456-4cc2-892f-725824f13ee9" ], "x-ms-correlation-request-id": [ - "da25da2e-338c-4fda-b19e-d6a5c2e53529" + "1fe7ccd7-7456-4cc2-892f-725824f13ee9" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T175229Z:da25da2e-338c-4fda-b19e-d6a5c2e53529" + "WESTUS2:20210616T055735Z:1fe7ccd7-7456-4cc2-892f-725824f13ee9" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:52:28 GMT" + "Wed, 16 Jun 2021 05:57:34 GMT" ], "Content-Length": [ "22" @@ -967,15 +760,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/databaseName3668/collections/collectionName3668?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYXRhYmFzZU5hbWUzNjY4L2NvbGxlY3Rpb25zL2NvbGxlY3Rpb25OYW1lMzY2OD9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName3668/collections/collectionName3668?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDMvbW9uZ29kYkRhdGFiYXNlcy9kYXRhYmFzZU5hbWUzNjY4L2NvbGxlY3Rpb25zL2NvbGxlY3Rpb25OYW1lMzY2OD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -990,7 +783,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -999,46 +792,46 @@ "11991" ], "x-ms-request-id": [ - "80c9b953-44cd-432f-9afe-c6103fbbdb35" + "5e064177-dd5b-4bc9-ab7f-332e7a725832" ], "x-ms-correlation-request-id": [ - "80c9b953-44cd-432f-9afe-c6103fbbdb35" + "5e064177-dd5b-4bc9-ab7f-332e7a725832" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T175229Z:80c9b953-44cd-432f-9afe-c6103fbbdb35" + "WESTUS2:20210616T055735Z:5e064177-dd5b-4bc9-ab7f-332e7a725832" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:52:28 GMT" + "Wed, 16 Jun 2021 05:57:35 GMT" ], "Content-Length": [ - "610" + "450" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/databaseName3668/collections/collectionName3668\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections\",\r\n \"name\": \"collectionName3668\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"collectionName3668\",\r\n \"_rid\": \"20hdANzkn7I=\",\r\n \"_etag\": \"\\\"00003900-0000-0200-0000-60884f460000\\\"\",\r\n \"_ts\": 1619545926,\r\n \"shardKey\": {\r\n \"partitionKey\": \"Hash\"\r\n },\r\n \"indexes\": [\r\n {\r\n \"key\": {\r\n \"keys\": [\r\n \"_id\"\r\n ]\r\n },\r\n \"options\": {}\r\n },\r\n {\r\n \"key\": {\r\n \"keys\": [\r\n \"DocumentDBDefaultIndex\"\r\n ]\r\n },\r\n \"options\": {}\r\n }\r\n ]\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName3668/collections/collectionName3668\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections\",\r\n \"name\": \"collectionName3668\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"collectionName3668\",\r\n \"shardKey\": {\r\n \"partitionKey\": \"Hash\"\r\n },\r\n \"indexes\": [\r\n {\r\n \"key\": {\r\n \"keys\": [\r\n \"_id\"\r\n ]\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/databaseName3668/collections?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDEvbW9uZ29kYkRhdGFiYXNlcy9kYXRhYmFzZU5hbWUzNjY4L2NvbGxlY3Rpb25zP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName3668/collections?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDMvbW9uZ29kYkRhdGFiYXNlcy9kYXRhYmFzZU5hbWUzNjY4L2NvbGxlY3Rpb25zP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "298ff12f-03f0-4cd5-b877-2aa626ec5233" + "c7a1b929-978f-45f8-99b3-3ba46fe93456" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1053,7 +846,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1062,33 +855,33 @@ "11990" ], "x-ms-request-id": [ - "f3f9edd7-8ad7-43e9-a6a2-447baafe33f5" + "74b905d2-24b3-45c3-aab0-42b53e9b07e7" ], "x-ms-correlation-request-id": [ - "f3f9edd7-8ad7-43e9-a6a2-447baafe33f5" + "74b905d2-24b3-45c3-aab0-42b53e9b07e7" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T175229Z:f3f9edd7-8ad7-43e9-a6a2-447baafe33f5" + "WESTUS2:20210616T055736Z:74b905d2-24b3-45c3-aab0-42b53e9b07e7" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:52:29 GMT" + "Wed, 16 Jun 2021 05:57:35 GMT" ], "Content-Length": [ - "622" + "462" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db001/mongodbDatabases/databaseName3668/collections/collectionName3668\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections\",\r\n \"name\": \"collectionName3668\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"collectionName3668\",\r\n \"_rid\": \"20hdANzkn7I=\",\r\n \"_etag\": \"\\\"00003900-0000-0200-0000-60884f460000\\\"\",\r\n \"_ts\": 1619545926,\r\n \"shardKey\": {\r\n \"partitionKey\": \"Hash\"\r\n },\r\n \"indexes\": [\r\n {\r\n \"key\": {\r\n \"keys\": [\r\n \"_id\"\r\n ]\r\n },\r\n \"options\": {}\r\n },\r\n {\r\n \"key\": {\r\n \"keys\": [\r\n \"DocumentDBDefaultIndex\"\r\n ]\r\n },\r\n \"options\": {}\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName3668/collections/collectionName3668\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections\",\r\n \"name\": \"collectionName3668\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"collectionName3668\",\r\n \"shardKey\": {\r\n \"partitionKey\": \"Hash\"\r\n },\r\n \"indexes\": [\r\n {\r\n \"key\": {\r\n \"keys\": [\r\n \"_id\"\r\n ]\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 } ], "Names": {}, "Variables": { - "SubscriptionId": "80be3961-0521-4a0a-8570-5cd5a4e2f98c" + "SubscriptionId": "259fbb24-9bcd-4cfc-865c-fc33b22fe38a" } } \ No newline at end of file diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/OperationsTests/ListOperationsTest.json b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/OperationsTests/ListOperationsTest.json index 836d2deb7a4a..04401d09d6ee 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/OperationsTests/ListOperationsTest.json +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/OperationsTests/ListOperationsTest.json @@ -1,21 +1,21 @@ { "Entries": [ { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510/tables/tableName2510?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI4MTkyL2Nhc3NhbmRyYUtleXNwYWNlcy9rZXlzcGFjZU5hbWUyNTEwL3RhYmxlcy90YWJsZU5hbWUyNTEwP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName3668/collections/collectionName3668?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDMvbW9uZ29kYkRhdGFiYXNlcy9kYXRhYmFzZU5hbWUzNjY4L2NvbGxlY3Rpb25zL2NvbGxlY3Rpb25OYW1lMzY2OD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "d4ad12ec-c2e2-4fd5-a06d-4cbc389fcbfd" + "0c6025e2-8d26-4aff-9ff8-ccdc70740175" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -27,19 +27,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510/tables/tableName2510/operationResults/47f91efc-af4c-4ae4-98a3-ae6cbe6dcce9?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName3668/collections/collectionName3668/operationResults/75e988ac-7aa6-46c9-bdf2-174e54e1ada6?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/47f91efc-af4c-4ae4-98a3-ae6cbe6dcce9?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/75e988ac-7aa6-46c9-bdf2-174e54e1ada6?api-version=2021-06-15" ], "x-ms-request-id": [ - "47f91efc-af4c-4ae4-98a3-ae6cbe6dcce9" + "75e988ac-7aa6-46c9-bdf2-174e54e1ada6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -48,16 +48,16 @@ "14999" ], "x-ms-correlation-request-id": [ - "1992c0d9-b03e-4df3-b030-ec8006aa1317" + "6ff402f4-4519-4baf-ba3d-35a2b2705fb0" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T174916Z:1992c0d9-b03e-4df3-b030-ec8006aa1317" + "WESTUS2:20210616T055736Z:6ff402f4-4519-4baf-ba3d-35a2b2705fb0" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:49:15 GMT" + "Wed, 16 Jun 2021 05:57:35 GMT" ], "Content-Length": [ "21" @@ -70,21 +70,21 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName22510?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI4MTkyL2Nhc3NhbmRyYUtleXNwYWNlcy9rZXlzcGFjZU5hbWUyMjUxMD9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName3668?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDMvbW9uZ29kYkRhdGFiYXNlcy9kYXRhYmFzZU5hbWUzNjY4P2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ee9a5f51-431f-4d10-91bf-1f287761840d" + "653b0db0-aeed-48ad-b700-38825234aee3" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -96,19 +96,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName22510/operationResults/f1b8a15b-4fa9-4ddf-8303-e5767c69b47f?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName3668/operationResults/50c90a21-2080-4fc3-accf-3668b34e282d?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/f1b8a15b-4fa9-4ddf-8303-e5767c69b47f?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/50c90a21-2080-4fc3-accf-3668b34e282d?api-version=2021-06-15" ], "x-ms-request-id": [ - "f1b8a15b-4fa9-4ddf-8303-e5767c69b47f" + "50c90a21-2080-4fc3-accf-3668b34e282d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -117,16 +117,16 @@ "14999" ], "x-ms-correlation-request-id": [ - "c22fca1e-ed46-46d4-902a-fb431af3046a" + "fdd4b628-3857-43ab-8c0f-a8cc177f0a60" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174916Z:c22fca1e-ed46-46d4-902a-fb431af3046a" + "WESTUS2:20210616T055737Z:fdd4b628-3857-43ab-8c0f-a8cc177f0a60" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:49:15 GMT" + "Wed, 16 Jun 2021 05:57:37 GMT" ], "Content-Length": [ "21" @@ -139,21 +139,21 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI4MTkyL2Nhc3NhbmRyYUtleXNwYWNlcy9rZXlzcGFjZU5hbWUyNTEwP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName23668?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIwMDMvbW9uZ29kYkRhdGFiYXNlcy9kYXRhYmFzZU5hbWUyMzY2OD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1344f468-d3b2-4b34-b0a4-53fe692140bd" + "9d4f2558-322e-49ba-846b-e907e043d736" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -165,19 +165,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db8192/cassandraKeyspaces/keyspaceName2510/operationResults/6442daee-a2dd-4f02-9b3a-a73c49fcc4d4?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db003/mongodbDatabases/databaseName23668/operationResults/dde53b23-ff05-478e-81d8-ccc2e5f5f4e0?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/6442daee-a2dd-4f02-9b3a-a73c49fcc4d4?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/dde53b23-ff05-478e-81d8-ccc2e5f5f4e0?api-version=2021-06-15" ], "x-ms-request-id": [ - "6442daee-a2dd-4f02-9b3a-a73c49fcc4d4" + "dde53b23-ff05-478e-81d8-ccc2e5f5f4e0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -186,16 +186,16 @@ "14999" ], "x-ms-correlation-request-id": [ - "365d4c18-b99a-4f25-a706-b7fbda1e4444" + "df4e9d4b-4977-4f68-9f59-d9980b9ce3c7" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174916Z:365d4c18-b99a-4f25-a706-b7fbda1e4444" + "WESTUS2:20210616T055737Z:df4e9d4b-4977-4f68-9f59-d9980b9ce3c7" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:49:15 GMT" + "Wed, 16 Jun 2021 05:57:36 GMT" ], "Content-Length": [ "21" @@ -208,21 +208,21 @@ "StatusCode": 202 }, { - "RequestUri": "/providers/Microsoft.DocumentDB/operations?api-version=2021-04-15", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9vcGVyYXRpb25zP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/providers/Microsoft.DocumentDB/operations?api-version=2021-06-15", + "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9vcGVyYXRpb25zP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2d64201d-2071-4697-a6cf-8976cc741cd3" + "9f4818fa-aed4-4044-b604-45bbce440628" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -237,7 +237,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -246,33 +246,33 @@ "11999" ], "x-ms-request-id": [ - "6268cb56-48d1-421c-bc43-7671249e7587" + "b4e94851-dee8-41ef-85a6-d6362d985d57" ], "x-ms-correlation-request-id": [ - "6268cb56-48d1-421c-bc43-7671249e7587" + "b4e94851-dee8-41ef-85a6-d6362d985d57" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174916Z:6268cb56-48d1-421c-bc43-7671249e7587" + "WESTUS2:20210616T055738Z:b4e94851-dee8-41ef-85a6-d6362d985d57" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:49:16 GMT" + "Wed, 16 Jun 2021 05:57:37 GMT" ], "Content-Length": [ - "144872" + "148931" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Database\",\r\n \"Operation\": \"Write SQL database\",\r\n \"Description\": \"Create a SQL database.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Database\",\r\n \"Operation\": \"Read SQL database(s)\",\r\n \"Description\": \"Read a SQL database or list all the SQL databases.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Database\",\r\n \"Operation\": \"Delete SQL database\",\r\n \"Description\": \"Delete a SQL database.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Database\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Container\",\r\n \"Operation\": \"Write SQL container\",\r\n \"Description\": \"Create or update a SQL container.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Container\",\r\n \"Operation\": \"Read SQL container(s)\",\r\n \"Description\": \"Read a SQL container or list all the SQL containers.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Container\",\r\n \"Operation\": \"Delete SQL container\",\r\n \"Description\": \"Delete a SQL container.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Container\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/storedProcedures/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Stored Procedure\",\r\n \"Operation\": \"Write SQL stored procedure\",\r\n \"Description\": \"Create or update a SQL stored procedure.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/storedProcedures/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Stored Procedure\",\r\n \"Operation\": \"Read SQL stored procedure(s)\",\r\n \"Description\": \"Read a SQL stored procedure or list all the SQL stored procedures.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/storedProcedures/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Stored Procedure\",\r\n \"Operation\": \"Delete SQL stored procedure\",\r\n \"Description\": \"Delete a SQL stored procedure.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/storedProcedures/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Stored Procedure\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/userDefinedFunctions/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL User Defined Function\",\r\n \"Operation\": \"Write SQL user defined function\",\r\n \"Description\": \"Create or update a SQL user defined function.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/userDefinedFunctions/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL User Defined Function\",\r\n \"Operation\": \"Read SQL user defined function(s)\",\r\n \"Description\": \"Read a SQL user defined function or list all the SQL user defined functions.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/userDefinedFunctions/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL User Defined Function\",\r\n \"Operation\": \"Delete SQL user defined function\",\r\n \"Description\": \"Delete a SQL user defined function.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/userDefinedFunctions/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL User Defined Function\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/triggers/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Tirgger\",\r\n \"Operation\": \"Write SQL trigger\",\r\n \"Description\": \"Create or update a SQL trigger.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/triggers/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Tirgger\",\r\n \"Operation\": \"Read SQL trigger(s)\",\r\n \"Description\": \"Read a SQL trigger or list all the SQL triggers.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/triggers/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Tirgger\",\r\n \"Operation\": \"Delete SQL trigger\",\r\n \"Description\": \"Delete a SQL trigger.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/triggers/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Tirgger\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/tables/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table\",\r\n \"Operation\": \"Write table\",\r\n \"Description\": \"Create or update a table.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/tables/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table\",\r\n \"Operation\": \"Read table(s)\",\r\n \"Description\": \"Read a table or list all the tables.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/tables/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table\",\r\n \"Operation\": \"Delete table\",\r\n \"Description\": \"Delete a table.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/tables/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Database\",\r\n \"Operation\": \"Write MongoDB database\",\r\n \"Description\": \"Create a MongoDB database.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Database\",\r\n \"Operation\": \"Read MongoDB database(s)\",\r\n \"Description\": \"Read a MongoDB database or list all the MongoDB databases.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Database\",\r\n \"Operation\": \"Delete MongoDB database\",\r\n \"Description\": \"Delete a MongoDB database.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Database\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Collection\",\r\n \"Operation\": \"Write MongoDB collection\",\r\n \"Description\": \"Create or update a MongoDB collection.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Collection\",\r\n \"Operation\": \"Read MongoDB collection(s)\",\r\n \"Description\": \"Read a MongoDB collection or list all the MongoDB collections.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Collection\",\r\n \"Operation\": \"Delete MongoDB collection\",\r\n \"Description\": \"Delete a MongoDB collection.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Collection\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Keyspace\",\r\n \"Operation\": \"Write Cassandra keyspace\",\r\n \"Description\": \"Create a Cassandra keyspace.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Keyspace\",\r\n \"Operation\": \"Read Cassandra keyspace(s)\",\r\n \"Description\": \"Read a Cassandra keyspace or list all the Cassandra keyspaces.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Keyspace\",\r\n \"Operation\": \"Delete Cassandra keyspace\",\r\n \"Description\": \"Delete a Cassandra keyspace.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Keyspace\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Table\",\r\n \"Operation\": \"Write Cassandra table\",\r\n \"Description\": \"Create or update a Cassandra table.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Table\",\r\n \"Operation\": \"Read Cassandra table(s)\",\r\n \"Description\": \"Read a Cassandra table or list all the Cassandra tables.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Table\",\r\n \"Operation\": \"Delete Cassandra table\",\r\n \"Description\": \"Delete a Cassandra table.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Table\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Database\",\r\n \"Operation\": \"Write Gremlin database\",\r\n \"Description\": \"Create a Gremlin database.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Database\",\r\n \"Operation\": \"Read Gremlin database(s)\",\r\n \"Description\": \"Read a Gremlin database or list all the Gremlin databases.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Database\",\r\n \"Operation\": \"Delete Gremlin database\",\r\n \"Description\": \"Delete a Gremlin database.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Database\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Graph\",\r\n \"Operation\": \"Write Gremlin graph\",\r\n \"Description\": \"Create or update a Gremlin graph.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Graph\",\r\n \"Operation\": \"Read Gremlin graph(s)\",\r\n \"Description\": \"Read a Gremlin graph or list all the Gremlin graphs.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Graph\",\r\n \"Operation\": \"Delete Gremlin graph\",\r\n \"Description\": \"Delete a Gremlin graph.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Graph\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Database throughput setting\",\r\n \"Operation\": \"Write SQL database throughput\",\r\n \"Description\": \"Update a SQL database throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Database throughput setting\",\r\n \"Operation\": \"Read SQL database throughput\",\r\n \"Description\": \"Read a SQL database throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Database throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings/migrateToAutoscale/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Database throughput setting\",\r\n \"Operation\": \"Migrate SQL database offer to autoscale\",\r\n \"Description\": \"Migrate SQL database offer to autoscale.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings/migrateToManualThroughput/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Database throughput setting\",\r\n \"Operation\": \"Migrate a SQL database throughput offer to manual throughput\",\r\n \"Description\": \"Migrate a SQL database throughput offer to manual throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings/migrateToAutoscale/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Database throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings/migrateToManualThroughput/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Database throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Container throughput setting\",\r\n \"Operation\": \"Write SQL container throughput\",\r\n \"Description\": \"Update a SQL container throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Container throughput setting\",\r\n \"Operation\": \"Read SQL container throughput\",\r\n \"Description\": \"Read a SQL container throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Container throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/migrateToAutoscale/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Container throughput setting\",\r\n \"Operation\": \"Migrate SQL container offer to autoscale\",\r\n \"Description\": \"Migrate SQL container offer to autoscale.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/migrateToManualThroughput/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Container throughput setting\",\r\n \"Operation\": \"Migrate a SQL database throughput offer to manual throughput\",\r\n \"Description\": \"Migrate a SQL database throughput offer to manual throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/migrateToAutoscale/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Container throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/migrateToManualThroughput/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Container throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"Write table throughput\",\r\n \"Description\": \"Update a table throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"Read table throughput\",\r\n \"Description\": \"Read a table throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings/migrateToAutoscale/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"Migrate table offer to autoscale\",\r\n \"Description\": \"Migrate table offer to autoscale.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings/migrateToManualThroughput/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"Migrate table offer to to manual throughput\",\r\n \"Description\": \"Migrate table offer to to manual throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings/migrateToAutoscale/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings/migrateToManualThroughput/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Database throughput setting\",\r\n \"Operation\": \"Write MongoDB database throughput\",\r\n \"Description\": \"Update a MongoDB database throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Database throughput setting\",\r\n \"Operation\": \"Read MongoDB database throughput\",\r\n \"Description\": \"Read a MongoDB database throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Database throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings/migrateToAutoscale/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Database throughput setting\",\r\n \"Operation\": \"Migrate MongoDB database offer to autoscale\",\r\n \"Description\": \"Migrate MongoDB database offer to autoscale.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings/migrateToManualThroughput/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Database throughput setting\",\r\n \"Operation\": \"Migrate MongoDB database offer to to manual throughput\",\r\n \"Description\": \"Migrate MongoDB database offer to to manual throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings/migrateToAutoscale/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Database throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings/migrateToManualThroughput/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Database throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Collection throughput setting\",\r\n \"Operation\": \"Write MongoDB collection throughput\",\r\n \"Description\": \"Update a MongoDB collection throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Collection throughput setting\",\r\n \"Operation\": \"Read MongoDB collection throughput\",\r\n \"Description\": \"Read a MongoDB collection throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Collection throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/migrateToAutoscale/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB collection throughput setting\",\r\n \"Operation\": \"Migrate MongoDB collection offer to autoscale\",\r\n \"Description\": \"Migrate MongoDB collection offer to autoscale.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/migrateToManualThroughput/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB collection throughput setting\",\r\n \"Operation\": \"Migrate MongoDB collection offer to to manual throughput\",\r\n \"Description\": \"Migrate MongoDB collection offer to to manual throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/migrateToAutoscale/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB collection throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/migrateToManualThroughput/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB collection throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Keyspace throughput setting\",\r\n \"Operation\": \"Write Cassandra keyspace throughput\",\r\n \"Description\": \"Update a Cassandra keyspace throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Keyspace throughput setting\",\r\n \"Operation\": \"Read Cassandra keyspace throughput\",\r\n \"Description\": \"Read a Cassandra keyspace throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Keyspace throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings/migrateToAutoscale/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra keyspace throughput setting\",\r\n \"Operation\": \"Migrate Cassandra keyspace offer to autoscale\",\r\n \"Description\": \"Migrate Cassandra keyspace offer to autoscale.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings/migrateToManualThroughput/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra keyspace throughput setting\",\r\n \"Operation\": \"Migrate Cassandra keyspace offer to to manual throughput\",\r\n \"Description\": \"Migrate Cassandra keyspace offer to to manual throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings/migrateToAutoscale/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra keyspace throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings/migrateToManualThroughput/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra keyspace throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Table throughput setting\",\r\n \"Operation\": \"Write Cassandra table throughput\",\r\n \"Description\": \"Update a Cassandra table throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Table throughput setting\",\r\n \"Operation\": \"Read Cassandra table throughput\",\r\n \"Description\": \"Read a Cassandra table throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Table throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings/migrateToAutoscale/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra table throughput setting\",\r\n \"Operation\": \"Migrate Cassandra table offer to autoscale\",\r\n \"Description\": \"Migrate Cassandra table offer to autoscale.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings/migrateToManualThroughput/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra table throughput setting\",\r\n \"Operation\": \"Migrate Cassandra table offer to to manual throughput\",\r\n \"Description\": \"Migrate Cassandra table offer to to manual throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings/migrateToAutoscale/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra table throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings/migrateToManualThroughput/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra table throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Database throughput setting\",\r\n \"Operation\": \"Write Gremlin database throughput\",\r\n \"Description\": \"Update a Gremlin database throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Database throughput setting\",\r\n \"Operation\": \"Read Gremlin database throughput\",\r\n \"Description\": \"Read a Gremlin database throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Database throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings/migrateToAutoscale/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Database throughput setting\",\r\n \"Operation\": \"Migrate Gremlin Database offer to autoscale\",\r\n \"Description\": \"Migrate Gremlin Database offer to autoscale.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings/migrateToManualThroughput/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Database throughput setting\",\r\n \"Operation\": \"Migrate Gremlin Database offer to to manual throughput\",\r\n \"Description\": \"Migrate Gremlin Database offer to to manual throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings/migrateToAutoscale/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Database throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings/migrateToManualThroughput/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Database throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Graph throughput setting\",\r\n \"Operation\": \"Write Gremlin graph throughput\",\r\n \"Description\": \"Update a Gremlin graph throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Graph throughput setting\",\r\n \"Operation\": \"Read Gremlin graph throughput\",\r\n \"Description\": \"Read a Gremlin graph throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Graph throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings/migrateToAutoscale/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin graph throughput setting\",\r\n \"Operation\": \"Migrate Gremlin graph offer to autoscale\",\r\n \"Description\": \"Migrate Gremlin graph offer to autoscale.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings/migrateToManualThroughput/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin graph throughput setting\",\r\n \"Operation\": \"Migrate Gremlin graph offer to to manual throughput\",\r\n \"Description\": \"Migrate Gremlin graph offer to to manual throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings/migrateToAutoscale/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin graph throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings/migrateToManualThroughput/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin graph throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write database\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Create a database. Only applicable to API types: 'sql', 'mongodb', 'gremlin'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read database(s)\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a database or list all the databases. Only applicable to API types: 'sql', 'mongodb', 'gremlin'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete database\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete a database. Only applicable to API types: 'sql', 'mongodb', 'gremlin'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'sql', 'mongodb', 'gremlin'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/containers/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Container\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write container\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Create or update a container. Only applicable to API types: 'sql'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/containers/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Container\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read container(s)\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a container or list all the containers. Only applicable to API types: 'sql'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/containers/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Container\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete container\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete a container. Only applicable to API types: 'sql'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/containers/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Container\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'sql'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/tables/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write table\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Create or update a table. Only applicable to API types: 'table'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/tables/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read table(s)\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a table or list all the tables. Only applicable to API types: 'table'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/tables/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete table\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete a table. Only applicable to API types: 'table'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/tables/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'table'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/collections/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Collection\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write collection\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Create or update a collection. Only applicable to API types: 'mongodb'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/collections/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Collection\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read collection(s)\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a collection or list all the collections. Only applicable to API types: 'mongodb'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/collections/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Collection\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete collection\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete a collection. Only applicable to API types: 'mongodb'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/collections/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Collection\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'mongodb'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Keyspace\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write keyspace\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Create a keyspace. Only applicable to API types: 'cassandra'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Keyspace\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read keyspace(s)\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a keyspace or list all the keyspaces. Only applicable to API types: 'cassandra'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Keyspace\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete keyspace\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete a keyspace. Only applicable to API types: 'cassandra'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Keyspace\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'cassandra'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/tables/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write table\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Create or update a table. Only applicable to API types: 'cassandra'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/tables/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read table(s)\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a table or list all the tables. Only applicable to API types: 'cassandra'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/tables/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete table\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete a table. Only applicable to API types: 'cassandra'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/tables/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'cassandra'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Graph\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write graph\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Create or update a graph. Only applicable to API types: 'gremlin'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Graph\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read graph(s)\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a graph or list all the graphs. Only applicable to API types: 'gremlin'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Graph\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete graph\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete a graph. Only applicable to API types: 'gremlin'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Graph\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'gremlin'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/settings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write database throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Update a database throughput. Only applicable to API types: 'sql', 'mongodb', 'gremlin'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/settings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read database throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a database throughput. Only applicable to API types: 'sql', 'mongodb', 'gremlin'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/settings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'sql', 'mongodb', 'gremlin'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/containers/settings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Container throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write container throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Update a container throughput. Only applicable to API types: 'sql'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/containers/settings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Container throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read container throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a container throughput. Only applicable to API types: 'sql'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/containers/settings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Container throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'sql'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/tables/settings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write table throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Update a table throughput. Only applicable to API types: 'table'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/tables/settings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read table throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a table throughput. Only applicable to API types: 'table'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/tables/settings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'table'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/collections/settings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Collection throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write collection throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Update a collection throughput. Only applicable to API types: 'mongodb'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/collections/settings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Collection throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read collection throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a collection throughput. Only applicable to API types: 'mongodb'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/collections/settings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Collection throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'mongodb'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/settings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Keyspace throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write keyspace throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Update a keyspace throughput. Only applicable to API types: 'cassandra'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/settings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Keyspace throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read keyspace throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a keyspace throughput. Only applicable to API types: 'cassandra'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/settings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Keyspace throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'cassandra'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/tables/settings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write table throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Update a table throughput. Only applicable to API types: 'cassandra'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/tables/settings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read table throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a table throughput. Only applicable to API types: 'cassandra'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/tables/settings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'cassandra'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs/settings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Graph throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write gremlin throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Update a graph throughput. Only applicable to API types: 'gremlin'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs/settings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Graph throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read graph throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a graph throughput. Only applicable to API types: 'gremlin'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs/settings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Graph throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'gremlin'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Operation Result\",\r\n \"Operation\": \"Read operation status\",\r\n \"Description\": \"Read status of the asynchronous operation\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccountNames/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account Names\",\r\n \"Operation\": \"Read database account names\",\r\n \"Description\": \"Checks for name availability.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Read database account\",\r\n \"Description\": \"Reads a database account.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Update database account\",\r\n \"Description\": \"Update a database accounts.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/listKeys/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"List keys\",\r\n \"Description\": \"List keys of a database account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/readonlykeys/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account readonly keys\",\r\n \"Operation\": \"Read database account readonly keys\",\r\n \"Description\": \"Reads the database account readonly keys.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/readonlykeys/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account readonly keys\",\r\n \"Operation\": \"Read database account readonly keys\",\r\n \"Description\": \"Reads the database account readonly keys.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/regenerateKey/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Rotate keys\",\r\n \"Description\": \"Rotate keys of a database account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/listConnectionStrings/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Get Connection Strings\",\r\n \"Description\": \"Get the connection strings for a database account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/changeResourceGroup/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Change resource group\",\r\n \"Description\": \"Change resource group of a database account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/failoverPriorityChange/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Manual Failover\",\r\n \"Description\": \"Change failover priorities of regions of a database account. This is used to perform manual failover operation\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/offlineRegion/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Offline Region\",\r\n \"Description\": \"Offline a region of a database account. \"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/onlineRegion/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Online Region\",\r\n \"Description\": \"Online a region of a database account.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Delete database accounts\",\r\n \"Description\": \"Deletes the database accounts.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Read operation status\",\r\n \"Description\": \"Read status of the asynchronous operation\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/percentile/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account latencies\",\r\n \"Operation\": \"Read latency percentiles\",\r\n \"Description\": \"Read percentiles of replication latencies\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/percentile/metrics/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account metrics\",\r\n \"Operation\": \"Read latency metrics\",\r\n \"Description\": \"Read latency metrics\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/percentile/targetRegion/metrics/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account metrics for a specific target region\",\r\n \"Operation\": \"Read latency metricsfor a specific target region\",\r\n \"Description\": \"Read latency metrics for a specific target region\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/percentile/sourceRegion/targetRegion/metrics/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account metrics for a specific source and target region\",\r\n \"Operation\": \"Read latency metrics for a specific source and target region\",\r\n \"Description\": \"Read latency metrics for a specific source and target region\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/databases/collections/partitions/usages/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account partition usages\",\r\n \"Operation\": \"Read database account partition level usages\",\r\n \"Description\": \"Read database account partition level usages\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/getBackupPolicy/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database\",\r\n \"Operation\": \"Get BackupPolicy\",\r\n \"Description\": \"Get the backup policy of database account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/metricDefinitions/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account metric definitions\",\r\n \"Operation\": \"Read database account metrics definitions\",\r\n \"Description\": \"Reads the database account metrics definitions.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/metrics/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account metrics\",\r\n \"Operation\": \"Read database account metrics\",\r\n \"Description\": \"Reads the database account metrics.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/usages/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account usages\",\r\n \"Operation\": \"Read database account usages\",\r\n \"Description\": \"Reads the database account usages.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/databases/metricDefinitions/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database metric definitions\",\r\n \"Operation\": \"Read database metric definitions\",\r\n \"Description\": \"Reads the database metric definitions\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/databases/metrics/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database metrics\",\r\n \"Operation\": \"Read database metrics\",\r\n \"Description\": \"Reads the database metrics.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/databases/usages/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database usages\",\r\n \"Operation\": \"Read database usages\",\r\n \"Description\": \"Reads the database usages.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/databases/collections/metricDefinitions/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Collection metric definitions\",\r\n \"Operation\": \"Read collection metric definitions\",\r\n \"Description\": \"Reads the collection metric definitions.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/databases/collections/metrics/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Collection metrics\",\r\n \"Operation\": \"Read collection metrics\",\r\n \"Description\": \"Reads the collection metrics.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/databases/collections/usages/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Collection usages\",\r\n \"Operation\": \"Read collection usages\",\r\n \"Description\": \"Reads the collection usages.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/region/metrics/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account and Region metrics\",\r\n \"Operation\": \"Read region database account metrics\",\r\n \"Description\": \"Reads the region and database account metrics.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/region/databases/collections/metrics/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Regional Collection metrics\",\r\n \"Operation\": \"Read regional collection metrics\",\r\n \"Description\": \"Reads the regional collection metrics.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/region/databases/collections/partitions/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Regional Database Account Collection partitions\",\r\n \"Operation\": \"Read regional database account partitions in a collection\",\r\n \"Description\": \"Read regional database account partitions in a collection\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/databases/collections/partitions/metrics/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account partition metrics\",\r\n \"Operation\": \"Read database account partition level metrics\",\r\n \"Description\": \"Read database account partition level metrics\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/region/databases/collections/partitions/metrics/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Regional Database Account partition metrics\",\r\n \"Operation\": \"Read regional database account partition level metrics\",\r\n \"Description\": \"Read regional database account partition level metrics\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/region/databases/collections/partitionKeyRangeId/metrics/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Regional Database Account partition key metrics\",\r\n \"Operation\": \"Read regional database account partition key level metrics\",\r\n \"Description\": \"Read regional database account partition key level metrics\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/databases/collections/partitionKeyRangeId/metrics/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account partition key metrics\",\r\n \"Operation\": \"Read database account partition key level metrics\",\r\n \"Description\": \"Read database account partition key level metrics\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/databases/collections/partitions/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account Collection partitions\",\r\n \"Operation\": \"Read database account partitions in a collection\",\r\n \"Description\": \"Read database account partitions in a collection\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/register/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"\",\r\n \"Operation\": \"Register Microsoft DocumentDB resource provider\",\r\n \"Description\": \" Register the Microsoft DocumentDB resource provider for the subscription\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/operations/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"operations\",\r\n \"Operation\": \"List operations\",\r\n \"Description\": \"Read operations available for the Microsoft DocumentDB \"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/PrivateEndpointConnectionsApproval/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account Private Endpoint Connection Approval\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/PrivateEndpointConnectionsApproval/action\",\r\n \"Description\": \"Manage a private endpoint connection of Database Account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnectionProxies/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account Private Endpoint Connection Proxy\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnectionProxies/read\",\r\n \"Description\": \"Read a private endpoint connection proxy of Database Account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnectionProxies/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account Private Endpoint Connection Proxy\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnectionProxies/write\",\r\n \"Description\": \"Create or update a private endpoint connection proxy of Database Account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnectionProxies/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account Private Endpoint Connection Proxy\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnectionProxies/delete\",\r\n \"Description\": \"Delete a private endpoint connection proxy of Database Account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnectionProxies/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Operation Result\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnectionProxies/operationResults/read\",\r\n \"Description\": \"Read Status of private endpoint connection proxy asynchronous operation\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnectionProxies/validate/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account Private Endpoint Connection Proxy\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnectionProxies/validate/action\",\r\n \"Description\": \"Validate a private endpoint connection proxy of Database Account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account Private Endpoint Connection\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections/read\",\r\n \"Description\": \"Read a private endpoint connection or list all the private endpoint connections of a Database Account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account Private Endpoint Connection\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections/write\",\r\n \"Description\": \"Create or update a private endpoint connection of a Database Account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account Private Endpoint Connection\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections/delete\",\r\n \"Description\": \"Delete a private endpoint connection of a Database Account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Operation Result\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections/operationResults/read\",\r\n \"Description\": \"Read Status of privateEndpointConnenctions asynchronous operation\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/privateLinkResources/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account Private Link Resource\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/privateLinkResources/read\",\r\n \"Description\": \"Read a private link resource or list all the private link resources of a Database Account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/locations/operationsStatus/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Asynchronous Operations\",\r\n \"Operation\": \"Microsoft.DocumentDB/locations/operationsStatus/read\",\r\n \"Description\": \"Reads Status of Asynchronous Operations\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/locations/deleteVirtualNetworkOrSubnets/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Microsoft.DocumentDB/locations/deleteVirtualNetworkOrSubnets/action\",\r\n \"Description\": \"Notifies Microsoft.DocumentDB that VirtualNetwork or Subnet is being deleted\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/locations/deleteVirtualNetworkOrSubnets/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Operation Result\",\r\n \"Operation\": \"Microsoft.DocumentDB/locations/deleteVirtualNetworkOrSubnets/operationResults/read\",\r\n \"Description\": \"Read Status of deleteVirtualNetworkOrSubnets asynchronous operation\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/restore/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/restore/action\",\r\n \"Description\": \"Submit a restore request\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/backup/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/backup/action\",\r\n \"Description\": \"Submit a request to configure backup\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Notebook Workspace\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces/write\",\r\n \"Description\": \"Create or update a notebook workspace\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Notebook Workspace\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces/read\",\r\n \"Description\": \"Read a notebook workspace\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Notebook Workspace\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces/delete\",\r\n \"Description\": \"Delete a notebook workspace\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Operation Result\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces/operationResults/read\",\r\n \"Description\": \"Read the status of an asynchronous operation on notebook workspaces\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces/listConnectionInfo/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Notebook Workspace\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces/listConnectionInfo/action\",\r\n \"Description\": \"List the connection info for a notebook workspace\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Restorable database account\",\r\n \"Operation\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read\",\r\n \"Description\": \"Read a restorable database account or List all the restorable database accounts\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restore/action \",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Restore action on restorable database account\",\r\n \"Operation\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restore/action\",\r\n \"Description\": \"Submit a restore request\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/locations/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"CosmosDB location\",\r\n \"Operation\": \"Microsoft.DocumentDB/locations/read\",\r\n \"Description\": \"Read the metadata of a location or List all location metadata\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/cassandraClusters/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Managed Cassandra cluster\",\r\n \"Operation\": \"Microsoft.DocumentDB/cassandraClusters/read\",\r\n \"Description\": \"Read a managed Cassandra cluster or list all managed Cassandra clusters\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/cassandraClusters/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Managed Cassandra cluster\",\r\n \"Operation\": \"Microsoft.DocumentDB/cassandraClusters/write\",\r\n \"Description\": \"Create or update a managed Cassandra cluster\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/cassandraClusters/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Managed Cassandra cluster\",\r\n \"Operation\": \"Microsoft.DocumentDB/cassandraClusters/delete\",\r\n \"Description\": \"Delete a managed Cassandra cluster\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/cassandraClusters/repair/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"\",\r\n \"Operation\": \"Microsoft.DocumentDB/cassandraClusters/repair/action\",\r\n \"Description\": \"Request a repair of a managed Cassandra keyspace\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/cassandraClusters/fetchNodeStatus/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"\",\r\n \"Operation\": \"Microsoft.DocumentDB/cassandraClusters/fetchNodeStatus/action\",\r\n \"Description\": \"Asynchronously fetch node status of all nodes in a managed Cassandra cluster\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/cassandraClusters/dataCenters/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Managed Cassandra data center\",\r\n \"Operation\": \"Microsoft.DocumentDB/cassandraClusters/dataCenters/read\",\r\n \"Description\": \"Read a data center in a managed Cassandra cluster or list all data centers in a managed Cassandra cluster\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/cassandraClusters/dataCenters/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Managed Cassandra data center\",\r\n \"Operation\": \"Microsoft.DocumentDB/cassandraClusters/dataCenters/write\",\r\n \"Description\": \"Create or update a data center in a managed Cassandra cluster\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/cassandraClusters/dataCenters/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Managed Cassandra data center\",\r\n \"Operation\": \"Microsoft.DocumentDB/cassandraClusters/dataCenters/delete\",\r\n \"Description\": \"Delete a data center in a managed Cassandra cluster\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Role Definition\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions/read\",\r\n \"Description\": \"Read a SQL Role Definition\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Role Definition\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions/write\",\r\n \"Description\": \"Create or update a SQL Role Definition\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Role Definition\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions/delete\",\r\n \"Description\": \"Delete a SQL Role Definition\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Role Assignment\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments/read\",\r\n \"Description\": \"Read a SQL Role Assignment\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Role Assignment\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments/write\",\r\n \"Description\": \"Create or update a SQL Role Assignment\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Role Assignment\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments/delete\",\r\n \"Description\": \"Delete a SQL Role Assignment\"\r\n }\r\n },\r\n {\r\n \"origin\": \"system\",\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/providers/Microsoft.Insights/logDefinitions/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Read database account log definitions\",\r\n \"Description\": \"Gets the available log catageries for Database Account\"\r\n },\r\n \"properties\": {\r\n \"serviceSpecification\": {\r\n \"logSpecifications\": [\r\n {\r\n \"name\": \"DataPlaneRequests\",\r\n \"displayName\": \"DataPlaneRequests\",\r\n \"blobDuration\": \"PT1H\"\r\n },\r\n {\r\n \"name\": \"MongoRequests\",\r\n \"displayName\": \"MongoRequests\",\r\n \"blobDuration\": \"PT1H\"\r\n },\r\n {\r\n \"name\": \"QueryRuntimeStatistics\",\r\n \"displayName\": \"QueryRuntimeStatistics\",\r\n \"blobDuration\": \"PT1H\"\r\n },\r\n {\r\n \"name\": \"PartitionKeyStatistics\",\r\n \"displayName\": \"PartitionKeyStatistics\",\r\n \"blobDuration\": \"PT1H\"\r\n },\r\n {\r\n \"name\": \"PartitionKeyRUConsumption\",\r\n \"displayName\": \"PartitionKeyRUConsumption\",\r\n \"blobDuration\": \"PT1H\"\r\n },\r\n {\r\n \"name\": \"ControlPlaneRequests\",\r\n \"displayName\": \"ControlPlaneRequests\",\r\n \"blobDuration\": \"PT1H\"\r\n },\r\n {\r\n \"name\": \"CassandraRequests\",\r\n \"displayName\": \"CassandraRequests\",\r\n \"blobDuration\": \"PT1H\"\r\n },\r\n {\r\n \"name\": \"GremlinRequests\",\r\n \"displayName\": \"GremlinRequests\",\r\n \"blobDuration\": \"PT1H\"\r\n },\r\n {\r\n \"name\": \"TableApiRequests\",\r\n \"displayName\": \"TableApiRequests\",\r\n \"blobDuration\": \"PT1H\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"origin\": \"system\",\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/providers/Microsoft.Insights/diagnosticSettings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Write diagnostic setting\",\r\n \"Description\": \"Gets the diagnostic setting for the resource\"\r\n }\r\n },\r\n {\r\n \"origin\": \"system\",\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/providers/Microsoft.Insights/diagnosticSettings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Write diagnostic setting\",\r\n \"Description\": \"Creates or updates the diagnostic setting for the resource\"\r\n }\r\n },\r\n {\r\n \"origin\": \"system\",\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/providers/Microsoft.Insights/metricDefinitions/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDb\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Get database account metric definitions\",\r\n \"Description\": \"Gets the available metrics for the database Account\"\r\n },\r\n \"properties\": {\r\n \"serviceSpecification\": {\r\n \"metricSpecifications\": [\r\n {\r\n \"name\": \"CreateAccount\",\r\n \"displayName\": \"Account Created\",\r\n \"internalMetricName\": \"CreateAccount\",\r\n \"displayDescription\": \"Account Created\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": []\r\n },\r\n {\r\n \"name\": \"CassandraKeyspaceUpdate\",\r\n \"displayName\": \"Cassandra Keyspace Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Cassandra Keyspace Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Keyspace Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"cassandra\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"keyspaces\"\r\n },\r\n {\r\n \"value\": \"cassandrakeyspaces\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Upsert\"\r\n },\r\n {\r\n \"value\": \"Replace\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"GremlinGraphDelete\",\r\n \"displayName\": \"Gremlin Graph Deleted\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Gremlin Graph Deleted\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"internalName\": \"ChildResourceName\",\r\n \"displayName\": \"Graph Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"gremlin\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"graphs\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Delete\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"CassandraTableCreate\",\r\n \"displayName\": \"Cassandra Table Created\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Cassandra Table Created\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"displayName\": \"Keyspace Name\",\r\n \"internalName\": \"ResourceName\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"displayName\": \"Table Name\",\r\n \"internalName\": \"ChildResourceName\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"cassandra\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"tables\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Create\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MetadataRequests\",\r\n \"displayName\": \"Metadata Requests\",\r\n \"internalMetricName\": \"MetadataRequests\",\r\n \"displayDescription\": \"Count of metadata requests. Cosmos DB maintains system metadata collection for each account, that allows you to enumerate collections, databases, etc, and their configurations, free of charge.\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"StatusCode\",\r\n \"internalName\": \"StatusCode\"\r\n },\r\n {\r\n \"name\": \"Role\",\r\n \"internalName\": \"Role\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"MasterCluster0\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"DataUsage\",\r\n \"displayName\": \"Data Usage\",\r\n \"internalMetricName\": \"DataUsage\",\r\n \"displayDescription\": \"Total data usage reported at 5 minutes granularity\",\r\n \"unit\": \"Bytes\",\r\n \"aggregationType\": \"Total\",\r\n \"lockAggregationType\": \"Total\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\",\r\n \" Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IndexUsage\",\r\n \"displayName\": \"Index Usage\",\r\n \"internalMetricName\": \"IndexUsage\",\r\n \"displayDescription\": \"Total index usage reported at 5 minutes granularity\",\r\n \"unit\": \"Bytes\",\r\n \"aggregationType\": \"Total\",\r\n \"lockAggregationType\": \"Total\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\",\r\n \" Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"GremlinDatabaseCreate\",\r\n \"displayName\": \"Gremlin Database Created\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Gremlin Database Created\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"displayName\": \"Database Name\",\r\n \"internalName\": \"ResourceName\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"gremlin\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"databases\"\r\n },\r\n {\r\n \"value\": \"gremlindatabases\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Create\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"GremlinGraphUpdate\",\r\n \"displayName\": \"Gremlin Graph Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Gremlin Graph Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"internalName\": \"ChildResourceName\",\r\n \"displayName\": \"Graph Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"gremlin\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"graphs\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Upsert\"\r\n },\r\n {\r\n \"value\": \"Replace\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"CassandraTableDelete\",\r\n \"displayName\": \"Cassandra Table Deleted\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Cassandra Table Deleted\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Keyspace Name\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"internalName\": \"ChildResourceName\",\r\n \"displayName\": \"Table Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"cassandra\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"tables\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Delete\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"CassandraConnectorAvgReplicationLatency\",\r\n \"displayName\": \"Cassandra Connector Average ReplicationLatency\",\r\n \"internalMetricName\": \"AverageReplicationLatencyInMilliseconds\",\r\n \"displayDescription\": \"Cassandra Connector Average ReplicationLatency\",\r\n \"unit\": \"MilliSeconds\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"DatabaseAccount\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": []\r\n },\r\n {\r\n \"name\": \"CassandraRequestCharges\",\r\n \"displayName\": \"Cassandra Request Charges\",\r\n \"internalMetricName\": \"CassandraRequestCharges\",\r\n \"displayDescription\": \"RUs consumed for Cassandra requests made\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"lockAggregationType\": \"Total\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"APIType\",\r\n \"internalName\": \"APIType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"CassandraService\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\"\r\n },\r\n {\r\n \"name\": \"ResourceType\",\r\n \"internalName\": \"ResourceType\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"CassandraRequests\",\r\n \"displayName\": \"Cassandra Requests\",\r\n \"internalMetricName\": \"CassandraRequests\",\r\n \"displayDescription\": \"Number of Cassandra requests made\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"APIType\",\r\n \"internalName\": \"APIType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"CassandraService\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\"\r\n },\r\n {\r\n \"name\": \"ResourceType\",\r\n \"internalName\": \"ResourceType\"\r\n },\r\n {\r\n \"name\": \"ErrorCode\",\r\n \"internalName\": \"ErrorCode\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"DeleteAccount\",\r\n \"displayName\": \"Account Deleted\",\r\n \"internalMetricName\": \"DeleteAccount\",\r\n \"displayDescription\": \"Account Deleted\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": []\r\n },\r\n {\r\n \"name\": \"GremlinDatabaseDelete\",\r\n \"displayName\": \"Gremlin Database Deleted\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Gremlin Database Deleted\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"gremlin\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"databases\"\r\n },\r\n {\r\n \"value\": \"gremlindatabases\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Delete\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoDBDatabaseUpdate\",\r\n \"displayName\": \"Mongo Database Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Mongo Database Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"mongodb\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"databases\"\r\n },\r\n {\r\n \"value\": \"mongodbdatabases\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Upsert\"\r\n },\r\n {\r\n \"value\": \"Replace\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoDatabaseDelete\",\r\n \"displayName\": \"Mongo Database Deleted\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Mongo Database Deleted\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"mongodb\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"databases\"\r\n },\r\n {\r\n \"value\": \"mongodbdatabases\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Delete\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoDatabaseThroughputUpdate\",\r\n \"displayName\": \"Mongo Database Throughput Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Mongo Database Throughput Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"mongodb\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"databases\"\r\n },\r\n {\r\n \"value\": \"mongodbdatabases\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"True\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoRequests\",\r\n \"displayName\": \"Mongo Requests\",\r\n \"internalMetricName\": \"MongoRequests\",\r\n \"displayDescription\": \"Number of Mongo Requests Made\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"CommandName\",\r\n \"internalName\": \"CommandName\"\r\n },\r\n {\r\n \"name\": \"ErrorCode\",\r\n \"internalName\": \"ErrorCode\"\r\n },\r\n {\r\n \"name\": \"Status\",\r\n \"internalName\": \"Status\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoRequestsDelete\",\r\n \"displayName\": \"(deprecated) Mongo Delete Request Rate\",\r\n \"internalMetricName\": \"MongoRequests\",\r\n \"displayDescription\": \"Mongo Delete request per second\",\r\n \"unit\": \"CountPerSecond\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"Average\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"CommandName\",\r\n \"internalName\": \"CommandName\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Delete\"\r\n },\r\n {\r\n \"value\": \"OP_DELETE\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ErrorCode\",\r\n \"internalName\": \"ErrorCode\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoRequestsInsert\",\r\n \"displayName\": \"(deprecated) Mongo Insert Request Rate\",\r\n \"internalMetricName\": \"MongoRequests\",\r\n \"displayDescription\": \"Mongo Insert count per second\",\r\n \"unit\": \"CountPerSecond\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"Average\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"CommandName\",\r\n \"internalName\": \"CommandName\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"insert\"\r\n },\r\n {\r\n \"value\": \"OP_INSERT\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ErrorCode\",\r\n \"internalName\": \"ErrorCode\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoRequestsQuery\",\r\n \"displayName\": \"(deprecated) Mongo Query Request Rate\",\r\n \"internalMetricName\": \"MongoRequests\",\r\n \"displayDescription\": \"Mongo Query request per second\",\r\n \"unit\": \"CountPerSecond\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"Average\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"CommandName\",\r\n \"internalName\": \"CommandName\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"find\"\r\n },\r\n {\r\n \"value\": \"OP_QUERY\"\r\n },\r\n {\r\n \"value\": \"getMore\"\r\n },\r\n {\r\n \"value\": \"OP_GET_MORE\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ErrorCode\",\r\n \"internalName\": \"ErrorCode\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoRequestsUpdate\",\r\n \"displayName\": \"(deprecated) Mongo Update Request Rate\",\r\n \"internalMetricName\": \"MongoRequests\",\r\n \"displayDescription\": \"Mongo Update request per second\",\r\n \"unit\": \"CountPerSecond\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"Average\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"CommandName\",\r\n \"internalName\": \"CommandName\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"OP_UPDATE\"\r\n },\r\n {\r\n \"value\": \"findandmodify\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ErrorCode\",\r\n \"internalName\": \"ErrorCode\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ServerSideLatency\",\r\n \"displayName\": \"Server Side Latency\",\r\n \"internalMetricName\": \"ServerSideLatency\",\r\n \"displayDescription\": \"Server Side Latency\",\r\n \"unit\": \"MilliSeconds\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"Average\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": false,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"ConnectionMode\",\r\n \"internalName\": \"ConnectionMode\"\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\"\r\n },\r\n {\r\n \"name\": \"PublicAPIType\",\r\n \"internalName\": \"PublicAPIType\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"SqlContainerThroughputUpdate\",\r\n \"displayName\": \"Sql Container Throughput Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Sql Container Throughput Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"internalName\": \"ChildResourceName\",\r\n \"displayName\": \"Container Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"sql\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"containers\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"True\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"SqlDatabaseCreate\",\r\n \"displayName\": \"Sql Database Created\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Sql Database Created\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"displayName\": \"Database Name\",\r\n \"internalName\": \"ResourceName\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"sql\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"sqldatabases\"\r\n },\r\n {\r\n \"value\": \"databases\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Create\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"SqlDatabaseThroughputUpdate\",\r\n \"displayName\": \"Sql Database Throughput Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Sql Database Throughput Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"sql\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"databases\"\r\n },\r\n {\r\n \"value\": \"sqldatabases\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"True\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"TableTableCreate\",\r\n \"displayName\": \"AzureTable Table Created\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"AzureTable Table Created\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"displayName\": \"Table Name\",\r\n \"internalName\": \"ResourceName\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"table\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"tables\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Create\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"UpdateAccountKeys\",\r\n \"displayName\": \"Account Keys Updated\",\r\n \"internalMetricName\": \"UpdateAccountKeys\",\r\n \"displayDescription\": \"Account Keys Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"KeyType\",\r\n \"internalName\": \"KeyType\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"TotalRequests\",\r\n \"displayName\": \"Total Requests\",\r\n \"internalMetricName\": \"TotalRequests\",\r\n \"displayDescription\": \"Number of requests made\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"StatusCode\",\r\n \"internalName\": \"StatusCode\"\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\"\r\n },\r\n {\r\n \"name\": \"Status\",\r\n \"internalName\": \"Status\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IntegratedCacheSize\",\r\n \"displayName\": \"IntegratedCacheSize\",\r\n \"internalMetricName\": \"IntegratedCacheSize\",\r\n \"displayDescription\": \"Size of the integrated caches for dedicated gateway requests\",\r\n \"unit\": \"Bytes\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"Average\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": false,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"CacheType\",\r\n \"internalName\": \"CacheType\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IntegratedCacheEvictedEntriesSize\",\r\n \"displayName\": \"IntegratedCacheEvictedEntriesSize\",\r\n \"internalMetricName\": \"IntegratedCacheEvictedEntriesSize\",\r\n \"displayDescription\": \"Size of the entries evicted from the integrated cache\",\r\n \"unit\": \"Bytes\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"Average\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": false,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"CacheType\",\r\n \"internalName\": \"CacheType\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"DedicatedGatewayRequests\",\r\n \"displayName\": \"DedicatedGatewayRequests\",\r\n \"internalMetricName\": \"DedicatedGatewayRequests\",\r\n \"displayDescription\": \"Requests at the dedicated gateway\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"CacheExercised\",\r\n \"internalName\": \"CacheExercised\"\r\n },\r\n {\r\n \"name\": \"OperationName\",\r\n \"internalName\": \"OperationName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"CassandraConnectionClosures\",\r\n \"displayName\": \"Cassandra Connection Closures\",\r\n \"internalMetricName\": \"CassandraConnectionClosures\",\r\n \"displayDescription\": \"Number of Cassandra connections that were closed, reported at a 1 minute granularity\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"lockAggregationType\": \"Count\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\",\r\n \" Minimum\",\r\n \" Maximum\",\r\n \" Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"APIType\",\r\n \"internalName\": \"APIType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"CassandraService\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"ClosureReason\",\r\n \"internalName\": \"ClosureReason\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"DocumentQuota\",\r\n \"displayName\": \"Document Quota\",\r\n \"internalMetricName\": \"DocumentQuota\",\r\n \"displayDescription\": \"Total storage quota reported at 5 minutes granularity\",\r\n \"unit\": \"Bytes\",\r\n \"aggregationType\": \"Total\",\r\n \"lockAggregationType\": \"Total\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\",\r\n \" Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"AvailableStorage\",\r\n \"displayName\": \"(deprecated) Available Storage\",\r\n \"internalMetricName\": \"AvailableStorage\",\r\n \"displayDescription\": \"\\\"Available Storage\\\" will be removed from Azure Monitor at the end of September 2023. Cosmos DB collection storage size is now unlimited. The only restriction is that the storage size for each logical partition key is 20GB. You can enable PartitionKeyStatistics in Diagnostic Log to know the storage consumption for top partition keys. For more info about Cosmos DB storage quota, please check this doc https://docs.microsoft.com/en-us/azure/cosmos-db/concepts-limits. After deprecation, the remaining alert rules still defined on the deprecated metric will be automatically disabled post the deprecation date.\",\r\n \"unit\": \"Bytes\",\r\n \"aggregationType\": \"Total\",\r\n \"lockAggregationType\": \"Total\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\",\r\n \" Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"DocumentCount\",\r\n \"displayName\": \"Document Count\",\r\n \"internalMetricName\": \"DocumentCount\",\r\n \"displayDescription\": \"Total document count reported at 5 minutes granularity\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"lockAggregationType\": \"Total\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\",\r\n \" Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"CassandraKeyspaceDelete\",\r\n \"displayName\": \"Cassandra Keyspace Deleted\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Cassandra Keyspace Deleted\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Keyspace Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"cassandra\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"keyspaces\"\r\n },\r\n {\r\n \"value\": \"cassandrakeyspaces\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Delete\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"GremlinGraphCreate\",\r\n \"displayName\": \"Gremlin Graph Created\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Gremlin Graph Created\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"displayName\": \"Database Name\",\r\n \"internalName\": \"ResourceName\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"displayName\": \"Graph Name\",\r\n \"internalName\": \"ChildResourceName\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"gremlin\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"graphs\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Create\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoCollectionDelete\",\r\n \"displayName\": \"Mongo Collection Deleted\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Mongo Collection Deleted\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"internalName\": \"ChildResourceName\",\r\n \"displayName\": \"Collection Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"mongodb\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"collections\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Delete\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoCollectionUpdate\",\r\n \"displayName\": \"Mongo Collection Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Mongo Collection Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"internalName\": \"ChildResourceName\",\r\n \"displayName\": \"Collection Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"mongodb\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"collections\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Upsert\"\r\n },\r\n {\r\n \"value\": \"Replace\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoDBDatabaseCreate\",\r\n \"displayName\": \"Mongo Database Created\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Mongo Database Created\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"displayName\": \"Database Name\",\r\n \"internalName\": \"ResourceName\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"mongodb\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"databases\"\r\n },\r\n {\r\n \"value\": \"mongodbdatabases\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Create\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoRequestsCount\",\r\n \"displayName\": \"(deprecated) Mongo Request Rate\",\r\n \"internalMetricName\": \"MongoRequests\",\r\n \"displayDescription\": \"Mongo request Count per second\",\r\n \"unit\": \"CountPerSecond\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"Average\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"CommandName\",\r\n \"internalName\": \"CommandName\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"count\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ErrorCode\",\r\n \"internalName\": \"ErrorCode\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"NormalizedRUConsumption\",\r\n \"displayName\": \"Normalized RU Consumption\",\r\n \"internalMetricName\": \"NormalizedRUConsumption\",\r\n \"displayDescription\": \"Max RU consumption percentage per minute\",\r\n \"unit\": \"Percent\",\r\n \"aggregationType\": \"Maximum\",\r\n \"lockAggregationType\": \"Maximum\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Maximum\",\r\n \" Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT1H\",\r\n \"P1D\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"PartitionKeyRangeId\",\r\n \"internalName\": \"PartitionKeyRangeId\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"RemoveRegion\",\r\n \"displayName\": \"Region Removed\",\r\n \"internalMetricName\": \"RemoveRegion\",\r\n \"displayDescription\": \"Region Removed\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ServiceAvailability\",\r\n \"displayName\": \"Service Availability\",\r\n \"internalMetricName\": \"ServiceAvailability\",\r\n \"displayDescription\": \"Account requests availability at one hour, day or month granularity\",\r\n \"unit\": \"Percent\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"Average\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": false,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Minimum\",\r\n \"Average\",\r\n \"Maximum\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1H\"\r\n ],\r\n \"dimensions\": []\r\n },\r\n {\r\n \"name\": \"SqlContainerCreate\",\r\n \"displayName\": \"Sql Container Created\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Sql Container Created\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"displayName\": \"Database Name\",\r\n \"internalName\": \"ResourceName\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"displayName\": \"Container Name\",\r\n \"internalName\": \"ChildResourceName\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"sql\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"containers\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Create\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"SqlContainerDelete\",\r\n \"displayName\": \"Sql Container Deleted\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Sql Container Deleted\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"internalName\": \"ChildResourceName\",\r\n \"displayName\": \"Container Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"sql\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"containers\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Delete\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"SqlContainerUpdate\",\r\n \"displayName\": \"Sql Container Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Sql Container Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"internalName\": \"ChildResourceName\",\r\n \"displayName\": \"Container Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"sql\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"containers\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Upsert\"\r\n },\r\n {\r\n \"value\": \"Replace\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"TableTableDelete\",\r\n \"displayName\": \"AzureTable Table Deleted\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"AzureTable Table Deleted\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Table Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"table\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"tables\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Delete\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"TotalRequestUnits\",\r\n \"displayName\": \"Total Request Units\",\r\n \"internalMetricName\": \"TotalRequestUnits\",\r\n \"displayDescription\": \"Request Units consumed\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\",\r\n \" Average\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"StatusCode\",\r\n \"internalName\": \"StatusCode\"\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\"\r\n },\r\n {\r\n \"name\": \"Status\",\r\n \"internalName\": \"Status\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"UpdateAccountReplicationSettings\",\r\n \"displayName\": \"Account Replication Settings Updated\",\r\n \"internalMetricName\": \"UpdateAccountReplicationSettings\",\r\n \"displayDescription\": \"Account Replication Settings Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": []\r\n },\r\n {\r\n \"name\": \"GremlinDatabaseThroughputUpdate\",\r\n \"displayName\": \"Gremlin Database Throughput Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Gremlin Database Throughput Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"sql\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"databases\"\r\n },\r\n {\r\n \"value\": \"gremlindatabases\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"True\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"AutoscaleMaxThroughput\",\r\n \"displayName\": \"Autoscale Max Throughput\",\r\n \"internalMetricName\": \"AutoscaleMaxThroughput\",\r\n \"displayDescription\": \"Autoscale Max Throughput\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Maximum\",\r\n \"lockAggregationType\": \"Maximum\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Maximum\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"CassandraKeyspaceCreate\",\r\n \"displayName\": \"Cassandra Keyspace Created\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Cassandra Keyspace Created\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"displayName\": \"Keyspace Name\",\r\n \"internalName\": \"ResourceName\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"cassandra\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"keyspaces\"\r\n },\r\n {\r\n \"value\": \"cassandrakeyspaces\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Create\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"AddRegion\",\r\n \"displayName\": \"Region Added\",\r\n \"internalMetricName\": \"AddRegion\",\r\n \"displayDescription\": \"Region Added\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"CassandraTableUpdate\",\r\n \"displayName\": \"Cassandra Table Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Cassandra Table Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Keyspace Name\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"internalName\": \"ChildResourceName\",\r\n \"displayName\": \"Table Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"cassandra\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"tables\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Upsert\"\r\n },\r\n {\r\n \"value\": \"Replace\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"CassandraConnectorReplicationHealthStatus\",\r\n \"displayName\": \"Cassandra Connector Replication Health Status\",\r\n \"internalMetricName\": \"ReplicationHealthStatus\",\r\n \"displayDescription\": \"Cassandra Connector Replication Health Status\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": false,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"DatabaseAccount\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"NotStarted\",\r\n \"displayName\": \"Replication Not Started\",\r\n \"internalName\": \"NotStarted\"\r\n },\r\n {\r\n \"name\": \"ReplicationInProgress\",\r\n \"displayName\": \"Replication In Progress\",\r\n \"internalName\": \"ReplicationInProgress\"\r\n },\r\n {\r\n \"name\": \"Error\",\r\n \"displayName\": \"Replication In Error\",\r\n \"internalName\": \"Error\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"GremlinDatabaseUpdate\",\r\n \"displayName\": \"Gremlin Database Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Gremlin Database Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"gremlin\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"databases\"\r\n },\r\n {\r\n \"value\": \"gremlindatabases\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Upsert\"\r\n },\r\n {\r\n \"value\": \"Replace\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoCollectionCreate\",\r\n \"displayName\": \"Mongo Collection Created\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Mongo Collection Created\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"displayName\": \"Database Name\",\r\n \"internalName\": \"ResourceName\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"displayName\": \"Collection Name\",\r\n \"internalName\": \"ChildResourceName\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"mongodb\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"collections\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Create\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"CassandraKeyspaceThroughputUpdate\",\r\n \"displayName\": \"Cassandra Keyspace Throughput Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Cassandra Keyspace Throughput Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Keyspace Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"cassandra\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"keyspaces\"\r\n },\r\n {\r\n \"value\": \"cassandrakeyspaces\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"True\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"CassandraTableThroughputUpdate\",\r\n \"displayName\": \"Cassandra Table Throughput Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Cassandra Table Throughput Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Keyspace Name\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"internalName\": \"ChildResourceName\",\r\n \"displayName\": \"Table Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"cassandra\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"tables\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"True\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"GremlinGraphThroughputUpdate\",\r\n \"displayName\": \"Gremlin Graph Throughput Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Gremlin Graph Throughput Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"internalName\": \"ChildResourceName\",\r\n \"displayName\": \"Graph Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"sql\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"graphs\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"True\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoCollectionThroughputUpdate\",\r\n \"displayName\": \"Mongo Collection Throughput Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Mongo Collection Throughput Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"internalName\": \"ChildResourceName\",\r\n \"displayName\": \"Collection Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"mongodb\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"collections\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"True\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoRequestCharge\",\r\n \"displayName\": \"Mongo Request Charge\",\r\n \"internalMetricName\": \"MongoRequestCharge\",\r\n \"displayDescription\": \"Mongo Request Units Consumed\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\",\r\n \"Average\",\r\n \"Maximum\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"CommandName\",\r\n \"internalName\": \"CommandName\"\r\n },\r\n {\r\n \"name\": \"ErrorCode\",\r\n \"internalName\": \"ErrorCode\"\r\n },\r\n {\r\n \"name\": \"Status\",\r\n \"internalName\": \"Status\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ProvisionedThroughput\",\r\n \"displayName\": \"Provisioned Throughput\",\r\n \"internalMetricName\": \"ProvisionedThroughput\",\r\n \"displayDescription\": \"Provisioned Throughput\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Maximum\",\r\n \"lockAggregationType\": \"Maximum\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": false,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Maximum\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"RegionFailover\",\r\n \"displayName\": \"Region Failed Over\",\r\n \"internalMetricName\": \"RegionFailover\",\r\n \"displayDescription\": \"Region Failed Over\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": []\r\n },\r\n {\r\n \"name\": \"ReplicationLatency\",\r\n \"displayName\": \"P99 Replication Latency\",\r\n \"internalMetricName\": \"ReplicationLatency\",\r\n \"displayDescription\": \"P99 Replication Latency across source and target regions for geo-enabled account\",\r\n \"unit\": \"MilliSeconds\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": false,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccount\",\r\n \"supportedAggregationTypes\": [\r\n \"Minimum\",\r\n \"Maximum\",\r\n \"Average\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"SourceRegion\",\r\n \"internalName\": \"SourceRegion\"\r\n },\r\n {\r\n \"name\": \"TargetRegion\",\r\n \"internalName\": \"TargetRegion\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"SqlDatabaseDelete\",\r\n \"displayName\": \"Sql Database Deleted\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Sql Database Deleted\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"sql\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"databases\"\r\n },\r\n {\r\n \"value\": \"sqldatabases\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Delete\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"SqlDatabaseUpdate\",\r\n \"displayName\": \"Sql Database Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Sql Database Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"sql\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"databases\"\r\n },\r\n {\r\n \"value\": \"sqldatabases\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Upsert\"\r\n },\r\n {\r\n \"value\": \"Replace\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"TableTableThroughputUpdate\",\r\n \"displayName\": \"AzureTable Table Throughput Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"AzureTable Table Throughput Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Table Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"table\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"tables\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"True\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"TableTableUpdate\",\r\n \"displayName\": \"AzureTable Table Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"AzureTable Table Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Table Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"table\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"tables\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Upsert\"\r\n },\r\n {\r\n \"value\": \"Replace\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"UpdateAccountNetworkSettings\",\r\n \"displayName\": \"Account Network Settings Updated\",\r\n \"internalMetricName\": \"UpdateAccountNetworkSettings\",\r\n \"displayDescription\": \"Account Network Settings Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": []\r\n },\r\n {\r\n \"name\": \"UpdateDiagnosticsSettings\",\r\n \"displayName\": \"Account Diagnostic Settings Updated\",\r\n \"internalMetricName\": \"UpdateDiagnosticSettings\",\r\n \"displayDescription\": \"Account Diagnostic Settings Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DiagnosticSettingsName\",\r\n \"internalName\": \"DiagnosticSettingsName\",\r\n \"displayName\": \"DiagnosticSettings Name\"\r\n },\r\n {\r\n \"name\": \"ResourceGroupName\",\r\n \"internalName\": \"ResourceGroupName\",\r\n \"displayName\": \"ResourceGroup Name\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IntegratedCacheHitRate\",\r\n \"displayName\": \"IntegratedCacheHitRate\",\r\n \"internalMetricName\": \"IntegratedCacheHitRate\",\r\n \"displayDescription\": \"Cache hit rate for integrated caches\",\r\n \"unit\": \"Percent\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"Average\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": false,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"CacheType\",\r\n \"internalName\": \"CacheType\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IntegratedCacheTTLExpirationCount\",\r\n \"displayName\": \"IntegratedCacheTTLExpirationCount\",\r\n \"internalMetricName\": \"IntegratedCacheTTLExpirationCount\",\r\n \"displayDescription\": \"Number of entries removed from the integrated cache due to TTL expiration\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"Average\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": false,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"CacheType\",\r\n \"internalName\": \"CacheType\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Database\",\r\n \"Operation\": \"Write SQL database\",\r\n \"Description\": \"Create a SQL database.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Database\",\r\n \"Operation\": \"Read SQL database(s)\",\r\n \"Description\": \"Read a SQL database or list all the SQL databases.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Database\",\r\n \"Operation\": \"Delete SQL database\",\r\n \"Description\": \"Delete a SQL database.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Database\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Container\",\r\n \"Operation\": \"Write SQL container\",\r\n \"Description\": \"Create or update a SQL container.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Container\",\r\n \"Operation\": \"Read SQL container(s)\",\r\n \"Description\": \"Read a SQL container or list all the SQL containers.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Container\",\r\n \"Operation\": \"Delete SQL container\",\r\n \"Description\": \"Delete a SQL container.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Container\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/storedProcedures/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Stored Procedure\",\r\n \"Operation\": \"Write SQL stored procedure\",\r\n \"Description\": \"Create or update a SQL stored procedure.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/storedProcedures/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Stored Procedure\",\r\n \"Operation\": \"Read SQL stored procedure(s)\",\r\n \"Description\": \"Read a SQL stored procedure or list all the SQL stored procedures.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/storedProcedures/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Stored Procedure\",\r\n \"Operation\": \"Delete SQL stored procedure\",\r\n \"Description\": \"Delete a SQL stored procedure.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/storedProcedures/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Stored Procedure\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/userDefinedFunctions/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL User Defined Function\",\r\n \"Operation\": \"Write SQL user defined function\",\r\n \"Description\": \"Create or update a SQL user defined function.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/userDefinedFunctions/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL User Defined Function\",\r\n \"Operation\": \"Read SQL user defined function(s)\",\r\n \"Description\": \"Read a SQL user defined function or list all the SQL user defined functions.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/userDefinedFunctions/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL User Defined Function\",\r\n \"Operation\": \"Delete SQL user defined function\",\r\n \"Description\": \"Delete a SQL user defined function.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/userDefinedFunctions/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL User Defined Function\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/triggers/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Tirgger\",\r\n \"Operation\": \"Write SQL trigger\",\r\n \"Description\": \"Create or update a SQL trigger.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/triggers/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Tirgger\",\r\n \"Operation\": \"Read SQL trigger(s)\",\r\n \"Description\": \"Read a SQL trigger or list all the SQL triggers.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/triggers/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Tirgger\",\r\n \"Operation\": \"Delete SQL trigger\",\r\n \"Description\": \"Delete a SQL trigger.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/triggers/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Tirgger\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/tables/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table\",\r\n \"Operation\": \"Write table\",\r\n \"Description\": \"Create or update a table.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/tables/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table\",\r\n \"Operation\": \"Read table(s)\",\r\n \"Description\": \"Read a table or list all the tables.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/tables/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table\",\r\n \"Operation\": \"Delete table\",\r\n \"Description\": \"Delete a table.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/tables/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Database\",\r\n \"Operation\": \"Write MongoDB database\",\r\n \"Description\": \"Create a MongoDB database.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Database\",\r\n \"Operation\": \"Read MongoDB database(s)\",\r\n \"Description\": \"Read a MongoDB database or list all the MongoDB databases.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Database\",\r\n \"Operation\": \"Delete MongoDB database\",\r\n \"Description\": \"Delete a MongoDB database.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Database\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Collection\",\r\n \"Operation\": \"Write MongoDB collection\",\r\n \"Description\": \"Create or update a MongoDB collection.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Collection\",\r\n \"Operation\": \"Read MongoDB collection(s)\",\r\n \"Description\": \"Read a MongoDB collection or list all the MongoDB collections.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Collection\",\r\n \"Operation\": \"Delete MongoDB collection\",\r\n \"Description\": \"Delete a MongoDB collection.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Collection\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Keyspace\",\r\n \"Operation\": \"Write Cassandra keyspace\",\r\n \"Description\": \"Create a Cassandra keyspace.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Keyspace\",\r\n \"Operation\": \"Read Cassandra keyspace(s)\",\r\n \"Description\": \"Read a Cassandra keyspace or list all the Cassandra keyspaces.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Keyspace\",\r\n \"Operation\": \"Delete Cassandra keyspace\",\r\n \"Description\": \"Delete a Cassandra keyspace.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Keyspace\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Table\",\r\n \"Operation\": \"Write Cassandra table\",\r\n \"Description\": \"Create or update a Cassandra table.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Table\",\r\n \"Operation\": \"Read Cassandra table(s)\",\r\n \"Description\": \"Read a Cassandra table or list all the Cassandra tables.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Table\",\r\n \"Operation\": \"Delete Cassandra table\",\r\n \"Description\": \"Delete a Cassandra table.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Table\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Database\",\r\n \"Operation\": \"Write Gremlin database\",\r\n \"Description\": \"Create a Gremlin database.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Database\",\r\n \"Operation\": \"Read Gremlin database(s)\",\r\n \"Description\": \"Read a Gremlin database or list all the Gremlin databases.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Database\",\r\n \"Operation\": \"Delete Gremlin database\",\r\n \"Description\": \"Delete a Gremlin database.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Database\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Graph\",\r\n \"Operation\": \"Write Gremlin graph\",\r\n \"Description\": \"Create or update a Gremlin graph.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Graph\",\r\n \"Operation\": \"Read Gremlin graph(s)\",\r\n \"Description\": \"Read a Gremlin graph or list all the Gremlin graphs.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Graph\",\r\n \"Operation\": \"Delete Gremlin graph\",\r\n \"Description\": \"Delete a Gremlin graph.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Graph\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Database throughput setting\",\r\n \"Operation\": \"Write SQL database throughput\",\r\n \"Description\": \"Update a SQL database throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Database throughput setting\",\r\n \"Operation\": \"Read SQL database throughput\",\r\n \"Description\": \"Read a SQL database throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Database throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings/migrateToAutoscale/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Database throughput setting\",\r\n \"Operation\": \"Migrate SQL database offer to autoscale\",\r\n \"Description\": \"Migrate SQL database offer to autoscale.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings/migrateToManualThroughput/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Database throughput setting\",\r\n \"Operation\": \"Migrate a SQL database throughput offer to manual throughput\",\r\n \"Description\": \"Migrate a SQL database throughput offer to manual throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings/migrateToAutoscale/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Database throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings/migrateToManualThroughput/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Database throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Container throughput setting\",\r\n \"Operation\": \"Write SQL container throughput\",\r\n \"Description\": \"Update a SQL container throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Container throughput setting\",\r\n \"Operation\": \"Read SQL container throughput\",\r\n \"Description\": \"Read a SQL container throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Container throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/migrateToAutoscale/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Container throughput setting\",\r\n \"Operation\": \"Migrate SQL container offer to autoscale\",\r\n \"Description\": \"Migrate SQL container offer to autoscale.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/migrateToManualThroughput/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Container throughput setting\",\r\n \"Operation\": \"Migrate a SQL database throughput offer to manual throughput\",\r\n \"Description\": \"Migrate a SQL database throughput offer to manual throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/migrateToAutoscale/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Container throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/migrateToManualThroughput/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Container throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"Write table throughput\",\r\n \"Description\": \"Update a table throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"Read table throughput\",\r\n \"Description\": \"Read a table throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings/migrateToAutoscale/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"Migrate table offer to autoscale\",\r\n \"Description\": \"Migrate table offer to autoscale.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings/migrateToManualThroughput/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"Migrate table offer to to manual throughput\",\r\n \"Description\": \"Migrate table offer to to manual throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings/migrateToAutoscale/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings/migrateToManualThroughput/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Database throughput setting\",\r\n \"Operation\": \"Write MongoDB database throughput\",\r\n \"Description\": \"Update a MongoDB database throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Database throughput setting\",\r\n \"Operation\": \"Read MongoDB database throughput\",\r\n \"Description\": \"Read a MongoDB database throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Database throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings/migrateToAutoscale/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Database throughput setting\",\r\n \"Operation\": \"Migrate MongoDB database offer to autoscale\",\r\n \"Description\": \"Migrate MongoDB database offer to autoscale.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings/migrateToManualThroughput/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Database throughput setting\",\r\n \"Operation\": \"Migrate MongoDB database offer to to manual throughput\",\r\n \"Description\": \"Migrate MongoDB database offer to to manual throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings/migrateToAutoscale/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Database throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings/migrateToManualThroughput/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Database throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Collection throughput setting\",\r\n \"Operation\": \"Write MongoDB collection throughput\",\r\n \"Description\": \"Update a MongoDB collection throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Collection throughput setting\",\r\n \"Operation\": \"Read MongoDB collection throughput\",\r\n \"Description\": \"Read a MongoDB collection throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB Collection throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/migrateToAutoscale/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB collection throughput setting\",\r\n \"Operation\": \"Migrate MongoDB collection offer to autoscale\",\r\n \"Description\": \"Migrate MongoDB collection offer to autoscale.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/migrateToManualThroughput/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB collection throughput setting\",\r\n \"Operation\": \"Migrate MongoDB collection offer to to manual throughput\",\r\n \"Description\": \"Migrate MongoDB collection offer to to manual throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/migrateToAutoscale/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB collection throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/migrateToManualThroughput/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"MongoDB collection throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Keyspace throughput setting\",\r\n \"Operation\": \"Write Cassandra keyspace throughput\",\r\n \"Description\": \"Update a Cassandra keyspace throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Keyspace throughput setting\",\r\n \"Operation\": \"Read Cassandra keyspace throughput\",\r\n \"Description\": \"Read a Cassandra keyspace throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Keyspace throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings/migrateToAutoscale/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra keyspace throughput setting\",\r\n \"Operation\": \"Migrate Cassandra keyspace offer to autoscale\",\r\n \"Description\": \"Migrate Cassandra keyspace offer to autoscale.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings/migrateToManualThroughput/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra keyspace throughput setting\",\r\n \"Operation\": \"Migrate Cassandra keyspace offer to to manual throughput\",\r\n \"Description\": \"Migrate Cassandra keyspace offer to to manual throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings/migrateToAutoscale/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra keyspace throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings/migrateToManualThroughput/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra keyspace throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Table throughput setting\",\r\n \"Operation\": \"Write Cassandra table throughput\",\r\n \"Description\": \"Update a Cassandra table throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Table throughput setting\",\r\n \"Operation\": \"Read Cassandra table throughput\",\r\n \"Description\": \"Read a Cassandra table throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra Table throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings/migrateToAutoscale/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra table throughput setting\",\r\n \"Operation\": \"Migrate Cassandra table offer to autoscale\",\r\n \"Description\": \"Migrate Cassandra table offer to autoscale.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings/migrateToManualThroughput/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra table throughput setting\",\r\n \"Operation\": \"Migrate Cassandra table offer to to manual throughput\",\r\n \"Description\": \"Migrate Cassandra table offer to to manual throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings/migrateToAutoscale/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra table throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings/migrateToManualThroughput/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Cassandra table throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Database throughput setting\",\r\n \"Operation\": \"Write Gremlin database throughput\",\r\n \"Description\": \"Update a Gremlin database throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Database throughput setting\",\r\n \"Operation\": \"Read Gremlin database throughput\",\r\n \"Description\": \"Read a Gremlin database throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Database throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings/migrateToAutoscale/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Database throughput setting\",\r\n \"Operation\": \"Migrate Gremlin Database offer to autoscale\",\r\n \"Description\": \"Migrate Gremlin Database offer to autoscale.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings/migrateToManualThroughput/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Database throughput setting\",\r\n \"Operation\": \"Migrate Gremlin Database offer to to manual throughput\",\r\n \"Description\": \"Migrate Gremlin Database offer to to manual throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings/migrateToAutoscale/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Database throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings/migrateToManualThroughput/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Database throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Graph throughput setting\",\r\n \"Operation\": \"Write Gremlin graph throughput\",\r\n \"Description\": \"Update a Gremlin graph throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Graph throughput setting\",\r\n \"Operation\": \"Read Gremlin graph throughput\",\r\n \"Description\": \"Read a Gremlin graph throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin Graph throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings/migrateToAutoscale/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin graph throughput setting\",\r\n \"Operation\": \"Migrate Gremlin graph offer to autoscale\",\r\n \"Description\": \"Migrate Gremlin graph offer to autoscale.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings/migrateToManualThroughput/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin graph throughput setting\",\r\n \"Operation\": \"Migrate Gremlin graph offer to to manual throughput\",\r\n \"Description\": \"Migrate Gremlin graph offer to to manual throughput.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings/migrateToAutoscale/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin graph throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings/migrateToManualThroughput/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Gremlin graph throughput setting\",\r\n \"Operation\": \"Read operation results\",\r\n \"Description\": \"Read status of the asynchronous operation.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write database\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Create a database. Only applicable to API types: 'sql', 'mongodb', 'gremlin'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read database(s)\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a database or list all the databases. Only applicable to API types: 'sql', 'mongodb', 'gremlin'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete database\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete a database. Only applicable to API types: 'sql', 'mongodb', 'gremlin'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'sql', 'mongodb', 'gremlin'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/containers/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Container\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write container\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Create or update a container. Only applicable to API types: 'sql'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/containers/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Container\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read container(s)\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a container or list all the containers. Only applicable to API types: 'sql'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/containers/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Container\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete container\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete a container. Only applicable to API types: 'sql'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/containers/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Container\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'sql'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/tables/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write table\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Create or update a table. Only applicable to API types: 'table'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/tables/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read table(s)\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a table or list all the tables. Only applicable to API types: 'table'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/tables/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete table\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete a table. Only applicable to API types: 'table'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/tables/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'table'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/collections/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Collection\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write collection\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Create or update a collection. Only applicable to API types: 'mongodb'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/collections/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Collection\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read collection(s)\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a collection or list all the collections. Only applicable to API types: 'mongodb'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/collections/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Collection\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete collection\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete a collection. Only applicable to API types: 'mongodb'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/collections/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Collection\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'mongodb'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Keyspace\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write keyspace\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Create a keyspace. Only applicable to API types: 'cassandra'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Keyspace\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read keyspace(s)\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a keyspace or list all the keyspaces. Only applicable to API types: 'cassandra'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Keyspace\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete keyspace\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete a keyspace. Only applicable to API types: 'cassandra'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Keyspace\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'cassandra'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/tables/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write table\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Create or update a table. Only applicable to API types: 'cassandra'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/tables/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read table(s)\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a table or list all the tables. Only applicable to API types: 'cassandra'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/tables/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete table\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete a table. Only applicable to API types: 'cassandra'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/tables/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'cassandra'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Graph\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write graph\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Create or update a graph. Only applicable to API types: 'gremlin'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Graph\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read graph(s)\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a graph or list all the graphs. Only applicable to API types: 'gremlin'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Graph\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete graph\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Delete a graph. Only applicable to API types: 'gremlin'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Graph\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'gremlin'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/settings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write database throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Update a database throughput. Only applicable to API types: 'sql', 'mongodb', 'gremlin'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/settings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read database throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a database throughput. Only applicable to API types: 'sql', 'mongodb', 'gremlin'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/settings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'sql', 'mongodb', 'gremlin'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/containers/settings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Container throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write container throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Update a container throughput. Only applicable to API types: 'sql'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/containers/settings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Container throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read container throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a container throughput. Only applicable to API types: 'sql'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/containers/settings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Container throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'sql'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/tables/settings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write table throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Update a table throughput. Only applicable to API types: 'table'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/tables/settings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read table throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a table throughput. Only applicable to API types: 'table'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/tables/settings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'table'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/collections/settings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Collection throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write collection throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Update a collection throughput. Only applicable to API types: 'mongodb'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/collections/settings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Collection throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read collection throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a collection throughput. Only applicable to API types: 'mongodb'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/collections/settings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Collection throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'mongodb'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/settings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Keyspace throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write keyspace throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Update a keyspace throughput. Only applicable to API types: 'cassandra'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/settings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Keyspace throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read keyspace throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a keyspace throughput. Only applicable to API types: 'cassandra'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/settings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Keyspace throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'cassandra'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/tables/settings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write table throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Update a table throughput. Only applicable to API types: 'cassandra'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/tables/settings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read table throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a table throughput. Only applicable to API types: 'cassandra'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/keyspaces/tables/settings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Table throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'cassandra'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs/settings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Graph throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Write gremlin throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Update a graph throughput. Only applicable to API types: 'gremlin'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs/settings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Graph throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read graph throughput\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read a graph throughput. Only applicable to API types: 'gremlin'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs/settings/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Graph throughput setting\",\r\n \"Operation\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read operation results\",\r\n \"Description\": \"(Deprecated. Please use resource paths without '/apis/' segment) Read status of the asynchronous operation. Only applicable to API types: 'gremlin'. Only applicable for setting types: 'throughput'.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Operation Result\",\r\n \"Operation\": \"Read operation status\",\r\n \"Description\": \"Read status of the asynchronous operation\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccountNames/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account Names\",\r\n \"Operation\": \"Read database account names\",\r\n \"Description\": \"Checks for name availability.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Read database account\",\r\n \"Description\": \"Reads a database account.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Update database account\",\r\n \"Description\": \"Update a database accounts.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/listKeys/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"List keys\",\r\n \"Description\": \"List keys of a database account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/readonlykeys/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account readonly keys\",\r\n \"Operation\": \"Read database account readonly keys\",\r\n \"Description\": \"Reads the database account readonly keys.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/readonlykeys/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account readonly keys\",\r\n \"Operation\": \"Read database account readonly keys\",\r\n \"Description\": \"Reads the database account readonly keys.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/regenerateKey/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Rotate keys\",\r\n \"Description\": \"Rotate keys of a database account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/listConnectionStrings/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Get Connection Strings\",\r\n \"Description\": \"Get the connection strings for a database account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/changeResourceGroup/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Change resource group\",\r\n \"Description\": \"Change resource group of a database account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/failoverPriorityChange/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Manual Failover\",\r\n \"Description\": \"Change failover priorities of regions of a database account. This is used to perform manual failover operation\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/offlineRegion/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Offline Region\",\r\n \"Description\": \"Offline a region of a database account. \"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/onlineRegion/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Online Region\",\r\n \"Description\": \"Online a region of a database account.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Delete database accounts\",\r\n \"Description\": \"Deletes the database accounts.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Read operation status\",\r\n \"Description\": \"Read status of the asynchronous operation\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/percentile/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account latencies\",\r\n \"Operation\": \"Read latency percentiles\",\r\n \"Description\": \"Read percentiles of replication latencies\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/percentile/metrics/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account metrics\",\r\n \"Operation\": \"Read latency metrics\",\r\n \"Description\": \"Read latency metrics\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/percentile/targetRegion/metrics/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account metrics for a specific target region\",\r\n \"Operation\": \"Read latency metricsfor a specific target region\",\r\n \"Description\": \"Read latency metrics for a specific target region\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/percentile/sourceRegion/targetRegion/metrics/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account metrics for a specific source and target region\",\r\n \"Operation\": \"Read latency metrics for a specific source and target region\",\r\n \"Description\": \"Read latency metrics for a specific source and target region\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/databases/collections/partitions/usages/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account partition usages\",\r\n \"Operation\": \"Read database account partition level usages\",\r\n \"Description\": \"Read database account partition level usages\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/getBackupPolicy/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database\",\r\n \"Operation\": \"Get BackupPolicy\",\r\n \"Description\": \"Get the backup policy of database account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/metricDefinitions/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account metric definitions\",\r\n \"Operation\": \"Read database account metrics definitions\",\r\n \"Description\": \"Reads the database account metrics definitions.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/metrics/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account metrics\",\r\n \"Operation\": \"Read database account metrics\",\r\n \"Description\": \"Reads the database account metrics.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/usages/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account usages\",\r\n \"Operation\": \"Read database account usages\",\r\n \"Description\": \"Reads the database account usages.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/databases/metricDefinitions/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database metric definitions\",\r\n \"Operation\": \"Read database metric definitions\",\r\n \"Description\": \"Reads the database metric definitions\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/databases/metrics/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database metrics\",\r\n \"Operation\": \"Read database metrics\",\r\n \"Description\": \"Reads the database metrics.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/databases/usages/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database usages\",\r\n \"Operation\": \"Read database usages\",\r\n \"Description\": \"Reads the database usages.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/databases/collections/metricDefinitions/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Collection metric definitions\",\r\n \"Operation\": \"Read collection metric definitions\",\r\n \"Description\": \"Reads the collection metric definitions.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/databases/collections/metrics/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Collection metrics\",\r\n \"Operation\": \"Read collection metrics\",\r\n \"Description\": \"Reads the collection metrics.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/databases/collections/usages/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Collection usages\",\r\n \"Operation\": \"Read collection usages\",\r\n \"Description\": \"Reads the collection usages.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/region/metrics/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account and Region metrics\",\r\n \"Operation\": \"Read region database account metrics\",\r\n \"Description\": \"Reads the region and database account metrics.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/region/databases/collections/metrics/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Regional Collection metrics\",\r\n \"Operation\": \"Read regional collection metrics\",\r\n \"Description\": \"Reads the regional collection metrics.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/region/databases/collections/partitions/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Regional Database Account Collection partitions\",\r\n \"Operation\": \"Read regional database account partitions in a collection\",\r\n \"Description\": \"Read regional database account partitions in a collection\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/databases/collections/partitions/metrics/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account partition metrics\",\r\n \"Operation\": \"Read database account partition level metrics\",\r\n \"Description\": \"Read database account partition level metrics\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/region/databases/collections/partitions/metrics/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Regional Database Account partition metrics\",\r\n \"Operation\": \"Read regional database account partition level metrics\",\r\n \"Description\": \"Read regional database account partition level metrics\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/region/databases/collections/partitionKeyRangeId/metrics/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Regional Database Account partition key metrics\",\r\n \"Operation\": \"Read regional database account partition key level metrics\",\r\n \"Description\": \"Read regional database account partition key level metrics\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/databases/collections/partitionKeyRangeId/metrics/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account partition key metrics\",\r\n \"Operation\": \"Read database account partition key level metrics\",\r\n \"Description\": \"Read database account partition key level metrics\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/databases/collections/partitions/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account Collection partitions\",\r\n \"Operation\": \"Read database account partitions in a collection\",\r\n \"Description\": \"Read database account partitions in a collection\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/register/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"\",\r\n \"Operation\": \"Register Microsoft DocumentDB resource provider\",\r\n \"Description\": \" Register the Microsoft DocumentDB resource provider for the subscription\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/operations/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"operations\",\r\n \"Operation\": \"List operations\",\r\n \"Description\": \"Read operations available for the Microsoft DocumentDB \"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/PrivateEndpointConnectionsApproval/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account Private Endpoint Connection Approval\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/PrivateEndpointConnectionsApproval/action\",\r\n \"Description\": \"Manage a private endpoint connection of Database Account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnectionProxies/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account Private Endpoint Connection Proxy\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnectionProxies/read\",\r\n \"Description\": \"Read a private endpoint connection proxy of Database Account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnectionProxies/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account Private Endpoint Connection Proxy\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnectionProxies/write\",\r\n \"Description\": \"Create or update a private endpoint connection proxy of Database Account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnectionProxies/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account Private Endpoint Connection Proxy\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnectionProxies/delete\",\r\n \"Description\": \"Delete a private endpoint connection proxy of Database Account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnectionProxies/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Operation Result\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnectionProxies/operationResults/read\",\r\n \"Description\": \"Read Status of private endpoint connection proxy asynchronous operation\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnectionProxies/validate/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account Private Endpoint Connection Proxy\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnectionProxies/validate/action\",\r\n \"Description\": \"Validate a private endpoint connection proxy of Database Account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account Private Endpoint Connection\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections/read\",\r\n \"Description\": \"Read a private endpoint connection or list all the private endpoint connections of a Database Account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account Private Endpoint Connection\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections/write\",\r\n \"Description\": \"Create or update a private endpoint connection of a Database Account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account Private Endpoint Connection\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections/delete\",\r\n \"Description\": \"Delete a private endpoint connection of a Database Account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Operation Result\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections/operationResults/read\",\r\n \"Description\": \"Read Status of privateEndpointConnenctions asynchronous operation\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/privateLinkResources/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account Private Link Resource\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/privateLinkResources/read\",\r\n \"Description\": \"Read a private link resource or list all the private link resources of a Database Account\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/locations/operationsStatus/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Asynchronous Operations\",\r\n \"Operation\": \"Microsoft.DocumentDB/locations/operationsStatus/read\",\r\n \"Description\": \"Reads Status of Asynchronous Operations\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/locations/deleteVirtualNetworkOrSubnets/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Microsoft.DocumentDB/locations/deleteVirtualNetworkOrSubnets/action\",\r\n \"Description\": \"Notifies Microsoft.DocumentDB that VirtualNetwork or Subnet is being deleted\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/locations/deleteVirtualNetworkOrSubnets/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Operation Result\",\r\n \"Operation\": \"Microsoft.DocumentDB/locations/deleteVirtualNetworkOrSubnets/operationResults/read\",\r\n \"Description\": \"Read Status of deleteVirtualNetworkOrSubnets asynchronous operation\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/restore/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/restore/action\",\r\n \"Description\": \"Submit a restore request\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/backup/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/backup/action\",\r\n \"Description\": \"Submit a request to configure backup\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Notebook Workspace\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces/write\",\r\n \"Description\": \"Create or update a notebook workspace\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Notebook Workspace\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces/read\",\r\n \"Description\": \"Read a notebook workspace\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Notebook Workspace\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces/delete\",\r\n \"Description\": \"Delete a notebook workspace\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces/operationResults/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Operation Result\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces/operationResults/read\",\r\n \"Description\": \"Read the status of an asynchronous operation on notebook workspaces\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces/listConnectionInfo/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Notebook Workspace\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces/listConnectionInfo/action\",\r\n \"Description\": \"List the connection info for a notebook workspace\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Restorable database account\",\r\n \"Operation\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read\",\r\n \"Description\": \"Read a restorable database account or List all the restorable database accounts\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restore/action \",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Restore action on restorable database account\",\r\n \"Operation\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restore/action\",\r\n \"Description\": \"Submit a restore request\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/locations/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"CosmosDB location\",\r\n \"Operation\": \"Microsoft.DocumentDB/locations/read\",\r\n \"Description\": \"Read the metadata of a location or List all location metadata\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/cassandraClusters/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Managed Cassandra cluster\",\r\n \"Operation\": \"Microsoft.DocumentDB/cassandraClusters/read\",\r\n \"Description\": \"Read a managed Cassandra cluster or list all managed Cassandra clusters\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/cassandraClusters/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Managed Cassandra cluster\",\r\n \"Operation\": \"Microsoft.DocumentDB/cassandraClusters/write\",\r\n \"Description\": \"Create or update a managed Cassandra cluster\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/cassandraClusters/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Managed Cassandra cluster\",\r\n \"Operation\": \"Microsoft.DocumentDB/cassandraClusters/delete\",\r\n \"Description\": \"Delete a managed Cassandra cluster\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/cassandraClusters/repair/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"\",\r\n \"Operation\": \"Microsoft.DocumentDB/cassandraClusters/repair/action\",\r\n \"Description\": \"Request a repair of a managed Cassandra keyspace\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/cassandraClusters/fetchNodeStatus/action\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"\",\r\n \"Operation\": \"Microsoft.DocumentDB/cassandraClusters/fetchNodeStatus/action\",\r\n \"Description\": \"Asynchronously fetch node status of all nodes in a managed Cassandra cluster\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/cassandraClusters/dataCenters/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Managed Cassandra data center\",\r\n \"Operation\": \"Microsoft.DocumentDB/cassandraClusters/dataCenters/read\",\r\n \"Description\": \"Read a data center in a managed Cassandra cluster or list all data centers in a managed Cassandra cluster\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/cassandraClusters/dataCenters/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Managed Cassandra data center\",\r\n \"Operation\": \"Microsoft.DocumentDB/cassandraClusters/dataCenters/write\",\r\n \"Description\": \"Create or update a data center in a managed Cassandra cluster\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/cassandraClusters/dataCenters/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Managed Cassandra data center\",\r\n \"Operation\": \"Microsoft.DocumentDB/cassandraClusters/dataCenters/delete\",\r\n \"Description\": \"Delete a data center in a managed Cassandra cluster\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Role Definition\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions/read\",\r\n \"Description\": \"Read a SQL Role Definition\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Role Definition\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions/write\",\r\n \"Description\": \"Create or update a SQL Role Definition\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Role Definition\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions/delete\",\r\n \"Description\": \"Delete a SQL Role Definition\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Role Assignment\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments/read\",\r\n \"Description\": \"Read a SQL Role Assignment\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Role Assignment\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments/write\",\r\n \"Description\": \"Create or update a SQL Role Assignment\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"SQL Role Assignment\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments/delete\",\r\n \"Description\": \"Delete a SQL Role Assignment\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/services/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"CosmosDB Service Reosurce\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/services/read\",\r\n \"Description\": \"Reads a CosmosDB Service Resource\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/services/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"CosmosDB Service Reosurce\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/services/write\",\r\n \"Description\": \"Writes a CosmosDB Service Resource\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/services/delete\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"CosmosDB Service Reosurce\",\r\n \"Operation\": \"Microsoft.DocumentDB/databaseAccounts/services/delete\",\r\n \"Description\": \"Deletes a CosmosDB Service Resource\"\r\n }\r\n },\r\n {\r\n \"origin\": \"system\",\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/providers/Microsoft.Insights/logDefinitions/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Read database account log definitions\",\r\n \"Description\": \"Gets the available log catageries for Database Account\"\r\n },\r\n \"properties\": {\r\n \"serviceSpecification\": {\r\n \"logSpecifications\": [\r\n {\r\n \"name\": \"DataPlaneRequests\",\r\n \"displayName\": \"DataPlaneRequests\",\r\n \"blobDuration\": \"PT1H\"\r\n },\r\n {\r\n \"name\": \"MongoRequests\",\r\n \"displayName\": \"MongoRequests\",\r\n \"blobDuration\": \"PT1H\"\r\n },\r\n {\r\n \"name\": \"QueryRuntimeStatistics\",\r\n \"displayName\": \"QueryRuntimeStatistics\",\r\n \"blobDuration\": \"PT1H\"\r\n },\r\n {\r\n \"name\": \"PartitionKeyStatistics\",\r\n \"displayName\": \"PartitionKeyStatistics\",\r\n \"blobDuration\": \"PT1H\"\r\n },\r\n {\r\n \"name\": \"PartitionKeyRUConsumption\",\r\n \"displayName\": \"PartitionKeyRUConsumption\",\r\n \"blobDuration\": \"PT1H\"\r\n },\r\n {\r\n \"name\": \"ControlPlaneRequests\",\r\n \"displayName\": \"ControlPlaneRequests\",\r\n \"blobDuration\": \"PT1H\"\r\n },\r\n {\r\n \"name\": \"CassandraRequests\",\r\n \"displayName\": \"CassandraRequests\",\r\n \"blobDuration\": \"PT1H\"\r\n },\r\n {\r\n \"name\": \"GremlinRequests\",\r\n \"displayName\": \"GremlinRequests\",\r\n \"blobDuration\": \"PT1H\"\r\n },\r\n {\r\n \"name\": \"TableApiRequests\",\r\n \"displayName\": \"TableApiRequests\",\r\n \"blobDuration\": \"PT1H\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"origin\": \"system\",\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/providers/Microsoft.Insights/diagnosticSettings/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Write diagnostic setting\",\r\n \"Description\": \"Gets the diagnostic setting for the resource\"\r\n }\r\n },\r\n {\r\n \"origin\": \"system\",\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/providers/Microsoft.Insights/diagnosticSettings/write\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDB\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Write diagnostic setting\",\r\n \"Description\": \"Creates or updates the diagnostic setting for the resource\"\r\n }\r\n },\r\n {\r\n \"origin\": \"system\",\r\n \"name\": \"Microsoft.DocumentDB/databaseAccounts/providers/Microsoft.Insights/metricDefinitions/read\",\r\n \"display\": {\r\n \"Provider\": \"Microsoft DocumentDb\",\r\n \"Resource\": \"Database Account\",\r\n \"Operation\": \"Get database account metric definitions\",\r\n \"Description\": \"Gets the available metrics for the database Account\"\r\n },\r\n \"properties\": {\r\n \"serviceSpecification\": {\r\n \"metricSpecifications\": [\r\n {\r\n \"name\": \"CreateAccount\",\r\n \"displayName\": \"Account Created\",\r\n \"internalMetricName\": \"CreateAccount\",\r\n \"displayDescription\": \"Account Created\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": []\r\n },\r\n {\r\n \"name\": \"CassandraKeyspaceUpdate\",\r\n \"displayName\": \"Cassandra Keyspace Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Cassandra Keyspace Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Keyspace Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"cassandra\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"keyspaces\"\r\n },\r\n {\r\n \"value\": \"cassandrakeyspaces\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Upsert\"\r\n },\r\n {\r\n \"value\": \"Replace\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"GremlinGraphDelete\",\r\n \"displayName\": \"Gremlin Graph Deleted\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Gremlin Graph Deleted\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"internalName\": \"ChildResourceName\",\r\n \"displayName\": \"Graph Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"gremlin\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"graphs\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Delete\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"CassandraTableCreate\",\r\n \"displayName\": \"Cassandra Table Created\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Cassandra Table Created\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"displayName\": \"Keyspace Name\",\r\n \"internalName\": \"ResourceName\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"displayName\": \"Table Name\",\r\n \"internalName\": \"ChildResourceName\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"cassandra\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"tables\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Create\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MetadataRequests\",\r\n \"displayName\": \"Metadata Requests\",\r\n \"internalMetricName\": \"MetadataRequests\",\r\n \"displayDescription\": \"Count of metadata requests. Cosmos DB maintains system metadata collection for each account, that allows you to enumerate collections, databases, etc, and their configurations, free of charge.\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"StatusCode\",\r\n \"internalName\": \"StatusCode\"\r\n },\r\n {\r\n \"name\": \"Role\",\r\n \"internalName\": \"Role\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"MasterCluster0\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"DataUsage\",\r\n \"displayName\": \"Data Usage\",\r\n \"internalMetricName\": \"DataUsage\",\r\n \"displayDescription\": \"Total data usage reported at 5 minutes granularity\",\r\n \"unit\": \"Bytes\",\r\n \"aggregationType\": \"Total\",\r\n \"lockAggregationType\": \"Total\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\",\r\n \" Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IndexUsage\",\r\n \"displayName\": \"Index Usage\",\r\n \"internalMetricName\": \"IndexUsage\",\r\n \"displayDescription\": \"Total index usage reported at 5 minutes granularity\",\r\n \"unit\": \"Bytes\",\r\n \"aggregationType\": \"Total\",\r\n \"lockAggregationType\": \"Total\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\",\r\n \" Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"GremlinDatabaseCreate\",\r\n \"displayName\": \"Gremlin Database Created\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Gremlin Database Created\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"displayName\": \"Database Name\",\r\n \"internalName\": \"ResourceName\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"gremlin\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"databases\"\r\n },\r\n {\r\n \"value\": \"gremlindatabases\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Create\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"GremlinGraphUpdate\",\r\n \"displayName\": \"Gremlin Graph Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Gremlin Graph Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"internalName\": \"ChildResourceName\",\r\n \"displayName\": \"Graph Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"gremlin\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"graphs\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Upsert\"\r\n },\r\n {\r\n \"value\": \"Replace\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"CassandraTableDelete\",\r\n \"displayName\": \"Cassandra Table Deleted\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Cassandra Table Deleted\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Keyspace Name\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"internalName\": \"ChildResourceName\",\r\n \"displayName\": \"Table Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"cassandra\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"tables\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Delete\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"CassandraConnectorAvgReplicationLatency\",\r\n \"displayName\": \"Cassandra Connector Average ReplicationLatency\",\r\n \"internalMetricName\": \"AverageReplicationLatencyInMilliseconds\",\r\n \"displayDescription\": \"Cassandra Connector Average ReplicationLatency\",\r\n \"unit\": \"MilliSeconds\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"DatabaseAccount\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": []\r\n },\r\n {\r\n \"name\": \"CassandraRequestCharges\",\r\n \"displayName\": \"Cassandra Request Charges\",\r\n \"internalMetricName\": \"CassandraRequestCharges\",\r\n \"displayDescription\": \"RUs consumed for Cassandra requests made\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"lockAggregationType\": \"Total\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\",\r\n \"Average\",\r\n \"Minimum\",\r\n \"Maximum\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"APIType\",\r\n \"internalName\": \"APIType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"CassandraService\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\"\r\n },\r\n {\r\n \"name\": \"ResourceType\",\r\n \"internalName\": \"ResourceType\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"CassandraRequests\",\r\n \"displayName\": \"Cassandra Requests\",\r\n \"internalMetricName\": \"CassandraRequests\",\r\n \"displayDescription\": \"Number of Cassandra requests made\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"APIType\",\r\n \"internalName\": \"APIType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"CassandraService\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\"\r\n },\r\n {\r\n \"name\": \"ResourceType\",\r\n \"internalName\": \"ResourceType\"\r\n },\r\n {\r\n \"name\": \"ErrorCode\",\r\n \"internalName\": \"ErrorCode\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"DeleteAccount\",\r\n \"displayName\": \"Account Deleted\",\r\n \"internalMetricName\": \"DeleteAccount\",\r\n \"displayDescription\": \"Account Deleted\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": []\r\n },\r\n {\r\n \"name\": \"GremlinDatabaseDelete\",\r\n \"displayName\": \"Gremlin Database Deleted\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Gremlin Database Deleted\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"gremlin\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"databases\"\r\n },\r\n {\r\n \"value\": \"gremlindatabases\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Delete\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoDBDatabaseUpdate\",\r\n \"displayName\": \"Mongo Database Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Mongo Database Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"mongodb\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"databases\"\r\n },\r\n {\r\n \"value\": \"mongodbdatabases\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Upsert\"\r\n },\r\n {\r\n \"value\": \"Replace\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoDatabaseDelete\",\r\n \"displayName\": \"Mongo Database Deleted\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Mongo Database Deleted\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"mongodb\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"databases\"\r\n },\r\n {\r\n \"value\": \"mongodbdatabases\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Delete\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoDatabaseThroughputUpdate\",\r\n \"displayName\": \"Mongo Database Throughput Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Mongo Database Throughput Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"mongodb\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"databases\"\r\n },\r\n {\r\n \"value\": \"mongodbdatabases\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"True\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoRequests\",\r\n \"displayName\": \"Mongo Requests\",\r\n \"internalMetricName\": \"MongoRequests\",\r\n \"displayDescription\": \"Number of Mongo Requests Made\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"CommandName\",\r\n \"internalName\": \"CommandName\"\r\n },\r\n {\r\n \"name\": \"ErrorCode\",\r\n \"internalName\": \"ErrorCode\"\r\n },\r\n {\r\n \"name\": \"Status\",\r\n \"internalName\": \"Status\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoRequestsDelete\",\r\n \"displayName\": \"(deprecated) Mongo Delete Request Rate\",\r\n \"internalMetricName\": \"MongoRequests\",\r\n \"displayDescription\": \"Mongo Delete request per second\",\r\n \"unit\": \"CountPerSecond\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"Average\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"CommandName\",\r\n \"internalName\": \"CommandName\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Delete\"\r\n },\r\n {\r\n \"value\": \"OP_DELETE\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ErrorCode\",\r\n \"internalName\": \"ErrorCode\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoRequestsInsert\",\r\n \"displayName\": \"(deprecated) Mongo Insert Request Rate\",\r\n \"internalMetricName\": \"MongoRequests\",\r\n \"displayDescription\": \"Mongo Insert count per second\",\r\n \"unit\": \"CountPerSecond\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"Average\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"CommandName\",\r\n \"internalName\": \"CommandName\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"insert\"\r\n },\r\n {\r\n \"value\": \"OP_INSERT\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ErrorCode\",\r\n \"internalName\": \"ErrorCode\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoRequestsQuery\",\r\n \"displayName\": \"(deprecated) Mongo Query Request Rate\",\r\n \"internalMetricName\": \"MongoRequests\",\r\n \"displayDescription\": \"Mongo Query request per second\",\r\n \"unit\": \"CountPerSecond\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"Average\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"CommandName\",\r\n \"internalName\": \"CommandName\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"find\"\r\n },\r\n {\r\n \"value\": \"OP_QUERY\"\r\n },\r\n {\r\n \"value\": \"getMore\"\r\n },\r\n {\r\n \"value\": \"OP_GET_MORE\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ErrorCode\",\r\n \"internalName\": \"ErrorCode\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoRequestsUpdate\",\r\n \"displayName\": \"(deprecated) Mongo Update Request Rate\",\r\n \"internalMetricName\": \"MongoRequests\",\r\n \"displayDescription\": \"Mongo Update request per second\",\r\n \"unit\": \"CountPerSecond\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"Average\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"CommandName\",\r\n \"internalName\": \"CommandName\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"OP_UPDATE\"\r\n },\r\n {\r\n \"value\": \"findandmodify\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ErrorCode\",\r\n \"internalName\": \"ErrorCode\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ServerSideLatency\",\r\n \"displayName\": \"Server Side Latency\",\r\n \"internalMetricName\": \"ServerSideLatency\",\r\n \"displayDescription\": \"Server Side Latency\",\r\n \"unit\": \"MilliSeconds\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"Average\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": false,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"ConnectionMode\",\r\n \"internalName\": \"ConnectionMode\"\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\"\r\n },\r\n {\r\n \"name\": \"PublicAPIType\",\r\n \"internalName\": \"PublicAPIType\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"SqlContainerThroughputUpdate\",\r\n \"displayName\": \"Sql Container Throughput Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Sql Container Throughput Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"internalName\": \"ChildResourceName\",\r\n \"displayName\": \"Container Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"sql\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"containers\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"True\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"SqlDatabaseCreate\",\r\n \"displayName\": \"Sql Database Created\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Sql Database Created\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"displayName\": \"Database Name\",\r\n \"internalName\": \"ResourceName\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"sql\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"sqldatabases\"\r\n },\r\n {\r\n \"value\": \"databases\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Create\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"SqlDatabaseThroughputUpdate\",\r\n \"displayName\": \"Sql Database Throughput Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Sql Database Throughput Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"sql\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"databases\"\r\n },\r\n {\r\n \"value\": \"sqldatabases\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"True\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"TableTableCreate\",\r\n \"displayName\": \"AzureTable Table Created\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"AzureTable Table Created\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"displayName\": \"Table Name\",\r\n \"internalName\": \"ResourceName\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"table\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"tables\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Create\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"UpdateAccountKeys\",\r\n \"displayName\": \"Account Keys Updated\",\r\n \"internalMetricName\": \"UpdateAccountKeys\",\r\n \"displayDescription\": \"Account Keys Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"KeyType\",\r\n \"internalName\": \"KeyType\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"TotalRequests\",\r\n \"displayName\": \"Total Requests\",\r\n \"internalMetricName\": \"TotalRequests\",\r\n \"displayDescription\": \"Number of requests made\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"StatusCode\",\r\n \"internalName\": \"StatusCode\"\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\"\r\n },\r\n {\r\n \"name\": \"Status\",\r\n \"internalName\": \"Status\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IntegratedCacheEvictedEntriesSize\",\r\n \"displayName\": \"IntegratedCacheEvictedEntriesSize\",\r\n \"internalMetricName\": \"IntegratedCacheEvictedEntriesSize\",\r\n \"displayDescription\": \"Size of the entries evicted from the integrated cache\",\r\n \"unit\": \"Bytes\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"Average\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": false,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"DedicatedGatewayRequests\",\r\n \"displayName\": \"DedicatedGatewayRequests\",\r\n \"internalMetricName\": \"DedicatedGatewayRequests\",\r\n \"displayDescription\": \"Requests at the dedicated gateway\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"CacheExercised\",\r\n \"internalName\": \"CacheExercised\"\r\n },\r\n {\r\n \"name\": \"OperationName\",\r\n \"internalName\": \"OperationName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"DedicatedGatewayAverageCPUUsage\",\r\n \"displayName\": \"DedicatedGatewayAverageCPUUsage\",\r\n \"internalMetricName\": \"DedicatedGatewayCpuUsage\",\r\n \"displayDescription\": \"Average CPU usage across dedicated gateway instances\",\r\n \"unit\": \"Percent\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": false,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"MetricType\",\r\n \"internalName\": \"MetricType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Average\"\r\n },\r\n {\r\n \"value\": \"average\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IntegratedCacheQueryExpirationCount\",\r\n \"displayName\": \"IntegratedCacheQueryExpirationCount\",\r\n \"internalMetricName\": \"IntegratedCacheTTLExpirationCount\",\r\n \"displayDescription\": \"Number of queries evicted from the integrated cache due to TTL expiration\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": false,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"CacheEntryType\",\r\n \"internalName\": \"CacheEntryType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"SqlQuery\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IntegratedCacheItemHitRate\",\r\n \"displayName\": \"IntegratedCacheItemHitRate\",\r\n \"internalMetricName\": \"IntegratedCacheHitRate\",\r\n \"displayDescription\": \"Number of point reads that used the integrated cache divided by number of point reads routed through the dedicated gateway with eventual consistency\",\r\n \"unit\": \"Percent\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": false,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"CacheEntryType\",\r\n \"internalName\": \"CacheEntryType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"SqlItem\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IntegratedCacheQueryHitRate\",\r\n \"displayName\": \"IntegratedCacheQueryHitRate\",\r\n \"internalMetricName\": \"IntegratedCacheHitRate\",\r\n \"displayDescription\": \"Number of queries that used the integrated cache divided by number of queries routed through the dedicated gateway with eventual consistency\",\r\n \"unit\": \"Percent\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": false,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"CacheEntryType\",\r\n \"internalName\": \"CacheEntryType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"SqlQuery\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"CassandraConnectionClosures\",\r\n \"displayName\": \"Cassandra Connection Closures\",\r\n \"internalMetricName\": \"CassandraConnectionClosures\",\r\n \"displayDescription\": \"Number of Cassandra connections that were closed, reported at a 1 minute granularity\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"lockAggregationType\": \"Count\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\",\r\n \" Minimum\",\r\n \" Maximum\",\r\n \" Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"APIType\",\r\n \"internalName\": \"APIType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"CassandraService\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"ClosureReason\",\r\n \"internalName\": \"ClosureReason\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"DocumentQuota\",\r\n \"displayName\": \"Document Quota\",\r\n \"internalMetricName\": \"DocumentQuota\",\r\n \"displayDescription\": \"Total storage quota reported at 5 minutes granularity\",\r\n \"unit\": \"Bytes\",\r\n \"aggregationType\": \"Total\",\r\n \"lockAggregationType\": \"Total\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\",\r\n \" Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"AvailableStorage\",\r\n \"displayName\": \"(deprecated) Available Storage\",\r\n \"internalMetricName\": \"AvailableStorage\",\r\n \"displayDescription\": \"\\\"Available Storage\\\" will be removed from Azure Monitor at the end of September 2023. Cosmos DB collection storage size is now unlimited. The only restriction is that the storage size for each logical partition key is 20GB. You can enable PartitionKeyStatistics in Diagnostic Log to know the storage consumption for top partition keys. For more info about Cosmos DB storage quota, please check this doc https://docs.microsoft.com/en-us/azure/cosmos-db/concepts-limits. After deprecation, the remaining alert rules still defined on the deprecated metric will be automatically disabled post the deprecation date.\",\r\n \"unit\": \"Bytes\",\r\n \"aggregationType\": \"Total\",\r\n \"lockAggregationType\": \"Total\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\",\r\n \" Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"DocumentCount\",\r\n \"displayName\": \"Document Count\",\r\n \"internalMetricName\": \"DocumentCount\",\r\n \"displayDescription\": \"Total document count reported at 5 minutes granularity\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"lockAggregationType\": \"Total\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\",\r\n \" Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"CassandraKeyspaceDelete\",\r\n \"displayName\": \"Cassandra Keyspace Deleted\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Cassandra Keyspace Deleted\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Keyspace Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"cassandra\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"keyspaces\"\r\n },\r\n {\r\n \"value\": \"cassandrakeyspaces\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Delete\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"GremlinGraphCreate\",\r\n \"displayName\": \"Gremlin Graph Created\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Gremlin Graph Created\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"displayName\": \"Database Name\",\r\n \"internalName\": \"ResourceName\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"displayName\": \"Graph Name\",\r\n \"internalName\": \"ChildResourceName\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"gremlin\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"graphs\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Create\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoCollectionDelete\",\r\n \"displayName\": \"Mongo Collection Deleted\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Mongo Collection Deleted\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"internalName\": \"ChildResourceName\",\r\n \"displayName\": \"Collection Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"mongodb\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"collections\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Delete\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoCollectionUpdate\",\r\n \"displayName\": \"Mongo Collection Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Mongo Collection Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"internalName\": \"ChildResourceName\",\r\n \"displayName\": \"Collection Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"mongodb\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"collections\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Upsert\"\r\n },\r\n {\r\n \"value\": \"Replace\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoDBDatabaseCreate\",\r\n \"displayName\": \"Mongo Database Created\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Mongo Database Created\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"displayName\": \"Database Name\",\r\n \"internalName\": \"ResourceName\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"mongodb\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"databases\"\r\n },\r\n {\r\n \"value\": \"mongodbdatabases\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Create\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoRequestsCount\",\r\n \"displayName\": \"(deprecated) Mongo Request Rate\",\r\n \"internalMetricName\": \"MongoRequests\",\r\n \"displayDescription\": \"Mongo request Count per second\",\r\n \"unit\": \"CountPerSecond\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"Average\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"CommandName\",\r\n \"internalName\": \"CommandName\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"count\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ErrorCode\",\r\n \"internalName\": \"ErrorCode\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"NormalizedRUConsumption\",\r\n \"displayName\": \"Normalized RU Consumption\",\r\n \"internalMetricName\": \"NormalizedRUConsumption\",\r\n \"displayDescription\": \"Max RU consumption percentage per minute\",\r\n \"unit\": \"Percent\",\r\n \"aggregationType\": \"Maximum\",\r\n \"lockAggregationType\": \"Maximum\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Maximum\",\r\n \" Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT1H\",\r\n \"P1D\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"PartitionKeyRangeId\",\r\n \"internalName\": \"PartitionKeyRangeId\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"RemoveRegion\",\r\n \"displayName\": \"Region Removed\",\r\n \"internalMetricName\": \"RemoveRegion\",\r\n \"displayDescription\": \"Region Removed\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ServiceAvailability\",\r\n \"displayName\": \"Service Availability\",\r\n \"internalMetricName\": \"ServiceAvailability\",\r\n \"displayDescription\": \"Account requests availability at one hour, day or month granularity\",\r\n \"unit\": \"Percent\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"Average\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": false,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Minimum\",\r\n \"Average\",\r\n \"Maximum\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1H\"\r\n ],\r\n \"dimensions\": []\r\n },\r\n {\r\n \"name\": \"SqlContainerCreate\",\r\n \"displayName\": \"Sql Container Created\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Sql Container Created\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"displayName\": \"Database Name\",\r\n \"internalName\": \"ResourceName\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"displayName\": \"Container Name\",\r\n \"internalName\": \"ChildResourceName\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"sql\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"containers\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Create\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"SqlContainerDelete\",\r\n \"displayName\": \"Sql Container Deleted\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Sql Container Deleted\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"internalName\": \"ChildResourceName\",\r\n \"displayName\": \"Container Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"sql\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"containers\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Delete\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"SqlContainerUpdate\",\r\n \"displayName\": \"Sql Container Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Sql Container Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"internalName\": \"ChildResourceName\",\r\n \"displayName\": \"Container Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"sql\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"containers\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Upsert\"\r\n },\r\n {\r\n \"value\": \"Replace\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"TableTableDelete\",\r\n \"displayName\": \"AzureTable Table Deleted\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"AzureTable Table Deleted\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Table Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"table\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"tables\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Delete\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"TotalRequestUnits\",\r\n \"displayName\": \"Total Request Units\",\r\n \"internalMetricName\": \"TotalRequestUnits\",\r\n \"displayDescription\": \"Request Units consumed\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\",\r\n \" Average\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"StatusCode\",\r\n \"internalName\": \"StatusCode\"\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\"\r\n },\r\n {\r\n \"name\": \"Status\",\r\n \"internalName\": \"Status\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"UpdateAccountReplicationSettings\",\r\n \"displayName\": \"Account Replication Settings Updated\",\r\n \"internalMetricName\": \"UpdateAccountReplicationSettings\",\r\n \"displayDescription\": \"Account Replication Settings Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": []\r\n },\r\n {\r\n \"name\": \"DedicatedGatewayMaximumCPUUsage\",\r\n \"displayName\": \"DedicatedGatewayMaximumCPUUsage\",\r\n \"internalMetricName\": \"DedicatedGatewayCpuUsage\",\r\n \"displayDescription\": \"Average Maximum CPU usage across dedicated gateway instances\",\r\n \"unit\": \"Percent\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": false,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\",\r\n \"Maximum\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"MetricType\",\r\n \"internalName\": \"MetricType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Maximum\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"GremlinDatabaseThroughputUpdate\",\r\n \"displayName\": \"Gremlin Database Throughput Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Gremlin Database Throughput Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"sql\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"databases\"\r\n },\r\n {\r\n \"value\": \"gremlindatabases\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"True\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"AutoscaleMaxThroughput\",\r\n \"displayName\": \"Autoscale Max Throughput\",\r\n \"internalMetricName\": \"AutoscaleMaxThroughput\",\r\n \"displayDescription\": \"Autoscale Max Throughput\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Maximum\",\r\n \"lockAggregationType\": \"Maximum\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Maximum\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"CassandraKeyspaceCreate\",\r\n \"displayName\": \"Cassandra Keyspace Created\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Cassandra Keyspace Created\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"displayName\": \"Keyspace Name\",\r\n \"internalName\": \"ResourceName\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"cassandra\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"keyspaces\"\r\n },\r\n {\r\n \"value\": \"cassandrakeyspaces\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Create\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"AddRegion\",\r\n \"displayName\": \"Region Added\",\r\n \"internalMetricName\": \"AddRegion\",\r\n \"displayDescription\": \"Region Added\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"CassandraTableUpdate\",\r\n \"displayName\": \"Cassandra Table Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Cassandra Table Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Keyspace Name\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"internalName\": \"ChildResourceName\",\r\n \"displayName\": \"Table Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"cassandra\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"tables\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Upsert\"\r\n },\r\n {\r\n \"value\": \"Replace\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"CassandraConnectorReplicationHealthStatus\",\r\n \"displayName\": \"Cassandra Connector Replication Health Status\",\r\n \"internalMetricName\": \"ReplicationHealthStatus\",\r\n \"displayDescription\": \"Cassandra Connector Replication Health Status\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": false,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"DatabaseAccount\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"NotStarted\",\r\n \"displayName\": \"Replication Not Started\",\r\n \"internalName\": \"NotStarted\"\r\n },\r\n {\r\n \"name\": \"ReplicationInProgress\",\r\n \"displayName\": \"Replication In Progress\",\r\n \"internalName\": \"ReplicationInProgress\"\r\n },\r\n {\r\n \"name\": \"Error\",\r\n \"displayName\": \"Replication In Error\",\r\n \"internalName\": \"Error\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"GremlinDatabaseUpdate\",\r\n \"displayName\": \"Gremlin Database Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Gremlin Database Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"gremlin\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"databases\"\r\n },\r\n {\r\n \"value\": \"gremlindatabases\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Upsert\"\r\n },\r\n {\r\n \"value\": \"Replace\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoCollectionCreate\",\r\n \"displayName\": \"Mongo Collection Created\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Mongo Collection Created\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"displayName\": \"Database Name\",\r\n \"internalName\": \"ResourceName\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"displayName\": \"Collection Name\",\r\n \"internalName\": \"ChildResourceName\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"mongodb\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"collections\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Create\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"CassandraKeyspaceThroughputUpdate\",\r\n \"displayName\": \"Cassandra Keyspace Throughput Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Cassandra Keyspace Throughput Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Keyspace Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"cassandra\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"keyspaces\"\r\n },\r\n {\r\n \"value\": \"cassandrakeyspaces\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"True\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"CassandraTableThroughputUpdate\",\r\n \"displayName\": \"Cassandra Table Throughput Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Cassandra Table Throughput Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Keyspace Name\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"internalName\": \"ChildResourceName\",\r\n \"displayName\": \"Table Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"cassandra\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"tables\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"True\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"GremlinGraphThroughputUpdate\",\r\n \"displayName\": \"Gremlin Graph Throughput Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Gremlin Graph Throughput Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"internalName\": \"ChildResourceName\",\r\n \"displayName\": \"Graph Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"sql\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"graphs\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"True\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoCollectionThroughputUpdate\",\r\n \"displayName\": \"Mongo Collection Throughput Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Mongo Collection Throughput Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ChildResourceName\",\r\n \"internalName\": \"ChildResourceName\",\r\n \"displayName\": \"Collection Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"mongodb\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"collections\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"True\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"MongoRequestCharge\",\r\n \"displayName\": \"Mongo Request Charge\",\r\n \"internalMetricName\": \"MongoRequestCharge\",\r\n \"displayDescription\": \"Mongo Request Units Consumed\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\",\r\n \"Average\",\r\n \"Maximum\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n },\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"CommandName\",\r\n \"internalName\": \"CommandName\"\r\n },\r\n {\r\n \"name\": \"ErrorCode\",\r\n \"internalName\": \"ErrorCode\"\r\n },\r\n {\r\n \"name\": \"Status\",\r\n \"internalName\": \"Status\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ProvisionedThroughput\",\r\n \"displayName\": \"Provisioned Throughput\",\r\n \"internalMetricName\": \"ProvisionedThroughput\",\r\n \"displayDescription\": \"Provisioned Throughput\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Maximum\",\r\n \"lockAggregationType\": \"Maximum\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": false,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Maximum\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DatabaseName\",\r\n \"internalName\": \"DatabaseName\"\r\n },\r\n {\r\n \"name\": \"CollectionName\",\r\n \"internalName\": \"CollectionName\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"RegionFailover\",\r\n \"displayName\": \"Region Failed Over\",\r\n \"internalMetricName\": \"RegionFailover\",\r\n \"displayDescription\": \"Region Failed Over\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": []\r\n },\r\n {\r\n \"name\": \"ReplicationLatency\",\r\n \"displayName\": \"P99 Replication Latency\",\r\n \"internalMetricName\": \"ReplicationLatency\",\r\n \"displayDescription\": \"P99 Replication Latency across source and target regions for geo-enabled account\",\r\n \"unit\": \"MilliSeconds\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": false,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccount\",\r\n \"supportedAggregationTypes\": [\r\n \"Minimum\",\r\n \"Maximum\",\r\n \"Average\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"SourceRegion\",\r\n \"internalName\": \"SourceRegion\"\r\n },\r\n {\r\n \"name\": \"TargetRegion\",\r\n \"internalName\": \"TargetRegion\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"SqlDatabaseDelete\",\r\n \"displayName\": \"Sql Database Deleted\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Sql Database Deleted\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"sql\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"databases\"\r\n },\r\n {\r\n \"value\": \"sqldatabases\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Delete\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"SqlDatabaseUpdate\",\r\n \"displayName\": \"Sql Database Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"Sql Database Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Database Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"sql\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"databases\"\r\n },\r\n {\r\n \"value\": \"sqldatabases\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Upsert\"\r\n },\r\n {\r\n \"value\": \"Replace\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"TableTableThroughputUpdate\",\r\n \"displayName\": \"AzureTable Table Throughput Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"AzureTable Table Throughput Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Table Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"table\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"tables\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"True\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"TableTableUpdate\",\r\n \"displayName\": \"AzureTable Table Updated\",\r\n \"internalMetricName\": \"ControlPlaneArmAPIRequest\",\r\n \"displayDescription\": \"AzureTable Table Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"ResourceName\",\r\n \"internalName\": \"ResourceName\",\r\n \"displayName\": \"Table Name\"\r\n },\r\n {\r\n \"name\": \"ApiKind\",\r\n \"internalName\": \"ApiKind\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"table\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"ApiKindResourceType\",\r\n \"internalName\": \"ApiKindResourceType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"tables\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IsThroughputRequest\",\r\n \"internalName\": \"IsThroughputRequest\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"False\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"OperationType\",\r\n \"internalName\": \"OperationType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"Upsert\"\r\n },\r\n {\r\n \"value\": \"Replace\"\r\n }\r\n ]\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"UpdateAccountNetworkSettings\",\r\n \"displayName\": \"Account Network Settings Updated\",\r\n \"internalMetricName\": \"UpdateAccountNetworkSettings\",\r\n \"displayDescription\": \"Account Network Settings Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": []\r\n },\r\n {\r\n \"name\": \"UpdateDiagnosticsSettings\",\r\n \"displayName\": \"Account Diagnostic Settings Updated\",\r\n \"internalMetricName\": \"UpdateDiagnosticSettings\",\r\n \"displayDescription\": \"Account Diagnostic Settings Updated\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Count\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": true,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Count\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"DiagnosticSettingsName\",\r\n \"internalName\": \"DiagnosticSettingsName\",\r\n \"displayName\": \"DiagnosticSettings Name\"\r\n },\r\n {\r\n \"name\": \"ResourceGroupName\",\r\n \"internalName\": \"ResourceGroupName\",\r\n \"displayName\": \"ResourceGroup Name\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"DedicatedGatewayAverageMemoryUsage\",\r\n \"displayName\": \"DedicatedGatewayAverageMemoryUsage\",\r\n \"internalMetricName\": \"DedicatedGatewayMemoryUsage\",\r\n \"displayDescription\": \"Average memory usage across dedicated gateway instances, which is used for both routing requests and caching data\",\r\n \"unit\": \"Bytes\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": false,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"IntegratedCacheItemExpirationCount\",\r\n \"displayName\": \"IntegratedCacheItemExpirationCount\",\r\n \"internalMetricName\": \"IntegratedCacheTTLExpirationCount\",\r\n \"displayDescription\": \"Number of items evicted from the integrated cache due to TTL expiration\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Average\",\r\n \"lockAggregationType\": \"\",\r\n \"sourceMdmAccount\": \"CosmosDBCustomer\",\r\n \"sourceMdmNamespace\": \"AzureMonitor\",\r\n \"fillGapWithZero\": false,\r\n \"category\": \"Requests\",\r\n \"resourceIdDimensionNameOverride\": \"GlobalDatabaseAccountName\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"Region\",\r\n \"internalName\": \"Region\"\r\n },\r\n {\r\n \"name\": \"CacheEntryType\",\r\n \"internalName\": \"CacheEntryType\",\r\n \"isHidden\": true,\r\n \"defaultDimensionValues\": [\r\n {\r\n \"value\": \"SqlItem\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 } ], "Names": {}, "Variables": { - "SubscriptionId": "80be3961-0521-4a0a-8570-5cd5a4e2f98c" + "SubscriptionId": "259fbb24-9bcd-4cfc-865c-fc33b22fe38a" } } \ No newline at end of file diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/RestorableMongoOperationsTests/RestorableMongodb32Tests.json b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/RestorableMongoOperationsTests/RestorableMongodb32Tests.json deleted file mode 100644 index f769ab3b7ffa..000000000000 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/RestorableMongoOperationsTests/RestorableMongodb32Tests.json +++ /dev/null @@ -1,197 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8/restorableMongodbDatabases?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cy9lYWRhYzdlMi02MWYwLTRlMDctYWFhMS05ZGJiNDk1ZWM1YTgvcmVzdG9yYWJsZU1vbmdvZGJEYXRhYmFzZXM/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "c765f1c1-7f95-4a2e-9561-4cfb446d8d04" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/5.0.321.7212", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "4f0b4c7b-5170-4792-9385-d28c41c2035a" - ], - "x-ms-correlation-request-id": [ - "4f0b4c7b-5170-4792-9385-d28c41c2035a" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210303T172320Z:4f0b4c7b-5170-4792-9385-d28c41c2035a" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Wed, 03 Mar 2021 17:23:20 GMT" - ], - "Content-Length": [ - "1099" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8/restorableMongodbDatabases/5a7a2802-fd8a-4862-8839-48ff0c6a390a\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbDatabases\",\r\n \"name\": \"5a7a2802-fd8a-4862-8839-48ff0c6a390a\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"_rid\": \"EfwNBgAAAA==\",\r\n \"eventTimestamp\": \"2020-12-15T21:54:28Z\",\r\n \"ownerId\": \"databaseA\",\r\n \"ownerResourceId\": \"mEYAAA==\",\r\n \"operationType\": \"Create\"\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8/restorableMongodbDatabases/47255013-9baf-44e9-9e28-df1e2830c433\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbDatabases\",\r\n \"name\": \"47255013-9baf-44e9-9e28-df1e2830c433\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"_rid\": \"RRy06QAAAA==\",\r\n \"eventTimestamp\": \"2020-12-07T21:40:54Z\",\r\n \"ownerId\": \"database1\",\r\n \"ownerResourceId\": \"T4AhAA==\",\r\n \"operationType\": \"Create\"\r\n }\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8/restorableMongodbCollections?api-version=2021-03-01-preview&restorableMongodbDatabaseRid=T4AhAA%3D%3D", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cy9lYWRhYzdlMi02MWYwLTRlMDctYWFhMS05ZGJiNDk1ZWM1YTgvcmVzdG9yYWJsZU1vbmdvZGJDb2xsZWN0aW9ucz9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXcmcmVzdG9yYWJsZU1vbmdvZGJEYXRhYmFzZVJpZD1UNEFoQUElM0QlM0Q=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "76467377-7427-4aad-95ef-9522c504ef4b" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/5.0.321.7212", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-request-id": [ - "b0128812-e64d-4c86-b730-810bfab90b0b" - ], - "x-ms-correlation-request-id": [ - "b0128812-e64d-4c86-b730-810bfab90b0b" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210303T172322Z:b0128812-e64d-4c86-b730-810bfab90b0b" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Wed, 03 Mar 2021 17:23:22 GMT" - ], - "Content-Length": [ - "1673" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8/restorableMongodbCollections/5804563e-e0f4-4c4d-8969-e2a00499b921\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbCollections\",\r\n \"name\": \"5804563e-e0f4-4c4d-8969-e2a00499b921\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"_rid\": \"KG0VUQAAAA==\",\r\n \"eventTimestamp\": \"2020-12-15T22:15:01Z\",\r\n \"ownerId\": \"collection3\",\r\n \"ownerResourceId\": \"T4AhAMjcskg=\",\r\n \"operationType\": \"Create\"\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8/restorableMongodbCollections/88f92ada-9739-4177-8fd3-8a6957722868\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbCollections\",\r\n \"name\": \"88f92ada-9739-4177-8fd3-8a6957722868\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"_rid\": \"v2BYgwAAAA==\",\r\n \"eventTimestamp\": \"2020-12-07T21:43:11Z\",\r\n \"ownerId\": \"collection1\",\r\n \"ownerResourceId\": \"T4AhAIo-G1o=\",\r\n \"operationType\": \"Create\"\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8/restorableMongodbCollections/7d354f7f-c791-4b89-b0d8-506547879b17\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbCollections\",\r\n \"name\": \"7d354f7f-c791-4b89-b0d8-506547879b17\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"_rid\": \"3vtcoQAAAA==\",\r\n \"eventTimestamp\": \"2020-12-15T21:53:50Z\",\r\n \"ownerId\": \"collection2\",\r\n \"ownerResourceId\": \"T4AhAPbkmGA=\",\r\n \"operationType\": \"Create\"\r\n }\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8/restorableMongodbResources?api-version=2021-03-01-preview&restoreLocation=eastus2&restoreTimestampInUtc=2021-03-01T00%3A00%3A00%2B0000", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cy9lYWRhYzdlMi02MWYwLTRlMDctYWFhMS05ZGJiNDk1ZWM1YTgvcmVzdG9yYWJsZU1vbmdvZGJSZXNvdXJjZXM/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3JnJlc3RvcmVMb2NhdGlvbj1lYXN0dXMyJnJlc3RvcmVUaW1lc3RhbXBJblV0Yz0yMDIxLTAzLTAxVDAwJTNBMDAlM0EwMCUyQjAwMDA=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "502c34f4-4b26-49f1-803c-3ac2282f52ea" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/5.0.321.7212", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-request-id": [ - "cd78eea6-f79c-481b-8b24-799201614293" - ], - "x-ms-correlation-request-id": [ - "cd78eea6-f79c-481b-8b24-799201614293" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210303T172324Z:cd78eea6-f79c-481b-8b24-799201614293" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Wed, 03 Mar 2021 17:23:24 GMT" - ], - "Content-Length": [ - "152" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"databaseName\": \"databaseA\",\r\n \"collectionNames\": []\r\n },\r\n {\r\n \"databaseName\": \"database1\",\r\n \"collectionNames\": [\r\n \"collection3\",\r\n \"collection1\",\r\n \"collection2\"\r\n ]\r\n }\r\n ]\r\n}", - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "80be3961-0521-4a0a-8570-5cd5a4e2f98c" - } -} \ No newline at end of file diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/RestorableMongoOperationsTests/RestorableMongodb36Tests.json b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/RestorableMongoOperationsTests/RestorableMongodb36Tests.json deleted file mode 100644 index f76bca3fca98..000000000000 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/RestorableMongoOperationsTests/RestorableMongodb36Tests.json +++ /dev/null @@ -1,197 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/25a04cf0-89d4-4546-9c30-14d1dc8899df/restorableMongodbDatabases?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cy8yNWEwNGNmMC04OWQ0LTQ1NDYtOWMzMC0xNGQxZGM4ODk5ZGYvcmVzdG9yYWJsZU1vbmdvZGJEYXRhYmFzZXM/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "ae2c8e22-d386-4821-bd94-5a58f67f97b1" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/5.0.321.7212", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "bd6ded0d-ed16-4707-a644-2cb417764271" - ], - "x-ms-correlation-request-id": [ - "bd6ded0d-ed16-4707-a644-2cb417764271" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210303T172327Z:bd6ded0d-ed16-4707-a644-2cb417764271" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Wed, 03 Mar 2021 17:23:27 GMT" - ], - "Content-Length": [ - "1099" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/25a04cf0-89d4-4546-9c30-14d1dc8899df/restorableMongodbDatabases/e40c1e74-1788-4397-89da-18d91529e142\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbDatabases\",\r\n \"name\": \"e40c1e74-1788-4397-89da-18d91529e142\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"_rid\": \"9xEDVwAAAA==\",\r\n \"eventTimestamp\": \"2020-12-15T21:53:30Z\",\r\n \"ownerId\": \"database1\",\r\n \"ownerResourceId\": \"wAkWAA==\",\r\n \"operationType\": \"Create\"\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/25a04cf0-89d4-4546-9c30-14d1dc8899df/restorableMongodbDatabases/43d9e064-66a6-4737-97ae-4eda50132f7e\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbDatabases\",\r\n \"name\": \"43d9e064-66a6-4737-97ae-4eda50132f7e\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"_rid\": \"L+76pAAAAA==\",\r\n \"eventTimestamp\": \"2020-12-15T22:10:06Z\",\r\n \"ownerId\": \"databaseA\",\r\n \"ownerResourceId\": \"kcAtAA==\",\r\n \"operationType\": \"Create\"\r\n }\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/25a04cf0-89d4-4546-9c30-14d1dc8899df/restorableMongodbCollections?api-version=2021-03-01-preview&restorableMongodbDatabaseRid=wAkWAA%3D%3D", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cy8yNWEwNGNmMC04OWQ0LTQ1NDYtOWMzMC0xNGQxZGM4ODk5ZGYvcmVzdG9yYWJsZU1vbmdvZGJDb2xsZWN0aW9ucz9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXcmcmVzdG9yYWJsZU1vbmdvZGJEYXRhYmFzZVJpZD13QWtXQUElM0QlM0Q=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "c625e57f-65e7-4c49-9502-15a56ebaef6d" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/5.0.321.7212", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-request-id": [ - "2f97f87c-6bc1-48cc-877c-0545d72c82aa" - ], - "x-ms-correlation-request-id": [ - "2f97f87c-6bc1-48cc-877c-0545d72c82aa" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210303T172329Z:2f97f87c-6bc1-48cc-877c-0545d72c82aa" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Wed, 03 Mar 2021 17:23:28 GMT" - ], - "Content-Length": [ - "1673" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/25a04cf0-89d4-4546-9c30-14d1dc8899df/restorableMongodbCollections/3466ad90-f599-4f1c-b541-34bfdef939e3\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbCollections\",\r\n \"name\": \"3466ad90-f599-4f1c-b541-34bfdef939e3\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"_rid\": \"4BgGBQAAAA==\",\r\n \"eventTimestamp\": \"2020-12-15T21:54:08Z\",\r\n \"ownerId\": \"collection1\",\r\n \"ownerResourceId\": \"wAkWANEk2DM=\",\r\n \"operationType\": \"Create\"\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/25a04cf0-89d4-4546-9c30-14d1dc8899df/restorableMongodbCollections/be7661f7-6fd8-4153-abdb-e3c9e08a8ce0\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbCollections\",\r\n \"name\": \"be7661f7-6fd8-4153-abdb-e3c9e08a8ce0\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"_rid\": \"ZBIhSQAAAA==\",\r\n \"eventTimestamp\": \"2020-12-15T21:54:57Z\",\r\n \"ownerId\": \"collection2\",\r\n \"ownerResourceId\": \"wAkWALzezqU=\",\r\n \"operationType\": \"Create\"\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/25a04cf0-89d4-4546-9c30-14d1dc8899df/restorableMongodbCollections/af495ebb-429c-4aef-ba65-5fa3e53c18ae\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbCollections\",\r\n \"name\": \"af495ebb-429c-4aef-ba65-5fa3e53c18ae\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"_rid\": \"BaxbUwAAAA==\",\r\n \"eventTimestamp\": \"2020-12-15T22:09:22Z\",\r\n \"ownerId\": \"collection3\",\r\n \"ownerResourceId\": \"wAkWAK3BRCs=\",\r\n \"operationType\": \"Create\"\r\n }\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/25a04cf0-89d4-4546-9c30-14d1dc8899df/restorableMongodbResources?api-version=2021-03-01-preview&restoreLocation=eastus2&restoreTimestampInUtc=2021-03-01T00%3A00%3A00%2B0000", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cy8yNWEwNGNmMC04OWQ0LTQ1NDYtOWMzMC0xNGQxZGM4ODk5ZGYvcmVzdG9yYWJsZU1vbmdvZGJSZXNvdXJjZXM/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3JnJlc3RvcmVMb2NhdGlvbj1lYXN0dXMyJnJlc3RvcmVUaW1lc3RhbXBJblV0Yz0yMDIxLTAzLTAxVDAwJTNBMDAlM0EwMCUyQjAwMDA=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "02918fed-6c1d-47b0-b09b-92c04ef917d8" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/5.0.321.7212", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-request-id": [ - "97fa777a-5412-4f2a-9583-46e74b92374d" - ], - "x-ms-correlation-request-id": [ - "97fa777a-5412-4f2a-9583-46e74b92374d" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210303T172331Z:97fa777a-5412-4f2a-9583-46e74b92374d" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Wed, 03 Mar 2021 17:23:30 GMT" - ], - "Content-Length": [ - "152" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"databaseName\": \"database1\",\r\n \"collectionNames\": [\r\n \"collection1\",\r\n \"collection2\",\r\n \"collection3\"\r\n ]\r\n },\r\n {\r\n \"databaseName\": \"databaseA\",\r\n \"collectionNames\": []\r\n }\r\n ]\r\n}", - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "80be3961-0521-4a0a-8570-5cd5a4e2f98c" - } -} \ No newline at end of file diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/RestorableSqlOperationsTests/RestorableSqlTests.json b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/RestorableSqlOperationsTests/RestorableSqlTests.json deleted file mode 100644 index d99b671ef5a4..000000000000 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/RestorableSqlOperationsTests/RestorableSqlTests.json +++ /dev/null @@ -1,323 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/pitr-sql-stage-source?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL3BpdHItc3RhZ2UtcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcGl0ci1zcWwtc3RhZ2Utc291cmNlP2FwaS12ZXJzaW9uPTIwMjEtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "e8de12aa-2d6c-4c87-85c7-e441605e16f9" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/5.0.321.7212", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "01f57dba-85de-4ffa-a2a8-b7117fd7ad0f" - ], - "x-ms-correlation-request-id": [ - "01f57dba-85de-4ffa-a2a8-b7117fd7ad0f" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210303T183708Z:01f57dba-85de-4ffa-a2a8-b7117fd7ad0f" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Wed, 03 Mar 2021 18:37:08 GMT" - ], - "Content-Length": [ - "2749" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/pitr-sql-stage-source\",\r\n \"name\": \"pitr-sql-stage-source\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-08T18:18:46.0964181Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"instanceId\": \"9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"pitr-sql-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"pitr-sql-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"pitr-sql-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cy85YTRiNjNjMy00OWQxLTRjODctYjI4ZS05MmU5MmFlYWEwZWE/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "9cae45bb-9b1a-469e-86ee-09b68a579d92" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/5.0.321.7212", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-request-id": [ - "bad56cd0-2a68-4158-9185-5328bb43fe53" - ], - "x-ms-correlation-request-id": [ - "bad56cd0-2a68-4158-9185-5328bb43fe53" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210303T183717Z:bad56cd0-2a68-4158-9185-5328bb43fe53" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Wed, 03 Mar 2021 18:37:17 GMT" - ], - "Content-Length": [ - "724" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"name\": \"9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-08T18:18:47Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f61a9ed3-fcda-4603-b1e2-2baadbb6122b\",\r\n \"creationTime\": \"2020-12-08T18:18:47Z\"\r\n },\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"cdd116b8-a956-43d5-b461-248f837099f4\",\r\n \"creationTime\": \"2020-12-14T21:35:14Z\"\r\n }\r\n ]\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea/restorableSqlDatabases?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cy85YTRiNjNjMy00OWQxLTRjODctYjI4ZS05MmU5MmFlYWEwZWEvcmVzdG9yYWJsZVNxbERhdGFiYXNlcz9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "f3563b28-efa3-4af2-8437-03b37c42f210" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/5.0.321.7212", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-request-id": [ - "b2c1e75f-350a-42c4-aaeb-581d79f89667" - ], - "x-ms-correlation-request-id": [ - "b2c1e75f-350a-42c4-aaeb-581d79f89667" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210303T183718Z:b2c1e75f-350a-42c4-aaeb-581d79f89667" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Wed, 03 Mar 2021 18:37:18 GMT" - ], - "Content-Length": [ - "1401" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea/restorableSqlDatabases/0c05a7c6-c75b-4083-8ea7-fcb58fa2d308\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlDatabases\",\r\n \"name\": \"0c05a7c6-c75b-4083-8ea7-fcb58fa2d308\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"_rid\": \"Cw69IQAAAA==\",\r\n \"eventTimestamp\": \"2020-12-08T18:57:40Z\",\r\n \"ownerId\": \"database1\",\r\n \"ownerResourceId\": \"tTN6AA==\",\r\n \"operationType\": \"Create\",\r\n \"database\": {\r\n \"id\": \"database1\",\r\n \"_rid\": \"tTN6AA==\",\r\n \"_self\": \"dbs/tTN6AA==/\",\r\n \"_etag\": \"\\\"00004b0e-0000-0800-0000-5fcfcca40000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\"\r\n }\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea/restorableSqlDatabases/ea2425d8-c48f-4eed-b3a8-62167bc215c0\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlDatabases\",\r\n \"name\": \"ea2425d8-c48f-4eed-b3a8-62167bc215c0\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"_rid\": \"fRqZNgAAAA==\",\r\n \"eventTimestamp\": \"2020-12-09T00:03:36Z\",\r\n \"ownerId\": \"databaseA\",\r\n \"ownerResourceId\": \"IexNAA==\",\r\n \"operationType\": \"Create\",\r\n \"database\": {\r\n \"id\": \"databaseA\",\r\n \"_rid\": \"IexNAA==\",\r\n \"_self\": \"dbs/IexNAA==/\",\r\n \"_etag\": \"\\\"0000630f-0000-0800-0000-5fd014580000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\"\r\n }\r\n }\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea/restorableSqlContainers?api-version=2021-03-01-preview&restorableSqlDatabaseRid=tTN6AA%3D%3D", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cy85YTRiNjNjMy00OWQxLTRjODctYjI4ZS05MmU5MmFlYWEwZWEvcmVzdG9yYWJsZVNxbENvbnRhaW5lcnM/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3JnJlc3RvcmFibGVTcWxEYXRhYmFzZVJpZD10VE42QUElM0QlM0Q=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "6f103f25-1213-4d24-9632-0de34e58b174" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/5.0.321.7212", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" - ], - "x-ms-request-id": [ - "ba7b149b-3f5d-4164-a1fe-ade32f50004f" - ], - "x-ms-correlation-request-id": [ - "ba7b149b-3f5d-4164-a1fe-ade32f50004f" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210303T183719Z:ba7b149b-3f5d-4164-a1fe-ade32f50004f" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Wed, 03 Mar 2021 18:37:19 GMT" - ], - "Content-Length": [ - "3108" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea/restorableSqlContainers/c7ab514b-c4d5-4d6a-b091-72590d45fa72\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlContainers\",\r\n \"name\": \"c7ab514b-c4d5-4d6a-b091-72590d45fa72\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"_rid\": \"kGkmIwAAAA==\",\r\n \"eventTimestamp\": \"2020-12-08T18:57:51Z\",\r\n \"ownerId\": \"container1\",\r\n \"ownerResourceId\": \"tTN6ANDT5qs=\",\r\n \"operationType\": \"Create\",\r\n \"container\": {\r\n \"id\": \"container1\",\r\n \"indexingPolicy\": {\r\n \"indexingMode\": \"consistent\",\r\n \"automatic\": true,\r\n \"supportSpatialLegacyCoordinates\": false,\r\n \"usePolygonsSmallerThanAHemisphere\": false,\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n },\r\n {\r\n \"path\": \"/\\\"_ts\\\"/?\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/\\\"_etag\\\"/?\"\r\n }\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/id\"\r\n ],\r\n \"kind\": \"Hash\"\r\n },\r\n \"uniqueKeyPolicy\": {\r\n \"uniqueKeys\": []\r\n },\r\n \"internalIndexingProperties\": {\r\n \"enableIndexingFullFidelity\": true,\r\n \"logicalIndexVersion\": 2,\r\n \"indexEncodingOptions\": 65567\r\n },\r\n \"conflictResolutionPolicy\": {\r\n \"mode\": \"LastWriterWins\",\r\n \"conflictResolutionPath\": \"/_ts\",\r\n \"conflictResolutionProcedure\": \"\"\r\n },\r\n \"backupPolicy\": {\r\n \"type\": 1\r\n },\r\n \"allowMaterializedViews\": false,\r\n \"geospatialConfig\": {\r\n \"type\": \"Geography\"\r\n },\r\n \"typeSystemPolicy\": {\r\n \"typeSystem\": \"CosmosCore\"\r\n },\r\n \"uniqueIndexNameEncodingMode\": 1,\r\n \"_idxpolicyver\": 2,\r\n \"_rid\": \"tTN6ANDT5qs=\",\r\n \"_self\": \"dbs/tTN6AA==/colls/tTN6ANDT5qs=/\",\r\n \"_etag\": \"\\\"00004e0e-0000-0800-0000-5fcfccaf0000\\\"\",\r\n \"_docs\": \"docs/\",\r\n \"_sprocs\": \"sprocs/\",\r\n \"_triggers\": \"triggers/\",\r\n \"_udfs\": \"udfs/\",\r\n \"_conflicts\": \"conflicts/\"\r\n }\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea/restorableSqlContainers/8b7744e7-64b6-4feb-a1d5-eff731830769\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlContainers\",\r\n \"name\": \"8b7744e7-64b6-4feb-a1d5-eff731830769\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"_rid\": \"Zhi9NwAAAA==\",\r\n \"eventTimestamp\": \"2020-12-08T19:00:03Z\",\r\n \"ownerId\": \"container2\",\r\n \"ownerResourceId\": \"tTN6ALcE1cc=\",\r\n \"operationType\": \"Create\",\r\n \"container\": {\r\n \"id\": \"container2\",\r\n \"indexingPolicy\": {\r\n \"indexingMode\": \"consistent\",\r\n \"automatic\": true,\r\n \"supportSpatialLegacyCoordinates\": false,\r\n \"usePolygonsSmallerThanAHemisphere\": false,\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n },\r\n {\r\n \"path\": \"/\\\"_ts\\\"/?\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/\\\"_etag\\\"/?\"\r\n }\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/zip\"\r\n ],\r\n \"kind\": \"Hash\"\r\n },\r\n \"uniqueKeyPolicy\": {\r\n \"uniqueKeys\": []\r\n },\r\n \"internalIndexingProperties\": {\r\n \"enableIndexingFullFidelity\": true,\r\n \"logicalIndexVersion\": 2,\r\n \"indexEncodingOptions\": 65567\r\n },\r\n \"conflictResolutionPolicy\": {\r\n \"mode\": \"LastWriterWins\",\r\n \"conflictResolutionPath\": \"/_ts\",\r\n \"conflictResolutionProcedure\": \"\"\r\n },\r\n \"backupPolicy\": {\r\n \"type\": 1\r\n },\r\n \"allowMaterializedViews\": false,\r\n \"geospatialConfig\": {\r\n \"type\": \"Geography\"\r\n },\r\n \"typeSystemPolicy\": {\r\n \"typeSystem\": \"CosmosCore\"\r\n },\r\n \"uniqueIndexNameEncodingMode\": 1,\r\n \"_idxpolicyver\": 2,\r\n \"_rid\": \"tTN6ALcE1cc=\",\r\n \"_self\": \"dbs/tTN6AA==/colls/tTN6ALcE1cc=/\",\r\n \"_etag\": \"\\\"0000550e-0000-0800-0000-5fcfcd330000\\\"\",\r\n \"_docs\": \"docs/\",\r\n \"_sprocs\": \"sprocs/\",\r\n \"_triggers\": \"triggers/\",\r\n \"_udfs\": \"udfs/\",\r\n \"_conflicts\": \"conflicts/\"\r\n }\r\n }\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea/restorableSqlResources?api-version=2021-03-01-preview&restoreLocation=westus2&restoreTimestampInUtc=2021-03-01T00%3A00%3A00%2B0000", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cy85YTRiNjNjMy00OWQxLTRjODctYjI4ZS05MmU5MmFlYWEwZWEvcmVzdG9yYWJsZVNxbFJlc291cmNlcz9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXcmcmVzdG9yZUxvY2F0aW9uPXdlc3R1czImcmVzdG9yZVRpbWVzdGFtcEluVXRjPTIwMjEtMDMtMDFUMDAlM0EwMCUzQTAwJTJCMDAwMA==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "2729cb13-82b8-4a15-9e2c-e53e0de9f7b9" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/5.0.321.7212", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11995" - ], - "x-ms-request-id": [ - "89288176-80a2-437d-86f5-31076f97de39" - ], - "x-ms-correlation-request-id": [ - "89288176-80a2-437d-86f5-31076f97de39" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20210303T183720Z:89288176-80a2-437d-86f5-31076f97de39" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Wed, 03 Mar 2021 18:37:19 GMT" - ], - "Content-Length": [ - "136" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"databaseName\": \"database1\",\r\n \"collectionNames\": [\r\n \"container1\",\r\n \"container2\"\r\n ]\r\n },\r\n {\r\n \"databaseName\": \"databaseA\",\r\n \"collectionNames\": []\r\n }\r\n ]\r\n}", - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "80be3961-0521-4a0a-8570-5cd5a4e2f98c" - } -} \ No newline at end of file diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/RestoreDatabaseAccountOperationsTests/RestoreDatabaseAccountFeedTests.json b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/RestoreDatabaseAccountOperationsTests/RestoreDatabaseAccountFeedTests.json index 20e8da836bfd..7a096801cdea 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/RestoreDatabaseAccountOperationsTests/RestoreDatabaseAccountFeedTests.json +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/RestoreDatabaseAccountOperationsTests/RestoreDatabaseAccountFeedTests.json @@ -1,22 +1,82 @@ { "Entries": [ { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/pitr-sql-stage-source?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL3BpdHItc3RhZ2UtcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcGl0ci1zcWwtc3RhZ2Utc291cmNlP2FwaS12ZXJzaW9uPTIwMjEtMDMtMDEtcHJldmlldw==", + "RequestUri": "/providers/Microsoft.DocumentDB/databaseAccountNames/pitr-sql-stage-source?api-version=2021-06-15", + "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnROYW1lcy9waXRyLXNxbC1zdGFnZS1zb3VyY2U/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", + "RequestMethod": "HEAD", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e588320e-2d70-406d-ae06-e3a310ca6f15" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-activity-id": [ + "e588320e-2d70-406d-ae06-e3a310ca6f15" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-tenant-reads": [ + "11999" + ], + "x-ms-request-id": [ + "8aa45bca-0cb1-41a2-a33c-acfbee47a05d" + ], + "x-ms-correlation-request-id": [ + "8aa45bca-0cb1-41a2-a33c-acfbee47a05d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T071619Z:8aa45bca-0cb1-41a2-a33c-acfbee47a05d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 07:16:19 GMT" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/pitr-sql-stage-source?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcGl0ci1zcWwtc3RhZ2Utc291cmNlP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ae0f51c9-01c6-4cb3-bd66-fd63410aa096" + "61995d54-83f3-42c5-81bb-b5b7f1d2bbe2" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -30,7 +90,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -39,242 +99,236 @@ "11999" ], "x-ms-request-id": [ - "38b9906d-c653-49b5-9c2f-15e75e88ac98" + "3870fe2d-63b9-4ebf-b162-15b8cfcf90b5" ], "x-ms-correlation-request-id": [ - "38b9906d-c653-49b5-9c2f-15e75e88ac98" + "3870fe2d-63b9-4ebf-b162-15b8cfcf90b5" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T174900Z:38b9906d-c653-49b5-9c2f-15e75e88ac98" + "WESTUS2:20210616T071620Z:3870fe2d-63b9-4ebf-b162-15b8cfcf90b5" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:48:59 GMT" + "Wed, 16 Jun 2021 07:16:19 GMT" ], "Content-Length": [ - "2749" + "2265" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/pitr-sql-stage-source\",\r\n \"name\": \"pitr-sql-stage-source\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-08T18:18:46.0964181Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"instanceId\": \"9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"pitr-sql-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"pitr-sql-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"pitr-sql-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/pitr-sql-stage-source\",\r\n \"name\": \"pitr-sql-stage-source\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-02T23:30:42.158286Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"c6b53e1d-0dec-4ff2-ab70-2e9d24a3ed27\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/restorableDatabaseAccounts?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cz9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "64628f64-d6dc-48b0-bc9f-dbbd63872344" + "b4782640-d90e-4cec-ab25-dc7c28e6d442" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { "Cache-Control": [ - "no-cache" + "no-store, no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-original-request-ids": [ - "", - "", - "" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], "x-ms-request-id": [ - "0af4ad7f-5ffc-4dd9-8ec3-7580ceb57f78" + "6aabfc1a-b614-410b-93bb-1463ecf329c6" ], "x-ms-correlation-request-id": [ - "0af4ad7f-5ffc-4dd9-8ec3-7580ceb57f78" + "6aabfc1a-b614-410b-93bb-1463ecf329c6" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T174923Z:0af4ad7f-5ffc-4dd9-8ec3-7580ceb57f78" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "WESTUS2:20210616T071620Z:6aabfc1a-b614-410b-93bb-1463ecf329c6" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:49:23 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" + "Wed, 16 Jun 2021 07:16:20 GMT" ], "Content-Length": [ - "46781" + "13637" + ], + "Content-Type": [ + "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": \"5dee0717-8f84-40d7-b7c1-921552ba61a5\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/5dee0717-8f84-40d7-b7c1-921552ba61a5\",\r\n \"properties\": {\r\n \"accountName\": \"vinhstagepitr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-11-02T23:44:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"30d6cace-8354-4e1f-b427-4f234f46df87\",\r\n \"creationTime\": \"2020-11-02T23:44:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"5cfa410f-ea0c-4995-aa59-9809a69c21f8\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/5cfa410f-ea0c-4995-aa59-9809a69c21f8\",\r\n \"properties\": {\r\n \"accountName\": \"vinhstagemongopitr\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-11-25T17:07:33Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"4ecfc265-e4d3-4638-a225-1932760404ee\",\r\n \"creationTime\": \"2020-11-25T17:07:34Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2b5e6412-19dc-4d79-88ae-178f5e30dd78\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/2b5e6412-19dc-4d79-88ae-178f5e30dd78\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-vinhstagemongopitr-del-res1\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-11-30T23:17:02Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a35683c3-cf9b-4378-a290-fb3ab8e741f9\",\r\n \"creationTime\": \"2020-11-30T23:17:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-08T18:18:47Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f61a9ed3-fcda-4603-b1e2-2baadbb6122b\",\r\n \"creationTime\": \"2020-12-08T18:18:47Z\"\r\n },\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"cdd116b8-a956-43d5-b461-248f837099f4\",\r\n \"creationTime\": \"2020-12-14T21:35:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"7d98d6c0-eadf-4d7e-a166-696de37c91fc\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/7d98d6c0-eadf-4d7e-a166-696de37c91fc\",\r\n \"properties\": {\r\n \"accountName\": \"restore-test1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-08T21:44:47Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"208a7933-2e44-4df1-9c96-97e28ae92d8f\",\r\n \"creationTime\": \"2020-12-08T21:44:47Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"08155af7-e63f-4db1-82ed-c99b8a08e541\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/08155af7-e63f-4db1-82ed-c99b8a08e541\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-vinhstagemongopitr-1\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-12-09T10:37:08Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"8c045a40-c3b5-4025-a270-156b748fd08b\",\r\n \"creationTime\": \"2020-12-09T10:37:08Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d0cb2ece-f253-4f20-86d0-01897e729eba\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/d0cb2ece-f253-4f20-86d0-01897e729eba\",\r\n \"properties\": {\r\n \"accountName\": \"virangai-test-vinhstagepitr-restore1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-10T02:08:18Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d4a86ba4-38f5-46ba-b0ae-724d5508b551\",\r\n \"creationTime\": \"2020-12-10T02:08:18Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9373a8d7-1889-4be9-9ddb-e589e406d04b\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9373a8d7-1889-4be9-9ddb-e589e406d04b\",\r\n \"properties\": {\r\n \"accountName\": \"virangai-test-vinhstagepitr-restore2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-10T03:12:31Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"c2374cdf-00cc-42e3-887e-4824532ff3e7\",\r\n \"creationTime\": \"2020-12-10T03:12:31Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"530b269d-274b-4987-94e1-f54b09abecff\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/530b269d-274b-4987-94e1-f54b09abecff\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname637435832535194992\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-15T23:04:01Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"257c2c07-efcb-47b2-b696-6ba5ca9785b0\",\r\n \"creationTime\": \"2020-12-15T23:04:01Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"4993c7e8-c48b-4e45-9353-9baea1ce9e2a\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/4993c7e8-c48b-4e45-9353-9baea1ce9e2a\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname359\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-16T00:51:06Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f964f331-3322-4719-946a-a8f4e406ca14\",\r\n \"creationTime\": \"2020-12-16T00:51:06Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d673eaa8-f7fa-421f-9d61-ba314864a431\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/d673eaa8-f7fa-421f-9d61-ba314864a431\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-from-new-portal\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-05T00:28:34Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a09d2f05-b90f-4a76-96c5-ef49edadbbae\",\r\n \"creationTime\": \"2021-01-05T00:28:34Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"6d6384ae-d623-4323-8388-65ca7df02733\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/6d6384ae-d623-4323-8388-65ca7df02733\",\r\n \"properties\": {\r\n \"accountName\": \"pitrtest1-res1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-05T23:45:55Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"2b92bb0a-1fa9-43c2-b8a7-b25d209d25c1\",\r\n \"creationTime\": \"2021-01-05T23:45:55Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"0bcf9a9b-1ca1-4406-9652-aa087d5f0b3f\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/0bcf9a9b-1ca1-4406-9652-aa087d5f0b3f\",\r\n \"properties\": {\r\n \"accountName\": \"pitrtest1-res2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-05T23:46:37Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d666fcfb-319c-4c5d-a2b8-27ae6cc9233f\",\r\n \"creationTime\": \"2021-01-05T23:46:37Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"b15e30f1-4e37-4fca-b77b-303516959017\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/b15e30f1-4e37-4fca-b77b-303516959017\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-vinhstagepitr-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-06T09:24:07Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"8203b929-83ed-496a-8e6b-8a291aba9a32\",\r\n \"creationTime\": \"2021-01-06T09:24:07Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"617f5c88-2a93-45b4-be38-0cd7addea976\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/617f5c88-2a93-45b4-be38-0cd7addea976\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-vinhstagepitr-2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-06T09:33:06Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"e54058dc-c9ec-4393-9b62-3c4a764d9dda\",\r\n \"creationTime\": \"2021-01-06T09:33:06Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2eecc23f-69df-4de3-9103-b6ca529536a4\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/2eecc23f-69df-4de3-9103-b6ca529536a4\",\r\n \"properties\": {\r\n \"accountName\": \"test-restore-4\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-07T01:23:39Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"80c0209c-f89b-41b6-8cc2-5edad302caaf\",\r\n \"creationTime\": \"2021-01-07T01:23:39Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d91e1ad2-22b0-401e-b465-a16e5928e194\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/d91e1ad2-22b0-401e-b465-a16e5928e194\",\r\n \"properties\": {\r\n \"accountName\": \"test-restore5\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-07T01:23:40Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"793334c5-2123-41a5-a382-7b5aade5bb82\",\r\n \"creationTime\": \"2021-01-07T01:23:40Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"132908b6-2701-44a5-bdbe-a7c296e26283\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/132908b6-2701-44a5-bdbe-a7c296e26283\",\r\n \"properties\": {\r\n \"accountName\": \"test-restore6\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-07T03:18:46Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a8bcc661-cdd0-4fb6-b011-ce4fb922930d\",\r\n \"creationTime\": \"2021-01-07T03:18:46Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2ab6f2d2-ce7e-439b-90b3-5505c8f9ff76\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/2ab6f2d2-ce7e-439b-90b3-5505c8f9ff76\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-source-personalrestore-greeen\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-15T22:51:59Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"8b3376be-21d5-43db-ad08-7fa9e3f3ad5b\",\r\n \"creationTime\": \"2021-01-15T22:51:59Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"483d93e5-302b-4093-9502-ce63d416e70f\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/483d93e5-302b-4093-9502-ce63d416e70f\",\r\n \"properties\": {\r\n \"accountName\": \"targetacctrestore\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-18T18:30:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"cb6a3895-5ded-43ee-a6a8-91d9050f5582\",\r\n \"creationTime\": \"2021-02-18T18:30:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"74e9ac09-75d3-448a-a128-e71866b42e95\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/74e9ac09-75d3-448a-a128-e71866b42e95\",\r\n \"properties\": {\r\n \"accountName\": \"virangai-test-vinhstagepitr-res\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-26T22:14:50Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"40e6110d-0ae4-4e40-9d6e-33014540e179\",\r\n \"creationTime\": \"2021-02-26T22:14:50Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"24f3f6b6-9d96-4dc2-84b9-ae1c0cba8d4e\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/24f3f6b6-9d96-4dc2-84b9-ae1c0cba8d4e\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname8240\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-02T23:44:13Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"c2df5fa4-a593-48f2-8417-9f5f4bb9ef56\",\r\n \"creationTime\": \"2021-03-02T23:44:13Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"f319c2f4-7e68-48c0-9eac-94e12fb51179\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/f319c2f4-7e68-48c0-9eac-94e12fb51179\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname320\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T00:59:34Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"005c7a8b-fffd-4106-a2f5-0b4f58b1942a\",\r\n \"creationTime\": \"2021-03-03T00:59:34Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"672e89ce-0096-4a87-8131-3d2d5d483a3a\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/672e89ce-0096-4a87-8131-3d2d5d483a3a\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname6982\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T02:34:06Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f30afdfa-9473-4658-83c4-5067be2232db\",\r\n \"creationTime\": \"2021-03-03T02:34:06Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"1a937e8e-1a33-4fd1-9349-34ede3dd02f2\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/1a937e8e-1a33-4fd1-9349-34ede3dd02f2\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname8295\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T17:48:45Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"0057f632-aaa2-44a6-92bf-c2e623403f52\",\r\n \"creationTime\": \"2021-03-03T17:48:45Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"4d0ae23d-5661-4c5a-ae37-48aa6308425b\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/4d0ae23d-5661-4c5a-ae37-48aa6308425b\",\r\n \"properties\": {\r\n \"accountName\": \"stage-validation-pitr-test0\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-10T07:55:12Z\",\r\n \"deletionTime\": \"2021-02-10T14:21:37Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"26d7f01f-3f0c-4eb6-80a2-f5776f929f12\",\r\n \"creationTime\": \"2021-02-10T07:55:13Z\",\r\n \"deletionTime\": \"2021-02-10T14:21:37Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c26d3f43-7363-4c54-940a-bde0e96bda72\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c26d3f43-7363-4c54-940a-bde0e96bda72\",\r\n \"properties\": {\r\n \"accountName\": \"db1024-restored\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-08-14T01:17:36Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"eca195d4-fcaa-4d5f-b01b-20f61f01319f\",\r\n \"creationTime\": \"2020-08-14T01:17:36Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d8974ca8-8f69-4924-9040-c10b7f30524b\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d8974ca8-8f69-4924-9040-c10b7f30524b\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname9746\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-21T18:55:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"775c4324-cba7-4eb3-a8ee-5e1921f7f57b\",\r\n \"creationTime\": \"2020-07-21T18:55:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"aca7d453-88a9-4bf2-8abc-46d21553638f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/aca7d453-88a9-4bf2-8abc-46d21553638f\",\r\n \"properties\": {\r\n \"accountName\": \"db1024\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-21T18:19:37Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a926c9e8-3179-4774-bc1e-fb866407b7db\",\r\n \"creationTime\": \"2020-07-21T18:19:38Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"a54115d5-4356-4771-b7b0-20f475ce5a38\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/a54115d5-4356-4771-b7b0-20f475ce5a38\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-08-13T23:51:16Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d9b09727-2a45-4760-a837-3366c1187358\",\r\n \"creationTime\": \"2020-08-13T23:51:17Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"72ee099a-9209-4fe4-aeb2-8f4954f25eba\",\r\n \"creationTime\": \"2020-08-28T18:50:30Z\"\r\n },\r\n {\r\n \"locationName\": \"Southeast Asia\",\r\n \"regionalDatabaseAccountInstanceId\": \"e5abbaa4-031a-451a-b041-76c6bcd93fa9\",\r\n \"creationTime\": \"2021-02-08T19:29:22Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"bb3e3c48-18d8-46e8-b294-41d9406885c5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/bb3e3c48-18d8-46e8-b294-41d9406885c5\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-cont123\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-08-05T20:32:27Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"2355946d-5d79-4cc4-a521-3a302a9bff85\",\r\n \"creationTime\": \"2020-08-05T20:32:27Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"55083b96-b985-4dec-92df-fa0ac98443f1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/55083b96-b985-4dec-92df-fa0ac98443f1\",\r\n \"properties\": {\r\n \"accountName\": \"selvitest-account\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-23T16:18:43Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"787a81fe-fb41-40da-8b69-a9e18966b4e3\",\r\n \"creationTime\": \"2020-07-23T16:18:43Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"ec72f021-4974-405a-8c78-f74207ff0e12\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/ec72f021-4974-405a-8c78-f74207ff0e12\",\r\n \"properties\": {\r\n \"accountName\": \"selvitest-account-destinationforrestore\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-23T17:39:58Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"11f925e4-b48d-4d16-9ad2-209d1056ec9c\",\r\n \"creationTime\": \"2020-07-23T17:39:58Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"17783e6d-0e28-41e2-b086-9d17763f1d51\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/17783e6d-0e28-41e2-b086-9d17763f1d51\",\r\n \"properties\": {\r\n \"accountName\": \"virangai-test-bk-cont\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-28T22:09:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f74e094e-9b1d-4e16-82b6-a57782f1d187\",\r\n \"creationTime\": \"2020-07-28T22:09:24Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2d90bc37-cd54-4352-9e57-e6aa3f22d494\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/2d90bc37-cd54-4352-9e57-e6aa3f22d494\",\r\n \"properties\": {\r\n \"accountName\": \"selvitest-account-destinationforrestorev2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-23T17:41:22Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"e1dfecef-45cb-4c70-bbd5-393eb3774821\",\r\n \"creationTime\": \"2020-07-23T17:41:22Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"b0c8684b-7f9c-45fe-8ab9-2a74b656867e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/b0c8684b-7f9c-45fe-8ab9-2a74b656867e\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname637428812785768088\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-07T20:03:41Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"59294929-189f-4f8b-af35-740fc0fba9f0\",\r\n \"creationTime\": \"2020-12-07T20:03:41Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo32-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-12-07T21:23:56Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"49174788-8512-4a01-a3ca-38c7857a2635\",\r\n \"creationTime\": \"2020-12-07T21:23:56Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"921dbaed-a5bd-462d-8351-d0eda5e592c0\",\r\n \"creationTime\": \"2020-12-08T23:28:45Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"25a04cf0-89d4-4546-9c30-14d1dc8899df\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/25a04cf0-89d4-4546-9c30-14d1dc8899df\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo36-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-12-07T21:35:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"b52d5178-bc7b-4b2b-a05e-9d3dba85e7fd\",\r\n \"creationTime\": \"2020-12-07T21:35:24Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"b0f33c79-f7b2-421f-9e94-699b0f8c840a\",\r\n \"creationTime\": \"2020-12-08T22:02:23Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"345c785a-e758-4f8b-94d4-0a1259f4f85b\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/345c785a-e758-4f8b-94d4-0a1259f4f85b\",\r\n \"properties\": {\r\n \"accountName\": \"nichatur-restore-test\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-07T23:33:57Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"94eeb20d-16d0-4ee1-ae6a-7f2a0332a1d5\",\r\n \"creationTime\": \"2020-12-07T23:33:57Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"605db505-9267-4cf0-b7ac-27ef644b2ef3\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/605db505-9267-4cf0-b7ac-27ef644b2ef3\",\r\n \"properties\": {\r\n \"accountName\": \"nichatur-restore-test-r1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-07T23:57:59Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"71a2cff6-7e90-43a5-b261-b704fbfaf100\",\r\n \"creationTime\": \"2020-12-07T23:57:59Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"0d00d699-017a-4a76-8639-ab4bec82c5f2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/0d00d699-017a-4a76-8639-ab4bec82c5f2\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname637428989095532319\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-08T00:57:52Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"7c0454e1-f718-48fe-894a-35182a8440d2\",\r\n \"creationTime\": \"2020-12-08T00:57:52Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"73d1010d-f0b7-4673-b8c0-18ddecdcda06\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/73d1010d-f0b7-4673-b8c0-18ddecdcda06\",\r\n \"properties\": {\r\n \"accountName\": \"nichatur-restore-test-r2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-08T22:03:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"c6b5a1f6-2215-49be-9277-aeff5723ab4c\",\r\n \"creationTime\": \"2020-12-08T22:03:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d1535f84-06b5-497b-8768-962ece984001\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d1535f84-06b5-497b-8768-962ece984001\",\r\n \"properties\": {\r\n \"accountName\": \"kal-restore-test\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-15T21:58:32Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f4b8377d-89b3-41dd-9892-79bfbc4d523c\",\r\n \"creationTime\": \"2021-01-15T21:58:32Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9351dd2e-d901-465b-98cb-a74a3aabd49f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9351dd2e-d901-465b-98cb-a74a3aabd49f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-unique-mode-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-03T19:53:25Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"b5ee0cb6-20df-4132-8378-3d2b2bb477f8\",\r\n \"creationTime\": \"2021-02-03T19:53:26Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"222da8e2-da07-46db-9cd2-51a2efb84b9f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/222da8e2-da07-46db-9cd2-51a2efb84b9f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-unique-mode-restored\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-03T20:07:50Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"094b572d-52f6-47bc-92c3-a692588ef6d6\",\r\n \"creationTime\": \"2021-02-03T20:07:50Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"19e4130a-cb83-4a34-85c2-e35dcda149f8\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/19e4130a-cb83-4a34-85c2-e35dcda149f8\",\r\n \"properties\": {\r\n \"accountName\": \"stage-validation-m\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-02-05T04:08:10Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"3f97305a-6a6b-4b38-b200-bea92d78f64a\",\r\n \"creationTime\": \"2021-02-05T04:08:11Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"7cf7aaa4-fe00-48fa-820b-cc632feaa9d7\",\r\n \"creationTime\": \"2021-02-05T04:29:43Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"5939cc7f-0bdd-4790-9ac6-a3b281c64f97\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/5939cc7f-0bdd-4790-9ac6-a3b281c64f97\",\r\n \"properties\": {\r\n \"accountName\": \"multiregion-pitr-billing-test\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-19T00:20:18Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"Southeast Asia\",\r\n \"regionalDatabaseAccountInstanceId\": \"0018e6e6-170f-4e25-b1a5-97e718138e0c\",\r\n \"creationTime\": \"2021-02-19T00:20:18Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"e235a61e-abf7-4e95-bfc2-0e4aa649b874\",\r\n \"creationTime\": \"2021-02-19T00:33:52Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"96aa7f5a-5292-44f3-9d3e-bec163b0de1a\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/96aa7f5a-5292-44f3-9d3e-bec163b0de1a\",\r\n \"properties\": {\r\n \"accountName\": \"restore-pitr-mongo32-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-02-26T18:11:04Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"8c350d54-e45d-4ef7-af55-9f07dc4fe594\",\r\n \"creationTime\": \"2021-02-26T18:11:04Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c02d9298-7cdb-440f-a16b-0dc3c97d6cde\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c02d9298-7cdb-440f-a16b-0dc3c97d6cde\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T04:36:55Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d6e10b03-43cd-4bdc-a1b8-3dfab9fe6beb\",\r\n \"creationTime\": \"2021-03-03T04:36:55Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"00e807ea-76c1-4b2f-afdd-dddc1b15979f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/00e807ea-76c1-4b2f-afdd-dddc1b15979f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T05:01:33Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"683f9f6f-8b7d-4638-a4f2-db9983a9c2d1\",\r\n \"creationTime\": \"2021-03-03T05:01:33Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9766bca9-cc26-4e26-83fe-32cd22fdb83d\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9766bca9-cc26-4e26-83fe-32cd22fdb83d\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-billing-test\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-20T01:08:53Z\",\r\n \"deletionTime\": \"2021-02-04T00:01:29Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"9df768c4-6f3e-4bb8-be73-c8b338f50875\",\r\n \"creationTime\": \"2021-01-20T01:08:53Z\",\r\n \"deletionTime\": \"2021-02-04T00:01:29Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"8e032502-70fc-4495-8546-e69383186c09\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/8e032502-70fc-4495-8546-e69383186c09\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-billing-test-2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-21T05:06:14Z\",\r\n \"deletionTime\": \"2021-02-04T00:01:29Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a994d170-beb1-4f1a-a413-2d5548b171dd\",\r\n \"creationTime\": \"2021-01-21T05:06:14Z\",\r\n \"deletionTime\": \"2021-02-04T00:01:29Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d9e1ccfa-1929-4532-9efb-6100feff0f0e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d9e1ccfa-1929-4532-9efb-6100feff0f0e\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-restored-ror\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-06T19:32:22Z\",\r\n \"deletionTime\": \"2021-02-06T19:40:48Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"95ef85ad-f3dd-490d-aff2-50d6c7c0dd5f\",\r\n \"creationTime\": \"2021-02-06T19:32:22Z\",\r\n \"deletionTime\": \"2021-02-06T19:40:48Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2d7d7e33-9b97-491e-895b-fe7f46f3d86c\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/2d7d7e33-9b97-491e-895b-fe7f46f3d86c\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-10T23:50:26Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:51Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"eb35152b-9da0-44c0-a767-0c643969bf08\",\r\n \"creationTime\": \"2021-02-10T23:50:26Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:51Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"4961ef4a-30d0-484e-ad16-8ba453b14abf\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/4961ef4a-30d0-484e-ad16-8ba453b14abf\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-res\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T04:40:28Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:51Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"5970d071-463b-4f79-92ac-810f199754e9\",\r\n \"creationTime\": \"2021-02-11T04:40:28Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:51Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"ce9e2478-aa44-4bd2-96d4-d23f75dbd994\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/ce9e2478-aa44-4bd2-96d4-d23f75dbd994\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T00:04:43Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:54Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"4d1a5ff8-9393-4dc4-a3b9-1b24e2aeb32c\",\r\n \"creationTime\": \"2021-02-11T00:04:43Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:54Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"f93aff83-e412-471c-86de-e23df6cbeb58\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/f93aff83-e412-471c-86de-e23df6cbeb58\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-restored-readregion\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-07T21:48:30Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:27Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"North Central US\",\r\n \"regionalDatabaseAccountInstanceId\": \"ffac845b-ac41-4bfe-acc1-227406f9f68a\",\r\n \"creationTime\": \"2021-02-07T21:48:30Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:27Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9bb64267-f1d8-4d2a-9367-d16492966dc8\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9bb64267-f1d8-4d2a-9367-d16492966dc8\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-06T18:18:14Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"North Central US\",\r\n \"regionalDatabaseAccountInstanceId\": \"c8fdaea9-e41e-416f-8ab8-ffa9295ad14a\",\r\n \"creationTime\": \"2021-02-07T18:55:04Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\"\r\n },\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"de4ce762-1219-4750-9c25-cead6a9964b3\",\r\n \"creationTime\": \"2021-02-06T18:18:14Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"78bd960f-b8bc-4412-b4e1-f16c5acc599c\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/78bd960f-b8bc-4412-b4e1-f16c5acc599c\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-del-restored\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-06T20:23:29Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"Southeast Asia\",\r\n \"regionalDatabaseAccountInstanceId\": \"753180e8-e128-47e9-98d1-5ce0c6d4f3a8\",\r\n \"creationTime\": \"2021-02-08T19:31:46Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\"\r\n },\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"2524386d-c456-4de9-a314-1acdb94e52a3\",\r\n \"creationTime\": \"2021-02-06T20:23:29Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"67d6981a-3dc7-4e3a-b04a-73c0376d42bb\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/67d6981a-3dc7-4e3a-b04a-73c0376d42bb\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T08:37:02Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:42Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"5f331e43-571c-4fe7-9874-aeafcd2b421c\",\r\n \"creationTime\": \"2021-02-11T08:37:02Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:42Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"5ea690df-46a9-4bf2-910c-0484660978bb\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/5ea690df-46a9-4bf2-910c-0484660978bb\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T08:24:56Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:43Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"29b9a3fe-b375-462d-9221-191fc4ddaa83\",\r\n \"creationTime\": \"2021-02-11T08:24:56Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:43Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"53b3d044-7394-4a06-883d-cf9247f66e3c\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/53b3d044-7394-4a06-883d-cf9247f66e3c\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r3\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T08:49:08Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:44Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a38a83ce-d467-4c81-9f3d-c65697d1c547\",\r\n \"creationTime\": \"2021-02-11T08:49:08Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:44Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"66c4a9a2-7799-474a-9e1e-e56a4b340d62\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/66c4a9a2-7799-474a-9e1e-e56a4b340d62\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r4\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T09:01:06Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:45Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"01869f13-ab6f-451b-8b15-9cb0b369cde2\",\r\n \"creationTime\": \"2021-02-11T09:01:06Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:45Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"674c1551-e35b-4a4d-bd79-fde1f439dbe0\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/674c1551-e35b-4a4d-bd79-fde1f439dbe0\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-17T11:23:16Z\",\r\n \"deletionTime\": \"2021-02-17T15:31:10Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"17329379-801c-4909-999a-421f20fd57c4\",\r\n \"creationTime\": \"2021-02-17T11:23:16Z\",\r\n \"deletionTime\": \"2021-02-17T15:31:10Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"af242175-f3a2-40f4-9c77-10eaf232a2b5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/af242175-f3a2-40f4-9c77-10eaf232a2b5\",\r\n \"properties\": {\r\n \"accountName\": \"dd21234\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-22T09:47:40Z\",\r\n \"deletionTime\": \"2021-02-22T10:59:26Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"66b2c82f-633f-446a-b89e-dba1b13ae92c\",\r\n \"creationTime\": \"2021-02-22T09:47:40Z\",\r\n \"deletionTime\": \"2021-02-22T10:59:26Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"128a528a-5e22-4146-ae62-b32994614cb0\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/128a528a-5e22-4146-ae62-b32994614cb0\",\r\n \"properties\": {\r\n \"accountName\": \"dd21\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-22T09:02:19Z\",\r\n \"deletionTime\": \"2021-02-22T11:00:06Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"ebc69bc4-4865-41d6-a632-aef7a5e2de1d\",\r\n \"creationTime\": \"2021-02-22T09:02:19Z\",\r\n \"deletionTime\": \"2021-02-22T11:00:06Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"3e1a3f5e-dcae-449e-82f7-bbf80cba54c5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/3e1a3f5e-dcae-449e-82f7-bbf80cba54c5\",\r\n \"properties\": {\r\n \"accountName\": \"ddb55\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-24T04:21:43Z\",\r\n \"deletionTime\": \"2021-02-24T07:45:59Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"4dff1afd-82b9-425f-840a-3237bd54478d\",\r\n \"creationTime\": \"2021-02-24T04:21:43Z\",\r\n \"deletionTime\": \"2021-02-24T07:45:59Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d612dc86-9085-444b-a868-fb48c7d368fb\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d612dc86-9085-444b-a868-fb48c7d368fb\",\r\n \"properties\": {\r\n \"accountName\": \"ddb1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-18T11:15:52Z\",\r\n \"deletionTime\": \"2021-02-24T07:46:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"db2b9027-bcdf-4069-be69-074fc2f46d7c\",\r\n \"creationTime\": \"2021-02-18T11:15:52Z\",\r\n \"deletionTime\": \"2021-02-24T07:46:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"0ea5b02f-40bd-4cfd-8406-35286bd00fa2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/0ea5b02f-40bd-4cfd-8406-35286bd00fa2\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-ror\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-24T17:56:15Z\",\r\n \"deletionTime\": \"2021-02-25T10:33:38Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"740afadb-1142-4b13-9fa4-67e857d56a89\",\r\n \"creationTime\": \"2021-02-24T17:56:15Z\",\r\n \"deletionTime\": \"2021-02-25T10:33:38Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"52006c1b-5c7f-43a1-9ae0-b936550aed8a\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/52006c1b-5c7f-43a1-9ae0-b936550aed8a\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-rrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-24T17:40:45Z\",\r\n \"deletionTime\": \"2021-02-25T10:34:20Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a1e3fe50-7548-4b49-aee1-373a142e0c3b\",\r\n \"creationTime\": \"2021-02-24T17:40:45Z\",\r\n \"deletionTime\": \"2021-02-25T10:34:20Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"a578c9d3-1d35-451f-a3df-44e61ed45cfa\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/a578c9d3-1d35-451f-a3df-44e61ed45cfa\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-24T05:19:04Z\",\r\n \"deletionTime\": \"2021-02-25T10:34:35Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"feff600a-c776-422a-a2f7-0cfe03be68b8\",\r\n \"creationTime\": \"2021-02-24T05:19:04Z\",\r\n \"deletionTime\": \"2021-02-25T10:34:35Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"07b7492c-91c3-41bb-9f75-8f25c739ce06\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/07b7492c-91c3-41bb-9f75-8f25c739ce06\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-01T05:56:16Z\",\r\n \"deletionTime\": \"2021-03-02T09:01:04Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"bfbd7d4b-3edf-44da-8aab-eb9cdafe43a7\",\r\n \"creationTime\": \"2021-03-01T05:56:16Z\",\r\n \"deletionTime\": \"2021-03-02T09:01:04Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"db2af171-a342-4d3c-92ff-45e81629341d\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/db2af171-a342-4d3c-92ff-45e81629341d\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-02T10:39:31Z\",\r\n \"deletionTime\": \"2021-03-02T10:41:51Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"4e29876d-a887-4def-a99e-1b7043bb6181\",\r\n \"creationTime\": \"2021-03-02T10:39:31Z\",\r\n \"deletionTime\": \"2021-03-02T10:41:51Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"a76a91b4-489b-4714-b0fc-b98459934920\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/a76a91b4-489b-4714-b0fc-b98459934920\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-02T15:16:36Z\",\r\n \"deletionTime\": \"2021-03-03T04:08:46Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"40bafde5-ffd5-453a-acb4-9c697808790a\",\r\n \"creationTime\": \"2021-03-02T15:16:36Z\",\r\n \"deletionTime\": \"2021-03-03T04:08:46Z\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": \"fccbe297-cb19-424b-a8d7-e996a6b7b689\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/fccbe297-cb19-424b-a8d7-e996a6b7b689\",\r\n \"properties\": {\r\n \"accountName\": \"mongotestaccount\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-02T19:34:26Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"9f8cab0e-80f5-48b6-bc9f-7f7b3a69afeb\",\r\n \"creationTime\": \"2021-06-02T19:34:27Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c6b53e1d-0dec-4ff2-ab70-2e9d24a3ed27\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c6b53e1d-0dec-4ff2-ab70-2e9d24a3ed27\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-02T23:30:43Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"9961d453-89c2-4daf-bcad-add22d287617\",\r\n \"creationTime\": \"2021-06-02T23:30:43Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"990590c0-4db8-4b0e-96ef-55f0be03615d\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/990590c0-4db8-4b0e-96ef-55f0be03615d\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo32-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-02T23:32:31Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"2d0a8ae4-e622-429c-a2bf-b7b13ada7b45\",\r\n \"creationTime\": \"2021-06-02T23:32:32Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"60a54911-db9e-436f-b282-34779e0a2a7f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/60a54911-db9e-436f-b282-34779e0a2a7f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo36-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-02T23:33:01Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"32163288-85a4-454b-a7d7-d7fbb1f32aeb\",\r\n \"creationTime\": \"2021-06-02T23:33:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"b0736fc7-cb53-4b6f-bd2f-aac904085da4\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/b0736fc7-cb53-4b6f-bd2f-aac904085da4\",\r\n \"properties\": {\r\n \"accountName\": \"mongo-continuous-1212\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-04T22:09:26Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a1f3383c-4e2f-44b5-8348-7323e2356b3d\",\r\n \"creationTime\": \"2021-06-04T22:09:26Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2301188f-cf13-419d-b7c2-5321c5476526\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/2301188f-cf13-419d-b7c2-5321c5476526\",\r\n \"properties\": {\r\n \"accountName\": \"restored-cosmosdb-1212\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:06:02Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"05b3f3ce-59ee-4d28-bd66-09ea5c50790d\",\r\n \"creationTime\": \"2021-06-07T21:06:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"24302a82-123a-487a-bede-054ade2860f1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/24302a82-123a-487a-bede-054ade2860f1\",\r\n \"properties\": {\r\n \"accountName\": \"dbaccount29-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:24:52Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"ede5fb9c-4058-44a6-8dec-29e3e7de9b44\",\r\n \"creationTime\": \"2021-06-07T21:24:53Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"e157f1a1-6837-46fa-8f4f-ef3e7266ab3a\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/e157f1a1-6837-46fa-8f4f-ef3e7266ab3a\",\r\n \"properties\": {\r\n \"accountName\": \"rbactestps12\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:27:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"64c449c8-6fa2-4273-b066-5a062d4418be\",\r\n \"creationTime\": \"2021-06-07T21:27:24Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"72706ac1-0d0a-40be-a30a-1b4af0911131\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/72706ac1-0d0a-40be-a30a-1b4af0911131\",\r\n \"properties\": {\r\n \"accountName\": \"mongo-db0002\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-07T23:44:54Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"dfccb705-08c0-4282-9dad-07ab354ba8e8\",\r\n \"creationTime\": \"2021-06-07T23:44:55Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"41ea7d9e-553f-4259-872f-676c969e9a0b\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/41ea7d9e-553f-4259-872f-676c969e9a0b\",\r\n \"properties\": {\r\n \"accountName\": \"dbaccount27-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-08T17:39:46Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"1db9bff4-73f7-48e1-a506-ab5b3edc8308\",\r\n \"creationTime\": \"2021-06-08T17:39:47Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"ceacd38f-9e6b-4a81-b2f7-ecd341c6fbbd\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/ceacd38f-9e6b-4a81-b2f7-ecd341c6fbbd\",\r\n \"properties\": {\r\n \"accountName\": \"cli125\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-09T19:06:13Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"c2a9bc5f-f37e-4add-a582-52abfb6a36a1\",\r\n \"creationTime\": \"2021-06-09T19:06:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"88d48073-10d1-402e-8cf5-c79e4e2de08e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/88d48073-10d1-402e-8cf5-c79e4e2de08e\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount123\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-09T19:09:54Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"861a2513-08ea-4cf8-817b-99b8282f5013\",\r\n \"creationTime\": \"2021-06-09T19:09:54Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"bb9b3beb-42c4-4ae4-a983-58e20bcd71a5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/bb9b3beb-42c4-4ae4-a983-58e20bcd71a5\",\r\n \"properties\": {\r\n \"accountName\": \"db003\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-09T20:16:40Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a6dda878-4486-437f-bd72-b9e87bf75221\",\r\n \"creationTime\": \"2021-06-09T20:16:41Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9f8ee54b-f275-44fa-b2c5-9983644c131f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9f8ee54b-f275-44fa-b2c5-9983644c131f\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount124\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-10T05:06:02Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"3fe302ed-daee-401c-9897-250919f9a0fe\",\r\n \"creationTime\": \"2021-06-10T05:06:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c2601a38-bee1-400e-bc5e-8d817318cf31\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c2601a38-bee1-400e-bc5e-8d817318cf31\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname7595\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-10T18:00:35Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"0a4ccb11-2cb5-4b81-8ab6-ea10cbb2290d\",\r\n \"creationTime\": \"2021-06-10T18:00:35Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"33035d50-7f15-4450-a71d-a4da4dcd039f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/33035d50-7f15-4450-a71d-a4da4dcd039f\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname4020\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-15T21:27:04Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"5d75295f-2ad7-451c-b27d-8e877e22b075\",\r\n \"creationTime\": \"2021-06-15T21:27:04Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"7d405124-1129-468e-9ff9-d031059c96bc\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/7d405124-1129-468e-9ff9-d031059c96bc\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-16T05:58:55Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d0a6a03f-c045-4275-a38a-b221f5749051\",\r\n \"creationTime\": \"2021-06-16T05:58:55Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d5fe116b-8a63-474e-88a4-afb2a726198e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d5fe116b-8a63-474e-88a4-afb2a726198e\",\r\n \"properties\": {\r\n \"accountName\": \"cli127\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-16T06:57:39Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f9a67f44-e6f6-4270-91c6-d90a0292ac96\",\r\n \"creationTime\": \"2021-06-16T06:57:39Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"1dfe47fb-822c-41f1-b403-1cf6c63d0ba7\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/1dfe47fb-822c-41f1-b403-1cf6c63d0ba7\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname3766\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-16T07:16:12Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"1a05d833-615e-45b0-b2ec-f87ca4d9829c\",\r\n \"creationTime\": \"2021-06-16T07:16:12Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c483a757-4d93-4d60-ae22-04c9d2c89595\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c483a757-4d93-4d60-ae22-04c9d2c89595\",\r\n \"properties\": {\r\n \"accountName\": \"restored2-cosmosdb-1212-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-04T22:17:44Z\",\r\n \"deletionTime\": \"2021-06-05T05:04:42Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"eb5e33f1-8ecf-42b7-9f3f-18784854fc5e\",\r\n \"creationTime\": \"2021-06-04T22:17:44Z\",\r\n \"deletionTime\": \"2021-06-05T05:04:42Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"80458ce3-9b06-4d87-9405-1f47eb88164f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/80458ce3-9b06-4d87-9405-1f47eb88164f\",\r\n \"properties\": {\r\n \"accountName\": \"dbaccount27-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:24:07Z\",\r\n \"deletionTime\": \"2021-06-07T22:30:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a47823ea-6bce-4436-91a1-1dd14a1aa3a7\",\r\n \"creationTime\": \"2021-06-07T21:24:08Z\",\r\n \"deletionTime\": \"2021-06-07T22:30:24Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"3b44efa3-a7e6-414e-99c2-22d63aa1d778\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/3b44efa3-a7e6-414e-99c2-22d63aa1d778\",\r\n \"properties\": {\r\n \"accountName\": \"cli126\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-10T05:07:44Z\",\r\n \"deletionTime\": \"2021-06-15T21:00:15Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"fbc82bdc-1493-4cc4-bd69-2c33c650e3ed\",\r\n \"creationTime\": \"2021-06-10T05:07:45Z\",\r\n \"deletionTime\": \"2021-06-15T21:00:15Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"3bf55696-9845-4ab5-b57c-f955a2ffe3ca\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/3bf55696-9845-4ab5-b57c-f955a2ffe3ca\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-01T23:24:19Z\",\r\n \"deletionTime\": \"2021-06-16T04:58:21Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"1062fb86-a396-4689-9326-83193cf2274b\",\r\n \"creationTime\": \"2021-06-01T23:24:20Z\",\r\n \"deletionTime\": \"2021-06-16T04:58:21Z\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/restorableDatabaseAccounts?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cz9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "7b7308b2-561b-4012-aacc-4a240a660139" + "3c16e213-d24e-4634-bc2f-e19481f90cb8" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { "Cache-Control": [ - "no-cache" + "no-store, no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-original-request-ids": [ - "", - "", - "" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" + "11997" ], "x-ms-request-id": [ - "008ebfc7-7969-4fcd-82ce-fb7ff441eb1a" + "49ccd120-5874-4543-bacf-53d52e78c017" ], "x-ms-correlation-request-id": [ - "008ebfc7-7969-4fcd-82ce-fb7ff441eb1a" + "49ccd120-5874-4543-bacf-53d52e78c017" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T175018Z:008ebfc7-7969-4fcd-82ce-fb7ff441eb1a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "WESTUS2:20210616T071621Z:49ccd120-5874-4543-bacf-53d52e78c017" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:50:17 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" + "Wed, 16 Jun 2021 07:16:20 GMT" ], "Content-Length": [ - "46781" + "13637" + ], + "Content-Type": [ + "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": \"5dee0717-8f84-40d7-b7c1-921552ba61a5\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/5dee0717-8f84-40d7-b7c1-921552ba61a5\",\r\n \"properties\": {\r\n \"accountName\": \"vinhstagepitr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-11-02T23:44:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"30d6cace-8354-4e1f-b427-4f234f46df87\",\r\n \"creationTime\": \"2020-11-02T23:44:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"5cfa410f-ea0c-4995-aa59-9809a69c21f8\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/5cfa410f-ea0c-4995-aa59-9809a69c21f8\",\r\n \"properties\": {\r\n \"accountName\": \"vinhstagemongopitr\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-11-25T17:07:33Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"4ecfc265-e4d3-4638-a225-1932760404ee\",\r\n \"creationTime\": \"2020-11-25T17:07:34Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2b5e6412-19dc-4d79-88ae-178f5e30dd78\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/2b5e6412-19dc-4d79-88ae-178f5e30dd78\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-vinhstagemongopitr-del-res1\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-11-30T23:17:02Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a35683c3-cf9b-4378-a290-fb3ab8e741f9\",\r\n \"creationTime\": \"2020-11-30T23:17:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-08T18:18:47Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f61a9ed3-fcda-4603-b1e2-2baadbb6122b\",\r\n \"creationTime\": \"2020-12-08T18:18:47Z\"\r\n },\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"cdd116b8-a956-43d5-b461-248f837099f4\",\r\n \"creationTime\": \"2020-12-14T21:35:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"7d98d6c0-eadf-4d7e-a166-696de37c91fc\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/7d98d6c0-eadf-4d7e-a166-696de37c91fc\",\r\n \"properties\": {\r\n \"accountName\": \"restore-test1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-08T21:44:47Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"208a7933-2e44-4df1-9c96-97e28ae92d8f\",\r\n \"creationTime\": \"2020-12-08T21:44:47Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"08155af7-e63f-4db1-82ed-c99b8a08e541\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/08155af7-e63f-4db1-82ed-c99b8a08e541\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-vinhstagemongopitr-1\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-12-09T10:37:08Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"8c045a40-c3b5-4025-a270-156b748fd08b\",\r\n \"creationTime\": \"2020-12-09T10:37:08Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d0cb2ece-f253-4f20-86d0-01897e729eba\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/d0cb2ece-f253-4f20-86d0-01897e729eba\",\r\n \"properties\": {\r\n \"accountName\": \"virangai-test-vinhstagepitr-restore1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-10T02:08:18Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d4a86ba4-38f5-46ba-b0ae-724d5508b551\",\r\n \"creationTime\": \"2020-12-10T02:08:18Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9373a8d7-1889-4be9-9ddb-e589e406d04b\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9373a8d7-1889-4be9-9ddb-e589e406d04b\",\r\n \"properties\": {\r\n \"accountName\": \"virangai-test-vinhstagepitr-restore2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-10T03:12:31Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"c2374cdf-00cc-42e3-887e-4824532ff3e7\",\r\n \"creationTime\": \"2020-12-10T03:12:31Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"530b269d-274b-4987-94e1-f54b09abecff\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/530b269d-274b-4987-94e1-f54b09abecff\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname637435832535194992\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-15T23:04:01Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"257c2c07-efcb-47b2-b696-6ba5ca9785b0\",\r\n \"creationTime\": \"2020-12-15T23:04:01Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"4993c7e8-c48b-4e45-9353-9baea1ce9e2a\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/4993c7e8-c48b-4e45-9353-9baea1ce9e2a\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname359\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-16T00:51:06Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f964f331-3322-4719-946a-a8f4e406ca14\",\r\n \"creationTime\": \"2020-12-16T00:51:06Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d673eaa8-f7fa-421f-9d61-ba314864a431\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/d673eaa8-f7fa-421f-9d61-ba314864a431\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-from-new-portal\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-05T00:28:34Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a09d2f05-b90f-4a76-96c5-ef49edadbbae\",\r\n \"creationTime\": \"2021-01-05T00:28:34Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"6d6384ae-d623-4323-8388-65ca7df02733\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/6d6384ae-d623-4323-8388-65ca7df02733\",\r\n \"properties\": {\r\n \"accountName\": \"pitrtest1-res1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-05T23:45:55Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"2b92bb0a-1fa9-43c2-b8a7-b25d209d25c1\",\r\n \"creationTime\": \"2021-01-05T23:45:55Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"0bcf9a9b-1ca1-4406-9652-aa087d5f0b3f\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/0bcf9a9b-1ca1-4406-9652-aa087d5f0b3f\",\r\n \"properties\": {\r\n \"accountName\": \"pitrtest1-res2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-05T23:46:37Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d666fcfb-319c-4c5d-a2b8-27ae6cc9233f\",\r\n \"creationTime\": \"2021-01-05T23:46:37Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"b15e30f1-4e37-4fca-b77b-303516959017\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/b15e30f1-4e37-4fca-b77b-303516959017\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-vinhstagepitr-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-06T09:24:07Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"8203b929-83ed-496a-8e6b-8a291aba9a32\",\r\n \"creationTime\": \"2021-01-06T09:24:07Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"617f5c88-2a93-45b4-be38-0cd7addea976\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/617f5c88-2a93-45b4-be38-0cd7addea976\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-vinhstagepitr-2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-06T09:33:06Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"e54058dc-c9ec-4393-9b62-3c4a764d9dda\",\r\n \"creationTime\": \"2021-01-06T09:33:06Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2eecc23f-69df-4de3-9103-b6ca529536a4\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/2eecc23f-69df-4de3-9103-b6ca529536a4\",\r\n \"properties\": {\r\n \"accountName\": \"test-restore-4\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-07T01:23:39Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"80c0209c-f89b-41b6-8cc2-5edad302caaf\",\r\n \"creationTime\": \"2021-01-07T01:23:39Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d91e1ad2-22b0-401e-b465-a16e5928e194\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/d91e1ad2-22b0-401e-b465-a16e5928e194\",\r\n \"properties\": {\r\n \"accountName\": \"test-restore5\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-07T01:23:40Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"793334c5-2123-41a5-a382-7b5aade5bb82\",\r\n \"creationTime\": \"2021-01-07T01:23:40Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"132908b6-2701-44a5-bdbe-a7c296e26283\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/132908b6-2701-44a5-bdbe-a7c296e26283\",\r\n \"properties\": {\r\n \"accountName\": \"test-restore6\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-07T03:18:46Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a8bcc661-cdd0-4fb6-b011-ce4fb922930d\",\r\n \"creationTime\": \"2021-01-07T03:18:46Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2ab6f2d2-ce7e-439b-90b3-5505c8f9ff76\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/2ab6f2d2-ce7e-439b-90b3-5505c8f9ff76\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-source-personalrestore-greeen\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-15T22:51:59Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"8b3376be-21d5-43db-ad08-7fa9e3f3ad5b\",\r\n \"creationTime\": \"2021-01-15T22:51:59Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"483d93e5-302b-4093-9502-ce63d416e70f\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/483d93e5-302b-4093-9502-ce63d416e70f\",\r\n \"properties\": {\r\n \"accountName\": \"targetacctrestore\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-18T18:30:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"cb6a3895-5ded-43ee-a6a8-91d9050f5582\",\r\n \"creationTime\": \"2021-02-18T18:30:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"74e9ac09-75d3-448a-a128-e71866b42e95\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/74e9ac09-75d3-448a-a128-e71866b42e95\",\r\n \"properties\": {\r\n \"accountName\": \"virangai-test-vinhstagepitr-res\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-26T22:14:50Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"40e6110d-0ae4-4e40-9d6e-33014540e179\",\r\n \"creationTime\": \"2021-02-26T22:14:50Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"24f3f6b6-9d96-4dc2-84b9-ae1c0cba8d4e\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/24f3f6b6-9d96-4dc2-84b9-ae1c0cba8d4e\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname8240\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-02T23:44:13Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"c2df5fa4-a593-48f2-8417-9f5f4bb9ef56\",\r\n \"creationTime\": \"2021-03-02T23:44:13Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"f319c2f4-7e68-48c0-9eac-94e12fb51179\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/f319c2f4-7e68-48c0-9eac-94e12fb51179\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname320\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T00:59:34Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"005c7a8b-fffd-4106-a2f5-0b4f58b1942a\",\r\n \"creationTime\": \"2021-03-03T00:59:34Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"672e89ce-0096-4a87-8131-3d2d5d483a3a\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/672e89ce-0096-4a87-8131-3d2d5d483a3a\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname6982\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T02:34:06Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f30afdfa-9473-4658-83c4-5067be2232db\",\r\n \"creationTime\": \"2021-03-03T02:34:06Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"1a937e8e-1a33-4fd1-9349-34ede3dd02f2\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/1a937e8e-1a33-4fd1-9349-34ede3dd02f2\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname8295\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T17:48:45Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"0057f632-aaa2-44a6-92bf-c2e623403f52\",\r\n \"creationTime\": \"2021-03-03T17:48:45Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"4d0ae23d-5661-4c5a-ae37-48aa6308425b\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/4d0ae23d-5661-4c5a-ae37-48aa6308425b\",\r\n \"properties\": {\r\n \"accountName\": \"stage-validation-pitr-test0\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-10T07:55:12Z\",\r\n \"deletionTime\": \"2021-02-10T14:21:37Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"26d7f01f-3f0c-4eb6-80a2-f5776f929f12\",\r\n \"creationTime\": \"2021-02-10T07:55:13Z\",\r\n \"deletionTime\": \"2021-02-10T14:21:37Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c26d3f43-7363-4c54-940a-bde0e96bda72\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c26d3f43-7363-4c54-940a-bde0e96bda72\",\r\n \"properties\": {\r\n \"accountName\": \"db1024-restored\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-08-14T01:17:36Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"eca195d4-fcaa-4d5f-b01b-20f61f01319f\",\r\n \"creationTime\": \"2020-08-14T01:17:36Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d8974ca8-8f69-4924-9040-c10b7f30524b\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d8974ca8-8f69-4924-9040-c10b7f30524b\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname9746\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-21T18:55:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"775c4324-cba7-4eb3-a8ee-5e1921f7f57b\",\r\n \"creationTime\": \"2020-07-21T18:55:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"aca7d453-88a9-4bf2-8abc-46d21553638f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/aca7d453-88a9-4bf2-8abc-46d21553638f\",\r\n \"properties\": {\r\n \"accountName\": \"db1024\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-21T18:19:37Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a926c9e8-3179-4774-bc1e-fb866407b7db\",\r\n \"creationTime\": \"2020-07-21T18:19:38Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"a54115d5-4356-4771-b7b0-20f475ce5a38\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/a54115d5-4356-4771-b7b0-20f475ce5a38\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-08-13T23:51:16Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d9b09727-2a45-4760-a837-3366c1187358\",\r\n \"creationTime\": \"2020-08-13T23:51:17Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"72ee099a-9209-4fe4-aeb2-8f4954f25eba\",\r\n \"creationTime\": \"2020-08-28T18:50:30Z\"\r\n },\r\n {\r\n \"locationName\": \"Southeast Asia\",\r\n \"regionalDatabaseAccountInstanceId\": \"e5abbaa4-031a-451a-b041-76c6bcd93fa9\",\r\n \"creationTime\": \"2021-02-08T19:29:22Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"bb3e3c48-18d8-46e8-b294-41d9406885c5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/bb3e3c48-18d8-46e8-b294-41d9406885c5\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-cont123\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-08-05T20:32:27Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"2355946d-5d79-4cc4-a521-3a302a9bff85\",\r\n \"creationTime\": \"2020-08-05T20:32:27Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"55083b96-b985-4dec-92df-fa0ac98443f1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/55083b96-b985-4dec-92df-fa0ac98443f1\",\r\n \"properties\": {\r\n \"accountName\": \"selvitest-account\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-23T16:18:43Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"787a81fe-fb41-40da-8b69-a9e18966b4e3\",\r\n \"creationTime\": \"2020-07-23T16:18:43Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"ec72f021-4974-405a-8c78-f74207ff0e12\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/ec72f021-4974-405a-8c78-f74207ff0e12\",\r\n \"properties\": {\r\n \"accountName\": \"selvitest-account-destinationforrestore\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-23T17:39:58Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"11f925e4-b48d-4d16-9ad2-209d1056ec9c\",\r\n \"creationTime\": \"2020-07-23T17:39:58Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"17783e6d-0e28-41e2-b086-9d17763f1d51\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/17783e6d-0e28-41e2-b086-9d17763f1d51\",\r\n \"properties\": {\r\n \"accountName\": \"virangai-test-bk-cont\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-28T22:09:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f74e094e-9b1d-4e16-82b6-a57782f1d187\",\r\n \"creationTime\": \"2020-07-28T22:09:24Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2d90bc37-cd54-4352-9e57-e6aa3f22d494\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/2d90bc37-cd54-4352-9e57-e6aa3f22d494\",\r\n \"properties\": {\r\n \"accountName\": \"selvitest-account-destinationforrestorev2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-23T17:41:22Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"e1dfecef-45cb-4c70-bbd5-393eb3774821\",\r\n \"creationTime\": \"2020-07-23T17:41:22Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"b0c8684b-7f9c-45fe-8ab9-2a74b656867e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/b0c8684b-7f9c-45fe-8ab9-2a74b656867e\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname637428812785768088\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-07T20:03:41Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"59294929-189f-4f8b-af35-740fc0fba9f0\",\r\n \"creationTime\": \"2020-12-07T20:03:41Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo32-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-12-07T21:23:56Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"49174788-8512-4a01-a3ca-38c7857a2635\",\r\n \"creationTime\": \"2020-12-07T21:23:56Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"921dbaed-a5bd-462d-8351-d0eda5e592c0\",\r\n \"creationTime\": \"2020-12-08T23:28:45Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"25a04cf0-89d4-4546-9c30-14d1dc8899df\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/25a04cf0-89d4-4546-9c30-14d1dc8899df\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo36-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-12-07T21:35:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"b52d5178-bc7b-4b2b-a05e-9d3dba85e7fd\",\r\n \"creationTime\": \"2020-12-07T21:35:24Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"b0f33c79-f7b2-421f-9e94-699b0f8c840a\",\r\n \"creationTime\": \"2020-12-08T22:02:23Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"345c785a-e758-4f8b-94d4-0a1259f4f85b\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/345c785a-e758-4f8b-94d4-0a1259f4f85b\",\r\n \"properties\": {\r\n \"accountName\": \"nichatur-restore-test\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-07T23:33:57Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"94eeb20d-16d0-4ee1-ae6a-7f2a0332a1d5\",\r\n \"creationTime\": \"2020-12-07T23:33:57Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"605db505-9267-4cf0-b7ac-27ef644b2ef3\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/605db505-9267-4cf0-b7ac-27ef644b2ef3\",\r\n \"properties\": {\r\n \"accountName\": \"nichatur-restore-test-r1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-07T23:57:59Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"71a2cff6-7e90-43a5-b261-b704fbfaf100\",\r\n \"creationTime\": \"2020-12-07T23:57:59Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"0d00d699-017a-4a76-8639-ab4bec82c5f2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/0d00d699-017a-4a76-8639-ab4bec82c5f2\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname637428989095532319\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-08T00:57:52Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"7c0454e1-f718-48fe-894a-35182a8440d2\",\r\n \"creationTime\": \"2020-12-08T00:57:52Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"73d1010d-f0b7-4673-b8c0-18ddecdcda06\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/73d1010d-f0b7-4673-b8c0-18ddecdcda06\",\r\n \"properties\": {\r\n \"accountName\": \"nichatur-restore-test-r2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-08T22:03:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"c6b5a1f6-2215-49be-9277-aeff5723ab4c\",\r\n \"creationTime\": \"2020-12-08T22:03:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d1535f84-06b5-497b-8768-962ece984001\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d1535f84-06b5-497b-8768-962ece984001\",\r\n \"properties\": {\r\n \"accountName\": \"kal-restore-test\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-15T21:58:32Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f4b8377d-89b3-41dd-9892-79bfbc4d523c\",\r\n \"creationTime\": \"2021-01-15T21:58:32Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9351dd2e-d901-465b-98cb-a74a3aabd49f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9351dd2e-d901-465b-98cb-a74a3aabd49f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-unique-mode-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-03T19:53:25Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"b5ee0cb6-20df-4132-8378-3d2b2bb477f8\",\r\n \"creationTime\": \"2021-02-03T19:53:26Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"222da8e2-da07-46db-9cd2-51a2efb84b9f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/222da8e2-da07-46db-9cd2-51a2efb84b9f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-unique-mode-restored\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-03T20:07:50Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"094b572d-52f6-47bc-92c3-a692588ef6d6\",\r\n \"creationTime\": \"2021-02-03T20:07:50Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"19e4130a-cb83-4a34-85c2-e35dcda149f8\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/19e4130a-cb83-4a34-85c2-e35dcda149f8\",\r\n \"properties\": {\r\n \"accountName\": \"stage-validation-m\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-02-05T04:08:10Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"3f97305a-6a6b-4b38-b200-bea92d78f64a\",\r\n \"creationTime\": \"2021-02-05T04:08:11Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"7cf7aaa4-fe00-48fa-820b-cc632feaa9d7\",\r\n \"creationTime\": \"2021-02-05T04:29:43Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"5939cc7f-0bdd-4790-9ac6-a3b281c64f97\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/5939cc7f-0bdd-4790-9ac6-a3b281c64f97\",\r\n \"properties\": {\r\n \"accountName\": \"multiregion-pitr-billing-test\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-19T00:20:18Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"Southeast Asia\",\r\n \"regionalDatabaseAccountInstanceId\": \"0018e6e6-170f-4e25-b1a5-97e718138e0c\",\r\n \"creationTime\": \"2021-02-19T00:20:18Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"e235a61e-abf7-4e95-bfc2-0e4aa649b874\",\r\n \"creationTime\": \"2021-02-19T00:33:52Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"96aa7f5a-5292-44f3-9d3e-bec163b0de1a\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/96aa7f5a-5292-44f3-9d3e-bec163b0de1a\",\r\n \"properties\": {\r\n \"accountName\": \"restore-pitr-mongo32-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-02-26T18:11:04Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"8c350d54-e45d-4ef7-af55-9f07dc4fe594\",\r\n \"creationTime\": \"2021-02-26T18:11:04Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c02d9298-7cdb-440f-a16b-0dc3c97d6cde\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c02d9298-7cdb-440f-a16b-0dc3c97d6cde\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T04:36:55Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d6e10b03-43cd-4bdc-a1b8-3dfab9fe6beb\",\r\n \"creationTime\": \"2021-03-03T04:36:55Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"00e807ea-76c1-4b2f-afdd-dddc1b15979f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/00e807ea-76c1-4b2f-afdd-dddc1b15979f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T05:01:33Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"683f9f6f-8b7d-4638-a4f2-db9983a9c2d1\",\r\n \"creationTime\": \"2021-03-03T05:01:33Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9766bca9-cc26-4e26-83fe-32cd22fdb83d\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9766bca9-cc26-4e26-83fe-32cd22fdb83d\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-billing-test\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-20T01:08:53Z\",\r\n \"deletionTime\": \"2021-02-04T00:01:29Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"9df768c4-6f3e-4bb8-be73-c8b338f50875\",\r\n \"creationTime\": \"2021-01-20T01:08:53Z\",\r\n \"deletionTime\": \"2021-02-04T00:01:29Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"8e032502-70fc-4495-8546-e69383186c09\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/8e032502-70fc-4495-8546-e69383186c09\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-billing-test-2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-21T05:06:14Z\",\r\n \"deletionTime\": \"2021-02-04T00:01:29Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a994d170-beb1-4f1a-a413-2d5548b171dd\",\r\n \"creationTime\": \"2021-01-21T05:06:14Z\",\r\n \"deletionTime\": \"2021-02-04T00:01:29Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d9e1ccfa-1929-4532-9efb-6100feff0f0e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d9e1ccfa-1929-4532-9efb-6100feff0f0e\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-restored-ror\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-06T19:32:22Z\",\r\n \"deletionTime\": \"2021-02-06T19:40:48Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"95ef85ad-f3dd-490d-aff2-50d6c7c0dd5f\",\r\n \"creationTime\": \"2021-02-06T19:32:22Z\",\r\n \"deletionTime\": \"2021-02-06T19:40:48Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2d7d7e33-9b97-491e-895b-fe7f46f3d86c\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/2d7d7e33-9b97-491e-895b-fe7f46f3d86c\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-10T23:50:26Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:51Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"eb35152b-9da0-44c0-a767-0c643969bf08\",\r\n \"creationTime\": \"2021-02-10T23:50:26Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:51Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"4961ef4a-30d0-484e-ad16-8ba453b14abf\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/4961ef4a-30d0-484e-ad16-8ba453b14abf\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-res\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T04:40:28Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:51Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"5970d071-463b-4f79-92ac-810f199754e9\",\r\n \"creationTime\": \"2021-02-11T04:40:28Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:51Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"ce9e2478-aa44-4bd2-96d4-d23f75dbd994\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/ce9e2478-aa44-4bd2-96d4-d23f75dbd994\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T00:04:43Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:54Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"4d1a5ff8-9393-4dc4-a3b9-1b24e2aeb32c\",\r\n \"creationTime\": \"2021-02-11T00:04:43Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:54Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"f93aff83-e412-471c-86de-e23df6cbeb58\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/f93aff83-e412-471c-86de-e23df6cbeb58\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-restored-readregion\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-07T21:48:30Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:27Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"North Central US\",\r\n \"regionalDatabaseAccountInstanceId\": \"ffac845b-ac41-4bfe-acc1-227406f9f68a\",\r\n \"creationTime\": \"2021-02-07T21:48:30Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:27Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9bb64267-f1d8-4d2a-9367-d16492966dc8\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9bb64267-f1d8-4d2a-9367-d16492966dc8\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-06T18:18:14Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"North Central US\",\r\n \"regionalDatabaseAccountInstanceId\": \"c8fdaea9-e41e-416f-8ab8-ffa9295ad14a\",\r\n \"creationTime\": \"2021-02-07T18:55:04Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\"\r\n },\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"de4ce762-1219-4750-9c25-cead6a9964b3\",\r\n \"creationTime\": \"2021-02-06T18:18:14Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"78bd960f-b8bc-4412-b4e1-f16c5acc599c\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/78bd960f-b8bc-4412-b4e1-f16c5acc599c\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-del-restored\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-06T20:23:29Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"Southeast Asia\",\r\n \"regionalDatabaseAccountInstanceId\": \"753180e8-e128-47e9-98d1-5ce0c6d4f3a8\",\r\n \"creationTime\": \"2021-02-08T19:31:46Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\"\r\n },\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"2524386d-c456-4de9-a314-1acdb94e52a3\",\r\n \"creationTime\": \"2021-02-06T20:23:29Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"67d6981a-3dc7-4e3a-b04a-73c0376d42bb\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/67d6981a-3dc7-4e3a-b04a-73c0376d42bb\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T08:37:02Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:42Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"5f331e43-571c-4fe7-9874-aeafcd2b421c\",\r\n \"creationTime\": \"2021-02-11T08:37:02Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:42Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"5ea690df-46a9-4bf2-910c-0484660978bb\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/5ea690df-46a9-4bf2-910c-0484660978bb\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T08:24:56Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:43Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"29b9a3fe-b375-462d-9221-191fc4ddaa83\",\r\n \"creationTime\": \"2021-02-11T08:24:56Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:43Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"53b3d044-7394-4a06-883d-cf9247f66e3c\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/53b3d044-7394-4a06-883d-cf9247f66e3c\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r3\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T08:49:08Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:44Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a38a83ce-d467-4c81-9f3d-c65697d1c547\",\r\n \"creationTime\": \"2021-02-11T08:49:08Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:44Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"66c4a9a2-7799-474a-9e1e-e56a4b340d62\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/66c4a9a2-7799-474a-9e1e-e56a4b340d62\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r4\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T09:01:06Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:45Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"01869f13-ab6f-451b-8b15-9cb0b369cde2\",\r\n \"creationTime\": \"2021-02-11T09:01:06Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:45Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"674c1551-e35b-4a4d-bd79-fde1f439dbe0\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/674c1551-e35b-4a4d-bd79-fde1f439dbe0\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-17T11:23:16Z\",\r\n \"deletionTime\": \"2021-02-17T15:31:10Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"17329379-801c-4909-999a-421f20fd57c4\",\r\n \"creationTime\": \"2021-02-17T11:23:16Z\",\r\n \"deletionTime\": \"2021-02-17T15:31:10Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"af242175-f3a2-40f4-9c77-10eaf232a2b5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/af242175-f3a2-40f4-9c77-10eaf232a2b5\",\r\n \"properties\": {\r\n \"accountName\": \"dd21234\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-22T09:47:40Z\",\r\n \"deletionTime\": \"2021-02-22T10:59:26Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"66b2c82f-633f-446a-b89e-dba1b13ae92c\",\r\n \"creationTime\": \"2021-02-22T09:47:40Z\",\r\n \"deletionTime\": \"2021-02-22T10:59:26Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"128a528a-5e22-4146-ae62-b32994614cb0\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/128a528a-5e22-4146-ae62-b32994614cb0\",\r\n \"properties\": {\r\n \"accountName\": \"dd21\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-22T09:02:19Z\",\r\n \"deletionTime\": \"2021-02-22T11:00:06Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"ebc69bc4-4865-41d6-a632-aef7a5e2de1d\",\r\n \"creationTime\": \"2021-02-22T09:02:19Z\",\r\n \"deletionTime\": \"2021-02-22T11:00:06Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"3e1a3f5e-dcae-449e-82f7-bbf80cba54c5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/3e1a3f5e-dcae-449e-82f7-bbf80cba54c5\",\r\n \"properties\": {\r\n \"accountName\": \"ddb55\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-24T04:21:43Z\",\r\n \"deletionTime\": \"2021-02-24T07:45:59Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"4dff1afd-82b9-425f-840a-3237bd54478d\",\r\n \"creationTime\": \"2021-02-24T04:21:43Z\",\r\n \"deletionTime\": \"2021-02-24T07:45:59Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d612dc86-9085-444b-a868-fb48c7d368fb\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d612dc86-9085-444b-a868-fb48c7d368fb\",\r\n \"properties\": {\r\n \"accountName\": \"ddb1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-18T11:15:52Z\",\r\n \"deletionTime\": \"2021-02-24T07:46:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"db2b9027-bcdf-4069-be69-074fc2f46d7c\",\r\n \"creationTime\": \"2021-02-18T11:15:52Z\",\r\n \"deletionTime\": \"2021-02-24T07:46:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"0ea5b02f-40bd-4cfd-8406-35286bd00fa2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/0ea5b02f-40bd-4cfd-8406-35286bd00fa2\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-ror\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-24T17:56:15Z\",\r\n \"deletionTime\": \"2021-02-25T10:33:38Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"740afadb-1142-4b13-9fa4-67e857d56a89\",\r\n \"creationTime\": \"2021-02-24T17:56:15Z\",\r\n \"deletionTime\": \"2021-02-25T10:33:38Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"52006c1b-5c7f-43a1-9ae0-b936550aed8a\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/52006c1b-5c7f-43a1-9ae0-b936550aed8a\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-rrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-24T17:40:45Z\",\r\n \"deletionTime\": \"2021-02-25T10:34:20Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a1e3fe50-7548-4b49-aee1-373a142e0c3b\",\r\n \"creationTime\": \"2021-02-24T17:40:45Z\",\r\n \"deletionTime\": \"2021-02-25T10:34:20Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"a578c9d3-1d35-451f-a3df-44e61ed45cfa\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/a578c9d3-1d35-451f-a3df-44e61ed45cfa\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-24T05:19:04Z\",\r\n \"deletionTime\": \"2021-02-25T10:34:35Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"feff600a-c776-422a-a2f7-0cfe03be68b8\",\r\n \"creationTime\": \"2021-02-24T05:19:04Z\",\r\n \"deletionTime\": \"2021-02-25T10:34:35Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"07b7492c-91c3-41bb-9f75-8f25c739ce06\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/07b7492c-91c3-41bb-9f75-8f25c739ce06\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-01T05:56:16Z\",\r\n \"deletionTime\": \"2021-03-02T09:01:04Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"bfbd7d4b-3edf-44da-8aab-eb9cdafe43a7\",\r\n \"creationTime\": \"2021-03-01T05:56:16Z\",\r\n \"deletionTime\": \"2021-03-02T09:01:04Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"db2af171-a342-4d3c-92ff-45e81629341d\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/db2af171-a342-4d3c-92ff-45e81629341d\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-02T10:39:31Z\",\r\n \"deletionTime\": \"2021-03-02T10:41:51Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"4e29876d-a887-4def-a99e-1b7043bb6181\",\r\n \"creationTime\": \"2021-03-02T10:39:31Z\",\r\n \"deletionTime\": \"2021-03-02T10:41:51Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"a76a91b4-489b-4714-b0fc-b98459934920\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/a76a91b4-489b-4714-b0fc-b98459934920\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-02T15:16:36Z\",\r\n \"deletionTime\": \"2021-03-03T04:08:46Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"40bafde5-ffd5-453a-acb4-9c697808790a\",\r\n \"creationTime\": \"2021-03-02T15:16:36Z\",\r\n \"deletionTime\": \"2021-03-03T04:08:46Z\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": \"fccbe297-cb19-424b-a8d7-e996a6b7b689\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/fccbe297-cb19-424b-a8d7-e996a6b7b689\",\r\n \"properties\": {\r\n \"accountName\": \"mongotestaccount\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-02T19:34:26Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"9f8cab0e-80f5-48b6-bc9f-7f7b3a69afeb\",\r\n \"creationTime\": \"2021-06-02T19:34:27Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c6b53e1d-0dec-4ff2-ab70-2e9d24a3ed27\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c6b53e1d-0dec-4ff2-ab70-2e9d24a3ed27\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-02T23:30:43Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"9961d453-89c2-4daf-bcad-add22d287617\",\r\n \"creationTime\": \"2021-06-02T23:30:43Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"990590c0-4db8-4b0e-96ef-55f0be03615d\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/990590c0-4db8-4b0e-96ef-55f0be03615d\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo32-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-02T23:32:31Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"2d0a8ae4-e622-429c-a2bf-b7b13ada7b45\",\r\n \"creationTime\": \"2021-06-02T23:32:32Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"60a54911-db9e-436f-b282-34779e0a2a7f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/60a54911-db9e-436f-b282-34779e0a2a7f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo36-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-02T23:33:01Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"32163288-85a4-454b-a7d7-d7fbb1f32aeb\",\r\n \"creationTime\": \"2021-06-02T23:33:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"b0736fc7-cb53-4b6f-bd2f-aac904085da4\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/b0736fc7-cb53-4b6f-bd2f-aac904085da4\",\r\n \"properties\": {\r\n \"accountName\": \"mongo-continuous-1212\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-04T22:09:26Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a1f3383c-4e2f-44b5-8348-7323e2356b3d\",\r\n \"creationTime\": \"2021-06-04T22:09:26Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2301188f-cf13-419d-b7c2-5321c5476526\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/2301188f-cf13-419d-b7c2-5321c5476526\",\r\n \"properties\": {\r\n \"accountName\": \"restored-cosmosdb-1212\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:06:02Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"05b3f3ce-59ee-4d28-bd66-09ea5c50790d\",\r\n \"creationTime\": \"2021-06-07T21:06:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"24302a82-123a-487a-bede-054ade2860f1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/24302a82-123a-487a-bede-054ade2860f1\",\r\n \"properties\": {\r\n \"accountName\": \"dbaccount29-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:24:52Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"ede5fb9c-4058-44a6-8dec-29e3e7de9b44\",\r\n \"creationTime\": \"2021-06-07T21:24:53Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"e157f1a1-6837-46fa-8f4f-ef3e7266ab3a\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/e157f1a1-6837-46fa-8f4f-ef3e7266ab3a\",\r\n \"properties\": {\r\n \"accountName\": \"rbactestps12\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:27:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"64c449c8-6fa2-4273-b066-5a062d4418be\",\r\n \"creationTime\": \"2021-06-07T21:27:24Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"72706ac1-0d0a-40be-a30a-1b4af0911131\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/72706ac1-0d0a-40be-a30a-1b4af0911131\",\r\n \"properties\": {\r\n \"accountName\": \"mongo-db0002\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-07T23:44:54Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"dfccb705-08c0-4282-9dad-07ab354ba8e8\",\r\n \"creationTime\": \"2021-06-07T23:44:55Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"41ea7d9e-553f-4259-872f-676c969e9a0b\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/41ea7d9e-553f-4259-872f-676c969e9a0b\",\r\n \"properties\": {\r\n \"accountName\": \"dbaccount27-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-08T17:39:46Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"1db9bff4-73f7-48e1-a506-ab5b3edc8308\",\r\n \"creationTime\": \"2021-06-08T17:39:47Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"ceacd38f-9e6b-4a81-b2f7-ecd341c6fbbd\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/ceacd38f-9e6b-4a81-b2f7-ecd341c6fbbd\",\r\n \"properties\": {\r\n \"accountName\": \"cli125\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-09T19:06:13Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"c2a9bc5f-f37e-4add-a582-52abfb6a36a1\",\r\n \"creationTime\": \"2021-06-09T19:06:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"88d48073-10d1-402e-8cf5-c79e4e2de08e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/88d48073-10d1-402e-8cf5-c79e4e2de08e\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount123\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-09T19:09:54Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"861a2513-08ea-4cf8-817b-99b8282f5013\",\r\n \"creationTime\": \"2021-06-09T19:09:54Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"bb9b3beb-42c4-4ae4-a983-58e20bcd71a5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/bb9b3beb-42c4-4ae4-a983-58e20bcd71a5\",\r\n \"properties\": {\r\n \"accountName\": \"db003\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-09T20:16:40Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a6dda878-4486-437f-bd72-b9e87bf75221\",\r\n \"creationTime\": \"2021-06-09T20:16:41Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9f8ee54b-f275-44fa-b2c5-9983644c131f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9f8ee54b-f275-44fa-b2c5-9983644c131f\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount124\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-10T05:06:02Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"3fe302ed-daee-401c-9897-250919f9a0fe\",\r\n \"creationTime\": \"2021-06-10T05:06:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c2601a38-bee1-400e-bc5e-8d817318cf31\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c2601a38-bee1-400e-bc5e-8d817318cf31\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname7595\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-10T18:00:35Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"0a4ccb11-2cb5-4b81-8ab6-ea10cbb2290d\",\r\n \"creationTime\": \"2021-06-10T18:00:35Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"33035d50-7f15-4450-a71d-a4da4dcd039f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/33035d50-7f15-4450-a71d-a4da4dcd039f\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname4020\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-15T21:27:04Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"5d75295f-2ad7-451c-b27d-8e877e22b075\",\r\n \"creationTime\": \"2021-06-15T21:27:04Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"7d405124-1129-468e-9ff9-d031059c96bc\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/7d405124-1129-468e-9ff9-d031059c96bc\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-16T05:58:55Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d0a6a03f-c045-4275-a38a-b221f5749051\",\r\n \"creationTime\": \"2021-06-16T05:58:55Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d5fe116b-8a63-474e-88a4-afb2a726198e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d5fe116b-8a63-474e-88a4-afb2a726198e\",\r\n \"properties\": {\r\n \"accountName\": \"cli127\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-16T06:57:39Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f9a67f44-e6f6-4270-91c6-d90a0292ac96\",\r\n \"creationTime\": \"2021-06-16T06:57:39Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"1dfe47fb-822c-41f1-b403-1cf6c63d0ba7\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/1dfe47fb-822c-41f1-b403-1cf6c63d0ba7\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname3766\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-16T07:16:12Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"1a05d833-615e-45b0-b2ec-f87ca4d9829c\",\r\n \"creationTime\": \"2021-06-16T07:16:12Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c483a757-4d93-4d60-ae22-04c9d2c89595\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c483a757-4d93-4d60-ae22-04c9d2c89595\",\r\n \"properties\": {\r\n \"accountName\": \"restored2-cosmosdb-1212-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-04T22:17:44Z\",\r\n \"deletionTime\": \"2021-06-05T05:04:42Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"eb5e33f1-8ecf-42b7-9f3f-18784854fc5e\",\r\n \"creationTime\": \"2021-06-04T22:17:44Z\",\r\n \"deletionTime\": \"2021-06-05T05:04:42Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"80458ce3-9b06-4d87-9405-1f47eb88164f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/80458ce3-9b06-4d87-9405-1f47eb88164f\",\r\n \"properties\": {\r\n \"accountName\": \"dbaccount27-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:24:07Z\",\r\n \"deletionTime\": \"2021-06-07T22:30:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a47823ea-6bce-4436-91a1-1dd14a1aa3a7\",\r\n \"creationTime\": \"2021-06-07T21:24:08Z\",\r\n \"deletionTime\": \"2021-06-07T22:30:24Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"3b44efa3-a7e6-414e-99c2-22d63aa1d778\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/3b44efa3-a7e6-414e-99c2-22d63aa1d778\",\r\n \"properties\": {\r\n \"accountName\": \"cli126\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-10T05:07:44Z\",\r\n \"deletionTime\": \"2021-06-15T21:00:15Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"fbc82bdc-1493-4cc4-bd69-2c33c650e3ed\",\r\n \"creationTime\": \"2021-06-10T05:07:45Z\",\r\n \"deletionTime\": \"2021-06-15T21:00:15Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"3bf55696-9845-4ab5-b57c-f955a2ffe3ca\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/3bf55696-9845-4ab5-b57c-f955a2ffe3ca\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-01T23:24:19Z\",\r\n \"deletionTime\": \"2021-06-16T04:58:21Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"1062fb86-a396-4689-9326-83193cf2274b\",\r\n \"creationTime\": \"2021-06-01T23:24:20Z\",\r\n \"deletionTime\": \"2021-06-16T04:58:21Z\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/restorableDatabaseAccounts?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cz9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "aa05e6c8-8049-42d2-8037-ebb45e97f6d4" + "3082aec0-65bb-4e24-93cb-459de542f44a" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { "Cache-Control": [ - "no-cache" + "no-store, no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-original-request-ids": [ - "", - "", - "" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11990" + "11994" ], "x-ms-request-id": [ - "aafef585-5a3c-408f-af83-b7a490d9372e" + "237b207b-6d77-49ac-82f5-521076aeaf2e" ], "x-ms-correlation-request-id": [ - "aafef585-5a3c-408f-af83-b7a490d9372e" + "237b207b-6d77-49ac-82f5-521076aeaf2e" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T175113Z:aafef585-5a3c-408f-af83-b7a490d9372e" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "WESTUS2:20210616T071622Z:237b207b-6d77-49ac-82f5-521076aeaf2e" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:51:13 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" + "Wed, 16 Jun 2021 07:16:22 GMT" ], "Content-Length": [ - "46781" + "13637" + ], + "Content-Type": [ + "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": \"5dee0717-8f84-40d7-b7c1-921552ba61a5\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/5dee0717-8f84-40d7-b7c1-921552ba61a5\",\r\n \"properties\": {\r\n \"accountName\": \"vinhstagepitr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-11-02T23:44:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"30d6cace-8354-4e1f-b427-4f234f46df87\",\r\n \"creationTime\": \"2020-11-02T23:44:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"5cfa410f-ea0c-4995-aa59-9809a69c21f8\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/5cfa410f-ea0c-4995-aa59-9809a69c21f8\",\r\n \"properties\": {\r\n \"accountName\": \"vinhstagemongopitr\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-11-25T17:07:33Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"4ecfc265-e4d3-4638-a225-1932760404ee\",\r\n \"creationTime\": \"2020-11-25T17:07:34Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2b5e6412-19dc-4d79-88ae-178f5e30dd78\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/2b5e6412-19dc-4d79-88ae-178f5e30dd78\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-vinhstagemongopitr-del-res1\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-11-30T23:17:02Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a35683c3-cf9b-4378-a290-fb3ab8e741f9\",\r\n \"creationTime\": \"2020-11-30T23:17:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-08T18:18:47Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f61a9ed3-fcda-4603-b1e2-2baadbb6122b\",\r\n \"creationTime\": \"2020-12-08T18:18:47Z\"\r\n },\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"cdd116b8-a956-43d5-b461-248f837099f4\",\r\n \"creationTime\": \"2020-12-14T21:35:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"7d98d6c0-eadf-4d7e-a166-696de37c91fc\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/7d98d6c0-eadf-4d7e-a166-696de37c91fc\",\r\n \"properties\": {\r\n \"accountName\": \"restore-test1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-08T21:44:47Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"208a7933-2e44-4df1-9c96-97e28ae92d8f\",\r\n \"creationTime\": \"2020-12-08T21:44:47Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"08155af7-e63f-4db1-82ed-c99b8a08e541\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/08155af7-e63f-4db1-82ed-c99b8a08e541\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-vinhstagemongopitr-1\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-12-09T10:37:08Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"8c045a40-c3b5-4025-a270-156b748fd08b\",\r\n \"creationTime\": \"2020-12-09T10:37:08Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d0cb2ece-f253-4f20-86d0-01897e729eba\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/d0cb2ece-f253-4f20-86d0-01897e729eba\",\r\n \"properties\": {\r\n \"accountName\": \"virangai-test-vinhstagepitr-restore1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-10T02:08:18Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d4a86ba4-38f5-46ba-b0ae-724d5508b551\",\r\n \"creationTime\": \"2020-12-10T02:08:18Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9373a8d7-1889-4be9-9ddb-e589e406d04b\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9373a8d7-1889-4be9-9ddb-e589e406d04b\",\r\n \"properties\": {\r\n \"accountName\": \"virangai-test-vinhstagepitr-restore2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-10T03:12:31Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"c2374cdf-00cc-42e3-887e-4824532ff3e7\",\r\n \"creationTime\": \"2020-12-10T03:12:31Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"530b269d-274b-4987-94e1-f54b09abecff\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/530b269d-274b-4987-94e1-f54b09abecff\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname637435832535194992\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-15T23:04:01Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"257c2c07-efcb-47b2-b696-6ba5ca9785b0\",\r\n \"creationTime\": \"2020-12-15T23:04:01Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"4993c7e8-c48b-4e45-9353-9baea1ce9e2a\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/4993c7e8-c48b-4e45-9353-9baea1ce9e2a\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname359\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-16T00:51:06Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f964f331-3322-4719-946a-a8f4e406ca14\",\r\n \"creationTime\": \"2020-12-16T00:51:06Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d673eaa8-f7fa-421f-9d61-ba314864a431\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/d673eaa8-f7fa-421f-9d61-ba314864a431\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-from-new-portal\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-05T00:28:34Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a09d2f05-b90f-4a76-96c5-ef49edadbbae\",\r\n \"creationTime\": \"2021-01-05T00:28:34Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"6d6384ae-d623-4323-8388-65ca7df02733\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/6d6384ae-d623-4323-8388-65ca7df02733\",\r\n \"properties\": {\r\n \"accountName\": \"pitrtest1-res1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-05T23:45:55Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"2b92bb0a-1fa9-43c2-b8a7-b25d209d25c1\",\r\n \"creationTime\": \"2021-01-05T23:45:55Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"0bcf9a9b-1ca1-4406-9652-aa087d5f0b3f\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/0bcf9a9b-1ca1-4406-9652-aa087d5f0b3f\",\r\n \"properties\": {\r\n \"accountName\": \"pitrtest1-res2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-05T23:46:37Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d666fcfb-319c-4c5d-a2b8-27ae6cc9233f\",\r\n \"creationTime\": \"2021-01-05T23:46:37Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"b15e30f1-4e37-4fca-b77b-303516959017\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/b15e30f1-4e37-4fca-b77b-303516959017\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-vinhstagepitr-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-06T09:24:07Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"8203b929-83ed-496a-8e6b-8a291aba9a32\",\r\n \"creationTime\": \"2021-01-06T09:24:07Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"617f5c88-2a93-45b4-be38-0cd7addea976\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/617f5c88-2a93-45b4-be38-0cd7addea976\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-vinhstagepitr-2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-06T09:33:06Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"e54058dc-c9ec-4393-9b62-3c4a764d9dda\",\r\n \"creationTime\": \"2021-01-06T09:33:06Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2eecc23f-69df-4de3-9103-b6ca529536a4\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/2eecc23f-69df-4de3-9103-b6ca529536a4\",\r\n \"properties\": {\r\n \"accountName\": \"test-restore-4\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-07T01:23:39Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"80c0209c-f89b-41b6-8cc2-5edad302caaf\",\r\n \"creationTime\": \"2021-01-07T01:23:39Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d91e1ad2-22b0-401e-b465-a16e5928e194\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/d91e1ad2-22b0-401e-b465-a16e5928e194\",\r\n \"properties\": {\r\n \"accountName\": \"test-restore5\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-07T01:23:40Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"793334c5-2123-41a5-a382-7b5aade5bb82\",\r\n \"creationTime\": \"2021-01-07T01:23:40Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"132908b6-2701-44a5-bdbe-a7c296e26283\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/132908b6-2701-44a5-bdbe-a7c296e26283\",\r\n \"properties\": {\r\n \"accountName\": \"test-restore6\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-07T03:18:46Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a8bcc661-cdd0-4fb6-b011-ce4fb922930d\",\r\n \"creationTime\": \"2021-01-07T03:18:46Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2ab6f2d2-ce7e-439b-90b3-5505c8f9ff76\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/2ab6f2d2-ce7e-439b-90b3-5505c8f9ff76\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-source-personalrestore-greeen\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-15T22:51:59Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"8b3376be-21d5-43db-ad08-7fa9e3f3ad5b\",\r\n \"creationTime\": \"2021-01-15T22:51:59Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"483d93e5-302b-4093-9502-ce63d416e70f\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/483d93e5-302b-4093-9502-ce63d416e70f\",\r\n \"properties\": {\r\n \"accountName\": \"targetacctrestore\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-18T18:30:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"cb6a3895-5ded-43ee-a6a8-91d9050f5582\",\r\n \"creationTime\": \"2021-02-18T18:30:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"74e9ac09-75d3-448a-a128-e71866b42e95\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/74e9ac09-75d3-448a-a128-e71866b42e95\",\r\n \"properties\": {\r\n \"accountName\": \"virangai-test-vinhstagepitr-res\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-26T22:14:50Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"40e6110d-0ae4-4e40-9d6e-33014540e179\",\r\n \"creationTime\": \"2021-02-26T22:14:50Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"24f3f6b6-9d96-4dc2-84b9-ae1c0cba8d4e\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/24f3f6b6-9d96-4dc2-84b9-ae1c0cba8d4e\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname8240\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-02T23:44:13Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"c2df5fa4-a593-48f2-8417-9f5f4bb9ef56\",\r\n \"creationTime\": \"2021-03-02T23:44:13Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"f319c2f4-7e68-48c0-9eac-94e12fb51179\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/f319c2f4-7e68-48c0-9eac-94e12fb51179\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname320\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T00:59:34Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"005c7a8b-fffd-4106-a2f5-0b4f58b1942a\",\r\n \"creationTime\": \"2021-03-03T00:59:34Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"672e89ce-0096-4a87-8131-3d2d5d483a3a\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/672e89ce-0096-4a87-8131-3d2d5d483a3a\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname6982\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T02:34:06Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f30afdfa-9473-4658-83c4-5067be2232db\",\r\n \"creationTime\": \"2021-03-03T02:34:06Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"1a937e8e-1a33-4fd1-9349-34ede3dd02f2\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/1a937e8e-1a33-4fd1-9349-34ede3dd02f2\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname8295\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T17:48:45Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"0057f632-aaa2-44a6-92bf-c2e623403f52\",\r\n \"creationTime\": \"2021-03-03T17:48:45Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"4d0ae23d-5661-4c5a-ae37-48aa6308425b\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/4d0ae23d-5661-4c5a-ae37-48aa6308425b\",\r\n \"properties\": {\r\n \"accountName\": \"stage-validation-pitr-test0\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-10T07:55:12Z\",\r\n \"deletionTime\": \"2021-02-10T14:21:37Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"26d7f01f-3f0c-4eb6-80a2-f5776f929f12\",\r\n \"creationTime\": \"2021-02-10T07:55:13Z\",\r\n \"deletionTime\": \"2021-02-10T14:21:37Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c26d3f43-7363-4c54-940a-bde0e96bda72\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c26d3f43-7363-4c54-940a-bde0e96bda72\",\r\n \"properties\": {\r\n \"accountName\": \"db1024-restored\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-08-14T01:17:36Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"eca195d4-fcaa-4d5f-b01b-20f61f01319f\",\r\n \"creationTime\": \"2020-08-14T01:17:36Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d8974ca8-8f69-4924-9040-c10b7f30524b\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d8974ca8-8f69-4924-9040-c10b7f30524b\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname9746\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-21T18:55:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"775c4324-cba7-4eb3-a8ee-5e1921f7f57b\",\r\n \"creationTime\": \"2020-07-21T18:55:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"aca7d453-88a9-4bf2-8abc-46d21553638f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/aca7d453-88a9-4bf2-8abc-46d21553638f\",\r\n \"properties\": {\r\n \"accountName\": \"db1024\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-21T18:19:37Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a926c9e8-3179-4774-bc1e-fb866407b7db\",\r\n \"creationTime\": \"2020-07-21T18:19:38Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"a54115d5-4356-4771-b7b0-20f475ce5a38\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/a54115d5-4356-4771-b7b0-20f475ce5a38\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-08-13T23:51:16Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d9b09727-2a45-4760-a837-3366c1187358\",\r\n \"creationTime\": \"2020-08-13T23:51:17Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"72ee099a-9209-4fe4-aeb2-8f4954f25eba\",\r\n \"creationTime\": \"2020-08-28T18:50:30Z\"\r\n },\r\n {\r\n \"locationName\": \"Southeast Asia\",\r\n \"regionalDatabaseAccountInstanceId\": \"e5abbaa4-031a-451a-b041-76c6bcd93fa9\",\r\n \"creationTime\": \"2021-02-08T19:29:22Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"bb3e3c48-18d8-46e8-b294-41d9406885c5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/bb3e3c48-18d8-46e8-b294-41d9406885c5\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-cont123\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-08-05T20:32:27Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"2355946d-5d79-4cc4-a521-3a302a9bff85\",\r\n \"creationTime\": \"2020-08-05T20:32:27Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"55083b96-b985-4dec-92df-fa0ac98443f1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/55083b96-b985-4dec-92df-fa0ac98443f1\",\r\n \"properties\": {\r\n \"accountName\": \"selvitest-account\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-23T16:18:43Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"787a81fe-fb41-40da-8b69-a9e18966b4e3\",\r\n \"creationTime\": \"2020-07-23T16:18:43Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"ec72f021-4974-405a-8c78-f74207ff0e12\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/ec72f021-4974-405a-8c78-f74207ff0e12\",\r\n \"properties\": {\r\n \"accountName\": \"selvitest-account-destinationforrestore\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-23T17:39:58Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"11f925e4-b48d-4d16-9ad2-209d1056ec9c\",\r\n \"creationTime\": \"2020-07-23T17:39:58Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"17783e6d-0e28-41e2-b086-9d17763f1d51\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/17783e6d-0e28-41e2-b086-9d17763f1d51\",\r\n \"properties\": {\r\n \"accountName\": \"virangai-test-bk-cont\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-28T22:09:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f74e094e-9b1d-4e16-82b6-a57782f1d187\",\r\n \"creationTime\": \"2020-07-28T22:09:24Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2d90bc37-cd54-4352-9e57-e6aa3f22d494\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/2d90bc37-cd54-4352-9e57-e6aa3f22d494\",\r\n \"properties\": {\r\n \"accountName\": \"selvitest-account-destinationforrestorev2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-23T17:41:22Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"e1dfecef-45cb-4c70-bbd5-393eb3774821\",\r\n \"creationTime\": \"2020-07-23T17:41:22Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"b0c8684b-7f9c-45fe-8ab9-2a74b656867e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/b0c8684b-7f9c-45fe-8ab9-2a74b656867e\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname637428812785768088\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-07T20:03:41Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"59294929-189f-4f8b-af35-740fc0fba9f0\",\r\n \"creationTime\": \"2020-12-07T20:03:41Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo32-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-12-07T21:23:56Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"49174788-8512-4a01-a3ca-38c7857a2635\",\r\n \"creationTime\": \"2020-12-07T21:23:56Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"921dbaed-a5bd-462d-8351-d0eda5e592c0\",\r\n \"creationTime\": \"2020-12-08T23:28:45Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"25a04cf0-89d4-4546-9c30-14d1dc8899df\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/25a04cf0-89d4-4546-9c30-14d1dc8899df\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo36-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-12-07T21:35:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"b52d5178-bc7b-4b2b-a05e-9d3dba85e7fd\",\r\n \"creationTime\": \"2020-12-07T21:35:24Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"b0f33c79-f7b2-421f-9e94-699b0f8c840a\",\r\n \"creationTime\": \"2020-12-08T22:02:23Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"345c785a-e758-4f8b-94d4-0a1259f4f85b\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/345c785a-e758-4f8b-94d4-0a1259f4f85b\",\r\n \"properties\": {\r\n \"accountName\": \"nichatur-restore-test\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-07T23:33:57Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"94eeb20d-16d0-4ee1-ae6a-7f2a0332a1d5\",\r\n \"creationTime\": \"2020-12-07T23:33:57Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"605db505-9267-4cf0-b7ac-27ef644b2ef3\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/605db505-9267-4cf0-b7ac-27ef644b2ef3\",\r\n \"properties\": {\r\n \"accountName\": \"nichatur-restore-test-r1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-07T23:57:59Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"71a2cff6-7e90-43a5-b261-b704fbfaf100\",\r\n \"creationTime\": \"2020-12-07T23:57:59Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"0d00d699-017a-4a76-8639-ab4bec82c5f2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/0d00d699-017a-4a76-8639-ab4bec82c5f2\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname637428989095532319\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-08T00:57:52Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"7c0454e1-f718-48fe-894a-35182a8440d2\",\r\n \"creationTime\": \"2020-12-08T00:57:52Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"73d1010d-f0b7-4673-b8c0-18ddecdcda06\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/73d1010d-f0b7-4673-b8c0-18ddecdcda06\",\r\n \"properties\": {\r\n \"accountName\": \"nichatur-restore-test-r2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-08T22:03:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"c6b5a1f6-2215-49be-9277-aeff5723ab4c\",\r\n \"creationTime\": \"2020-12-08T22:03:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d1535f84-06b5-497b-8768-962ece984001\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d1535f84-06b5-497b-8768-962ece984001\",\r\n \"properties\": {\r\n \"accountName\": \"kal-restore-test\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-15T21:58:32Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f4b8377d-89b3-41dd-9892-79bfbc4d523c\",\r\n \"creationTime\": \"2021-01-15T21:58:32Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9351dd2e-d901-465b-98cb-a74a3aabd49f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9351dd2e-d901-465b-98cb-a74a3aabd49f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-unique-mode-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-03T19:53:25Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"b5ee0cb6-20df-4132-8378-3d2b2bb477f8\",\r\n \"creationTime\": \"2021-02-03T19:53:26Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"222da8e2-da07-46db-9cd2-51a2efb84b9f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/222da8e2-da07-46db-9cd2-51a2efb84b9f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-unique-mode-restored\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-03T20:07:50Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"094b572d-52f6-47bc-92c3-a692588ef6d6\",\r\n \"creationTime\": \"2021-02-03T20:07:50Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"19e4130a-cb83-4a34-85c2-e35dcda149f8\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/19e4130a-cb83-4a34-85c2-e35dcda149f8\",\r\n \"properties\": {\r\n \"accountName\": \"stage-validation-m\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-02-05T04:08:10Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"3f97305a-6a6b-4b38-b200-bea92d78f64a\",\r\n \"creationTime\": \"2021-02-05T04:08:11Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"7cf7aaa4-fe00-48fa-820b-cc632feaa9d7\",\r\n \"creationTime\": \"2021-02-05T04:29:43Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"5939cc7f-0bdd-4790-9ac6-a3b281c64f97\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/5939cc7f-0bdd-4790-9ac6-a3b281c64f97\",\r\n \"properties\": {\r\n \"accountName\": \"multiregion-pitr-billing-test\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-19T00:20:18Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"Southeast Asia\",\r\n \"regionalDatabaseAccountInstanceId\": \"0018e6e6-170f-4e25-b1a5-97e718138e0c\",\r\n \"creationTime\": \"2021-02-19T00:20:18Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"e235a61e-abf7-4e95-bfc2-0e4aa649b874\",\r\n \"creationTime\": \"2021-02-19T00:33:52Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"96aa7f5a-5292-44f3-9d3e-bec163b0de1a\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/96aa7f5a-5292-44f3-9d3e-bec163b0de1a\",\r\n \"properties\": {\r\n \"accountName\": \"restore-pitr-mongo32-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-02-26T18:11:04Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"8c350d54-e45d-4ef7-af55-9f07dc4fe594\",\r\n \"creationTime\": \"2021-02-26T18:11:04Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c02d9298-7cdb-440f-a16b-0dc3c97d6cde\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c02d9298-7cdb-440f-a16b-0dc3c97d6cde\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T04:36:55Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d6e10b03-43cd-4bdc-a1b8-3dfab9fe6beb\",\r\n \"creationTime\": \"2021-03-03T04:36:55Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"00e807ea-76c1-4b2f-afdd-dddc1b15979f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/00e807ea-76c1-4b2f-afdd-dddc1b15979f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T05:01:33Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"683f9f6f-8b7d-4638-a4f2-db9983a9c2d1\",\r\n \"creationTime\": \"2021-03-03T05:01:33Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9766bca9-cc26-4e26-83fe-32cd22fdb83d\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9766bca9-cc26-4e26-83fe-32cd22fdb83d\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-billing-test\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-20T01:08:53Z\",\r\n \"deletionTime\": \"2021-02-04T00:01:29Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"9df768c4-6f3e-4bb8-be73-c8b338f50875\",\r\n \"creationTime\": \"2021-01-20T01:08:53Z\",\r\n \"deletionTime\": \"2021-02-04T00:01:29Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"8e032502-70fc-4495-8546-e69383186c09\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/8e032502-70fc-4495-8546-e69383186c09\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-billing-test-2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-21T05:06:14Z\",\r\n \"deletionTime\": \"2021-02-04T00:01:29Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a994d170-beb1-4f1a-a413-2d5548b171dd\",\r\n \"creationTime\": \"2021-01-21T05:06:14Z\",\r\n \"deletionTime\": \"2021-02-04T00:01:29Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d9e1ccfa-1929-4532-9efb-6100feff0f0e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d9e1ccfa-1929-4532-9efb-6100feff0f0e\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-restored-ror\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-06T19:32:22Z\",\r\n \"deletionTime\": \"2021-02-06T19:40:48Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"95ef85ad-f3dd-490d-aff2-50d6c7c0dd5f\",\r\n \"creationTime\": \"2021-02-06T19:32:22Z\",\r\n \"deletionTime\": \"2021-02-06T19:40:48Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2d7d7e33-9b97-491e-895b-fe7f46f3d86c\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/2d7d7e33-9b97-491e-895b-fe7f46f3d86c\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-10T23:50:26Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:51Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"eb35152b-9da0-44c0-a767-0c643969bf08\",\r\n \"creationTime\": \"2021-02-10T23:50:26Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:51Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"4961ef4a-30d0-484e-ad16-8ba453b14abf\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/4961ef4a-30d0-484e-ad16-8ba453b14abf\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-res\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T04:40:28Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:51Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"5970d071-463b-4f79-92ac-810f199754e9\",\r\n \"creationTime\": \"2021-02-11T04:40:28Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:51Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"ce9e2478-aa44-4bd2-96d4-d23f75dbd994\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/ce9e2478-aa44-4bd2-96d4-d23f75dbd994\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T00:04:43Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:54Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"4d1a5ff8-9393-4dc4-a3b9-1b24e2aeb32c\",\r\n \"creationTime\": \"2021-02-11T00:04:43Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:54Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"f93aff83-e412-471c-86de-e23df6cbeb58\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/f93aff83-e412-471c-86de-e23df6cbeb58\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-restored-readregion\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-07T21:48:30Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:27Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"North Central US\",\r\n \"regionalDatabaseAccountInstanceId\": \"ffac845b-ac41-4bfe-acc1-227406f9f68a\",\r\n \"creationTime\": \"2021-02-07T21:48:30Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:27Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9bb64267-f1d8-4d2a-9367-d16492966dc8\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9bb64267-f1d8-4d2a-9367-d16492966dc8\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-06T18:18:14Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"North Central US\",\r\n \"regionalDatabaseAccountInstanceId\": \"c8fdaea9-e41e-416f-8ab8-ffa9295ad14a\",\r\n \"creationTime\": \"2021-02-07T18:55:04Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\"\r\n },\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"de4ce762-1219-4750-9c25-cead6a9964b3\",\r\n \"creationTime\": \"2021-02-06T18:18:14Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"78bd960f-b8bc-4412-b4e1-f16c5acc599c\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/78bd960f-b8bc-4412-b4e1-f16c5acc599c\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-del-restored\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-06T20:23:29Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"Southeast Asia\",\r\n \"regionalDatabaseAccountInstanceId\": \"753180e8-e128-47e9-98d1-5ce0c6d4f3a8\",\r\n \"creationTime\": \"2021-02-08T19:31:46Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\"\r\n },\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"2524386d-c456-4de9-a314-1acdb94e52a3\",\r\n \"creationTime\": \"2021-02-06T20:23:29Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"67d6981a-3dc7-4e3a-b04a-73c0376d42bb\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/67d6981a-3dc7-4e3a-b04a-73c0376d42bb\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T08:37:02Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:42Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"5f331e43-571c-4fe7-9874-aeafcd2b421c\",\r\n \"creationTime\": \"2021-02-11T08:37:02Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:42Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"5ea690df-46a9-4bf2-910c-0484660978bb\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/5ea690df-46a9-4bf2-910c-0484660978bb\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T08:24:56Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:43Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"29b9a3fe-b375-462d-9221-191fc4ddaa83\",\r\n \"creationTime\": \"2021-02-11T08:24:56Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:43Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"53b3d044-7394-4a06-883d-cf9247f66e3c\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/53b3d044-7394-4a06-883d-cf9247f66e3c\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r3\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T08:49:08Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:44Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a38a83ce-d467-4c81-9f3d-c65697d1c547\",\r\n \"creationTime\": \"2021-02-11T08:49:08Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:44Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"66c4a9a2-7799-474a-9e1e-e56a4b340d62\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/66c4a9a2-7799-474a-9e1e-e56a4b340d62\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r4\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T09:01:06Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:45Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"01869f13-ab6f-451b-8b15-9cb0b369cde2\",\r\n \"creationTime\": \"2021-02-11T09:01:06Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:45Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"674c1551-e35b-4a4d-bd79-fde1f439dbe0\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/674c1551-e35b-4a4d-bd79-fde1f439dbe0\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-17T11:23:16Z\",\r\n \"deletionTime\": \"2021-02-17T15:31:10Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"17329379-801c-4909-999a-421f20fd57c4\",\r\n \"creationTime\": \"2021-02-17T11:23:16Z\",\r\n \"deletionTime\": \"2021-02-17T15:31:10Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"af242175-f3a2-40f4-9c77-10eaf232a2b5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/af242175-f3a2-40f4-9c77-10eaf232a2b5\",\r\n \"properties\": {\r\n \"accountName\": \"dd21234\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-22T09:47:40Z\",\r\n \"deletionTime\": \"2021-02-22T10:59:26Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"66b2c82f-633f-446a-b89e-dba1b13ae92c\",\r\n \"creationTime\": \"2021-02-22T09:47:40Z\",\r\n \"deletionTime\": \"2021-02-22T10:59:26Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"128a528a-5e22-4146-ae62-b32994614cb0\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/128a528a-5e22-4146-ae62-b32994614cb0\",\r\n \"properties\": {\r\n \"accountName\": \"dd21\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-22T09:02:19Z\",\r\n \"deletionTime\": \"2021-02-22T11:00:06Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"ebc69bc4-4865-41d6-a632-aef7a5e2de1d\",\r\n \"creationTime\": \"2021-02-22T09:02:19Z\",\r\n \"deletionTime\": \"2021-02-22T11:00:06Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"3e1a3f5e-dcae-449e-82f7-bbf80cba54c5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/3e1a3f5e-dcae-449e-82f7-bbf80cba54c5\",\r\n \"properties\": {\r\n \"accountName\": \"ddb55\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-24T04:21:43Z\",\r\n \"deletionTime\": \"2021-02-24T07:45:59Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"4dff1afd-82b9-425f-840a-3237bd54478d\",\r\n \"creationTime\": \"2021-02-24T04:21:43Z\",\r\n \"deletionTime\": \"2021-02-24T07:45:59Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d612dc86-9085-444b-a868-fb48c7d368fb\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d612dc86-9085-444b-a868-fb48c7d368fb\",\r\n \"properties\": {\r\n \"accountName\": \"ddb1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-18T11:15:52Z\",\r\n \"deletionTime\": \"2021-02-24T07:46:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"db2b9027-bcdf-4069-be69-074fc2f46d7c\",\r\n \"creationTime\": \"2021-02-18T11:15:52Z\",\r\n \"deletionTime\": \"2021-02-24T07:46:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"0ea5b02f-40bd-4cfd-8406-35286bd00fa2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/0ea5b02f-40bd-4cfd-8406-35286bd00fa2\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-ror\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-24T17:56:15Z\",\r\n \"deletionTime\": \"2021-02-25T10:33:38Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"740afadb-1142-4b13-9fa4-67e857d56a89\",\r\n \"creationTime\": \"2021-02-24T17:56:15Z\",\r\n \"deletionTime\": \"2021-02-25T10:33:38Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"52006c1b-5c7f-43a1-9ae0-b936550aed8a\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/52006c1b-5c7f-43a1-9ae0-b936550aed8a\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-rrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-24T17:40:45Z\",\r\n \"deletionTime\": \"2021-02-25T10:34:20Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a1e3fe50-7548-4b49-aee1-373a142e0c3b\",\r\n \"creationTime\": \"2021-02-24T17:40:45Z\",\r\n \"deletionTime\": \"2021-02-25T10:34:20Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"a578c9d3-1d35-451f-a3df-44e61ed45cfa\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/a578c9d3-1d35-451f-a3df-44e61ed45cfa\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-24T05:19:04Z\",\r\n \"deletionTime\": \"2021-02-25T10:34:35Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"feff600a-c776-422a-a2f7-0cfe03be68b8\",\r\n \"creationTime\": \"2021-02-24T05:19:04Z\",\r\n \"deletionTime\": \"2021-02-25T10:34:35Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"07b7492c-91c3-41bb-9f75-8f25c739ce06\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/07b7492c-91c3-41bb-9f75-8f25c739ce06\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-01T05:56:16Z\",\r\n \"deletionTime\": \"2021-03-02T09:01:04Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"bfbd7d4b-3edf-44da-8aab-eb9cdafe43a7\",\r\n \"creationTime\": \"2021-03-01T05:56:16Z\",\r\n \"deletionTime\": \"2021-03-02T09:01:04Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"db2af171-a342-4d3c-92ff-45e81629341d\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/db2af171-a342-4d3c-92ff-45e81629341d\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-02T10:39:31Z\",\r\n \"deletionTime\": \"2021-03-02T10:41:51Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"4e29876d-a887-4def-a99e-1b7043bb6181\",\r\n \"creationTime\": \"2021-03-02T10:39:31Z\",\r\n \"deletionTime\": \"2021-03-02T10:41:51Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"a76a91b4-489b-4714-b0fc-b98459934920\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/a76a91b4-489b-4714-b0fc-b98459934920\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-02T15:16:36Z\",\r\n \"deletionTime\": \"2021-03-03T04:08:46Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"40bafde5-ffd5-453a-acb4-9c697808790a\",\r\n \"creationTime\": \"2021-03-02T15:16:36Z\",\r\n \"deletionTime\": \"2021-03-03T04:08:46Z\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": \"fccbe297-cb19-424b-a8d7-e996a6b7b689\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/fccbe297-cb19-424b-a8d7-e996a6b7b689\",\r\n \"properties\": {\r\n \"accountName\": \"mongotestaccount\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-02T19:34:26Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"9f8cab0e-80f5-48b6-bc9f-7f7b3a69afeb\",\r\n \"creationTime\": \"2021-06-02T19:34:27Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c6b53e1d-0dec-4ff2-ab70-2e9d24a3ed27\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c6b53e1d-0dec-4ff2-ab70-2e9d24a3ed27\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-02T23:30:43Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"9961d453-89c2-4daf-bcad-add22d287617\",\r\n \"creationTime\": \"2021-06-02T23:30:43Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"990590c0-4db8-4b0e-96ef-55f0be03615d\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/990590c0-4db8-4b0e-96ef-55f0be03615d\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo32-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-02T23:32:31Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"2d0a8ae4-e622-429c-a2bf-b7b13ada7b45\",\r\n \"creationTime\": \"2021-06-02T23:32:32Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"60a54911-db9e-436f-b282-34779e0a2a7f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/60a54911-db9e-436f-b282-34779e0a2a7f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo36-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-02T23:33:01Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"32163288-85a4-454b-a7d7-d7fbb1f32aeb\",\r\n \"creationTime\": \"2021-06-02T23:33:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"b0736fc7-cb53-4b6f-bd2f-aac904085da4\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/b0736fc7-cb53-4b6f-bd2f-aac904085da4\",\r\n \"properties\": {\r\n \"accountName\": \"mongo-continuous-1212\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-04T22:09:26Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a1f3383c-4e2f-44b5-8348-7323e2356b3d\",\r\n \"creationTime\": \"2021-06-04T22:09:26Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2301188f-cf13-419d-b7c2-5321c5476526\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/2301188f-cf13-419d-b7c2-5321c5476526\",\r\n \"properties\": {\r\n \"accountName\": \"restored-cosmosdb-1212\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:06:02Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"05b3f3ce-59ee-4d28-bd66-09ea5c50790d\",\r\n \"creationTime\": \"2021-06-07T21:06:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"24302a82-123a-487a-bede-054ade2860f1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/24302a82-123a-487a-bede-054ade2860f1\",\r\n \"properties\": {\r\n \"accountName\": \"dbaccount29-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:24:52Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"ede5fb9c-4058-44a6-8dec-29e3e7de9b44\",\r\n \"creationTime\": \"2021-06-07T21:24:53Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"e157f1a1-6837-46fa-8f4f-ef3e7266ab3a\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/e157f1a1-6837-46fa-8f4f-ef3e7266ab3a\",\r\n \"properties\": {\r\n \"accountName\": \"rbactestps12\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:27:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"64c449c8-6fa2-4273-b066-5a062d4418be\",\r\n \"creationTime\": \"2021-06-07T21:27:24Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"72706ac1-0d0a-40be-a30a-1b4af0911131\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/72706ac1-0d0a-40be-a30a-1b4af0911131\",\r\n \"properties\": {\r\n \"accountName\": \"mongo-db0002\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-07T23:44:54Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"dfccb705-08c0-4282-9dad-07ab354ba8e8\",\r\n \"creationTime\": \"2021-06-07T23:44:55Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"41ea7d9e-553f-4259-872f-676c969e9a0b\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/41ea7d9e-553f-4259-872f-676c969e9a0b\",\r\n \"properties\": {\r\n \"accountName\": \"dbaccount27-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-08T17:39:46Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"1db9bff4-73f7-48e1-a506-ab5b3edc8308\",\r\n \"creationTime\": \"2021-06-08T17:39:47Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"ceacd38f-9e6b-4a81-b2f7-ecd341c6fbbd\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/ceacd38f-9e6b-4a81-b2f7-ecd341c6fbbd\",\r\n \"properties\": {\r\n \"accountName\": \"cli125\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-09T19:06:13Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"c2a9bc5f-f37e-4add-a582-52abfb6a36a1\",\r\n \"creationTime\": \"2021-06-09T19:06:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"88d48073-10d1-402e-8cf5-c79e4e2de08e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/88d48073-10d1-402e-8cf5-c79e4e2de08e\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount123\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-09T19:09:54Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"861a2513-08ea-4cf8-817b-99b8282f5013\",\r\n \"creationTime\": \"2021-06-09T19:09:54Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"bb9b3beb-42c4-4ae4-a983-58e20bcd71a5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/bb9b3beb-42c4-4ae4-a983-58e20bcd71a5\",\r\n \"properties\": {\r\n \"accountName\": \"db003\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-09T20:16:40Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a6dda878-4486-437f-bd72-b9e87bf75221\",\r\n \"creationTime\": \"2021-06-09T20:16:41Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9f8ee54b-f275-44fa-b2c5-9983644c131f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9f8ee54b-f275-44fa-b2c5-9983644c131f\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount124\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-10T05:06:02Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"3fe302ed-daee-401c-9897-250919f9a0fe\",\r\n \"creationTime\": \"2021-06-10T05:06:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c2601a38-bee1-400e-bc5e-8d817318cf31\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c2601a38-bee1-400e-bc5e-8d817318cf31\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname7595\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-10T18:00:35Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"0a4ccb11-2cb5-4b81-8ab6-ea10cbb2290d\",\r\n \"creationTime\": \"2021-06-10T18:00:35Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"33035d50-7f15-4450-a71d-a4da4dcd039f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/33035d50-7f15-4450-a71d-a4da4dcd039f\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname4020\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-15T21:27:04Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"5d75295f-2ad7-451c-b27d-8e877e22b075\",\r\n \"creationTime\": \"2021-06-15T21:27:04Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"7d405124-1129-468e-9ff9-d031059c96bc\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/7d405124-1129-468e-9ff9-d031059c96bc\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-16T05:58:55Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d0a6a03f-c045-4275-a38a-b221f5749051\",\r\n \"creationTime\": \"2021-06-16T05:58:55Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d5fe116b-8a63-474e-88a4-afb2a726198e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d5fe116b-8a63-474e-88a4-afb2a726198e\",\r\n \"properties\": {\r\n \"accountName\": \"cli127\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-16T06:57:39Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f9a67f44-e6f6-4270-91c6-d90a0292ac96\",\r\n \"creationTime\": \"2021-06-16T06:57:39Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"1dfe47fb-822c-41f1-b403-1cf6c63d0ba7\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/1dfe47fb-822c-41f1-b403-1cf6c63d0ba7\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname3766\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-16T07:16:12Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"1a05d833-615e-45b0-b2ec-f87ca4d9829c\",\r\n \"creationTime\": \"2021-06-16T07:16:12Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c483a757-4d93-4d60-ae22-04c9d2c89595\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c483a757-4d93-4d60-ae22-04c9d2c89595\",\r\n \"properties\": {\r\n \"accountName\": \"restored2-cosmosdb-1212-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-04T22:17:44Z\",\r\n \"deletionTime\": \"2021-06-05T05:04:42Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"eb5e33f1-8ecf-42b7-9f3f-18784854fc5e\",\r\n \"creationTime\": \"2021-06-04T22:17:44Z\",\r\n \"deletionTime\": \"2021-06-05T05:04:42Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"80458ce3-9b06-4d87-9405-1f47eb88164f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/80458ce3-9b06-4d87-9405-1f47eb88164f\",\r\n \"properties\": {\r\n \"accountName\": \"dbaccount27-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:24:07Z\",\r\n \"deletionTime\": \"2021-06-07T22:30:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a47823ea-6bce-4436-91a1-1dd14a1aa3a7\",\r\n \"creationTime\": \"2021-06-07T21:24:08Z\",\r\n \"deletionTime\": \"2021-06-07T22:30:24Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"3b44efa3-a7e6-414e-99c2-22d63aa1d778\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/3b44efa3-a7e6-414e-99c2-22d63aa1d778\",\r\n \"properties\": {\r\n \"accountName\": \"cli126\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-10T05:07:44Z\",\r\n \"deletionTime\": \"2021-06-15T21:00:15Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"fbc82bdc-1493-4cc4-bd69-2c33c650e3ed\",\r\n \"creationTime\": \"2021-06-10T05:07:45Z\",\r\n \"deletionTime\": \"2021-06-15T21:00:15Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"3bf55696-9845-4ab5-b57c-f955a2ffe3ca\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/3bf55696-9845-4ab5-b57c-f955a2ffe3ca\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-01T23:24:19Z\",\r\n \"deletionTime\": \"2021-06-16T04:58:21Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"1062fb86-a396-4689-9326-83193cf2274b\",\r\n \"creationTime\": \"2021-06-01T23:24:20Z\",\r\n \"deletionTime\": \"2021-06-16T04:58:21Z\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cz9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ddd68d38-fa22-417e-8d5d-77b7927da346" + "c028a7cc-8c99-4a93-8f08-bd0d35ff2da5" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -288,56 +342,56 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" + "11993" ], "x-ms-request-id": [ - "82359531-600a-48d2-9967-2e8ddc0d21d2" + "1cc10db3-c7d8-4f8c-857f-4a3b95f3b539" ], "x-ms-correlation-request-id": [ - "82359531-600a-48d2-9967-2e8ddc0d21d2" + "1cc10db3-c7d8-4f8c-857f-4a3b95f3b539" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T174946Z:82359531-600a-48d2-9967-2e8ddc0d21d2" + "WESTUS2:20210616T071623Z:1cc10db3-c7d8-4f8c-857f-4a3b95f3b539" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:49:45 GMT" + "Wed, 16 Jun 2021 07:16:22 GMT" ], "Content-Length": [ - "15499" + "13637" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": \"5dee0717-8f84-40d7-b7c1-921552ba61a5\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/5dee0717-8f84-40d7-b7c1-921552ba61a5\",\r\n \"properties\": {\r\n \"accountName\": \"vinhstagepitr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-11-02T23:44:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"30d6cace-8354-4e1f-b427-4f234f46df87\",\r\n \"creationTime\": \"2020-11-02T23:44:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"5cfa410f-ea0c-4995-aa59-9809a69c21f8\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/5cfa410f-ea0c-4995-aa59-9809a69c21f8\",\r\n \"properties\": {\r\n \"accountName\": \"vinhstagemongopitr\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-11-25T17:07:33Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"4ecfc265-e4d3-4638-a225-1932760404ee\",\r\n \"creationTime\": \"2020-11-25T17:07:34Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2b5e6412-19dc-4d79-88ae-178f5e30dd78\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/2b5e6412-19dc-4d79-88ae-178f5e30dd78\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-vinhstagemongopitr-del-res1\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-11-30T23:17:02Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a35683c3-cf9b-4378-a290-fb3ab8e741f9\",\r\n \"creationTime\": \"2020-11-30T23:17:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-08T18:18:47Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f61a9ed3-fcda-4603-b1e2-2baadbb6122b\",\r\n \"creationTime\": \"2020-12-08T18:18:47Z\"\r\n },\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"cdd116b8-a956-43d5-b461-248f837099f4\",\r\n \"creationTime\": \"2020-12-14T21:35:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"7d98d6c0-eadf-4d7e-a166-696de37c91fc\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/7d98d6c0-eadf-4d7e-a166-696de37c91fc\",\r\n \"properties\": {\r\n \"accountName\": \"restore-test1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-08T21:44:47Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"208a7933-2e44-4df1-9c96-97e28ae92d8f\",\r\n \"creationTime\": \"2020-12-08T21:44:47Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"08155af7-e63f-4db1-82ed-c99b8a08e541\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/08155af7-e63f-4db1-82ed-c99b8a08e541\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-vinhstagemongopitr-1\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-12-09T10:37:08Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"8c045a40-c3b5-4025-a270-156b748fd08b\",\r\n \"creationTime\": \"2020-12-09T10:37:08Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d0cb2ece-f253-4f20-86d0-01897e729eba\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/d0cb2ece-f253-4f20-86d0-01897e729eba\",\r\n \"properties\": {\r\n \"accountName\": \"virangai-test-vinhstagepitr-restore1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-10T02:08:18Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d4a86ba4-38f5-46ba-b0ae-724d5508b551\",\r\n \"creationTime\": \"2020-12-10T02:08:18Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9373a8d7-1889-4be9-9ddb-e589e406d04b\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9373a8d7-1889-4be9-9ddb-e589e406d04b\",\r\n \"properties\": {\r\n \"accountName\": \"virangai-test-vinhstagepitr-restore2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-10T03:12:31Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"c2374cdf-00cc-42e3-887e-4824532ff3e7\",\r\n \"creationTime\": \"2020-12-10T03:12:31Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"530b269d-274b-4987-94e1-f54b09abecff\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/530b269d-274b-4987-94e1-f54b09abecff\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname637435832535194992\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-15T23:04:01Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"257c2c07-efcb-47b2-b696-6ba5ca9785b0\",\r\n \"creationTime\": \"2020-12-15T23:04:01Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"4993c7e8-c48b-4e45-9353-9baea1ce9e2a\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/4993c7e8-c48b-4e45-9353-9baea1ce9e2a\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname359\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-16T00:51:06Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f964f331-3322-4719-946a-a8f4e406ca14\",\r\n \"creationTime\": \"2020-12-16T00:51:06Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d673eaa8-f7fa-421f-9d61-ba314864a431\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/d673eaa8-f7fa-421f-9d61-ba314864a431\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-from-new-portal\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-05T00:28:34Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a09d2f05-b90f-4a76-96c5-ef49edadbbae\",\r\n \"creationTime\": \"2021-01-05T00:28:34Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"6d6384ae-d623-4323-8388-65ca7df02733\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/6d6384ae-d623-4323-8388-65ca7df02733\",\r\n \"properties\": {\r\n \"accountName\": \"pitrtest1-res1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-05T23:45:55Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"2b92bb0a-1fa9-43c2-b8a7-b25d209d25c1\",\r\n \"creationTime\": \"2021-01-05T23:45:55Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"0bcf9a9b-1ca1-4406-9652-aa087d5f0b3f\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/0bcf9a9b-1ca1-4406-9652-aa087d5f0b3f\",\r\n \"properties\": {\r\n \"accountName\": \"pitrtest1-res2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-05T23:46:37Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d666fcfb-319c-4c5d-a2b8-27ae6cc9233f\",\r\n \"creationTime\": \"2021-01-05T23:46:37Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"b15e30f1-4e37-4fca-b77b-303516959017\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/b15e30f1-4e37-4fca-b77b-303516959017\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-vinhstagepitr-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-06T09:24:07Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"8203b929-83ed-496a-8e6b-8a291aba9a32\",\r\n \"creationTime\": \"2021-01-06T09:24:07Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"617f5c88-2a93-45b4-be38-0cd7addea976\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/617f5c88-2a93-45b4-be38-0cd7addea976\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-vinhstagepitr-2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-06T09:33:06Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"e54058dc-c9ec-4393-9b62-3c4a764d9dda\",\r\n \"creationTime\": \"2021-01-06T09:33:06Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2eecc23f-69df-4de3-9103-b6ca529536a4\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/2eecc23f-69df-4de3-9103-b6ca529536a4\",\r\n \"properties\": {\r\n \"accountName\": \"test-restore-4\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-07T01:23:39Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"80c0209c-f89b-41b6-8cc2-5edad302caaf\",\r\n \"creationTime\": \"2021-01-07T01:23:39Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d91e1ad2-22b0-401e-b465-a16e5928e194\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/d91e1ad2-22b0-401e-b465-a16e5928e194\",\r\n \"properties\": {\r\n \"accountName\": \"test-restore5\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-07T01:23:40Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"793334c5-2123-41a5-a382-7b5aade5bb82\",\r\n \"creationTime\": \"2021-01-07T01:23:40Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"132908b6-2701-44a5-bdbe-a7c296e26283\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/132908b6-2701-44a5-bdbe-a7c296e26283\",\r\n \"properties\": {\r\n \"accountName\": \"test-restore6\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-07T03:18:46Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a8bcc661-cdd0-4fb6-b011-ce4fb922930d\",\r\n \"creationTime\": \"2021-01-07T03:18:46Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2ab6f2d2-ce7e-439b-90b3-5505c8f9ff76\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/2ab6f2d2-ce7e-439b-90b3-5505c8f9ff76\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-source-personalrestore-greeen\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-15T22:51:59Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"8b3376be-21d5-43db-ad08-7fa9e3f3ad5b\",\r\n \"creationTime\": \"2021-01-15T22:51:59Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"483d93e5-302b-4093-9502-ce63d416e70f\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/483d93e5-302b-4093-9502-ce63d416e70f\",\r\n \"properties\": {\r\n \"accountName\": \"targetacctrestore\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-18T18:30:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"cb6a3895-5ded-43ee-a6a8-91d9050f5582\",\r\n \"creationTime\": \"2021-02-18T18:30:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"74e9ac09-75d3-448a-a128-e71866b42e95\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/74e9ac09-75d3-448a-a128-e71866b42e95\",\r\n \"properties\": {\r\n \"accountName\": \"virangai-test-vinhstagepitr-res\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-26T22:14:50Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"40e6110d-0ae4-4e40-9d6e-33014540e179\",\r\n \"creationTime\": \"2021-02-26T22:14:50Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"24f3f6b6-9d96-4dc2-84b9-ae1c0cba8d4e\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/24f3f6b6-9d96-4dc2-84b9-ae1c0cba8d4e\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname8240\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-02T23:44:13Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"c2df5fa4-a593-48f2-8417-9f5f4bb9ef56\",\r\n \"creationTime\": \"2021-03-02T23:44:13Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"f319c2f4-7e68-48c0-9eac-94e12fb51179\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/f319c2f4-7e68-48c0-9eac-94e12fb51179\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname320\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T00:59:34Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"005c7a8b-fffd-4106-a2f5-0b4f58b1942a\",\r\n \"creationTime\": \"2021-03-03T00:59:34Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"672e89ce-0096-4a87-8131-3d2d5d483a3a\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/672e89ce-0096-4a87-8131-3d2d5d483a3a\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname6982\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T02:34:06Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f30afdfa-9473-4658-83c4-5067be2232db\",\r\n \"creationTime\": \"2021-03-03T02:34:06Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"1a937e8e-1a33-4fd1-9349-34ede3dd02f2\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/1a937e8e-1a33-4fd1-9349-34ede3dd02f2\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname8295\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T17:48:45Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"0057f632-aaa2-44a6-92bf-c2e623403f52\",\r\n \"creationTime\": \"2021-03-03T17:48:45Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"4d0ae23d-5661-4c5a-ae37-48aa6308425b\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/4d0ae23d-5661-4c5a-ae37-48aa6308425b\",\r\n \"properties\": {\r\n \"accountName\": \"stage-validation-pitr-test0\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-10T07:55:12Z\",\r\n \"deletionTime\": \"2021-02-10T14:21:37Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"26d7f01f-3f0c-4eb6-80a2-f5776f929f12\",\r\n \"creationTime\": \"2021-02-10T07:55:13Z\",\r\n \"deletionTime\": \"2021-02-10T14:21:37Z\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": \"fccbe297-cb19-424b-a8d7-e996a6b7b689\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/fccbe297-cb19-424b-a8d7-e996a6b7b689\",\r\n \"properties\": {\r\n \"accountName\": \"mongotestaccount\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-02T19:34:26Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"9f8cab0e-80f5-48b6-bc9f-7f7b3a69afeb\",\r\n \"creationTime\": \"2021-06-02T19:34:27Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c6b53e1d-0dec-4ff2-ab70-2e9d24a3ed27\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c6b53e1d-0dec-4ff2-ab70-2e9d24a3ed27\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-02T23:30:43Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"9961d453-89c2-4daf-bcad-add22d287617\",\r\n \"creationTime\": \"2021-06-02T23:30:43Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"990590c0-4db8-4b0e-96ef-55f0be03615d\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/990590c0-4db8-4b0e-96ef-55f0be03615d\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo32-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-02T23:32:31Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"2d0a8ae4-e622-429c-a2bf-b7b13ada7b45\",\r\n \"creationTime\": \"2021-06-02T23:32:32Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"60a54911-db9e-436f-b282-34779e0a2a7f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/60a54911-db9e-436f-b282-34779e0a2a7f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo36-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-02T23:33:01Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"32163288-85a4-454b-a7d7-d7fbb1f32aeb\",\r\n \"creationTime\": \"2021-06-02T23:33:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"b0736fc7-cb53-4b6f-bd2f-aac904085da4\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/b0736fc7-cb53-4b6f-bd2f-aac904085da4\",\r\n \"properties\": {\r\n \"accountName\": \"mongo-continuous-1212\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-04T22:09:26Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a1f3383c-4e2f-44b5-8348-7323e2356b3d\",\r\n \"creationTime\": \"2021-06-04T22:09:26Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2301188f-cf13-419d-b7c2-5321c5476526\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/2301188f-cf13-419d-b7c2-5321c5476526\",\r\n \"properties\": {\r\n \"accountName\": \"restored-cosmosdb-1212\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:06:02Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"05b3f3ce-59ee-4d28-bd66-09ea5c50790d\",\r\n \"creationTime\": \"2021-06-07T21:06:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"24302a82-123a-487a-bede-054ade2860f1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/24302a82-123a-487a-bede-054ade2860f1\",\r\n \"properties\": {\r\n \"accountName\": \"dbaccount29-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:24:52Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"ede5fb9c-4058-44a6-8dec-29e3e7de9b44\",\r\n \"creationTime\": \"2021-06-07T21:24:53Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"e157f1a1-6837-46fa-8f4f-ef3e7266ab3a\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/e157f1a1-6837-46fa-8f4f-ef3e7266ab3a\",\r\n \"properties\": {\r\n \"accountName\": \"rbactestps12\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:27:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"64c449c8-6fa2-4273-b066-5a062d4418be\",\r\n \"creationTime\": \"2021-06-07T21:27:24Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"72706ac1-0d0a-40be-a30a-1b4af0911131\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/72706ac1-0d0a-40be-a30a-1b4af0911131\",\r\n \"properties\": {\r\n \"accountName\": \"mongo-db0002\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-07T23:44:54Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"dfccb705-08c0-4282-9dad-07ab354ba8e8\",\r\n \"creationTime\": \"2021-06-07T23:44:55Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"41ea7d9e-553f-4259-872f-676c969e9a0b\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/41ea7d9e-553f-4259-872f-676c969e9a0b\",\r\n \"properties\": {\r\n \"accountName\": \"dbaccount27-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-08T17:39:46Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"1db9bff4-73f7-48e1-a506-ab5b3edc8308\",\r\n \"creationTime\": \"2021-06-08T17:39:47Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"ceacd38f-9e6b-4a81-b2f7-ecd341c6fbbd\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/ceacd38f-9e6b-4a81-b2f7-ecd341c6fbbd\",\r\n \"properties\": {\r\n \"accountName\": \"cli125\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-09T19:06:13Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"c2a9bc5f-f37e-4add-a582-52abfb6a36a1\",\r\n \"creationTime\": \"2021-06-09T19:06:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"88d48073-10d1-402e-8cf5-c79e4e2de08e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/88d48073-10d1-402e-8cf5-c79e4e2de08e\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount123\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-09T19:09:54Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"861a2513-08ea-4cf8-817b-99b8282f5013\",\r\n \"creationTime\": \"2021-06-09T19:09:54Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"bb9b3beb-42c4-4ae4-a983-58e20bcd71a5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/bb9b3beb-42c4-4ae4-a983-58e20bcd71a5\",\r\n \"properties\": {\r\n \"accountName\": \"db003\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-09T20:16:40Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a6dda878-4486-437f-bd72-b9e87bf75221\",\r\n \"creationTime\": \"2021-06-09T20:16:41Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9f8ee54b-f275-44fa-b2c5-9983644c131f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9f8ee54b-f275-44fa-b2c5-9983644c131f\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount124\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-10T05:06:02Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"3fe302ed-daee-401c-9897-250919f9a0fe\",\r\n \"creationTime\": \"2021-06-10T05:06:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c2601a38-bee1-400e-bc5e-8d817318cf31\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c2601a38-bee1-400e-bc5e-8d817318cf31\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname7595\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-10T18:00:35Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"0a4ccb11-2cb5-4b81-8ab6-ea10cbb2290d\",\r\n \"creationTime\": \"2021-06-10T18:00:35Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"33035d50-7f15-4450-a71d-a4da4dcd039f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/33035d50-7f15-4450-a71d-a4da4dcd039f\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname4020\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-15T21:27:04Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"5d75295f-2ad7-451c-b27d-8e877e22b075\",\r\n \"creationTime\": \"2021-06-15T21:27:04Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"7d405124-1129-468e-9ff9-d031059c96bc\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/7d405124-1129-468e-9ff9-d031059c96bc\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-16T05:58:55Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d0a6a03f-c045-4275-a38a-b221f5749051\",\r\n \"creationTime\": \"2021-06-16T05:58:55Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d5fe116b-8a63-474e-88a4-afb2a726198e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d5fe116b-8a63-474e-88a4-afb2a726198e\",\r\n \"properties\": {\r\n \"accountName\": \"cli127\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-16T06:57:39Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f9a67f44-e6f6-4270-91c6-d90a0292ac96\",\r\n \"creationTime\": \"2021-06-16T06:57:39Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"1dfe47fb-822c-41f1-b403-1cf6c63d0ba7\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/1dfe47fb-822c-41f1-b403-1cf6c63d0ba7\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname3766\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-16T07:16:12Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"1a05d833-615e-45b0-b2ec-f87ca4d9829c\",\r\n \"creationTime\": \"2021-06-16T07:16:12Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c483a757-4d93-4d60-ae22-04c9d2c89595\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c483a757-4d93-4d60-ae22-04c9d2c89595\",\r\n \"properties\": {\r\n \"accountName\": \"restored2-cosmosdb-1212-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-04T22:17:44Z\",\r\n \"deletionTime\": \"2021-06-05T05:04:42Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"eb5e33f1-8ecf-42b7-9f3f-18784854fc5e\",\r\n \"creationTime\": \"2021-06-04T22:17:44Z\",\r\n \"deletionTime\": \"2021-06-05T05:04:42Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"80458ce3-9b06-4d87-9405-1f47eb88164f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/80458ce3-9b06-4d87-9405-1f47eb88164f\",\r\n \"properties\": {\r\n \"accountName\": \"dbaccount27-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:24:07Z\",\r\n \"deletionTime\": \"2021-06-07T22:30:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a47823ea-6bce-4436-91a1-1dd14a1aa3a7\",\r\n \"creationTime\": \"2021-06-07T21:24:08Z\",\r\n \"deletionTime\": \"2021-06-07T22:30:24Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"3b44efa3-a7e6-414e-99c2-22d63aa1d778\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/3b44efa3-a7e6-414e-99c2-22d63aa1d778\",\r\n \"properties\": {\r\n \"accountName\": \"cli126\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-10T05:07:44Z\",\r\n \"deletionTime\": \"2021-06-15T21:00:15Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"fbc82bdc-1493-4cc4-bd69-2c33c650e3ed\",\r\n \"creationTime\": \"2021-06-10T05:07:45Z\",\r\n \"deletionTime\": \"2021-06-15T21:00:15Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"3bf55696-9845-4ab5-b57c-f955a2ffe3ca\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/3bf55696-9845-4ab5-b57c-f955a2ffe3ca\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-01T23:24:19Z\",\r\n \"deletionTime\": \"2021-06-16T04:58:21Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"1062fb86-a396-4689-9326-83193cf2274b\",\r\n \"creationTime\": \"2021-06-01T23:24:20Z\",\r\n \"deletionTime\": \"2021-06-16T04:58:21Z\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cy85YTRiNjNjMy00OWQxLTRjODctYjI4ZS05MmU5MmFlYWEwZWE/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ffc30c9b-37ea-464b-8e4d-aa530d67ae63" + "2c968462-8382-4e21-98c2-e6b2771b7aae" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -351,56 +405,56 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" + "11990" ], "x-ms-request-id": [ - "1bff8281-7969-464b-b01f-92b36100c733" + "0fdd8a8e-8b9a-422a-ac4d-49be41c00dfe" ], "x-ms-correlation-request-id": [ - "1bff8281-7969-464b-b01f-92b36100c733" + "0fdd8a8e-8b9a-422a-ac4d-49be41c00dfe" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T174955Z:1bff8281-7969-464b-b01f-92b36100c733" + "WESTUS2:20210616T071624Z:0fdd8a8e-8b9a-422a-ac4d-49be41c00dfe" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:49:54 GMT" + "Wed, 16 Jun 2021 07:16:23 GMT" ], "Content-Length": [ - "724" + "13637" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"name\": \"9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-08T18:18:47Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f61a9ed3-fcda-4603-b1e2-2baadbb6122b\",\r\n \"creationTime\": \"2020-12-08T18:18:47Z\"\r\n },\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"cdd116b8-a956-43d5-b461-248f837099f4\",\r\n \"creationTime\": \"2020-12-14T21:35:14Z\"\r\n }\r\n ]\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": \"fccbe297-cb19-424b-a8d7-e996a6b7b689\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/fccbe297-cb19-424b-a8d7-e996a6b7b689\",\r\n \"properties\": {\r\n \"accountName\": \"mongotestaccount\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-02T19:34:26Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"9f8cab0e-80f5-48b6-bc9f-7f7b3a69afeb\",\r\n \"creationTime\": \"2021-06-02T19:34:27Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c6b53e1d-0dec-4ff2-ab70-2e9d24a3ed27\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c6b53e1d-0dec-4ff2-ab70-2e9d24a3ed27\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-02T23:30:43Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"9961d453-89c2-4daf-bcad-add22d287617\",\r\n \"creationTime\": \"2021-06-02T23:30:43Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"990590c0-4db8-4b0e-96ef-55f0be03615d\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/990590c0-4db8-4b0e-96ef-55f0be03615d\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo32-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-02T23:32:31Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"2d0a8ae4-e622-429c-a2bf-b7b13ada7b45\",\r\n \"creationTime\": \"2021-06-02T23:32:32Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"60a54911-db9e-436f-b282-34779e0a2a7f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/60a54911-db9e-436f-b282-34779e0a2a7f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo36-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-02T23:33:01Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"32163288-85a4-454b-a7d7-d7fbb1f32aeb\",\r\n \"creationTime\": \"2021-06-02T23:33:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"b0736fc7-cb53-4b6f-bd2f-aac904085da4\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/b0736fc7-cb53-4b6f-bd2f-aac904085da4\",\r\n \"properties\": {\r\n \"accountName\": \"mongo-continuous-1212\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-04T22:09:26Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a1f3383c-4e2f-44b5-8348-7323e2356b3d\",\r\n \"creationTime\": \"2021-06-04T22:09:26Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2301188f-cf13-419d-b7c2-5321c5476526\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/2301188f-cf13-419d-b7c2-5321c5476526\",\r\n \"properties\": {\r\n \"accountName\": \"restored-cosmosdb-1212\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:06:02Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"05b3f3ce-59ee-4d28-bd66-09ea5c50790d\",\r\n \"creationTime\": \"2021-06-07T21:06:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"24302a82-123a-487a-bede-054ade2860f1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/24302a82-123a-487a-bede-054ade2860f1\",\r\n \"properties\": {\r\n \"accountName\": \"dbaccount29-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:24:52Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"ede5fb9c-4058-44a6-8dec-29e3e7de9b44\",\r\n \"creationTime\": \"2021-06-07T21:24:53Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"e157f1a1-6837-46fa-8f4f-ef3e7266ab3a\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/e157f1a1-6837-46fa-8f4f-ef3e7266ab3a\",\r\n \"properties\": {\r\n \"accountName\": \"rbactestps12\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:27:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"64c449c8-6fa2-4273-b066-5a062d4418be\",\r\n \"creationTime\": \"2021-06-07T21:27:24Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"72706ac1-0d0a-40be-a30a-1b4af0911131\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/72706ac1-0d0a-40be-a30a-1b4af0911131\",\r\n \"properties\": {\r\n \"accountName\": \"mongo-db0002\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-07T23:44:54Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"dfccb705-08c0-4282-9dad-07ab354ba8e8\",\r\n \"creationTime\": \"2021-06-07T23:44:55Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"41ea7d9e-553f-4259-872f-676c969e9a0b\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/41ea7d9e-553f-4259-872f-676c969e9a0b\",\r\n \"properties\": {\r\n \"accountName\": \"dbaccount27-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-08T17:39:46Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"1db9bff4-73f7-48e1-a506-ab5b3edc8308\",\r\n \"creationTime\": \"2021-06-08T17:39:47Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"ceacd38f-9e6b-4a81-b2f7-ecd341c6fbbd\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/ceacd38f-9e6b-4a81-b2f7-ecd341c6fbbd\",\r\n \"properties\": {\r\n \"accountName\": \"cli125\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-09T19:06:13Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"c2a9bc5f-f37e-4add-a582-52abfb6a36a1\",\r\n \"creationTime\": \"2021-06-09T19:06:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"88d48073-10d1-402e-8cf5-c79e4e2de08e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/88d48073-10d1-402e-8cf5-c79e4e2de08e\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount123\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-09T19:09:54Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"861a2513-08ea-4cf8-817b-99b8282f5013\",\r\n \"creationTime\": \"2021-06-09T19:09:54Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"bb9b3beb-42c4-4ae4-a983-58e20bcd71a5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/bb9b3beb-42c4-4ae4-a983-58e20bcd71a5\",\r\n \"properties\": {\r\n \"accountName\": \"db003\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-09T20:16:40Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a6dda878-4486-437f-bd72-b9e87bf75221\",\r\n \"creationTime\": \"2021-06-09T20:16:41Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9f8ee54b-f275-44fa-b2c5-9983644c131f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9f8ee54b-f275-44fa-b2c5-9983644c131f\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount124\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-10T05:06:02Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"3fe302ed-daee-401c-9897-250919f9a0fe\",\r\n \"creationTime\": \"2021-06-10T05:06:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c2601a38-bee1-400e-bc5e-8d817318cf31\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c2601a38-bee1-400e-bc5e-8d817318cf31\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname7595\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-10T18:00:35Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"0a4ccb11-2cb5-4b81-8ab6-ea10cbb2290d\",\r\n \"creationTime\": \"2021-06-10T18:00:35Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"33035d50-7f15-4450-a71d-a4da4dcd039f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/33035d50-7f15-4450-a71d-a4da4dcd039f\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname4020\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-15T21:27:04Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"5d75295f-2ad7-451c-b27d-8e877e22b075\",\r\n \"creationTime\": \"2021-06-15T21:27:04Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"7d405124-1129-468e-9ff9-d031059c96bc\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/7d405124-1129-468e-9ff9-d031059c96bc\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-16T05:58:55Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d0a6a03f-c045-4275-a38a-b221f5749051\",\r\n \"creationTime\": \"2021-06-16T05:58:55Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d5fe116b-8a63-474e-88a4-afb2a726198e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d5fe116b-8a63-474e-88a4-afb2a726198e\",\r\n \"properties\": {\r\n \"accountName\": \"cli127\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-16T06:57:39Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f9a67f44-e6f6-4270-91c6-d90a0292ac96\",\r\n \"creationTime\": \"2021-06-16T06:57:39Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"1dfe47fb-822c-41f1-b403-1cf6c63d0ba7\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/1dfe47fb-822c-41f1-b403-1cf6c63d0ba7\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname3766\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-16T07:16:12Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"1a05d833-615e-45b0-b2ec-f87ca4d9829c\",\r\n \"creationTime\": \"2021-06-16T07:16:12Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c483a757-4d93-4d60-ae22-04c9d2c89595\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c483a757-4d93-4d60-ae22-04c9d2c89595\",\r\n \"properties\": {\r\n \"accountName\": \"restored2-cosmosdb-1212-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-04T22:17:44Z\",\r\n \"deletionTime\": \"2021-06-05T05:04:42Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"eb5e33f1-8ecf-42b7-9f3f-18784854fc5e\",\r\n \"creationTime\": \"2021-06-04T22:17:44Z\",\r\n \"deletionTime\": \"2021-06-05T05:04:42Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"80458ce3-9b06-4d87-9405-1f47eb88164f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/80458ce3-9b06-4d87-9405-1f47eb88164f\",\r\n \"properties\": {\r\n \"accountName\": \"dbaccount27-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:24:07Z\",\r\n \"deletionTime\": \"2021-06-07T22:30:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a47823ea-6bce-4436-91a1-1dd14a1aa3a7\",\r\n \"creationTime\": \"2021-06-07T21:24:08Z\",\r\n \"deletionTime\": \"2021-06-07T22:30:24Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"3b44efa3-a7e6-414e-99c2-22d63aa1d778\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/3b44efa3-a7e6-414e-99c2-22d63aa1d778\",\r\n \"properties\": {\r\n \"accountName\": \"cli126\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-10T05:07:44Z\",\r\n \"deletionTime\": \"2021-06-15T21:00:15Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"fbc82bdc-1493-4cc4-bd69-2c33c650e3ed\",\r\n \"creationTime\": \"2021-06-10T05:07:45Z\",\r\n \"deletionTime\": \"2021-06-15T21:00:15Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"3bf55696-9845-4ab5-b57c-f955a2ffe3ca\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/3bf55696-9845-4ab5-b57c-f955a2ffe3ca\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-01T23:24:19Z\",\r\n \"deletionTime\": \"2021-06-16T04:58:21Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"1062fb86-a396-4689-9326-83193cf2274b\",\r\n \"creationTime\": \"2021-06-01T23:24:20Z\",\r\n \"deletionTime\": \"2021-06-16T04:58:21Z\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/pitr-mongo32-stage-source?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL3BpdHItc3RhZ2UtcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcGl0ci1tb25nbzMyLXN0YWdlLXNvdXJjZT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e6b59c75-db4a-4aff-b533-61d3428c5964" + "88f15166-347c-4c88-a1aa-62fa9acc60d5" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -414,56 +468,56 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11995" + "11989" ], "x-ms-request-id": [ - "93ec14b0-64bd-4c29-9397-47f6cc11d7d8" + "d494ffe3-cc24-4d5b-bd7e-a70954683973" ], "x-ms-correlation-request-id": [ - "93ec14b0-64bd-4c29-9397-47f6cc11d7d8" + "d494ffe3-cc24-4d5b-bd7e-a70954683973" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T174955Z:93ec14b0-64bd-4c29-9397-47f6cc11d7d8" + "WESTUS2:20210616T071624Z:d494ffe3-cc24-4d5b-bd7e-a70954683973" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:49:54 GMT" + "Wed, 16 Jun 2021 07:16:24 GMT" ], "Content-Length": [ - "2869" + "13637" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/pitr-mongo32-stage-source\",\r\n \"name\": \"pitr-mongo32-stage-source\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-07T21:23:55.1942911Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-mongo32-stage-source.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"instanceId\": \"eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.2\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-mongo32-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo32-stage-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-mongo32-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo32-stage-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"pitr-mongo32-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo32-stage-source-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-mongo32-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo32-stage-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"pitr-mongo32-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo32-stage-source-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-mongo32-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"pitr-mongo32-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": \"fccbe297-cb19-424b-a8d7-e996a6b7b689\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/fccbe297-cb19-424b-a8d7-e996a6b7b689\",\r\n \"properties\": {\r\n \"accountName\": \"mongotestaccount\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-02T19:34:26Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"9f8cab0e-80f5-48b6-bc9f-7f7b3a69afeb\",\r\n \"creationTime\": \"2021-06-02T19:34:27Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c6b53e1d-0dec-4ff2-ab70-2e9d24a3ed27\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c6b53e1d-0dec-4ff2-ab70-2e9d24a3ed27\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-02T23:30:43Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"9961d453-89c2-4daf-bcad-add22d287617\",\r\n \"creationTime\": \"2021-06-02T23:30:43Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"990590c0-4db8-4b0e-96ef-55f0be03615d\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/990590c0-4db8-4b0e-96ef-55f0be03615d\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo32-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-02T23:32:31Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"2d0a8ae4-e622-429c-a2bf-b7b13ada7b45\",\r\n \"creationTime\": \"2021-06-02T23:32:32Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"60a54911-db9e-436f-b282-34779e0a2a7f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/60a54911-db9e-436f-b282-34779e0a2a7f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo36-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-02T23:33:01Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"32163288-85a4-454b-a7d7-d7fbb1f32aeb\",\r\n \"creationTime\": \"2021-06-02T23:33:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"b0736fc7-cb53-4b6f-bd2f-aac904085da4\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/b0736fc7-cb53-4b6f-bd2f-aac904085da4\",\r\n \"properties\": {\r\n \"accountName\": \"mongo-continuous-1212\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-04T22:09:26Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a1f3383c-4e2f-44b5-8348-7323e2356b3d\",\r\n \"creationTime\": \"2021-06-04T22:09:26Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2301188f-cf13-419d-b7c2-5321c5476526\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/2301188f-cf13-419d-b7c2-5321c5476526\",\r\n \"properties\": {\r\n \"accountName\": \"restored-cosmosdb-1212\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:06:02Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"05b3f3ce-59ee-4d28-bd66-09ea5c50790d\",\r\n \"creationTime\": \"2021-06-07T21:06:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"24302a82-123a-487a-bede-054ade2860f1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/24302a82-123a-487a-bede-054ade2860f1\",\r\n \"properties\": {\r\n \"accountName\": \"dbaccount29-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:24:52Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"ede5fb9c-4058-44a6-8dec-29e3e7de9b44\",\r\n \"creationTime\": \"2021-06-07T21:24:53Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"e157f1a1-6837-46fa-8f4f-ef3e7266ab3a\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/e157f1a1-6837-46fa-8f4f-ef3e7266ab3a\",\r\n \"properties\": {\r\n \"accountName\": \"rbactestps12\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:27:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"64c449c8-6fa2-4273-b066-5a062d4418be\",\r\n \"creationTime\": \"2021-06-07T21:27:24Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"72706ac1-0d0a-40be-a30a-1b4af0911131\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/72706ac1-0d0a-40be-a30a-1b4af0911131\",\r\n \"properties\": {\r\n \"accountName\": \"mongo-db0002\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-07T23:44:54Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"dfccb705-08c0-4282-9dad-07ab354ba8e8\",\r\n \"creationTime\": \"2021-06-07T23:44:55Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"41ea7d9e-553f-4259-872f-676c969e9a0b\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/41ea7d9e-553f-4259-872f-676c969e9a0b\",\r\n \"properties\": {\r\n \"accountName\": \"dbaccount27-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-08T17:39:46Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"1db9bff4-73f7-48e1-a506-ab5b3edc8308\",\r\n \"creationTime\": \"2021-06-08T17:39:47Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"ceacd38f-9e6b-4a81-b2f7-ecd341c6fbbd\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/ceacd38f-9e6b-4a81-b2f7-ecd341c6fbbd\",\r\n \"properties\": {\r\n \"accountName\": \"cli125\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-09T19:06:13Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"c2a9bc5f-f37e-4add-a582-52abfb6a36a1\",\r\n \"creationTime\": \"2021-06-09T19:06:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"88d48073-10d1-402e-8cf5-c79e4e2de08e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/88d48073-10d1-402e-8cf5-c79e4e2de08e\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount123\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-09T19:09:54Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"861a2513-08ea-4cf8-817b-99b8282f5013\",\r\n \"creationTime\": \"2021-06-09T19:09:54Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"bb9b3beb-42c4-4ae4-a983-58e20bcd71a5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/bb9b3beb-42c4-4ae4-a983-58e20bcd71a5\",\r\n \"properties\": {\r\n \"accountName\": \"db003\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-09T20:16:40Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a6dda878-4486-437f-bd72-b9e87bf75221\",\r\n \"creationTime\": \"2021-06-09T20:16:41Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9f8ee54b-f275-44fa-b2c5-9983644c131f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9f8ee54b-f275-44fa-b2c5-9983644c131f\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount124\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-10T05:06:02Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"3fe302ed-daee-401c-9897-250919f9a0fe\",\r\n \"creationTime\": \"2021-06-10T05:06:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c2601a38-bee1-400e-bc5e-8d817318cf31\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c2601a38-bee1-400e-bc5e-8d817318cf31\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname7595\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-10T18:00:35Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"0a4ccb11-2cb5-4b81-8ab6-ea10cbb2290d\",\r\n \"creationTime\": \"2021-06-10T18:00:35Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"33035d50-7f15-4450-a71d-a4da4dcd039f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/33035d50-7f15-4450-a71d-a4da4dcd039f\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname4020\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-15T21:27:04Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"5d75295f-2ad7-451c-b27d-8e877e22b075\",\r\n \"creationTime\": \"2021-06-15T21:27:04Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"7d405124-1129-468e-9ff9-d031059c96bc\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/7d405124-1129-468e-9ff9-d031059c96bc\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-16T05:58:55Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d0a6a03f-c045-4275-a38a-b221f5749051\",\r\n \"creationTime\": \"2021-06-16T05:58:55Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d5fe116b-8a63-474e-88a4-afb2a726198e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d5fe116b-8a63-474e-88a4-afb2a726198e\",\r\n \"properties\": {\r\n \"accountName\": \"cli127\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-16T06:57:39Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f9a67f44-e6f6-4270-91c6-d90a0292ac96\",\r\n \"creationTime\": \"2021-06-16T06:57:39Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"1dfe47fb-822c-41f1-b403-1cf6c63d0ba7\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/1dfe47fb-822c-41f1-b403-1cf6c63d0ba7\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname3766\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-16T07:16:12Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"1a05d833-615e-45b0-b2ec-f87ca4d9829c\",\r\n \"creationTime\": \"2021-06-16T07:16:12Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c483a757-4d93-4d60-ae22-04c9d2c89595\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c483a757-4d93-4d60-ae22-04c9d2c89595\",\r\n \"properties\": {\r\n \"accountName\": \"restored2-cosmosdb-1212-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-04T22:17:44Z\",\r\n \"deletionTime\": \"2021-06-05T05:04:42Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"eb5e33f1-8ecf-42b7-9f3f-18784854fc5e\",\r\n \"creationTime\": \"2021-06-04T22:17:44Z\",\r\n \"deletionTime\": \"2021-06-05T05:04:42Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"80458ce3-9b06-4d87-9405-1f47eb88164f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/80458ce3-9b06-4d87-9405-1f47eb88164f\",\r\n \"properties\": {\r\n \"accountName\": \"dbaccount27-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:24:07Z\",\r\n \"deletionTime\": \"2021-06-07T22:30:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a47823ea-6bce-4436-91a1-1dd14a1aa3a7\",\r\n \"creationTime\": \"2021-06-07T21:24:08Z\",\r\n \"deletionTime\": \"2021-06-07T22:30:24Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"3b44efa3-a7e6-414e-99c2-22d63aa1d778\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/3b44efa3-a7e6-414e-99c2-22d63aa1d778\",\r\n \"properties\": {\r\n \"accountName\": \"cli126\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-10T05:07:44Z\",\r\n \"deletionTime\": \"2021-06-15T21:00:15Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"fbc82bdc-1493-4cc4-bd69-2c33c650e3ed\",\r\n \"creationTime\": \"2021-06-10T05:07:45Z\",\r\n \"deletionTime\": \"2021-06-15T21:00:15Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"3bf55696-9845-4ab5-b57c-f955a2ffe3ca\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/3bf55696-9845-4ab5-b57c-f955a2ffe3ca\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-01T23:24:19Z\",\r\n \"deletionTime\": \"2021-06-16T04:58:21Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"1062fb86-a396-4689-9326-83193cf2274b\",\r\n \"creationTime\": \"2021-06-01T23:24:20Z\",\r\n \"deletionTime\": \"2021-06-16T04:58:21Z\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cz9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c6b53e1d-0dec-4ff2-ab70-2e9d24a3ed27?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cy9jNmI1M2UxZC0wZGVjLTRmZjItYWI3MC0yZTlkMjRhM2VkMjc/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f3cee460-0765-4a8c-8ec7-6d4eb42ac868" + "d276a17e-d7c1-4cad-a332-f1cd2861a8a7" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -477,56 +531,116 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11993" + "11996" ], "x-ms-request-id": [ - "14c0566a-4a4a-4c96-9049-d75e53b7a302" + "683a1d31-d898-48a8-9244-204e75a5e930" ], "x-ms-correlation-request-id": [ - "14c0566a-4a4a-4c96-9049-d75e53b7a302" + "683a1d31-d898-48a8-9244-204e75a5e930" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T175041Z:14c0566a-4a4a-4c96-9049-d75e53b7a302" + "WESTUS2:20210616T071621Z:683a1d31-d898-48a8-9244-204e75a5e930" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:50:40 GMT" + "Wed, 16 Jun 2021 07:16:21 GMT" ], "Content-Length": [ - "31293" + "582" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": \"c26d3f43-7363-4c54-940a-bde0e96bda72\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c26d3f43-7363-4c54-940a-bde0e96bda72\",\r\n \"properties\": {\r\n \"accountName\": \"db1024-restored\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-08-14T01:17:36Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"eca195d4-fcaa-4d5f-b01b-20f61f01319f\",\r\n \"creationTime\": \"2020-08-14T01:17:36Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d8974ca8-8f69-4924-9040-c10b7f30524b\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d8974ca8-8f69-4924-9040-c10b7f30524b\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname9746\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-21T18:55:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"775c4324-cba7-4eb3-a8ee-5e1921f7f57b\",\r\n \"creationTime\": \"2020-07-21T18:55:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"aca7d453-88a9-4bf2-8abc-46d21553638f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/aca7d453-88a9-4bf2-8abc-46d21553638f\",\r\n \"properties\": {\r\n \"accountName\": \"db1024\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-21T18:19:37Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a926c9e8-3179-4774-bc1e-fb866407b7db\",\r\n \"creationTime\": \"2020-07-21T18:19:38Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"a54115d5-4356-4771-b7b0-20f475ce5a38\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/a54115d5-4356-4771-b7b0-20f475ce5a38\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-08-13T23:51:16Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d9b09727-2a45-4760-a837-3366c1187358\",\r\n \"creationTime\": \"2020-08-13T23:51:17Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"72ee099a-9209-4fe4-aeb2-8f4954f25eba\",\r\n \"creationTime\": \"2020-08-28T18:50:30Z\"\r\n },\r\n {\r\n \"locationName\": \"Southeast Asia\",\r\n \"regionalDatabaseAccountInstanceId\": \"e5abbaa4-031a-451a-b041-76c6bcd93fa9\",\r\n \"creationTime\": \"2021-02-08T19:29:22Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"bb3e3c48-18d8-46e8-b294-41d9406885c5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/bb3e3c48-18d8-46e8-b294-41d9406885c5\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-cont123\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-08-05T20:32:27Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"2355946d-5d79-4cc4-a521-3a302a9bff85\",\r\n \"creationTime\": \"2020-08-05T20:32:27Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"55083b96-b985-4dec-92df-fa0ac98443f1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/55083b96-b985-4dec-92df-fa0ac98443f1\",\r\n \"properties\": {\r\n \"accountName\": \"selvitest-account\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-23T16:18:43Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"787a81fe-fb41-40da-8b69-a9e18966b4e3\",\r\n \"creationTime\": \"2020-07-23T16:18:43Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"ec72f021-4974-405a-8c78-f74207ff0e12\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/ec72f021-4974-405a-8c78-f74207ff0e12\",\r\n \"properties\": {\r\n \"accountName\": \"selvitest-account-destinationforrestore\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-23T17:39:58Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"11f925e4-b48d-4d16-9ad2-209d1056ec9c\",\r\n \"creationTime\": \"2020-07-23T17:39:58Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"17783e6d-0e28-41e2-b086-9d17763f1d51\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/17783e6d-0e28-41e2-b086-9d17763f1d51\",\r\n \"properties\": {\r\n \"accountName\": \"virangai-test-bk-cont\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-28T22:09:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f74e094e-9b1d-4e16-82b6-a57782f1d187\",\r\n \"creationTime\": \"2020-07-28T22:09:24Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2d90bc37-cd54-4352-9e57-e6aa3f22d494\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/2d90bc37-cd54-4352-9e57-e6aa3f22d494\",\r\n \"properties\": {\r\n \"accountName\": \"selvitest-account-destinationforrestorev2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-23T17:41:22Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"e1dfecef-45cb-4c70-bbd5-393eb3774821\",\r\n \"creationTime\": \"2020-07-23T17:41:22Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"b0c8684b-7f9c-45fe-8ab9-2a74b656867e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/b0c8684b-7f9c-45fe-8ab9-2a74b656867e\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname637428812785768088\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-07T20:03:41Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"59294929-189f-4f8b-af35-740fc0fba9f0\",\r\n \"creationTime\": \"2020-12-07T20:03:41Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo32-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-12-07T21:23:56Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"49174788-8512-4a01-a3ca-38c7857a2635\",\r\n \"creationTime\": \"2020-12-07T21:23:56Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"921dbaed-a5bd-462d-8351-d0eda5e592c0\",\r\n \"creationTime\": \"2020-12-08T23:28:45Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"25a04cf0-89d4-4546-9c30-14d1dc8899df\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/25a04cf0-89d4-4546-9c30-14d1dc8899df\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo36-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-12-07T21:35:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"b52d5178-bc7b-4b2b-a05e-9d3dba85e7fd\",\r\n \"creationTime\": \"2020-12-07T21:35:24Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"b0f33c79-f7b2-421f-9e94-699b0f8c840a\",\r\n \"creationTime\": \"2020-12-08T22:02:23Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"345c785a-e758-4f8b-94d4-0a1259f4f85b\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/345c785a-e758-4f8b-94d4-0a1259f4f85b\",\r\n \"properties\": {\r\n \"accountName\": \"nichatur-restore-test\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-07T23:33:57Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"94eeb20d-16d0-4ee1-ae6a-7f2a0332a1d5\",\r\n \"creationTime\": \"2020-12-07T23:33:57Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"605db505-9267-4cf0-b7ac-27ef644b2ef3\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/605db505-9267-4cf0-b7ac-27ef644b2ef3\",\r\n \"properties\": {\r\n \"accountName\": \"nichatur-restore-test-r1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-07T23:57:59Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"71a2cff6-7e90-43a5-b261-b704fbfaf100\",\r\n \"creationTime\": \"2020-12-07T23:57:59Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"0d00d699-017a-4a76-8639-ab4bec82c5f2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/0d00d699-017a-4a76-8639-ab4bec82c5f2\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname637428989095532319\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-08T00:57:52Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"7c0454e1-f718-48fe-894a-35182a8440d2\",\r\n \"creationTime\": \"2020-12-08T00:57:52Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"73d1010d-f0b7-4673-b8c0-18ddecdcda06\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/73d1010d-f0b7-4673-b8c0-18ddecdcda06\",\r\n \"properties\": {\r\n \"accountName\": \"nichatur-restore-test-r2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-08T22:03:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"c6b5a1f6-2215-49be-9277-aeff5723ab4c\",\r\n \"creationTime\": \"2020-12-08T22:03:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d1535f84-06b5-497b-8768-962ece984001\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d1535f84-06b5-497b-8768-962ece984001\",\r\n \"properties\": {\r\n \"accountName\": \"kal-restore-test\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-15T21:58:32Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f4b8377d-89b3-41dd-9892-79bfbc4d523c\",\r\n \"creationTime\": \"2021-01-15T21:58:32Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9351dd2e-d901-465b-98cb-a74a3aabd49f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9351dd2e-d901-465b-98cb-a74a3aabd49f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-unique-mode-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-03T19:53:25Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"b5ee0cb6-20df-4132-8378-3d2b2bb477f8\",\r\n \"creationTime\": \"2021-02-03T19:53:26Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"222da8e2-da07-46db-9cd2-51a2efb84b9f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/222da8e2-da07-46db-9cd2-51a2efb84b9f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-unique-mode-restored\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-03T20:07:50Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"094b572d-52f6-47bc-92c3-a692588ef6d6\",\r\n \"creationTime\": \"2021-02-03T20:07:50Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"19e4130a-cb83-4a34-85c2-e35dcda149f8\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/19e4130a-cb83-4a34-85c2-e35dcda149f8\",\r\n \"properties\": {\r\n \"accountName\": \"stage-validation-m\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-02-05T04:08:10Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"3f97305a-6a6b-4b38-b200-bea92d78f64a\",\r\n \"creationTime\": \"2021-02-05T04:08:11Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"7cf7aaa4-fe00-48fa-820b-cc632feaa9d7\",\r\n \"creationTime\": \"2021-02-05T04:29:43Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"5939cc7f-0bdd-4790-9ac6-a3b281c64f97\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/5939cc7f-0bdd-4790-9ac6-a3b281c64f97\",\r\n \"properties\": {\r\n \"accountName\": \"multiregion-pitr-billing-test\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-19T00:20:18Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"Southeast Asia\",\r\n \"regionalDatabaseAccountInstanceId\": \"0018e6e6-170f-4e25-b1a5-97e718138e0c\",\r\n \"creationTime\": \"2021-02-19T00:20:18Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"e235a61e-abf7-4e95-bfc2-0e4aa649b874\",\r\n \"creationTime\": \"2021-02-19T00:33:52Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"96aa7f5a-5292-44f3-9d3e-bec163b0de1a\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/96aa7f5a-5292-44f3-9d3e-bec163b0de1a\",\r\n \"properties\": {\r\n \"accountName\": \"restore-pitr-mongo32-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-02-26T18:11:04Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"8c350d54-e45d-4ef7-af55-9f07dc4fe594\",\r\n \"creationTime\": \"2021-02-26T18:11:04Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c02d9298-7cdb-440f-a16b-0dc3c97d6cde\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c02d9298-7cdb-440f-a16b-0dc3c97d6cde\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T04:36:55Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d6e10b03-43cd-4bdc-a1b8-3dfab9fe6beb\",\r\n \"creationTime\": \"2021-03-03T04:36:55Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"00e807ea-76c1-4b2f-afdd-dddc1b15979f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/00e807ea-76c1-4b2f-afdd-dddc1b15979f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T05:01:33Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"683f9f6f-8b7d-4638-a4f2-db9983a9c2d1\",\r\n \"creationTime\": \"2021-03-03T05:01:33Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9766bca9-cc26-4e26-83fe-32cd22fdb83d\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9766bca9-cc26-4e26-83fe-32cd22fdb83d\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-billing-test\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-20T01:08:53Z\",\r\n \"deletionTime\": \"2021-02-04T00:01:29Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"9df768c4-6f3e-4bb8-be73-c8b338f50875\",\r\n \"creationTime\": \"2021-01-20T01:08:53Z\",\r\n \"deletionTime\": \"2021-02-04T00:01:29Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"8e032502-70fc-4495-8546-e69383186c09\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/8e032502-70fc-4495-8546-e69383186c09\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-billing-test-2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-21T05:06:14Z\",\r\n \"deletionTime\": \"2021-02-04T00:01:29Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a994d170-beb1-4f1a-a413-2d5548b171dd\",\r\n \"creationTime\": \"2021-01-21T05:06:14Z\",\r\n \"deletionTime\": \"2021-02-04T00:01:29Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d9e1ccfa-1929-4532-9efb-6100feff0f0e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d9e1ccfa-1929-4532-9efb-6100feff0f0e\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-restored-ror\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-06T19:32:22Z\",\r\n \"deletionTime\": \"2021-02-06T19:40:48Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"95ef85ad-f3dd-490d-aff2-50d6c7c0dd5f\",\r\n \"creationTime\": \"2021-02-06T19:32:22Z\",\r\n \"deletionTime\": \"2021-02-06T19:40:48Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2d7d7e33-9b97-491e-895b-fe7f46f3d86c\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/2d7d7e33-9b97-491e-895b-fe7f46f3d86c\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-10T23:50:26Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:51Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"eb35152b-9da0-44c0-a767-0c643969bf08\",\r\n \"creationTime\": \"2021-02-10T23:50:26Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:51Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"4961ef4a-30d0-484e-ad16-8ba453b14abf\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/4961ef4a-30d0-484e-ad16-8ba453b14abf\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-res\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T04:40:28Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:51Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"5970d071-463b-4f79-92ac-810f199754e9\",\r\n \"creationTime\": \"2021-02-11T04:40:28Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:51Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"ce9e2478-aa44-4bd2-96d4-d23f75dbd994\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/ce9e2478-aa44-4bd2-96d4-d23f75dbd994\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T00:04:43Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:54Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"4d1a5ff8-9393-4dc4-a3b9-1b24e2aeb32c\",\r\n \"creationTime\": \"2021-02-11T00:04:43Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:54Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"f93aff83-e412-471c-86de-e23df6cbeb58\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/f93aff83-e412-471c-86de-e23df6cbeb58\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-restored-readregion\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-07T21:48:30Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:27Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"North Central US\",\r\n \"regionalDatabaseAccountInstanceId\": \"ffac845b-ac41-4bfe-acc1-227406f9f68a\",\r\n \"creationTime\": \"2021-02-07T21:48:30Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:27Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9bb64267-f1d8-4d2a-9367-d16492966dc8\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9bb64267-f1d8-4d2a-9367-d16492966dc8\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-06T18:18:14Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"North Central US\",\r\n \"regionalDatabaseAccountInstanceId\": \"c8fdaea9-e41e-416f-8ab8-ffa9295ad14a\",\r\n \"creationTime\": \"2021-02-07T18:55:04Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\"\r\n },\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"de4ce762-1219-4750-9c25-cead6a9964b3\",\r\n \"creationTime\": \"2021-02-06T18:18:14Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"78bd960f-b8bc-4412-b4e1-f16c5acc599c\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/78bd960f-b8bc-4412-b4e1-f16c5acc599c\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-del-restored\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-06T20:23:29Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"Southeast Asia\",\r\n \"regionalDatabaseAccountInstanceId\": \"753180e8-e128-47e9-98d1-5ce0c6d4f3a8\",\r\n \"creationTime\": \"2021-02-08T19:31:46Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\"\r\n },\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"2524386d-c456-4de9-a314-1acdb94e52a3\",\r\n \"creationTime\": \"2021-02-06T20:23:29Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"67d6981a-3dc7-4e3a-b04a-73c0376d42bb\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/67d6981a-3dc7-4e3a-b04a-73c0376d42bb\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T08:37:02Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:42Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"5f331e43-571c-4fe7-9874-aeafcd2b421c\",\r\n \"creationTime\": \"2021-02-11T08:37:02Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:42Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"5ea690df-46a9-4bf2-910c-0484660978bb\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/5ea690df-46a9-4bf2-910c-0484660978bb\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T08:24:56Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:43Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"29b9a3fe-b375-462d-9221-191fc4ddaa83\",\r\n \"creationTime\": \"2021-02-11T08:24:56Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:43Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"53b3d044-7394-4a06-883d-cf9247f66e3c\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/53b3d044-7394-4a06-883d-cf9247f66e3c\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r3\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T08:49:08Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:44Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a38a83ce-d467-4c81-9f3d-c65697d1c547\",\r\n \"creationTime\": \"2021-02-11T08:49:08Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:44Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"66c4a9a2-7799-474a-9e1e-e56a4b340d62\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/66c4a9a2-7799-474a-9e1e-e56a4b340d62\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r4\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T09:01:06Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:45Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"01869f13-ab6f-451b-8b15-9cb0b369cde2\",\r\n \"creationTime\": \"2021-02-11T09:01:06Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:45Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"674c1551-e35b-4a4d-bd79-fde1f439dbe0\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/674c1551-e35b-4a4d-bd79-fde1f439dbe0\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-17T11:23:16Z\",\r\n \"deletionTime\": \"2021-02-17T15:31:10Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"17329379-801c-4909-999a-421f20fd57c4\",\r\n \"creationTime\": \"2021-02-17T11:23:16Z\",\r\n \"deletionTime\": \"2021-02-17T15:31:10Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"af242175-f3a2-40f4-9c77-10eaf232a2b5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/af242175-f3a2-40f4-9c77-10eaf232a2b5\",\r\n \"properties\": {\r\n \"accountName\": \"dd21234\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-22T09:47:40Z\",\r\n \"deletionTime\": \"2021-02-22T10:59:26Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"66b2c82f-633f-446a-b89e-dba1b13ae92c\",\r\n \"creationTime\": \"2021-02-22T09:47:40Z\",\r\n \"deletionTime\": \"2021-02-22T10:59:26Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"128a528a-5e22-4146-ae62-b32994614cb0\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/128a528a-5e22-4146-ae62-b32994614cb0\",\r\n \"properties\": {\r\n \"accountName\": \"dd21\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-22T09:02:19Z\",\r\n \"deletionTime\": \"2021-02-22T11:00:06Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"ebc69bc4-4865-41d6-a632-aef7a5e2de1d\",\r\n \"creationTime\": \"2021-02-22T09:02:19Z\",\r\n \"deletionTime\": \"2021-02-22T11:00:06Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"3e1a3f5e-dcae-449e-82f7-bbf80cba54c5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/3e1a3f5e-dcae-449e-82f7-bbf80cba54c5\",\r\n \"properties\": {\r\n \"accountName\": \"ddb55\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-24T04:21:43Z\",\r\n \"deletionTime\": \"2021-02-24T07:45:59Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"4dff1afd-82b9-425f-840a-3237bd54478d\",\r\n \"creationTime\": \"2021-02-24T04:21:43Z\",\r\n \"deletionTime\": \"2021-02-24T07:45:59Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d612dc86-9085-444b-a868-fb48c7d368fb\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d612dc86-9085-444b-a868-fb48c7d368fb\",\r\n \"properties\": {\r\n \"accountName\": \"ddb1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-18T11:15:52Z\",\r\n \"deletionTime\": \"2021-02-24T07:46:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"db2b9027-bcdf-4069-be69-074fc2f46d7c\",\r\n \"creationTime\": \"2021-02-18T11:15:52Z\",\r\n \"deletionTime\": \"2021-02-24T07:46:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"0ea5b02f-40bd-4cfd-8406-35286bd00fa2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/0ea5b02f-40bd-4cfd-8406-35286bd00fa2\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-ror\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-24T17:56:15Z\",\r\n \"deletionTime\": \"2021-02-25T10:33:38Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"740afadb-1142-4b13-9fa4-67e857d56a89\",\r\n \"creationTime\": \"2021-02-24T17:56:15Z\",\r\n \"deletionTime\": \"2021-02-25T10:33:38Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"52006c1b-5c7f-43a1-9ae0-b936550aed8a\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/52006c1b-5c7f-43a1-9ae0-b936550aed8a\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-rrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-24T17:40:45Z\",\r\n \"deletionTime\": \"2021-02-25T10:34:20Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a1e3fe50-7548-4b49-aee1-373a142e0c3b\",\r\n \"creationTime\": \"2021-02-24T17:40:45Z\",\r\n \"deletionTime\": \"2021-02-25T10:34:20Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"a578c9d3-1d35-451f-a3df-44e61ed45cfa\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/a578c9d3-1d35-451f-a3df-44e61ed45cfa\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-24T05:19:04Z\",\r\n \"deletionTime\": \"2021-02-25T10:34:35Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"feff600a-c776-422a-a2f7-0cfe03be68b8\",\r\n \"creationTime\": \"2021-02-24T05:19:04Z\",\r\n \"deletionTime\": \"2021-02-25T10:34:35Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"07b7492c-91c3-41bb-9f75-8f25c739ce06\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/07b7492c-91c3-41bb-9f75-8f25c739ce06\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-01T05:56:16Z\",\r\n \"deletionTime\": \"2021-03-02T09:01:04Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"bfbd7d4b-3edf-44da-8aab-eb9cdafe43a7\",\r\n \"creationTime\": \"2021-03-01T05:56:16Z\",\r\n \"deletionTime\": \"2021-03-02T09:01:04Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"db2af171-a342-4d3c-92ff-45e81629341d\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/db2af171-a342-4d3c-92ff-45e81629341d\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-02T10:39:31Z\",\r\n \"deletionTime\": \"2021-03-02T10:41:51Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"4e29876d-a887-4def-a99e-1b7043bb6181\",\r\n \"creationTime\": \"2021-03-02T10:39:31Z\",\r\n \"deletionTime\": \"2021-03-02T10:41:51Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"a76a91b4-489b-4714-b0fc-b98459934920\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/a76a91b4-489b-4714-b0fc-b98459934920\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-02T15:16:36Z\",\r\n \"deletionTime\": \"2021-03-03T04:08:46Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"40bafde5-ffd5-453a-acb4-9c697808790a\",\r\n \"creationTime\": \"2021-03-02T15:16:36Z\",\r\n \"deletionTime\": \"2021-03-03T04:08:46Z\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"name\": \"c6b53e1d-0dec-4ff2-ab70-2e9d24a3ed27\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c6b53e1d-0dec-4ff2-ab70-2e9d24a3ed27\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-02T23:30:43Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"9961d453-89c2-4daf-bcad-add22d287617\",\r\n \"creationTime\": \"2021-06-02T23:30:43Z\"\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/providers/Microsoft.DocumentDB/databaseAccountNames/pitr-mongo32-stage-source?api-version=2021-06-15", + "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnROYW1lcy9waXRyLW1vbmdvMzItc3RhZ2Utc291cmNlP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", + "RequestMethod": "HEAD", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3574ea2a-9196-46be-96bd-3a4e93777a25" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-activity-id": [ + "3574ea2a-9196-46be-96bd-3a4e93777a25" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-tenant-reads": [ + "11998" + ], + "x-ms-request-id": [ + "ad42ab63-9f5c-4761-9593-ead7dc0a9505" + ], + "x-ms-correlation-request-id": [ + "ad42ab63-9f5c-4761-9593-ead7dc0a9505" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T071622Z:ad42ab63-9f5c-4761-9593-ead7dc0a9505" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 07:16:21 GMT" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cz9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/pitr-mongo32-stage-source?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcGl0ci1tb25nbzMyLXN0YWdlLXNvdXJjZT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "9d595a02-4415-4fb0-8651-2db75c372562" + "e8d587bc-fa31-4f7d-bb64-0b47a72b6c69" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -540,56 +654,56 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" + "11995" ], "x-ms-request-id": [ - "d8ab88c5-01d6-4a23-825c-24306b48407d" + "ab5d69f1-f341-4adf-96a7-81e17a4f1848" ], "x-ms-correlation-request-id": [ - "d8ab88c5-01d6-4a23-825c-24306b48407d" + "ab5d69f1-f341-4adf-96a7-81e17a4f1848" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T175137Z:d8ab88c5-01d6-4a23-825c-24306b48407d" + "WESTUS2:20210616T071622Z:ab5d69f1-f341-4adf-96a7-81e17a4f1848" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:51:36 GMT" + "Wed, 16 Jun 2021 07:16:21 GMT" ], "Content-Length": [ - "31293" + "2530" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": \"c26d3f43-7363-4c54-940a-bde0e96bda72\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c26d3f43-7363-4c54-940a-bde0e96bda72\",\r\n \"properties\": {\r\n \"accountName\": \"db1024-restored\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-08-14T01:17:36Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"eca195d4-fcaa-4d5f-b01b-20f61f01319f\",\r\n \"creationTime\": \"2020-08-14T01:17:36Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d8974ca8-8f69-4924-9040-c10b7f30524b\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d8974ca8-8f69-4924-9040-c10b7f30524b\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname9746\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-21T18:55:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"775c4324-cba7-4eb3-a8ee-5e1921f7f57b\",\r\n \"creationTime\": \"2020-07-21T18:55:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"aca7d453-88a9-4bf2-8abc-46d21553638f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/aca7d453-88a9-4bf2-8abc-46d21553638f\",\r\n \"properties\": {\r\n \"accountName\": \"db1024\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-21T18:19:37Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a926c9e8-3179-4774-bc1e-fb866407b7db\",\r\n \"creationTime\": \"2020-07-21T18:19:38Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"a54115d5-4356-4771-b7b0-20f475ce5a38\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/a54115d5-4356-4771-b7b0-20f475ce5a38\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-08-13T23:51:16Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d9b09727-2a45-4760-a837-3366c1187358\",\r\n \"creationTime\": \"2020-08-13T23:51:17Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"72ee099a-9209-4fe4-aeb2-8f4954f25eba\",\r\n \"creationTime\": \"2020-08-28T18:50:30Z\"\r\n },\r\n {\r\n \"locationName\": \"Southeast Asia\",\r\n \"regionalDatabaseAccountInstanceId\": \"e5abbaa4-031a-451a-b041-76c6bcd93fa9\",\r\n \"creationTime\": \"2021-02-08T19:29:22Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"bb3e3c48-18d8-46e8-b294-41d9406885c5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/bb3e3c48-18d8-46e8-b294-41d9406885c5\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-cont123\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-08-05T20:32:27Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"2355946d-5d79-4cc4-a521-3a302a9bff85\",\r\n \"creationTime\": \"2020-08-05T20:32:27Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"55083b96-b985-4dec-92df-fa0ac98443f1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/55083b96-b985-4dec-92df-fa0ac98443f1\",\r\n \"properties\": {\r\n \"accountName\": \"selvitest-account\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-23T16:18:43Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"787a81fe-fb41-40da-8b69-a9e18966b4e3\",\r\n \"creationTime\": \"2020-07-23T16:18:43Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"ec72f021-4974-405a-8c78-f74207ff0e12\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/ec72f021-4974-405a-8c78-f74207ff0e12\",\r\n \"properties\": {\r\n \"accountName\": \"selvitest-account-destinationforrestore\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-23T17:39:58Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"11f925e4-b48d-4d16-9ad2-209d1056ec9c\",\r\n \"creationTime\": \"2020-07-23T17:39:58Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"17783e6d-0e28-41e2-b086-9d17763f1d51\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/17783e6d-0e28-41e2-b086-9d17763f1d51\",\r\n \"properties\": {\r\n \"accountName\": \"virangai-test-bk-cont\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-28T22:09:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f74e094e-9b1d-4e16-82b6-a57782f1d187\",\r\n \"creationTime\": \"2020-07-28T22:09:24Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2d90bc37-cd54-4352-9e57-e6aa3f22d494\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/2d90bc37-cd54-4352-9e57-e6aa3f22d494\",\r\n \"properties\": {\r\n \"accountName\": \"selvitest-account-destinationforrestorev2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-23T17:41:22Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"e1dfecef-45cb-4c70-bbd5-393eb3774821\",\r\n \"creationTime\": \"2020-07-23T17:41:22Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"b0c8684b-7f9c-45fe-8ab9-2a74b656867e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/b0c8684b-7f9c-45fe-8ab9-2a74b656867e\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname637428812785768088\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-07T20:03:41Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"59294929-189f-4f8b-af35-740fc0fba9f0\",\r\n \"creationTime\": \"2020-12-07T20:03:41Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo32-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-12-07T21:23:56Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"49174788-8512-4a01-a3ca-38c7857a2635\",\r\n \"creationTime\": \"2020-12-07T21:23:56Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"921dbaed-a5bd-462d-8351-d0eda5e592c0\",\r\n \"creationTime\": \"2020-12-08T23:28:45Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"25a04cf0-89d4-4546-9c30-14d1dc8899df\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/25a04cf0-89d4-4546-9c30-14d1dc8899df\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo36-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-12-07T21:35:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"b52d5178-bc7b-4b2b-a05e-9d3dba85e7fd\",\r\n \"creationTime\": \"2020-12-07T21:35:24Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"b0f33c79-f7b2-421f-9e94-699b0f8c840a\",\r\n \"creationTime\": \"2020-12-08T22:02:23Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"345c785a-e758-4f8b-94d4-0a1259f4f85b\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/345c785a-e758-4f8b-94d4-0a1259f4f85b\",\r\n \"properties\": {\r\n \"accountName\": \"nichatur-restore-test\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-07T23:33:57Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"94eeb20d-16d0-4ee1-ae6a-7f2a0332a1d5\",\r\n \"creationTime\": \"2020-12-07T23:33:57Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"605db505-9267-4cf0-b7ac-27ef644b2ef3\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/605db505-9267-4cf0-b7ac-27ef644b2ef3\",\r\n \"properties\": {\r\n \"accountName\": \"nichatur-restore-test-r1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-07T23:57:59Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"71a2cff6-7e90-43a5-b261-b704fbfaf100\",\r\n \"creationTime\": \"2020-12-07T23:57:59Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"0d00d699-017a-4a76-8639-ab4bec82c5f2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/0d00d699-017a-4a76-8639-ab4bec82c5f2\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname637428989095532319\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-08T00:57:52Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"7c0454e1-f718-48fe-894a-35182a8440d2\",\r\n \"creationTime\": \"2020-12-08T00:57:52Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"73d1010d-f0b7-4673-b8c0-18ddecdcda06\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/73d1010d-f0b7-4673-b8c0-18ddecdcda06\",\r\n \"properties\": {\r\n \"accountName\": \"nichatur-restore-test-r2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-08T22:03:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"c6b5a1f6-2215-49be-9277-aeff5723ab4c\",\r\n \"creationTime\": \"2020-12-08T22:03:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d1535f84-06b5-497b-8768-962ece984001\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d1535f84-06b5-497b-8768-962ece984001\",\r\n \"properties\": {\r\n \"accountName\": \"kal-restore-test\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-15T21:58:32Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f4b8377d-89b3-41dd-9892-79bfbc4d523c\",\r\n \"creationTime\": \"2021-01-15T21:58:32Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9351dd2e-d901-465b-98cb-a74a3aabd49f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9351dd2e-d901-465b-98cb-a74a3aabd49f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-unique-mode-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-03T19:53:25Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"b5ee0cb6-20df-4132-8378-3d2b2bb477f8\",\r\n \"creationTime\": \"2021-02-03T19:53:26Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"222da8e2-da07-46db-9cd2-51a2efb84b9f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/222da8e2-da07-46db-9cd2-51a2efb84b9f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-unique-mode-restored\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-03T20:07:50Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"094b572d-52f6-47bc-92c3-a692588ef6d6\",\r\n \"creationTime\": \"2021-02-03T20:07:50Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"19e4130a-cb83-4a34-85c2-e35dcda149f8\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/19e4130a-cb83-4a34-85c2-e35dcda149f8\",\r\n \"properties\": {\r\n \"accountName\": \"stage-validation-m\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-02-05T04:08:10Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"3f97305a-6a6b-4b38-b200-bea92d78f64a\",\r\n \"creationTime\": \"2021-02-05T04:08:11Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"7cf7aaa4-fe00-48fa-820b-cc632feaa9d7\",\r\n \"creationTime\": \"2021-02-05T04:29:43Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"5939cc7f-0bdd-4790-9ac6-a3b281c64f97\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/5939cc7f-0bdd-4790-9ac6-a3b281c64f97\",\r\n \"properties\": {\r\n \"accountName\": \"multiregion-pitr-billing-test\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-19T00:20:18Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"Southeast Asia\",\r\n \"regionalDatabaseAccountInstanceId\": \"0018e6e6-170f-4e25-b1a5-97e718138e0c\",\r\n \"creationTime\": \"2021-02-19T00:20:18Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"e235a61e-abf7-4e95-bfc2-0e4aa649b874\",\r\n \"creationTime\": \"2021-02-19T00:33:52Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"96aa7f5a-5292-44f3-9d3e-bec163b0de1a\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/96aa7f5a-5292-44f3-9d3e-bec163b0de1a\",\r\n \"properties\": {\r\n \"accountName\": \"restore-pitr-mongo32-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-02-26T18:11:04Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"8c350d54-e45d-4ef7-af55-9f07dc4fe594\",\r\n \"creationTime\": \"2021-02-26T18:11:04Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c02d9298-7cdb-440f-a16b-0dc3c97d6cde\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c02d9298-7cdb-440f-a16b-0dc3c97d6cde\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T04:36:55Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d6e10b03-43cd-4bdc-a1b8-3dfab9fe6beb\",\r\n \"creationTime\": \"2021-03-03T04:36:55Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"00e807ea-76c1-4b2f-afdd-dddc1b15979f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/00e807ea-76c1-4b2f-afdd-dddc1b15979f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T05:01:33Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"683f9f6f-8b7d-4638-a4f2-db9983a9c2d1\",\r\n \"creationTime\": \"2021-03-03T05:01:33Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9766bca9-cc26-4e26-83fe-32cd22fdb83d\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9766bca9-cc26-4e26-83fe-32cd22fdb83d\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-billing-test\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-20T01:08:53Z\",\r\n \"deletionTime\": \"2021-02-04T00:01:29Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"9df768c4-6f3e-4bb8-be73-c8b338f50875\",\r\n \"creationTime\": \"2021-01-20T01:08:53Z\",\r\n \"deletionTime\": \"2021-02-04T00:01:29Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"8e032502-70fc-4495-8546-e69383186c09\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/8e032502-70fc-4495-8546-e69383186c09\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-billing-test-2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-21T05:06:14Z\",\r\n \"deletionTime\": \"2021-02-04T00:01:29Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a994d170-beb1-4f1a-a413-2d5548b171dd\",\r\n \"creationTime\": \"2021-01-21T05:06:14Z\",\r\n \"deletionTime\": \"2021-02-04T00:01:29Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d9e1ccfa-1929-4532-9efb-6100feff0f0e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d9e1ccfa-1929-4532-9efb-6100feff0f0e\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-restored-ror\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-06T19:32:22Z\",\r\n \"deletionTime\": \"2021-02-06T19:40:48Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"95ef85ad-f3dd-490d-aff2-50d6c7c0dd5f\",\r\n \"creationTime\": \"2021-02-06T19:32:22Z\",\r\n \"deletionTime\": \"2021-02-06T19:40:48Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2d7d7e33-9b97-491e-895b-fe7f46f3d86c\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/2d7d7e33-9b97-491e-895b-fe7f46f3d86c\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-10T23:50:26Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:51Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"eb35152b-9da0-44c0-a767-0c643969bf08\",\r\n \"creationTime\": \"2021-02-10T23:50:26Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:51Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"4961ef4a-30d0-484e-ad16-8ba453b14abf\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/4961ef4a-30d0-484e-ad16-8ba453b14abf\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-res\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T04:40:28Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:51Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"5970d071-463b-4f79-92ac-810f199754e9\",\r\n \"creationTime\": \"2021-02-11T04:40:28Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:51Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"ce9e2478-aa44-4bd2-96d4-d23f75dbd994\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/ce9e2478-aa44-4bd2-96d4-d23f75dbd994\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T00:04:43Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:54Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"4d1a5ff8-9393-4dc4-a3b9-1b24e2aeb32c\",\r\n \"creationTime\": \"2021-02-11T00:04:43Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:54Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"f93aff83-e412-471c-86de-e23df6cbeb58\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/f93aff83-e412-471c-86de-e23df6cbeb58\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-restored-readregion\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-07T21:48:30Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:27Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"North Central US\",\r\n \"regionalDatabaseAccountInstanceId\": \"ffac845b-ac41-4bfe-acc1-227406f9f68a\",\r\n \"creationTime\": \"2021-02-07T21:48:30Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:27Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9bb64267-f1d8-4d2a-9367-d16492966dc8\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9bb64267-f1d8-4d2a-9367-d16492966dc8\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-06T18:18:14Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"North Central US\",\r\n \"regionalDatabaseAccountInstanceId\": \"c8fdaea9-e41e-416f-8ab8-ffa9295ad14a\",\r\n \"creationTime\": \"2021-02-07T18:55:04Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\"\r\n },\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"de4ce762-1219-4750-9c25-cead6a9964b3\",\r\n \"creationTime\": \"2021-02-06T18:18:14Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"78bd960f-b8bc-4412-b4e1-f16c5acc599c\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/78bd960f-b8bc-4412-b4e1-f16c5acc599c\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-del-restored\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-06T20:23:29Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"Southeast Asia\",\r\n \"regionalDatabaseAccountInstanceId\": \"753180e8-e128-47e9-98d1-5ce0c6d4f3a8\",\r\n \"creationTime\": \"2021-02-08T19:31:46Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\"\r\n },\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"2524386d-c456-4de9-a314-1acdb94e52a3\",\r\n \"creationTime\": \"2021-02-06T20:23:29Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"67d6981a-3dc7-4e3a-b04a-73c0376d42bb\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/67d6981a-3dc7-4e3a-b04a-73c0376d42bb\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T08:37:02Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:42Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"5f331e43-571c-4fe7-9874-aeafcd2b421c\",\r\n \"creationTime\": \"2021-02-11T08:37:02Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:42Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"5ea690df-46a9-4bf2-910c-0484660978bb\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/5ea690df-46a9-4bf2-910c-0484660978bb\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T08:24:56Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:43Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"29b9a3fe-b375-462d-9221-191fc4ddaa83\",\r\n \"creationTime\": \"2021-02-11T08:24:56Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:43Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"53b3d044-7394-4a06-883d-cf9247f66e3c\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/53b3d044-7394-4a06-883d-cf9247f66e3c\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r3\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T08:49:08Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:44Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a38a83ce-d467-4c81-9f3d-c65697d1c547\",\r\n \"creationTime\": \"2021-02-11T08:49:08Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:44Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"66c4a9a2-7799-474a-9e1e-e56a4b340d62\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/66c4a9a2-7799-474a-9e1e-e56a4b340d62\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r4\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T09:01:06Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:45Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"01869f13-ab6f-451b-8b15-9cb0b369cde2\",\r\n \"creationTime\": \"2021-02-11T09:01:06Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:45Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"674c1551-e35b-4a4d-bd79-fde1f439dbe0\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/674c1551-e35b-4a4d-bd79-fde1f439dbe0\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-17T11:23:16Z\",\r\n \"deletionTime\": \"2021-02-17T15:31:10Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"17329379-801c-4909-999a-421f20fd57c4\",\r\n \"creationTime\": \"2021-02-17T11:23:16Z\",\r\n \"deletionTime\": \"2021-02-17T15:31:10Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"af242175-f3a2-40f4-9c77-10eaf232a2b5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/af242175-f3a2-40f4-9c77-10eaf232a2b5\",\r\n \"properties\": {\r\n \"accountName\": \"dd21234\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-22T09:47:40Z\",\r\n \"deletionTime\": \"2021-02-22T10:59:26Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"66b2c82f-633f-446a-b89e-dba1b13ae92c\",\r\n \"creationTime\": \"2021-02-22T09:47:40Z\",\r\n \"deletionTime\": \"2021-02-22T10:59:26Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"128a528a-5e22-4146-ae62-b32994614cb0\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/128a528a-5e22-4146-ae62-b32994614cb0\",\r\n \"properties\": {\r\n \"accountName\": \"dd21\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-22T09:02:19Z\",\r\n \"deletionTime\": \"2021-02-22T11:00:06Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"ebc69bc4-4865-41d6-a632-aef7a5e2de1d\",\r\n \"creationTime\": \"2021-02-22T09:02:19Z\",\r\n \"deletionTime\": \"2021-02-22T11:00:06Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"3e1a3f5e-dcae-449e-82f7-bbf80cba54c5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/3e1a3f5e-dcae-449e-82f7-bbf80cba54c5\",\r\n \"properties\": {\r\n \"accountName\": \"ddb55\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-24T04:21:43Z\",\r\n \"deletionTime\": \"2021-02-24T07:45:59Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"4dff1afd-82b9-425f-840a-3237bd54478d\",\r\n \"creationTime\": \"2021-02-24T04:21:43Z\",\r\n \"deletionTime\": \"2021-02-24T07:45:59Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d612dc86-9085-444b-a868-fb48c7d368fb\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d612dc86-9085-444b-a868-fb48c7d368fb\",\r\n \"properties\": {\r\n \"accountName\": \"ddb1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-18T11:15:52Z\",\r\n \"deletionTime\": \"2021-02-24T07:46:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"db2b9027-bcdf-4069-be69-074fc2f46d7c\",\r\n \"creationTime\": \"2021-02-18T11:15:52Z\",\r\n \"deletionTime\": \"2021-02-24T07:46:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"0ea5b02f-40bd-4cfd-8406-35286bd00fa2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/0ea5b02f-40bd-4cfd-8406-35286bd00fa2\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-ror\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-24T17:56:15Z\",\r\n \"deletionTime\": \"2021-02-25T10:33:38Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"740afadb-1142-4b13-9fa4-67e857d56a89\",\r\n \"creationTime\": \"2021-02-24T17:56:15Z\",\r\n \"deletionTime\": \"2021-02-25T10:33:38Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"52006c1b-5c7f-43a1-9ae0-b936550aed8a\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/52006c1b-5c7f-43a1-9ae0-b936550aed8a\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-rrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-24T17:40:45Z\",\r\n \"deletionTime\": \"2021-02-25T10:34:20Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a1e3fe50-7548-4b49-aee1-373a142e0c3b\",\r\n \"creationTime\": \"2021-02-24T17:40:45Z\",\r\n \"deletionTime\": \"2021-02-25T10:34:20Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"a578c9d3-1d35-451f-a3df-44e61ed45cfa\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/a578c9d3-1d35-451f-a3df-44e61ed45cfa\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-24T05:19:04Z\",\r\n \"deletionTime\": \"2021-02-25T10:34:35Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"feff600a-c776-422a-a2f7-0cfe03be68b8\",\r\n \"creationTime\": \"2021-02-24T05:19:04Z\",\r\n \"deletionTime\": \"2021-02-25T10:34:35Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"07b7492c-91c3-41bb-9f75-8f25c739ce06\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/07b7492c-91c3-41bb-9f75-8f25c739ce06\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-01T05:56:16Z\",\r\n \"deletionTime\": \"2021-03-02T09:01:04Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"bfbd7d4b-3edf-44da-8aab-eb9cdafe43a7\",\r\n \"creationTime\": \"2021-03-01T05:56:16Z\",\r\n \"deletionTime\": \"2021-03-02T09:01:04Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"db2af171-a342-4d3c-92ff-45e81629341d\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/db2af171-a342-4d3c-92ff-45e81629341d\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-02T10:39:31Z\",\r\n \"deletionTime\": \"2021-03-02T10:41:51Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"4e29876d-a887-4def-a99e-1b7043bb6181\",\r\n \"creationTime\": \"2021-03-02T10:39:31Z\",\r\n \"deletionTime\": \"2021-03-02T10:41:51Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"a76a91b4-489b-4714-b0fc-b98459934920\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/a76a91b4-489b-4714-b0fc-b98459934920\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-02T15:16:36Z\",\r\n \"deletionTime\": \"2021-03-03T04:08:46Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"40bafde5-ffd5-453a-acb4-9c697808790a\",\r\n \"creationTime\": \"2021-03-02T15:16:36Z\",\r\n \"deletionTime\": \"2021-03-03T04:08:46Z\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/pitr-mongo32-stage-source\",\r\n \"name\": \"pitr-mongo32-stage-source\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-02T23:32:30.6744226Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-mongo32-stage-source.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://pitr-mongo32-stage-source.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"990590c0-4db8-4b0e-96ef-55f0be03615d\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"4.0\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-mongo32-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo32-stage-source-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-mongo32-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo32-stage-source-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-mongo32-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo32-stage-source-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-mongo32-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cy9lYWRhYzdlMi02MWYwLTRlMDctYWFhMS05ZGJiNDk1ZWM1YTg/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/990590c0-4db8-4b0e-96ef-55f0be03615d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cy85OTA1OTBjMC00ZGI4LTRiMGUtOTZlZi01NWYwYmUwMzYxNWQ/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c0387d09-2822-49ea-a453-1e2801822015" + "1802f477-28f1-41ee-b3b7-3ec2cbdc649f" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -603,7 +717,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -612,47 +726,107 @@ "11992" ], "x-ms-request-id": [ - "7d382907-3350-40bb-9927-05369c5e3004" + "b27378ee-fda6-4dd7-8148-619403852509" ], "x-ms-correlation-request-id": [ - "7d382907-3350-40bb-9927-05369c5e3004" + "b27378ee-fda6-4dd7-8148-619403852509" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T175050Z:7d382907-3350-40bb-9927-05369c5e3004" + "WESTUS2:20210616T071623Z:b27378ee-fda6-4dd7-8148-619403852509" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:50:49 GMT" + "Wed, 16 Jun 2021 07:16:22 GMT" ], "Content-Length": [ - "732" + "590" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"name\": \"eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo32-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-12-07T21:23:56Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"49174788-8512-4a01-a3ca-38c7857a2635\",\r\n \"creationTime\": \"2020-12-07T21:23:56Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"921dbaed-a5bd-462d-8351-d0eda5e592c0\",\r\n \"creationTime\": \"2020-12-08T23:28:45Z\"\r\n }\r\n ]\r\n }\r\n}", + "ResponseBody": "{\r\n \"name\": \"990590c0-4db8-4b0e-96ef-55f0be03615d\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/990590c0-4db8-4b0e-96ef-55f0be03615d\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo32-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-02T23:32:31Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"2d0a8ae4-e622-429c-a2bf-b7b13ada7b45\",\r\n \"creationTime\": \"2021-06-02T23:32:32Z\"\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/providers/Microsoft.DocumentDB/databaseAccountNames/pitr-mongo36-stage-source?api-version=2021-06-15", + "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnROYW1lcy9waXRyLW1vbmdvMzYtc3RhZ2Utc291cmNlP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", + "RequestMethod": "HEAD", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d252fac7-efc5-4529-abaf-86670594fa1b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-activity-id": [ + "d252fac7-efc5-4529-abaf-86670594fa1b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-tenant-reads": [ + "11997" + ], + "x-ms-request-id": [ + "825d9411-6244-40d0-a488-b988bf77b896" + ], + "x-ms-correlation-request-id": [ + "825d9411-6244-40d0-a488-b988bf77b896" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T071623Z:825d9411-6244-40d0-a488-b988bf77b896" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 07:16:23 GMT" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/pitr-mongo36-stage-source?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL3BpdHItc3RhZ2UtcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcGl0ci1tb25nbzM2LXN0YWdlLXNvdXJjZT9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/pitr-mongo36-stage-source?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcGl0ci1tb25nbzM2LXN0YWdlLXNvdXJjZT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "20af1dba-a212-4b2d-9063-d25cbd8e0e98" + "f28d8a4a-7c19-4a60-ae51-7b7932d0ebed" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -666,7 +840,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -675,47 +849,47 @@ "11991" ], "x-ms-request-id": [ - "7108229a-91ea-4776-86e6-65213ddbf8ce" + "f483fb47-63d1-41ce-8a03-3feb2a5815b6" ], "x-ms-correlation-request-id": [ - "7108229a-91ea-4776-86e6-65213ddbf8ce" + "f483fb47-63d1-41ce-8a03-3feb2a5815b6" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T175050Z:7108229a-91ea-4776-86e6-65213ddbf8ce" + "WESTUS2:20210616T071623Z:f483fb47-63d1-41ce-8a03-3feb2a5815b6" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:50:49 GMT" + "Wed, 16 Jun 2021 07:16:23 GMT" ], "Content-Length": [ - "2977" + "2530" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/pitr-mongo36-stage-source\",\r\n \"name\": \"pitr-mongo36-stage-source\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-07T21:35:23.3656995Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-mongo36-stage-source.documents-staging.windows-ppe.net:443/\",\r\n \"mongoEndpoint\": \"https://pitr-mongo36-stage-source.mongo.cosmos.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"instanceId\": \"25a04cf0-89d4-4546-9c30-14d1dc8899df\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"3.6\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-mongo36-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo36-stage-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-mongo36-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo36-stage-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"pitr-mongo36-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo36-stage-source-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-mongo36-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo36-stage-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"pitr-mongo36-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo36-stage-source-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-mongo36-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"pitr-mongo36-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/pitr-mongo36-stage-source\",\r\n \"name\": \"pitr-mongo36-stage-source\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"MongoDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Azure Cosmos DB for MongoDB API\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-02T23:33:00.4293513Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-mongo36-stage-source.documents.azure.com:443/\",\r\n \"mongoEndpoint\": \"https://pitr-mongo36-stage-source.mongo.cosmos.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"MongoDB\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"FullFidelity\"\r\n },\r\n \"instanceId\": \"60a54911-db9e-436f-b282-34779e0a2a7f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"apiProperties\": {\r\n \"serverVersion\": \"4.0\"\r\n },\r\n \"configurationOverrides\": {\r\n \"EnableBsonSchema\": \"True\"\r\n },\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-mongo36-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo36-stage-source-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-mongo36-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo36-stage-source-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-mongo36-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-mongo36-stage-source-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-mongo36-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [\r\n {\r\n \"name\": \"EnableMongo\"\r\n },\r\n {\r\n \"name\": \"DisableRateLimitingResponses\"\r\n }\r\n ],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/25a04cf0-89d4-4546-9c30-14d1dc8899df?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cy8yNWEwNGNmMC04OWQ0LTQ1NDYtOWMzMC0xNGQxZGM4ODk5ZGY/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/60a54911-db9e-436f-b282-34779e0a2a7f?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cy82MGE1NDkxMS1kYjllLTQzNmYtYjI4Mi0zNDc3OWUwYTJhN2Y/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "4d2fbbe5-f671-46e4-afd0-901a9b36248e" + "aa35c75a-d512-465d-9216-ae6188ff8bde" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -729,7 +903,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -738,33 +912,33 @@ "11988" ], "x-ms-request-id": [ - "3c69aca2-d0ea-42e8-bc9b-f7946d6bca41" + "8b7f9ead-e3f1-474e-bc83-8067f106a5ce" ], "x-ms-correlation-request-id": [ - "3c69aca2-d0ea-42e8-bc9b-f7946d6bca41" + "8b7f9ead-e3f1-474e-bc83-8067f106a5ce" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T175146Z:3c69aca2-d0ea-42e8-bc9b-f7946d6bca41" + "WESTUS2:20210616T071625Z:8b7f9ead-e3f1-474e-bc83-8067f106a5ce" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:51:45 GMT" + "Wed, 16 Jun 2021 07:16:24 GMT" ], "Content-Length": [ - "732" + "590" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"name\": \"25a04cf0-89d4-4546-9c30-14d1dc8899df\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/25a04cf0-89d4-4546-9c30-14d1dc8899df\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo36-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-12-07T21:35:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"b52d5178-bc7b-4b2b-a05e-9d3dba85e7fd\",\r\n \"creationTime\": \"2020-12-07T21:35:24Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"b0f33c79-f7b2-421f-9e94-699b0f8c840a\",\r\n \"creationTime\": \"2020-12-08T22:02:23Z\"\r\n }\r\n ]\r\n }\r\n}", + "ResponseBody": "{\r\n \"name\": \"60a54911-db9e-436f-b282-34779e0a2a7f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/60a54911-db9e-436f-b282-34779e0a2a7f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo36-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-02T23:33:01Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"32163288-85a4-454b-a7d7-d7fbb1f32aeb\",\r\n \"creationTime\": \"2021-06-02T23:33:02Z\"\r\n }\r\n ]\r\n }\r\n}", "StatusCode": 200 } ], "Names": {}, "Variables": { - "SubscriptionId": "80be3961-0521-4a0a-8570-5cd5a4e2f98c" + "SubscriptionId": "259fbb24-9bcd-4cfc-865c-fc33b22fe38a" } } \ No newline at end of file diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/RestoreDatabaseAccountOperationsTests/RestoreDatabaseAccountTests.json b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/RestoreDatabaseAccountOperationsTests/RestoreDatabaseAccountTests.json index 640b328f5044..d239541855f9 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/RestoreDatabaseAccountOperationsTests/RestoreDatabaseAccountTests.json +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/RestoreDatabaseAccountOperationsTests/RestoreDatabaseAccountTests.json @@ -1,22 +1,22 @@ { "Entries": [ { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/pitr-sql-stage-source?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL3BpdHItc3RhZ2UtcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcGl0ci1zcWwtc3RhZ2Utc291cmNlP2FwaS12ZXJzaW9uPTIwMjEtMDMtMDEtcHJldmlldw==", - "RequestMethod": "GET", + "RequestUri": "/providers/Microsoft.DocumentDB/databaseAccountNames/sqltestaccount124?api-version=2021-06-15", + "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnROYW1lcy9zcWx0ZXN0YWNjb3VudDEyND9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "HEAD", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "10c3ab0d-c6ef-4f5c-93f1-c2b1ef897771" + "aeb3b42a-558a-400f-8373-15d0614f87a7" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -29,57 +29,54 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-gatewayversion": [ - "version=2.11.0" + "x-ms-activity-id": [ + "aeb3b42a-558a-400f-8373-15d0614f87a7" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ + "x-ms-ratelimit-remaining-tenant-reads": [ "11999" ], "x-ms-request-id": [ - "6d03d350-0c39-4dd3-80f0-ce2c645d70a9" + "bceb70e2-c13b-490a-b00c-8359ff15a07d" ], "x-ms-correlation-request-id": [ - "6d03d350-0c39-4dd3-80f0-ce2c645d70a9" + "bceb70e2-c13b-490a-b00c-8359ff15a07d" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T173555Z:6d03d350-0c39-4dd3-80f0-ce2c645d70a9" + "WESTUS2:20210616T070137Z:bceb70e2-c13b-490a-b00c-8359ff15a07d" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:35:55 GMT" + "Wed, 16 Jun 2021 07:01:37 GMT" ], "Content-Length": [ - "2749" - ], - "Content-Type": [ - "application/json" + "0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/pitr-sql-stage-source\",\r\n \"name\": \"pitr-sql-stage-source\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2020-12-08T18:18:46.0964181Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"instanceId\": \"9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"connectorOffer\": \"\",\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"pitr-sql-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n },\r\n {\r\n \"id\": \"pitr-sql-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-eastus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 1,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"pitr-sql-stage-source-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n },\r\n {\r\n \"id\": \"pitr-sql-stage-source-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 1\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002/graphs/gremlinGraphName1002?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXMvZGF0YWJhc2VOYW1lMTAwMi9ncmFwaHMvZ3JlbWxpbkdyYXBoTmFtZTEwMDI/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", - "RequestMethod": "DELETE", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/sqltestaccount124?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvc3FsdGVzdGFjY291bnQxMjQ/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", + "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "293b764b-59dc-4135-a348-008cc29dc088" + "c5f50320-ad00-49b7-896c-6965169e3a1f" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -89,66 +86,60 @@ "Pragma": [ "no-cache" ], - "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002/graphs/gremlinGraphName1002/operationResults/50e025d8-5e4d-444e-b630-bbc6cb343851?api-version=2021-03-01-preview" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/50e025d8-5e4d-444e-b630-bbc6cb343851?api-version=2021-03-01-preview" - ], - "x-ms-request-id": [ - "50e025d8-5e4d-444e-b630-bbc6cb343851" - ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "23414c5d-423f-42b3-a156-90e2530bb0c7" ], "x-ms-correlation-request-id": [ - "2a0ec988-ee2c-4f93-a76f-213378c3df16" + "23414c5d-423f-42b3-a156-90e2530bb0c7" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T173555Z:2a0ec988-ee2c-4f93-a76f-213378c3df16" + "WESTUS2:20210616T070138Z:23414c5d-423f-42b3-a156-90e2530bb0c7" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:35:55 GMT" + "Wed, 16 Jun 2021 07:01:38 GMT" ], "Content-Length": [ - "21" + "2226" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", - "StatusCode": 202 + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/sqltestaccount124\",\r\n \"name\": \"sqltestaccount124\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-10T05:06:01.1543083Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://sqltestaccount124.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {\r\n \"analyticalStorageSchemaType\": \"WellDefined\"\r\n },\r\n \"instanceId\": \"9f8ee54b-f275-44fa-b2c5-9983644c131f\",\r\n \"createMode\": \"Default\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"sqltestaccount124-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sqltestaccount124-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"sqltestaccount124-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sqltestaccount124-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"sqltestaccount124-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sqltestaccount124-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"sqltestaccount124-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName21002?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXMvZGF0YWJhc2VOYW1lMjEwMDI/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", - "RequestMethod": "DELETE", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "eabbefff-c8e3-4037-a07f-aafa5c989b07" + "8bba4223-8fa6-4fd8-badb-2d417aeec8c2" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -158,66 +149,66 @@ "Pragma": [ "no-cache" ], - "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName21002/operationResults/62f1cb52-4ca2-4e44-8fe7-dce4b164befc?api-version=2021-03-01-preview" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/62f1cb52-4ca2-4e44-8fe7-dce4b164befc?api-version=2021-03-01-preview" - ], - "x-ms-request-id": [ - "62f1cb52-4ca2-4e44-8fe7-dce4b164befc" - ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "566e52f2-afec-4e11-bb51-20e2f559534b" ], "x-ms-correlation-request-id": [ - "c02dc795-0ff8-41f0-8afd-9d89c6dba274" + "566e52f2-afec-4e11-bb51-20e2f559534b" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T173556Z:c02dc795-0ff8-41f0-8afd-9d89c6dba274" + "WESTUS2:20210616T070138Z:566e52f2-afec-4e11-bb51-20e2f559534b" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:35:55 GMT" + "Wed, 16 Jun 2021 07:01:38 GMT" ], "Content-Length": [ - "21" + "13052" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", - "StatusCode": 202 + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": \"fccbe297-cb19-424b-a8d7-e996a6b7b689\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/fccbe297-cb19-424b-a8d7-e996a6b7b689\",\r\n \"properties\": {\r\n \"accountName\": \"mongotestaccount\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-02T19:34:26Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"9f8cab0e-80f5-48b6-bc9f-7f7b3a69afeb\",\r\n \"creationTime\": \"2021-06-02T19:34:27Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c6b53e1d-0dec-4ff2-ab70-2e9d24a3ed27\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c6b53e1d-0dec-4ff2-ab70-2e9d24a3ed27\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-02T23:30:43Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"9961d453-89c2-4daf-bcad-add22d287617\",\r\n \"creationTime\": \"2021-06-02T23:30:43Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"990590c0-4db8-4b0e-96ef-55f0be03615d\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/990590c0-4db8-4b0e-96ef-55f0be03615d\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo32-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-02T23:32:31Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"2d0a8ae4-e622-429c-a2bf-b7b13ada7b45\",\r\n \"creationTime\": \"2021-06-02T23:32:32Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"60a54911-db9e-436f-b282-34779e0a2a7f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/60a54911-db9e-436f-b282-34779e0a2a7f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo36-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-02T23:33:01Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"32163288-85a4-454b-a7d7-d7fbb1f32aeb\",\r\n \"creationTime\": \"2021-06-02T23:33:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"b0736fc7-cb53-4b6f-bd2f-aac904085da4\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/b0736fc7-cb53-4b6f-bd2f-aac904085da4\",\r\n \"properties\": {\r\n \"accountName\": \"mongo-continuous-1212\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-04T22:09:26Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a1f3383c-4e2f-44b5-8348-7323e2356b3d\",\r\n \"creationTime\": \"2021-06-04T22:09:26Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2301188f-cf13-419d-b7c2-5321c5476526\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/2301188f-cf13-419d-b7c2-5321c5476526\",\r\n \"properties\": {\r\n \"accountName\": \"restored-cosmosdb-1212\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:06:02Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"05b3f3ce-59ee-4d28-bd66-09ea5c50790d\",\r\n \"creationTime\": \"2021-06-07T21:06:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"24302a82-123a-487a-bede-054ade2860f1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/24302a82-123a-487a-bede-054ade2860f1\",\r\n \"properties\": {\r\n \"accountName\": \"dbaccount29-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:24:52Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"ede5fb9c-4058-44a6-8dec-29e3e7de9b44\",\r\n \"creationTime\": \"2021-06-07T21:24:53Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"e157f1a1-6837-46fa-8f4f-ef3e7266ab3a\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/e157f1a1-6837-46fa-8f4f-ef3e7266ab3a\",\r\n \"properties\": {\r\n \"accountName\": \"rbactestps12\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:27:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"64c449c8-6fa2-4273-b066-5a062d4418be\",\r\n \"creationTime\": \"2021-06-07T21:27:24Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"72706ac1-0d0a-40be-a30a-1b4af0911131\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/72706ac1-0d0a-40be-a30a-1b4af0911131\",\r\n \"properties\": {\r\n \"accountName\": \"mongo-db0002\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-07T23:44:54Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"dfccb705-08c0-4282-9dad-07ab354ba8e8\",\r\n \"creationTime\": \"2021-06-07T23:44:55Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"41ea7d9e-553f-4259-872f-676c969e9a0b\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/41ea7d9e-553f-4259-872f-676c969e9a0b\",\r\n \"properties\": {\r\n \"accountName\": \"dbaccount27-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-08T17:39:46Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"1db9bff4-73f7-48e1-a506-ab5b3edc8308\",\r\n \"creationTime\": \"2021-06-08T17:39:47Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"ceacd38f-9e6b-4a81-b2f7-ecd341c6fbbd\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/ceacd38f-9e6b-4a81-b2f7-ecd341c6fbbd\",\r\n \"properties\": {\r\n \"accountName\": \"cli125\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-09T19:06:13Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"c2a9bc5f-f37e-4add-a582-52abfb6a36a1\",\r\n \"creationTime\": \"2021-06-09T19:06:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"88d48073-10d1-402e-8cf5-c79e4e2de08e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/88d48073-10d1-402e-8cf5-c79e4e2de08e\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount123\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-09T19:09:54Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"861a2513-08ea-4cf8-817b-99b8282f5013\",\r\n \"creationTime\": \"2021-06-09T19:09:54Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"bb9b3beb-42c4-4ae4-a983-58e20bcd71a5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/bb9b3beb-42c4-4ae4-a983-58e20bcd71a5\",\r\n \"properties\": {\r\n \"accountName\": \"db003\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-06-09T20:16:40Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a6dda878-4486-437f-bd72-b9e87bf75221\",\r\n \"creationTime\": \"2021-06-09T20:16:41Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9f8ee54b-f275-44fa-b2c5-9983644c131f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9f8ee54b-f275-44fa-b2c5-9983644c131f\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount124\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-10T05:06:02Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"3fe302ed-daee-401c-9897-250919f9a0fe\",\r\n \"creationTime\": \"2021-06-10T05:06:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c2601a38-bee1-400e-bc5e-8d817318cf31\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c2601a38-bee1-400e-bc5e-8d817318cf31\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname7595\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-10T18:00:35Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"0a4ccb11-2cb5-4b81-8ab6-ea10cbb2290d\",\r\n \"creationTime\": \"2021-06-10T18:00:35Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"33035d50-7f15-4450-a71d-a4da4dcd039f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/33035d50-7f15-4450-a71d-a4da4dcd039f\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname4020\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-15T21:27:04Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"5d75295f-2ad7-451c-b27d-8e877e22b075\",\r\n \"creationTime\": \"2021-06-15T21:27:04Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"7d405124-1129-468e-9ff9-d031059c96bc\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/7d405124-1129-468e-9ff9-d031059c96bc\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-16T05:58:55Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d0a6a03f-c045-4275-a38a-b221f5749051\",\r\n \"creationTime\": \"2021-06-16T05:58:55Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d5fe116b-8a63-474e-88a4-afb2a726198e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d5fe116b-8a63-474e-88a4-afb2a726198e\",\r\n \"properties\": {\r\n \"accountName\": \"cli127\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-16T06:57:39Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f9a67f44-e6f6-4270-91c6-d90a0292ac96\",\r\n \"creationTime\": \"2021-06-16T06:57:39Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c483a757-4d93-4d60-ae22-04c9d2c89595\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c483a757-4d93-4d60-ae22-04c9d2c89595\",\r\n \"properties\": {\r\n \"accountName\": \"restored2-cosmosdb-1212-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-04T22:17:44Z\",\r\n \"deletionTime\": \"2021-06-05T05:04:42Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"eb5e33f1-8ecf-42b7-9f3f-18784854fc5e\",\r\n \"creationTime\": \"2021-06-04T22:17:44Z\",\r\n \"deletionTime\": \"2021-06-05T05:04:42Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"80458ce3-9b06-4d87-9405-1f47eb88164f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/80458ce3-9b06-4d87-9405-1f47eb88164f\",\r\n \"properties\": {\r\n \"accountName\": \"dbaccount27-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-07T21:24:07Z\",\r\n \"deletionTime\": \"2021-06-07T22:30:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a47823ea-6bce-4436-91a1-1dd14a1aa3a7\",\r\n \"creationTime\": \"2021-06-07T21:24:08Z\",\r\n \"deletionTime\": \"2021-06-07T22:30:24Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"3b44efa3-a7e6-414e-99c2-22d63aa1d778\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/3b44efa3-a7e6-414e-99c2-22d63aa1d778\",\r\n \"properties\": {\r\n \"accountName\": \"cli126\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-10T05:07:44Z\",\r\n \"deletionTime\": \"2021-06-15T21:00:15Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"fbc82bdc-1493-4cc4-bd69-2c33c650e3ed\",\r\n \"creationTime\": \"2021-06-10T05:07:45Z\",\r\n \"deletionTime\": \"2021-06-15T21:00:15Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"3bf55696-9845-4ab5-b57c-f955a2ffe3ca\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/3bf55696-9845-4ab5-b57c-f955a2ffe3ca\",\r\n \"properties\": {\r\n \"accountName\": \"sqltestaccount\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-06-01T23:24:19Z\",\r\n \"deletionTime\": \"2021-06-16T04:58:21Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"1062fb86-a396-4689-9326-83193cf2274b\",\r\n \"creationTime\": \"2021-06-01T23:24:20Z\",\r\n \"deletionTime\": \"2021-06-16T04:58:21Z\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGI0MDk2L2dyZW1saW5EYXRhYmFzZXMvZGF0YWJhc2VOYW1lMTAwMj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", - "RequestMethod": "DELETE", - "RequestBody": "", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/restoredaccountname3766?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmVzdG9yZWRhY2NvdW50bmFtZTM3NjY/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"properties\": {\r\n \"locations\": [\r\n {\r\n \"locationName\": \"eastus2\"\r\n }\r\n ],\r\n \"createMode\": \"Restore\",\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9f8ee54b-f275-44fa-b2c5-9983644c131f\",\r\n \"restoreTimestampInUtc\": \"2021-06-16T07:01:38.282628Z\"\r\n },\r\n \"databaseAccountOfferType\": \"Standard\"\r\n },\r\n \"location\": \"eastus2\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "4cc91df1-6578-4bf7-8c1c-584a2bfe17b9" + "edb7f4f2-8ea7-4d02-9b95-dc3891f3fc1e" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "631" ] }, "ResponseHeaders": { @@ -228,136 +219,173 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db4096/gremlinDatabases/databaseName1002/operationResults/f495da1f-caa5-4cbd-9114-dce8f68ecafe?api-version=2021-03-01-preview" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/f495da1f-caa5-4cbd-9114-dce8f68ecafe?api-version=2021-03-01-preview" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/restoredaccountname3766/operationResults/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15" ], "x-ms-request-id": [ - "f495da1f-caa5-4cbd-9114-dce8f68ecafe" + "e29101ef-7d75-473a-9d92-75a120b6a65d" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" ], "x-ms-correlation-request-id": [ - "0857d65d-8f99-4ba9-898e-9465594731c0" + "7573c19d-7ef1-4854-b487-7b8e964172d5" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T173556Z:0857d65d-8f99-4ba9-898e-9465594731c0" + "WESTUS2:20210616T070145Z:7573c19d-7ef1-4854-b487-7b8e964172d5" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:35:55 GMT" + "Wed, 16 Jun 2021 07:01:44 GMT" ], "Content-Length": [ - "21" + "2454" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", - "StatusCode": 202 + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/restoredaccountname3766\",\r\n \"name\": \"restoredaccountname3766\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-16T07:01:42.3117384Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"1dfe47fb-822c-41f1-b403-1cf6c63d0ba7\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"restoredaccountname3766-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sqltestaccount124-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"restoredaccountname3766-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sqltestaccount124-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"restoredaccountname3766-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://sqltestaccount124-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"restoredaccountname3766-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9f8ee54b-f275-44fa-b2c5-9983644c131f\",\r\n \"restoreTimestampInUtc\": \"2021-06-16T07:01:38.282628Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/restorableDatabaseAccounts?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9yZXN0b3JhYmxlRGF0YWJhc2VBY2NvdW50cz9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "x-ms-client-request-id": [ - "2ef9575f-de75-497e-9c79-9e6a83ddf997" - ], - "Accept-Language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { "Cache-Control": [ - "no-cache" + "no-store, no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-original-request-ids": [ - "", - "", - "" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" + "11997" ], "x-ms-request-id": [ - "b4db4361-93ee-45e4-9879-a40df5eeefc0" + "bee43a93-6b9d-4537-8ed1-4f4c27f67305" ], "x-ms-correlation-request-id": [ - "b4db4361-93ee-45e4-9879-a40df5eeefc0" + "bee43a93-6b9d-4537-8ed1-4f4c27f67305" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T173621Z:b4db4361-93ee-45e4-9879-a40df5eeefc0" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "WESTUS2:20210616T070215Z:bee43a93-6b9d-4537-8ed1-4f4c27f67305" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:36:20 GMT" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" + "Wed, 16 Jun 2021 07:02:14 GMT" ], "Content-Length": [ - "46196" + "21" + ], + "Content-Type": [ + "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": \"5dee0717-8f84-40d7-b7c1-921552ba61a5\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/5dee0717-8f84-40d7-b7c1-921552ba61a5\",\r\n \"properties\": {\r\n \"accountName\": \"vinhstagepitr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-11-02T23:44:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"30d6cace-8354-4e1f-b427-4f234f46df87\",\r\n \"creationTime\": \"2020-11-02T23:44:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"5cfa410f-ea0c-4995-aa59-9809a69c21f8\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/5cfa410f-ea0c-4995-aa59-9809a69c21f8\",\r\n \"properties\": {\r\n \"accountName\": \"vinhstagemongopitr\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-11-25T17:07:33Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"4ecfc265-e4d3-4638-a225-1932760404ee\",\r\n \"creationTime\": \"2020-11-25T17:07:34Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2b5e6412-19dc-4d79-88ae-178f5e30dd78\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/2b5e6412-19dc-4d79-88ae-178f5e30dd78\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-vinhstagemongopitr-del-res1\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-11-30T23:17:02Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a35683c3-cf9b-4378-a290-fb3ab8e741f9\",\r\n \"creationTime\": \"2020-11-30T23:17:02Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-08T18:18:47Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f61a9ed3-fcda-4603-b1e2-2baadbb6122b\",\r\n \"creationTime\": \"2020-12-08T18:18:47Z\"\r\n },\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"cdd116b8-a956-43d5-b461-248f837099f4\",\r\n \"creationTime\": \"2020-12-14T21:35:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"7d98d6c0-eadf-4d7e-a166-696de37c91fc\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/7d98d6c0-eadf-4d7e-a166-696de37c91fc\",\r\n \"properties\": {\r\n \"accountName\": \"restore-test1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-08T21:44:47Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"208a7933-2e44-4df1-9c96-97e28ae92d8f\",\r\n \"creationTime\": \"2020-12-08T21:44:47Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"08155af7-e63f-4db1-82ed-c99b8a08e541\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/08155af7-e63f-4db1-82ed-c99b8a08e541\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-vinhstagemongopitr-1\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-12-09T10:37:08Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"8c045a40-c3b5-4025-a270-156b748fd08b\",\r\n \"creationTime\": \"2020-12-09T10:37:08Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d0cb2ece-f253-4f20-86d0-01897e729eba\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/d0cb2ece-f253-4f20-86d0-01897e729eba\",\r\n \"properties\": {\r\n \"accountName\": \"virangai-test-vinhstagepitr-restore1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-10T02:08:18Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d4a86ba4-38f5-46ba-b0ae-724d5508b551\",\r\n \"creationTime\": \"2020-12-10T02:08:18Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9373a8d7-1889-4be9-9ddb-e589e406d04b\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9373a8d7-1889-4be9-9ddb-e589e406d04b\",\r\n \"properties\": {\r\n \"accountName\": \"virangai-test-vinhstagepitr-restore2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-10T03:12:31Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"c2374cdf-00cc-42e3-887e-4824532ff3e7\",\r\n \"creationTime\": \"2020-12-10T03:12:31Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"530b269d-274b-4987-94e1-f54b09abecff\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/530b269d-274b-4987-94e1-f54b09abecff\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname637435832535194992\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-15T23:04:01Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"257c2c07-efcb-47b2-b696-6ba5ca9785b0\",\r\n \"creationTime\": \"2020-12-15T23:04:01Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"4993c7e8-c48b-4e45-9353-9baea1ce9e2a\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/4993c7e8-c48b-4e45-9353-9baea1ce9e2a\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname359\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-16T00:51:06Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f964f331-3322-4719-946a-a8f4e406ca14\",\r\n \"creationTime\": \"2020-12-16T00:51:06Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d673eaa8-f7fa-421f-9d61-ba314864a431\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/d673eaa8-f7fa-421f-9d61-ba314864a431\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-from-new-portal\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-05T00:28:34Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a09d2f05-b90f-4a76-96c5-ef49edadbbae\",\r\n \"creationTime\": \"2021-01-05T00:28:34Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"6d6384ae-d623-4323-8388-65ca7df02733\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/6d6384ae-d623-4323-8388-65ca7df02733\",\r\n \"properties\": {\r\n \"accountName\": \"pitrtest1-res1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-05T23:45:55Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"2b92bb0a-1fa9-43c2-b8a7-b25d209d25c1\",\r\n \"creationTime\": \"2021-01-05T23:45:55Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"0bcf9a9b-1ca1-4406-9652-aa087d5f0b3f\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/0bcf9a9b-1ca1-4406-9652-aa087d5f0b3f\",\r\n \"properties\": {\r\n \"accountName\": \"pitrtest1-res2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-05T23:46:37Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d666fcfb-319c-4c5d-a2b8-27ae6cc9233f\",\r\n \"creationTime\": \"2021-01-05T23:46:37Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"b15e30f1-4e37-4fca-b77b-303516959017\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/b15e30f1-4e37-4fca-b77b-303516959017\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-vinhstagepitr-1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-06T09:24:07Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"8203b929-83ed-496a-8e6b-8a291aba9a32\",\r\n \"creationTime\": \"2021-01-06T09:24:07Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"617f5c88-2a93-45b4-be38-0cd7addea976\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/617f5c88-2a93-45b4-be38-0cd7addea976\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-vinhstagepitr-2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-06T09:33:06Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"e54058dc-c9ec-4393-9b62-3c4a764d9dda\",\r\n \"creationTime\": \"2021-01-06T09:33:06Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2eecc23f-69df-4de3-9103-b6ca529536a4\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/2eecc23f-69df-4de3-9103-b6ca529536a4\",\r\n \"properties\": {\r\n \"accountName\": \"test-restore-4\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-07T01:23:39Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"80c0209c-f89b-41b6-8cc2-5edad302caaf\",\r\n \"creationTime\": \"2021-01-07T01:23:39Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d91e1ad2-22b0-401e-b465-a16e5928e194\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/d91e1ad2-22b0-401e-b465-a16e5928e194\",\r\n \"properties\": {\r\n \"accountName\": \"test-restore5\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-07T01:23:40Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"793334c5-2123-41a5-a382-7b5aade5bb82\",\r\n \"creationTime\": \"2021-01-07T01:23:40Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"132908b6-2701-44a5-bdbe-a7c296e26283\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/132908b6-2701-44a5-bdbe-a7c296e26283\",\r\n \"properties\": {\r\n \"accountName\": \"test-restore6\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-07T03:18:46Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a8bcc661-cdd0-4fb6-b011-ce4fb922930d\",\r\n \"creationTime\": \"2021-01-07T03:18:46Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2ab6f2d2-ce7e-439b-90b3-5505c8f9ff76\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/2ab6f2d2-ce7e-439b-90b3-5505c8f9ff76\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-source-personalrestore-greeen\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-15T22:51:59Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"8b3376be-21d5-43db-ad08-7fa9e3f3ad5b\",\r\n \"creationTime\": \"2021-01-15T22:51:59Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"483d93e5-302b-4093-9502-ce63d416e70f\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/483d93e5-302b-4093-9502-ce63d416e70f\",\r\n \"properties\": {\r\n \"accountName\": \"targetacctrestore\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-18T18:30:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"cb6a3895-5ded-43ee-a6a8-91d9050f5582\",\r\n \"creationTime\": \"2021-02-18T18:30:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"74e9ac09-75d3-448a-a128-e71866b42e95\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/74e9ac09-75d3-448a-a128-e71866b42e95\",\r\n \"properties\": {\r\n \"accountName\": \"virangai-test-vinhstagepitr-res\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-26T22:14:50Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"40e6110d-0ae4-4e40-9d6e-33014540e179\",\r\n \"creationTime\": \"2021-02-26T22:14:50Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"24f3f6b6-9d96-4dc2-84b9-ae1c0cba8d4e\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/24f3f6b6-9d96-4dc2-84b9-ae1c0cba8d4e\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname8240\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-02T23:44:13Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"c2df5fa4-a593-48f2-8417-9f5f4bb9ef56\",\r\n \"creationTime\": \"2021-03-02T23:44:13Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"f319c2f4-7e68-48c0-9eac-94e12fb51179\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/f319c2f4-7e68-48c0-9eac-94e12fb51179\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname320\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T00:59:34Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"005c7a8b-fffd-4106-a2f5-0b4f58b1942a\",\r\n \"creationTime\": \"2021-03-03T00:59:34Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"672e89ce-0096-4a87-8131-3d2d5d483a3a\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/672e89ce-0096-4a87-8131-3d2d5d483a3a\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname6982\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T02:34:06Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f30afdfa-9473-4658-83c4-5067be2232db\",\r\n \"creationTime\": \"2021-03-03T02:34:06Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"4d0ae23d-5661-4c5a-ae37-48aa6308425b\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/4d0ae23d-5661-4c5a-ae37-48aa6308425b\",\r\n \"properties\": {\r\n \"accountName\": \"stage-validation-pitr-test0\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-10T07:55:12Z\",\r\n \"deletionTime\": \"2021-02-10T14:21:37Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"26d7f01f-3f0c-4eb6-80a2-f5776f929f12\",\r\n \"creationTime\": \"2021-02-10T07:55:13Z\",\r\n \"deletionTime\": \"2021-02-10T14:21:37Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c26d3f43-7363-4c54-940a-bde0e96bda72\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c26d3f43-7363-4c54-940a-bde0e96bda72\",\r\n \"properties\": {\r\n \"accountName\": \"db1024-restored\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-08-14T01:17:36Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"eca195d4-fcaa-4d5f-b01b-20f61f01319f\",\r\n \"creationTime\": \"2020-08-14T01:17:36Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d8974ca8-8f69-4924-9040-c10b7f30524b\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d8974ca8-8f69-4924-9040-c10b7f30524b\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname9746\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-21T18:55:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"775c4324-cba7-4eb3-a8ee-5e1921f7f57b\",\r\n \"creationTime\": \"2020-07-21T18:55:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"aca7d453-88a9-4bf2-8abc-46d21553638f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/aca7d453-88a9-4bf2-8abc-46d21553638f\",\r\n \"properties\": {\r\n \"accountName\": \"db1024\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-21T18:19:37Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a926c9e8-3179-4774-bc1e-fb866407b7db\",\r\n \"creationTime\": \"2020-07-21T18:19:38Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"a54115d5-4356-4771-b7b0-20f475ce5a38\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/a54115d5-4356-4771-b7b0-20f475ce5a38\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-08-13T23:51:16Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d9b09727-2a45-4760-a837-3366c1187358\",\r\n \"creationTime\": \"2020-08-13T23:51:17Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"72ee099a-9209-4fe4-aeb2-8f4954f25eba\",\r\n \"creationTime\": \"2020-08-28T18:50:30Z\"\r\n },\r\n {\r\n \"locationName\": \"Southeast Asia\",\r\n \"regionalDatabaseAccountInstanceId\": \"e5abbaa4-031a-451a-b041-76c6bcd93fa9\",\r\n \"creationTime\": \"2021-02-08T19:29:22Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"bb3e3c48-18d8-46e8-b294-41d9406885c5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/bb3e3c48-18d8-46e8-b294-41d9406885c5\",\r\n \"properties\": {\r\n \"accountName\": \"test-virangai-cont123\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-08-05T20:32:27Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"2355946d-5d79-4cc4-a521-3a302a9bff85\",\r\n \"creationTime\": \"2020-08-05T20:32:27Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"55083b96-b985-4dec-92df-fa0ac98443f1\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/55083b96-b985-4dec-92df-fa0ac98443f1\",\r\n \"properties\": {\r\n \"accountName\": \"selvitest-account\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-23T16:18:43Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"787a81fe-fb41-40da-8b69-a9e18966b4e3\",\r\n \"creationTime\": \"2020-07-23T16:18:43Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"ec72f021-4974-405a-8c78-f74207ff0e12\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/ec72f021-4974-405a-8c78-f74207ff0e12\",\r\n \"properties\": {\r\n \"accountName\": \"selvitest-account-destinationforrestore\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-23T17:39:58Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"11f925e4-b48d-4d16-9ad2-209d1056ec9c\",\r\n \"creationTime\": \"2020-07-23T17:39:58Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"17783e6d-0e28-41e2-b086-9d17763f1d51\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/17783e6d-0e28-41e2-b086-9d17763f1d51\",\r\n \"properties\": {\r\n \"accountName\": \"virangai-test-bk-cont\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-28T22:09:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f74e094e-9b1d-4e16-82b6-a57782f1d187\",\r\n \"creationTime\": \"2020-07-28T22:09:24Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2d90bc37-cd54-4352-9e57-e6aa3f22d494\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/2d90bc37-cd54-4352-9e57-e6aa3f22d494\",\r\n \"properties\": {\r\n \"accountName\": \"selvitest-account-destinationforrestorev2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-07-23T17:41:22Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"e1dfecef-45cb-4c70-bbd5-393eb3774821\",\r\n \"creationTime\": \"2020-07-23T17:41:22Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"b0c8684b-7f9c-45fe-8ab9-2a74b656867e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/b0c8684b-7f9c-45fe-8ab9-2a74b656867e\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname637428812785768088\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-07T20:03:41Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"59294929-189f-4f8b-af35-740fc0fba9f0\",\r\n \"creationTime\": \"2020-12-07T20:03:41Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/eadac7e2-61f0-4e07-aaa1-9dbb495ec5a8\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo32-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-12-07T21:23:56Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"49174788-8512-4a01-a3ca-38c7857a2635\",\r\n \"creationTime\": \"2020-12-07T21:23:56Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"921dbaed-a5bd-462d-8351-d0eda5e592c0\",\r\n \"creationTime\": \"2020-12-08T23:28:45Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"25a04cf0-89d4-4546-9c30-14d1dc8899df\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/25a04cf0-89d4-4546-9c30-14d1dc8899df\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-mongo36-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2020-12-07T21:35:24Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"b52d5178-bc7b-4b2b-a05e-9d3dba85e7fd\",\r\n \"creationTime\": \"2020-12-07T21:35:24Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"b0f33c79-f7b2-421f-9e94-699b0f8c840a\",\r\n \"creationTime\": \"2020-12-08T22:02:23Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"345c785a-e758-4f8b-94d4-0a1259f4f85b\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/345c785a-e758-4f8b-94d4-0a1259f4f85b\",\r\n \"properties\": {\r\n \"accountName\": \"nichatur-restore-test\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-07T23:33:57Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"94eeb20d-16d0-4ee1-ae6a-7f2a0332a1d5\",\r\n \"creationTime\": \"2020-12-07T23:33:57Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"605db505-9267-4cf0-b7ac-27ef644b2ef3\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/605db505-9267-4cf0-b7ac-27ef644b2ef3\",\r\n \"properties\": {\r\n \"accountName\": \"nichatur-restore-test-r1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-07T23:57:59Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"71a2cff6-7e90-43a5-b261-b704fbfaf100\",\r\n \"creationTime\": \"2020-12-07T23:57:59Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"0d00d699-017a-4a76-8639-ab4bec82c5f2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/0d00d699-017a-4a76-8639-ab4bec82c5f2\",\r\n \"properties\": {\r\n \"accountName\": \"restoredaccountname637428989095532319\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-08T00:57:52Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"7c0454e1-f718-48fe-894a-35182a8440d2\",\r\n \"creationTime\": \"2020-12-08T00:57:52Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"73d1010d-f0b7-4673-b8c0-18ddecdcda06\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/73d1010d-f0b7-4673-b8c0-18ddecdcda06\",\r\n \"properties\": {\r\n \"accountName\": \"nichatur-restore-test-r2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2020-12-08T22:03:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"c6b5a1f6-2215-49be-9277-aeff5723ab4c\",\r\n \"creationTime\": \"2020-12-08T22:03:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d1535f84-06b5-497b-8768-962ece984001\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d1535f84-06b5-497b-8768-962ece984001\",\r\n \"properties\": {\r\n \"accountName\": \"kal-restore-test\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-15T21:58:32Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"f4b8377d-89b3-41dd-9892-79bfbc4d523c\",\r\n \"creationTime\": \"2021-01-15T21:58:32Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9351dd2e-d901-465b-98cb-a74a3aabd49f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9351dd2e-d901-465b-98cb-a74a3aabd49f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-unique-mode-source\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-03T19:53:25Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"b5ee0cb6-20df-4132-8378-3d2b2bb477f8\",\r\n \"creationTime\": \"2021-02-03T19:53:26Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"222da8e2-da07-46db-9cd2-51a2efb84b9f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/222da8e2-da07-46db-9cd2-51a2efb84b9f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-unique-mode-restored\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-03T20:07:50Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"094b572d-52f6-47bc-92c3-a692588ef6d6\",\r\n \"creationTime\": \"2021-02-03T20:07:50Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"19e4130a-cb83-4a34-85c2-e35dcda149f8\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/19e4130a-cb83-4a34-85c2-e35dcda149f8\",\r\n \"properties\": {\r\n \"accountName\": \"stage-validation-m\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-02-05T04:08:10Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"3f97305a-6a6b-4b38-b200-bea92d78f64a\",\r\n \"creationTime\": \"2021-02-05T04:08:11Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"7cf7aaa4-fe00-48fa-820b-cc632feaa9d7\",\r\n \"creationTime\": \"2021-02-05T04:29:43Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"5939cc7f-0bdd-4790-9ac6-a3b281c64f97\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/5939cc7f-0bdd-4790-9ac6-a3b281c64f97\",\r\n \"properties\": {\r\n \"accountName\": \"multiregion-pitr-billing-test\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-19T00:20:18Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"Southeast Asia\",\r\n \"regionalDatabaseAccountInstanceId\": \"0018e6e6-170f-4e25-b1a5-97e718138e0c\",\r\n \"creationTime\": \"2021-02-19T00:20:18Z\"\r\n },\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"e235a61e-abf7-4e95-bfc2-0e4aa649b874\",\r\n \"creationTime\": \"2021-02-19T00:33:52Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"96aa7f5a-5292-44f3-9d3e-bec163b0de1a\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/96aa7f5a-5292-44f3-9d3e-bec163b0de1a\",\r\n \"properties\": {\r\n \"accountName\": \"restore-pitr-mongo32-stage-source\",\r\n \"apiType\": \"MongoDB\",\r\n \"creationTime\": \"2021-02-26T18:11:04Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"8c350d54-e45d-4ef7-af55-9f07dc4fe594\",\r\n \"creationTime\": \"2021-02-26T18:11:04Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"c02d9298-7cdb-440f-a16b-0dc3c97d6cde\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/c02d9298-7cdb-440f-a16b-0dc3c97d6cde\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T04:36:55Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"d6e10b03-43cd-4bdc-a1b8-3dfab9fe6beb\",\r\n \"creationTime\": \"2021-03-03T04:36:55Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"00e807ea-76c1-4b2f-afdd-dddc1b15979f\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/00e807ea-76c1-4b2f-afdd-dddc1b15979f\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-03T05:01:33Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"683f9f6f-8b7d-4638-a4f2-db9983a9c2d1\",\r\n \"creationTime\": \"2021-03-03T05:01:33Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9766bca9-cc26-4e26-83fe-32cd22fdb83d\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9766bca9-cc26-4e26-83fe-32cd22fdb83d\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-billing-test\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-20T01:08:53Z\",\r\n \"deletionTime\": \"2021-02-04T00:01:29Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"9df768c4-6f3e-4bb8-be73-c8b338f50875\",\r\n \"creationTime\": \"2021-01-20T01:08:53Z\",\r\n \"deletionTime\": \"2021-02-04T00:01:29Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"8e032502-70fc-4495-8546-e69383186c09\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/8e032502-70fc-4495-8546-e69383186c09\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-billing-test-2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-01-21T05:06:14Z\",\r\n \"deletionTime\": \"2021-02-04T00:01:29Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a994d170-beb1-4f1a-a413-2d5548b171dd\",\r\n \"creationTime\": \"2021-01-21T05:06:14Z\",\r\n \"deletionTime\": \"2021-02-04T00:01:29Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d9e1ccfa-1929-4532-9efb-6100feff0f0e\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d9e1ccfa-1929-4532-9efb-6100feff0f0e\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-restored-ror\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-06T19:32:22Z\",\r\n \"deletionTime\": \"2021-02-06T19:40:48Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"95ef85ad-f3dd-490d-aff2-50d6c7c0dd5f\",\r\n \"creationTime\": \"2021-02-06T19:32:22Z\",\r\n \"deletionTime\": \"2021-02-06T19:40:48Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"2d7d7e33-9b97-491e-895b-fe7f46f3d86c\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/2d7d7e33-9b97-491e-895b-fe7f46f3d86c\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-10T23:50:26Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:51Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"eb35152b-9da0-44c0-a767-0c643969bf08\",\r\n \"creationTime\": \"2021-02-10T23:50:26Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:51Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"4961ef4a-30d0-484e-ad16-8ba453b14abf\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/4961ef4a-30d0-484e-ad16-8ba453b14abf\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-res\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T04:40:28Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:51Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"5970d071-463b-4f79-92ac-810f199754e9\",\r\n \"creationTime\": \"2021-02-11T04:40:28Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:51Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"ce9e2478-aa44-4bd2-96d4-d23f75dbd994\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/ce9e2478-aa44-4bd2-96d4-d23f75dbd994\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T00:04:43Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:54Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"4d1a5ff8-9393-4dc4-a3b9-1b24e2aeb32c\",\r\n \"creationTime\": \"2021-02-11T00:04:43Z\",\r\n \"deletionTime\": \"2021-02-11T07:07:54Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"f93aff83-e412-471c-86de-e23df6cbeb58\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/f93aff83-e412-471c-86de-e23df6cbeb58\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-restored-readregion\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-07T21:48:30Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:27Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"North Central US\",\r\n \"regionalDatabaseAccountInstanceId\": \"ffac845b-ac41-4bfe-acc1-227406f9f68a\",\r\n \"creationTime\": \"2021-02-07T21:48:30Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:27Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"9bb64267-f1d8-4d2a-9367-d16492966dc8\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9bb64267-f1d8-4d2a-9367-d16492966dc8\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-06T18:18:14Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"North Central US\",\r\n \"regionalDatabaseAccountInstanceId\": \"c8fdaea9-e41e-416f-8ab8-ffa9295ad14a\",\r\n \"creationTime\": \"2021-02-07T18:55:04Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\"\r\n },\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"de4ce762-1219-4750-9c25-cead6a9964b3\",\r\n \"creationTime\": \"2021-02-06T18:18:14Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"78bd960f-b8bc-4412-b4e1-f16c5acc599c\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/78bd960f-b8bc-4412-b4e1-f16c5acc599c\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-del-restored\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-06T20:23:29Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"Southeast Asia\",\r\n \"regionalDatabaseAccountInstanceId\": \"753180e8-e128-47e9-98d1-5ce0c6d4f3a8\",\r\n \"creationTime\": \"2021-02-08T19:31:46Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\"\r\n },\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"2524386d-c456-4de9-a314-1acdb94e52a3\",\r\n \"creationTime\": \"2021-02-06T20:23:29Z\",\r\n \"deletionTime\": \"2021-02-11T21:07:28Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"67d6981a-3dc7-4e3a-b04a-73c0376d42bb\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/67d6981a-3dc7-4e3a-b04a-73c0376d42bb\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r2\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T08:37:02Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:42Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"5f331e43-571c-4fe7-9874-aeafcd2b421c\",\r\n \"creationTime\": \"2021-02-11T08:37:02Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:42Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"5ea690df-46a9-4bf2-910c-0484660978bb\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/5ea690df-46a9-4bf2-910c-0484660978bb\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T08:24:56Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:43Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"29b9a3fe-b375-462d-9221-191fc4ddaa83\",\r\n \"creationTime\": \"2021-02-11T08:24:56Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:43Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"53b3d044-7394-4a06-883d-cf9247f66e3c\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/53b3d044-7394-4a06-883d-cf9247f66e3c\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r3\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T08:49:08Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:44Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a38a83ce-d467-4c81-9f3d-c65697d1c547\",\r\n \"creationTime\": \"2021-02-11T08:49:08Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:44Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"66c4a9a2-7799-474a-9e1e-e56a4b340d62\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/66c4a9a2-7799-474a-9e1e-e56a4b340d62\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r4\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-11T09:01:06Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:45Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"01869f13-ab6f-451b-8b15-9cb0b369cde2\",\r\n \"creationTime\": \"2021-02-11T09:01:06Z\",\r\n \"deletionTime\": \"2021-02-12T17:07:45Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"674c1551-e35b-4a4d-bd79-fde1f439dbe0\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/674c1551-e35b-4a4d-bd79-fde1f439dbe0\",\r\n \"properties\": {\r\n \"accountName\": \"stage-pitr-validation-source-r1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-17T11:23:16Z\",\r\n \"deletionTime\": \"2021-02-17T15:31:10Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"17329379-801c-4909-999a-421f20fd57c4\",\r\n \"creationTime\": \"2021-02-17T11:23:16Z\",\r\n \"deletionTime\": \"2021-02-17T15:31:10Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"af242175-f3a2-40f4-9c77-10eaf232a2b5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/af242175-f3a2-40f4-9c77-10eaf232a2b5\",\r\n \"properties\": {\r\n \"accountName\": \"dd21234\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-22T09:47:40Z\",\r\n \"deletionTime\": \"2021-02-22T10:59:26Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"66b2c82f-633f-446a-b89e-dba1b13ae92c\",\r\n \"creationTime\": \"2021-02-22T09:47:40Z\",\r\n \"deletionTime\": \"2021-02-22T10:59:26Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"128a528a-5e22-4146-ae62-b32994614cb0\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/128a528a-5e22-4146-ae62-b32994614cb0\",\r\n \"properties\": {\r\n \"accountName\": \"dd21\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-22T09:02:19Z\",\r\n \"deletionTime\": \"2021-02-22T11:00:06Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"ebc69bc4-4865-41d6-a632-aef7a5e2de1d\",\r\n \"creationTime\": \"2021-02-22T09:02:19Z\",\r\n \"deletionTime\": \"2021-02-22T11:00:06Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"3e1a3f5e-dcae-449e-82f7-bbf80cba54c5\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/3e1a3f5e-dcae-449e-82f7-bbf80cba54c5\",\r\n \"properties\": {\r\n \"accountName\": \"ddb55\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-24T04:21:43Z\",\r\n \"deletionTime\": \"2021-02-24T07:45:59Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"4dff1afd-82b9-425f-840a-3237bd54478d\",\r\n \"creationTime\": \"2021-02-24T04:21:43Z\",\r\n \"deletionTime\": \"2021-02-24T07:45:59Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"d612dc86-9085-444b-a868-fb48c7d368fb\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/d612dc86-9085-444b-a868-fb48c7d368fb\",\r\n \"properties\": {\r\n \"accountName\": \"ddb1\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-18T11:15:52Z\",\r\n \"deletionTime\": \"2021-02-24T07:46:14Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"db2b9027-bcdf-4069-be69-074fc2f46d7c\",\r\n \"creationTime\": \"2021-02-18T11:15:52Z\",\r\n \"deletionTime\": \"2021-02-24T07:46:14Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"0ea5b02f-40bd-4cfd-8406-35286bd00fa2\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/0ea5b02f-40bd-4cfd-8406-35286bd00fa2\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-ror\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-24T17:56:15Z\",\r\n \"deletionTime\": \"2021-02-25T10:33:38Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"740afadb-1142-4b13-9fa4-67e857d56a89\",\r\n \"creationTime\": \"2021-02-24T17:56:15Z\",\r\n \"deletionTime\": \"2021-02-25T10:33:38Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"52006c1b-5c7f-43a1-9ae0-b936550aed8a\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/52006c1b-5c7f-43a1-9ae0-b936550aed8a\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-rrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-24T17:40:45Z\",\r\n \"deletionTime\": \"2021-02-25T10:34:20Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"West US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"a1e3fe50-7548-4b49-aee1-373a142e0c3b\",\r\n \"creationTime\": \"2021-02-24T17:40:45Z\",\r\n \"deletionTime\": \"2021-02-25T10:34:20Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"a578c9d3-1d35-451f-a3df-44e61ed45cfa\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/a578c9d3-1d35-451f-a3df-44e61ed45cfa\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-02-24T05:19:04Z\",\r\n \"deletionTime\": \"2021-02-25T10:34:35Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"feff600a-c776-422a-a2f7-0cfe03be68b8\",\r\n \"creationTime\": \"2021-02-24T05:19:04Z\",\r\n \"deletionTime\": \"2021-02-25T10:34:35Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"07b7492c-91c3-41bb-9f75-8f25c739ce06\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/07b7492c-91c3-41bb-9f75-8f25c739ce06\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-01T05:56:16Z\",\r\n \"deletionTime\": \"2021-03-02T09:01:04Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"bfbd7d4b-3edf-44da-8aab-eb9cdafe43a7\",\r\n \"creationTime\": \"2021-03-01T05:56:16Z\",\r\n \"deletionTime\": \"2021-03-02T09:01:04Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"db2af171-a342-4d3c-92ff-45e81629341d\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/db2af171-a342-4d3c-92ff-45e81629341d\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-02T10:39:31Z\",\r\n \"deletionTime\": \"2021-03-02T10:41:51Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"4e29876d-a887-4def-a99e-1b7043bb6181\",\r\n \"creationTime\": \"2021-03-02T10:39:31Z\",\r\n \"deletionTime\": \"2021-03-02T10:41:51Z\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": \"a76a91b4-489b-4714-b0fc-b98459934920\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/locations/restorableDatabaseAccounts\",\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/a76a91b4-489b-4714-b0fc-b98459934920\",\r\n \"properties\": {\r\n \"accountName\": \"pitr-sql-stage-restored-wrr\",\r\n \"apiType\": \"Sql\",\r\n \"creationTime\": \"2021-03-02T15:16:36Z\",\r\n \"deletionTime\": \"2021-03-03T04:08:46Z\",\r\n \"restorableLocations\": [\r\n {\r\n \"locationName\": \"East US 2\",\r\n \"regionalDatabaseAccountInstanceId\": \"40bafde5-ffd5-453a-acb4-9c697808790a\",\r\n \"creationTime\": \"2021-03-02T15:16:36Z\",\r\n \"deletionTime\": \"2021-03-03T04:08:46Z\"\r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/restoredaccountname8295?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL3BpdHItc3RhZ2UtcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmVzdG9yZWRhY2NvdW50bmFtZTgyOTU/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"properties\": {\r\n \"createMode\": \"Restore\",\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"restoreTimestampInUtc\": \"2021-03-01T00:00:00Z\"\r\n },\r\n \"locations\": [\r\n {\r\n \"locationName\": \"westus2\"\r\n }\r\n ],\r\n \"databaseAccountOfferType\": \"Standard\"\r\n },\r\n \"location\": \"westus2\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "x-ms-client-request-id": [ - "dfa3b09d-304a-4344-92f8-33a14ecf91b5" - ], - "Accept-Language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" ], - "Content-Type": [ - "application/json; charset=utf-8" + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "98843468-3952-4f41-95ec-d1612ff5939d" + ], + "x-ms-correlation-request-id": [ + "98843468-3952-4f41-95ec-d1612ff5939d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T070245Z:98843468-3952-4f41-95ec-d1612ff5939d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 07:02:45 GMT" ], "Content-Length": [ - "624" + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -367,60 +395,111 @@ "Pragma": [ "no-cache" ], - "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/restoredaccountname8295/operationResults/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" ], "x-ms-request-id": [ - "50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f" + "aa5c0f98-2964-4de7-8274-13ca638fb00d" ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview" + "x-ms-correlation-request-id": [ + "aa5c0f98-2964-4de7-8274-13ca638fb00d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T070315Z:aa5c0f98-2964-4de7-8274-13ca638fb00d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 07:03:15 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "eee952b7-6771-4a2d-a17d-7058cfd84594" ], "x-ms-correlation-request-id": [ - "10362ce1-d373-4cf9-b44e-504c619dcc50" + "eee952b7-6771-4a2d-a17d-7058cfd84594" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T173628Z:10362ce1-d373-4cf9-b44e-504c619dcc50" + "WESTUS2:20210616T070345Z:eee952b7-6771-4a2d-a17d-7058cfd84594" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:36:27 GMT" + "Wed, 16 Jun 2021 07:03:44 GMT" ], "Content-Length": [ - "2382" + "21" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/restoredaccountname8295\",\r\n \"name\": \"restoredaccountname8295\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-03T17:36:24.8536202Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"instanceId\": \"1a937e8e-1a33-4fd1-9349-34ede3dd02f2\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"restoredaccountname8295-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"restoredaccountname8295-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"restoredaccountname8295-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://pitr-sql-stage-source-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Creating\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"restoredaccountname8295-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"restoreTimestampInUtc\": \"2021-03-01T00:00:00Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"status\": \"Dequeued\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzUwYTk0YjRjLWZiOTItNGJkMS05ZDNjLTFmZGE4ZDlmNGI1Zj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -434,28 +513,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" + "11993" ], "x-ms-request-id": [ - "8b03e9ec-127b-42bf-beb1-ec4ec5add711" + "16ecfe75-9f58-4e42-8995-fd92aa3c1fc0" ], "x-ms-correlation-request-id": [ - "8b03e9ec-127b-42bf-beb1-ec4ec5add711" + "16ecfe75-9f58-4e42-8995-fd92aa3c1fc0" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T173658Z:8b03e9ec-127b-42bf-beb1-ec4ec5add711" + "WESTUS2:20210616T070415Z:16ecfe75-9f58-4e42-8995-fd92aa3c1fc0" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:36:57 GMT" + "Wed, 16 Jun 2021 07:04:15 GMT" ], "Content-Length": [ "21" @@ -468,16 +547,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzUwYTk0YjRjLWZiOTItNGJkMS05ZDNjLTFmZGE4ZDlmNGI1Zj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -491,28 +570,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11996" + "11992" ], "x-ms-request-id": [ - "aa70b0fc-d0f7-41d4-8e82-58caa0c024ec" + "4fe4817a-40cd-438a-973e-c523ea5a6142" ], "x-ms-correlation-request-id": [ - "aa70b0fc-d0f7-41d4-8e82-58caa0c024ec" + "4fe4817a-40cd-438a-973e-c523ea5a6142" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T173728Z:aa70b0fc-d0f7-41d4-8e82-58caa0c024ec" + "WESTUS2:20210616T070445Z:4fe4817a-40cd-438a-973e-c523ea5a6142" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:37:27 GMT" + "Wed, 16 Jun 2021 07:04:45 GMT" ], "Content-Length": [ "21" @@ -525,16 +604,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzUwYTk0YjRjLWZiOTItNGJkMS05ZDNjLTFmZGE4ZDlmNGI1Zj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -548,28 +627,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11995" + "11991" ], "x-ms-request-id": [ - "201c4097-b960-4990-a1b0-0ee7b0730a6f" + "fc4303a0-29d9-46d5-8f8d-4481143136c3" ], "x-ms-correlation-request-id": [ - "201c4097-b960-4990-a1b0-0ee7b0730a6f" + "fc4303a0-29d9-46d5-8f8d-4481143136c3" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T173758Z:201c4097-b960-4990-a1b0-0ee7b0730a6f" + "WESTUS2:20210616T070516Z:fc4303a0-29d9-46d5-8f8d-4481143136c3" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:37:58 GMT" + "Wed, 16 Jun 2021 07:05:15 GMT" ], "Content-Length": [ "21" @@ -582,16 +661,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzUwYTk0YjRjLWZiOTItNGJkMS05ZDNjLTFmZGE4ZDlmNGI1Zj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -605,28 +684,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11994" + "11990" ], "x-ms-request-id": [ - "8e86d3fa-404c-4e40-aaaa-65cfbfecf26c" + "f6311a65-6579-4012-a87e-6d945ddf42e6" ], "x-ms-correlation-request-id": [ - "8e86d3fa-404c-4e40-aaaa-65cfbfecf26c" + "f6311a65-6579-4012-a87e-6d945ddf42e6" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T173828Z:8e86d3fa-404c-4e40-aaaa-65cfbfecf26c" + "WESTUS2:20210616T070546Z:f6311a65-6579-4012-a87e-6d945ddf42e6" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:38:27 GMT" + "Wed, 16 Jun 2021 07:05:45 GMT" ], "Content-Length": [ "21" @@ -639,16 +718,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzUwYTk0YjRjLWZiOTItNGJkMS05ZDNjLTFmZGE4ZDlmNGI1Zj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -662,28 +741,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11993" + "11989" ], "x-ms-request-id": [ - "e7db80e0-8f7f-48ac-b0db-c9f05ff90a2d" + "c2d4ad20-7393-433e-b944-f530b4993b5f" ], "x-ms-correlation-request-id": [ - "e7db80e0-8f7f-48ac-b0db-c9f05ff90a2d" + "c2d4ad20-7393-433e-b944-f530b4993b5f" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T173858Z:e7db80e0-8f7f-48ac-b0db-c9f05ff90a2d" + "WESTUS2:20210616T070616Z:c2d4ad20-7393-433e-b944-f530b4993b5f" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:38:58 GMT" + "Wed, 16 Jun 2021 07:06:15 GMT" ], "Content-Length": [ "21" @@ -696,16 +775,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzUwYTk0YjRjLWZiOTItNGJkMS05ZDNjLTFmZGE4ZDlmNGI1Zj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -719,28 +798,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11992" + "11988" ], "x-ms-request-id": [ - "57fd8e6e-b6c1-405b-bca8-a74c024600ca" + "b382520b-03f0-40d2-9235-7da2e4d8bfb5" ], "x-ms-correlation-request-id": [ - "57fd8e6e-b6c1-405b-bca8-a74c024600ca" + "b382520b-03f0-40d2-9235-7da2e4d8bfb5" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T173928Z:57fd8e6e-b6c1-405b-bca8-a74c024600ca" + "WESTUS2:20210616T070646Z:b382520b-03f0-40d2-9235-7da2e4d8bfb5" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:39:27 GMT" + "Wed, 16 Jun 2021 07:06:45 GMT" ], "Content-Length": [ "21" @@ -753,16 +832,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzUwYTk0YjRjLWZiOTItNGJkMS05ZDNjLTFmZGE4ZDlmNGI1Zj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -776,28 +855,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" + "11987" ], "x-ms-request-id": [ - "ce517e65-e0c3-4370-8993-be8b6917918a" + "e8050f3f-8483-4052-bc3d-bb2b04372a24" ], "x-ms-correlation-request-id": [ - "ce517e65-e0c3-4370-8993-be8b6917918a" + "e8050f3f-8483-4052-bc3d-bb2b04372a24" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T173958Z:ce517e65-e0c3-4370-8993-be8b6917918a" + "WESTUS2:20210616T070716Z:e8050f3f-8483-4052-bc3d-bb2b04372a24" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:39:58 GMT" + "Wed, 16 Jun 2021 07:07:16 GMT" ], "Content-Length": [ "21" @@ -810,16 +889,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzUwYTk0YjRjLWZiOTItNGJkMS05ZDNjLTFmZGE4ZDlmNGI1Zj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -833,28 +912,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11990" + "11986" ], "x-ms-request-id": [ - "1e1f1882-d747-4572-98bb-aea68500b442" + "d6276334-c280-4184-9019-155fd408fd48" ], "x-ms-correlation-request-id": [ - "1e1f1882-d747-4572-98bb-aea68500b442" + "d6276334-c280-4184-9019-155fd408fd48" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T174028Z:1e1f1882-d747-4572-98bb-aea68500b442" + "WESTUS2:20210616T070746Z:d6276334-c280-4184-9019-155fd408fd48" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:40:27 GMT" + "Wed, 16 Jun 2021 07:07:46 GMT" ], "Content-Length": [ "21" @@ -867,16 +946,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzUwYTk0YjRjLWZiOTItNGJkMS05ZDNjLTFmZGE4ZDlmNGI1Zj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -890,28 +969,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" + "11985" ], "x-ms-request-id": [ - "f4510f25-6088-4597-b78f-9de54576263e" + "6b1358b4-6ea1-4799-840b-617fc091bb37" ], "x-ms-correlation-request-id": [ - "f4510f25-6088-4597-b78f-9de54576263e" + "6b1358b4-6ea1-4799-840b-617fc091bb37" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T174058Z:f4510f25-6088-4597-b78f-9de54576263e" + "WESTUS2:20210616T070816Z:6b1358b4-6ea1-4799-840b-617fc091bb37" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:40:57 GMT" + "Wed, 16 Jun 2021 07:08:16 GMT" ], "Content-Length": [ "21" @@ -924,16 +1003,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzUwYTk0YjRjLWZiOTItNGJkMS05ZDNjLTFmZGE4ZDlmNGI1Zj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -947,28 +1026,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11988" + "11984" ], "x-ms-request-id": [ - "c996dbaf-5bae-4195-85b2-e96223d0a14f" + "1cabeae1-ed26-4e25-99da-fd87b4334de2" ], "x-ms-correlation-request-id": [ - "c996dbaf-5bae-4195-85b2-e96223d0a14f" + "1cabeae1-ed26-4e25-99da-fd87b4334de2" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T174128Z:c996dbaf-5bae-4195-85b2-e96223d0a14f" + "WESTUS2:20210616T070847Z:1cabeae1-ed26-4e25-99da-fd87b4334de2" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:41:28 GMT" + "Wed, 16 Jun 2021 07:08:46 GMT" ], "Content-Length": [ "21" @@ -981,16 +1060,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzUwYTk0YjRjLWZiOTItNGJkMS05ZDNjLTFmZGE4ZDlmNGI1Zj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -1004,28 +1083,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11987" + "11983" ], "x-ms-request-id": [ - "eaf15d7b-a65e-4fb0-af26-539325dd4fd5" + "7ff19b7c-f950-4b5f-bad2-86b59e3eb6cc" ], "x-ms-correlation-request-id": [ - "eaf15d7b-a65e-4fb0-af26-539325dd4fd5" + "7ff19b7c-f950-4b5f-bad2-86b59e3eb6cc" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T174158Z:eaf15d7b-a65e-4fb0-af26-539325dd4fd5" + "WESTUS2:20210616T070917Z:7ff19b7c-f950-4b5f-bad2-86b59e3eb6cc" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:41:57 GMT" + "Wed, 16 Jun 2021 07:09:16 GMT" ], "Content-Length": [ "21" @@ -1038,16 +1117,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzUwYTk0YjRjLWZiOTItNGJkMS05ZDNjLTFmZGE4ZDlmNGI1Zj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -1061,28 +1140,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11986" + "11982" ], "x-ms-request-id": [ - "e5c4b227-4d75-4970-aa26-aa14c14b0324" + "9efc11c7-4d20-466f-bfa0-09acbc82edc4" ], "x-ms-correlation-request-id": [ - "e5c4b227-4d75-4970-aa26-aa14c14b0324" + "9efc11c7-4d20-466f-bfa0-09acbc82edc4" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T174228Z:e5c4b227-4d75-4970-aa26-aa14c14b0324" + "WESTUS2:20210616T070947Z:9efc11c7-4d20-466f-bfa0-09acbc82edc4" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:42:28 GMT" + "Wed, 16 Jun 2021 07:09:47 GMT" ], "Content-Length": [ "21" @@ -1095,16 +1174,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzUwYTk0YjRjLWZiOTItNGJkMS05ZDNjLTFmZGE4ZDlmNGI1Zj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -1118,28 +1197,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11985" + "11981" ], "x-ms-request-id": [ - "1eaf1ad3-028f-4f08-972f-36d034e5d403" + "937359e5-71bb-4ad6-820c-ade31c78b1e5" ], "x-ms-correlation-request-id": [ - "1eaf1ad3-028f-4f08-972f-36d034e5d403" + "937359e5-71bb-4ad6-820c-ade31c78b1e5" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T174258Z:1eaf1ad3-028f-4f08-972f-36d034e5d403" + "WESTUS2:20210616T071017Z:937359e5-71bb-4ad6-820c-ade31c78b1e5" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:42:58 GMT" + "Wed, 16 Jun 2021 07:10:17 GMT" ], "Content-Length": [ "21" @@ -1152,16 +1231,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzUwYTk0YjRjLWZiOTItNGJkMS05ZDNjLTFmZGE4ZDlmNGI1Zj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -1175,28 +1254,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11984" + "11980" ], "x-ms-request-id": [ - "68e66183-6668-4129-aac0-e6f5ed022159" + "3c20ef59-ca4d-483f-8c7a-b5c503abab13" ], "x-ms-correlation-request-id": [ - "68e66183-6668-4129-aac0-e6f5ed022159" + "3c20ef59-ca4d-483f-8c7a-b5c503abab13" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T174328Z:68e66183-6668-4129-aac0-e6f5ed022159" + "WESTUS2:20210616T071047Z:3c20ef59-ca4d-483f-8c7a-b5c503abab13" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:43:28 GMT" + "Wed, 16 Jun 2021 07:10:46 GMT" ], "Content-Length": [ "21" @@ -1209,16 +1288,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzUwYTk0YjRjLWZiOTItNGJkMS05ZDNjLTFmZGE4ZDlmNGI1Zj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -1232,28 +1311,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11983" + "11979" ], "x-ms-request-id": [ - "338f3d72-f0a6-46a0-971f-554c86b07536" + "1ec524a3-2df4-45d2-b3f0-7b4e33e22d95" ], "x-ms-correlation-request-id": [ - "338f3d72-f0a6-46a0-971f-554c86b07536" + "1ec524a3-2df4-45d2-b3f0-7b4e33e22d95" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T174358Z:338f3d72-f0a6-46a0-971f-554c86b07536" + "WESTUS2:20210616T071117Z:1ec524a3-2df4-45d2-b3f0-7b4e33e22d95" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:43:58 GMT" + "Wed, 16 Jun 2021 07:11:17 GMT" ], "Content-Length": [ "21" @@ -1266,16 +1345,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzUwYTk0YjRjLWZiOTItNGJkMS05ZDNjLTFmZGE4ZDlmNGI1Zj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -1289,28 +1368,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11982" + "11978" ], "x-ms-request-id": [ - "be490cfc-f879-4361-80e4-6d8056327b67" + "4530e5e4-ab56-4395-9ec5-ac93c0fbcab1" ], "x-ms-correlation-request-id": [ - "be490cfc-f879-4361-80e4-6d8056327b67" + "4530e5e4-ab56-4395-9ec5-ac93c0fbcab1" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T174428Z:be490cfc-f879-4361-80e4-6d8056327b67" + "WESTUS2:20210616T071147Z:4530e5e4-ab56-4395-9ec5-ac93c0fbcab1" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:44:28 GMT" + "Wed, 16 Jun 2021 07:11:47 GMT" ], "Content-Length": [ "21" @@ -1323,16 +1402,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzUwYTk0YjRjLWZiOTItNGJkMS05ZDNjLTFmZGE4ZDlmNGI1Zj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -1346,28 +1425,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11981" + "11977" ], "x-ms-request-id": [ - "2fcedc80-91b4-4317-94a6-30df51777eef" + "c7d03acb-6a92-476c-8cc8-48136191a976" ], "x-ms-correlation-request-id": [ - "2fcedc80-91b4-4317-94a6-30df51777eef" + "c7d03acb-6a92-476c-8cc8-48136191a976" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T174458Z:2fcedc80-91b4-4317-94a6-30df51777eef" + "WESTUS2:20210616T071217Z:c7d03acb-6a92-476c-8cc8-48136191a976" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:44:58 GMT" + "Wed, 16 Jun 2021 07:12:16 GMT" ], "Content-Length": [ "21" @@ -1380,16 +1459,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzUwYTk0YjRjLWZiOTItNGJkMS05ZDNjLTFmZGE4ZDlmNGI1Zj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -1403,28 +1482,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11980" + "11976" ], "x-ms-request-id": [ - "575c107c-d13b-4343-bd76-07f05ecd0dd9" + "c4e885ac-9a6e-4a32-88bc-1e24fb47b288" ], "x-ms-correlation-request-id": [ - "575c107c-d13b-4343-bd76-07f05ecd0dd9" + "c4e885ac-9a6e-4a32-88bc-1e24fb47b288" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T174528Z:575c107c-d13b-4343-bd76-07f05ecd0dd9" + "WESTUS2:20210616T071247Z:c4e885ac-9a6e-4a32-88bc-1e24fb47b288" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:45:28 GMT" + "Wed, 16 Jun 2021 07:12:47 GMT" ], "Content-Length": [ "21" @@ -1437,16 +1516,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzUwYTk0YjRjLWZiOTItNGJkMS05ZDNjLTFmZGE4ZDlmNGI1Zj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -1460,28 +1539,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11979" + "11975" ], "x-ms-request-id": [ - "f384f36a-a068-49fd-9671-6a694ae42c26" + "a74497e0-0c8d-44ec-b756-cbd0bdcff4fb" ], "x-ms-correlation-request-id": [ - "f384f36a-a068-49fd-9671-6a694ae42c26" + "a74497e0-0c8d-44ec-b756-cbd0bdcff4fb" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T174559Z:f384f36a-a068-49fd-9671-6a694ae42c26" + "WESTUS2:20210616T071318Z:a74497e0-0c8d-44ec-b756-cbd0bdcff4fb" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:45:58 GMT" + "Wed, 16 Jun 2021 07:13:17 GMT" ], "Content-Length": [ "21" @@ -1494,16 +1573,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzUwYTk0YjRjLWZiOTItNGJkMS05ZDNjLTFmZGE4ZDlmNGI1Zj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -1517,28 +1596,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11978" + "11974" ], "x-ms-request-id": [ - "826fde67-ae65-4617-a83d-a9a9e9cd5352" + "63d35aed-d399-4c60-89d8-c5a0bef4b640" ], "x-ms-correlation-request-id": [ - "826fde67-ae65-4617-a83d-a9a9e9cd5352" + "63d35aed-d399-4c60-89d8-c5a0bef4b640" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T174629Z:826fde67-ae65-4617-a83d-a9a9e9cd5352" + "WESTUS2:20210616T071348Z:63d35aed-d399-4c60-89d8-c5a0bef4b640" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:46:28 GMT" + "Wed, 16 Jun 2021 07:13:48 GMT" ], "Content-Length": [ "21" @@ -1551,16 +1630,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzUwYTk0YjRjLWZiOTItNGJkMS05ZDNjLTFmZGE4ZDlmNGI1Zj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -1574,28 +1653,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11977" + "11973" ], "x-ms-request-id": [ - "83112e44-28c8-4624-9de4-9cc499cff269" + "1e9b4681-9ed5-4804-9848-bae393fab29c" ], "x-ms-correlation-request-id": [ - "83112e44-28c8-4624-9de4-9cc499cff269" + "1e9b4681-9ed5-4804-9848-bae393fab29c" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T174659Z:83112e44-28c8-4624-9de4-9cc499cff269" + "WESTUS2:20210616T071418Z:1e9b4681-9ed5-4804-9848-bae393fab29c" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:46:58 GMT" + "Wed, 16 Jun 2021 07:14:17 GMT" ], "Content-Length": [ "21" @@ -1608,16 +1687,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzUwYTk0YjRjLWZiOTItNGJkMS05ZDNjLTFmZGE4ZDlmNGI1Zj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -1631,28 +1710,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11976" + "11972" ], "x-ms-request-id": [ - "d4eaafa6-04a6-4b79-9df3-7802aa500457" + "1e8eca77-83ec-4d33-aa6b-4a020aac4557" ], "x-ms-correlation-request-id": [ - "d4eaafa6-04a6-4b79-9df3-7802aa500457" + "1e8eca77-83ec-4d33-aa6b-4a020aac4557" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T174729Z:d4eaafa6-04a6-4b79-9df3-7802aa500457" + "WESTUS2:20210616T071448Z:1e8eca77-83ec-4d33-aa6b-4a020aac4557" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:47:28 GMT" + "Wed, 16 Jun 2021 07:14:48 GMT" ], "Content-Length": [ "21" @@ -1665,16 +1744,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzUwYTk0YjRjLWZiOTItNGJkMS05ZDNjLTFmZGE4ZDlmNGI1Zj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -1688,28 +1767,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11975" + "11971" ], "x-ms-request-id": [ - "5bfd26c5-a3da-43f0-b799-28e878cf7269" + "ed994dc9-8cc2-4076-ae31-f71dbdda318b" ], "x-ms-correlation-request-id": [ - "5bfd26c5-a3da-43f0-b799-28e878cf7269" + "ed994dc9-8cc2-4076-ae31-f71dbdda318b" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T174759Z:5bfd26c5-a3da-43f0-b799-28e878cf7269" + "WESTUS2:20210616T071518Z:ed994dc9-8cc2-4076-ae31-f71dbdda318b" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:47:59 GMT" + "Wed, 16 Jun 2021 07:15:17 GMT" ], "Content-Length": [ "21" @@ -1722,16 +1801,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzUwYTk0YjRjLWZiOTItNGJkMS05ZDNjLTFmZGE4ZDlmNGI1Zj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -1745,28 +1824,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11974" + "11970" ], "x-ms-request-id": [ - "eef96a69-bd75-4428-8864-d75138b48598" + "65bcfdb1-7c5a-427a-a028-c665b9ac44c5" ], "x-ms-correlation-request-id": [ - "eef96a69-bd75-4428-8864-d75138b48598" + "65bcfdb1-7c5a-427a-a028-c665b9ac44c5" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T174829Z:eef96a69-bd75-4428-8864-d75138b48598" + "WESTUS2:20210616T071548Z:65bcfdb1-7c5a-427a-a028-c665b9ac44c5" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:48:28 GMT" + "Wed, 16 Jun 2021 07:15:48 GMT" ], "Content-Length": [ "21" @@ -1779,16 +1858,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/operationsStatus/50a94b4c-fb92-4bd1-9d3c-1fda8d9f4b5f?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvd2VzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzUwYTk0YjRjLWZiOTItNGJkMS05ZDNjLTFmZGE4ZDlmNGI1Zj9hcGktdmVyc2lvbj0yMDIxLTAzLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/e29101ef-7d75-473a-9d92-75a120b6a65d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2UyOTEwMWVmLTdkNzUtNDczYS05ZDkyLTc1YTEyMGI2YTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -1802,28 +1881,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11973" + "11969" ], "x-ms-request-id": [ - "0d0588ea-a923-437d-a546-1889d06fe30c" + "652c8b4b-caac-4695-b9f5-a0b73f6f8cc5" ], "x-ms-correlation-request-id": [ - "0d0588ea-a923-437d-a546-1889d06fe30c" + "652c8b4b-caac-4695-b9f5-a0b73f6f8cc5" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T174859Z:0d0588ea-a923-437d-a546-1889d06fe30c" + "WESTUS2:20210616T071618Z:652c8b4b-caac-4695-b9f5-a0b73f6f8cc5" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:48:59 GMT" + "Wed, 16 Jun 2021 07:16:18 GMT" ], "Content-Length": [ "22" @@ -1836,16 +1915,16 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/restoredaccountname8295?api-version=2021-03-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL3BpdHItc3RhZ2UtcmcvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmVzdG9yZWRhY2NvdW50bmFtZTgyOTU/YXBpLXZlcnNpb249MjAyMS0wMy0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/restoredaccountname3766?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmVzdG9yZWRhY2NvdW50bmFtZTM3NjY/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/5.0.321.7212", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/2.0.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, "ResponseHeaders": { @@ -1859,46 +1938,46 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11972" + "11968" ], "x-ms-request-id": [ - "d801a3f3-c426-48f0-a98e-ffada7d14d2a" + "db387b30-ebbe-4e35-8522-8c10a2ac36fb" ], "x-ms-correlation-request-id": [ - "d801a3f3-c426-48f0-a98e-ffada7d14d2a" + "db387b30-ebbe-4e35-8522-8c10a2ac36fb" ], "x-ms-routing-request-id": [ - "WESTUS2:20210303T174859Z:d801a3f3-c426-48f0-a98e-ffada7d14d2a" + "WESTUS2:20210616T071619Z:db387b30-ebbe-4e35-8522-8c10a2ac36fb" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Wed, 03 Mar 2021 17:48:59 GMT" + "Wed, 16 Jun 2021 07:16:18 GMT" ], "Content-Length": [ - "2484" + "2554" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/pitr-stage-rg/providers/Microsoft.DocumentDB/databaseAccounts/restoredaccountname8295\",\r\n \"name\": \"restoredaccountname8295\",\r\n \"location\": \"West US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {},\r\n \"systemData\": {\r\n \"createdAt\": \"2021-03-03T17:48:44.4341123Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://restoredaccountname8295.documents-staging.windows-ppe.net:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"instanceId\": \"1a937e8e-1a33-4fd1-9349-34ede3dd02f2\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"enableCassandraConnector\": false,\r\n \"defaultIdentity\": \"\",\r\n \"networkAclBypass\": \"None\",\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"restoredaccountname8295-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname8295-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"restoredaccountname8295-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname8295-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"restoredaccountname8295-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname8295-westus2.documents-staging.windows-ppe.net:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"restoredaccountname8295-westus2\",\r\n \"locationName\": \"West US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/westus2/restorableDatabaseAccounts/9a4b63c3-49d1-4c87-b28e-92e92aeaa0ea\",\r\n \"restoreTimestampInUtc\": \"2021-03-01T00:00:00Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/restoredaccountname3766\",\r\n \"name\": \"restoredaccountname3766\",\r\n \"location\": \"East US 2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts\",\r\n \"kind\": \"GlobalDocumentDB\",\r\n \"tags\": {\r\n \"defaultExperience\": \"Core (SQL)\",\r\n \"hidden-cosmos-mmspecial\": \"\"\r\n },\r\n \"systemData\": {\r\n \"createdAt\": \"2021-06-16T07:16:11.6682597Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"documentEndpoint\": \"https://restoredaccountname3766.documents.azure.com:443/\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"enableAutomaticFailover\": false,\r\n \"enableMultipleWriteLocations\": false,\r\n \"enablePartitionKeyMonitor\": false,\r\n \"isVirtualNetworkFilterEnabled\": false,\r\n \"virtualNetworkRules\": [],\r\n \"EnabledApiTypes\": \"Sql\",\r\n \"disableKeyBasedMetadataWriteAccess\": false,\r\n \"enableFreeTier\": false,\r\n \"enableAnalyticalStorage\": false,\r\n \"analyticalStorageConfiguration\": {},\r\n \"instanceId\": \"1dfe47fb-822c-41f1-b403-1cf6c63d0ba7\",\r\n \"createMode\": \"Restore\",\r\n \"databaseAccountOfferType\": \"Standard\",\r\n \"defaultIdentity\": \"FirstPartyIdentity\",\r\n \"networkAclBypass\": \"None\",\r\n \"disableLocalAuth\": false,\r\n \"consistencyPolicy\": {\r\n \"defaultConsistencyLevel\": \"Session\",\r\n \"maxIntervalInSeconds\": 5,\r\n \"maxStalenessPrefix\": 100\r\n },\r\n \"configurationOverrides\": {},\r\n \"writeLocations\": [\r\n {\r\n \"id\": \"restoredaccountname3766-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname3766-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"readLocations\": [\r\n {\r\n \"id\": \"restoredaccountname3766-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname3766-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"locations\": [\r\n {\r\n \"id\": \"restoredaccountname3766-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"documentEndpoint\": \"https://restoredaccountname3766-eastus2.documents.azure.com:443/\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"failoverPriority\": 0,\r\n \"isZoneRedundant\": false\r\n }\r\n ],\r\n \"failoverPolicies\": [\r\n {\r\n \"id\": \"restoredaccountname3766-eastus2\",\r\n \"locationName\": \"East US 2\",\r\n \"failoverPriority\": 0\r\n }\r\n ],\r\n \"cors\": [],\r\n \"capabilities\": [],\r\n \"ipRules\": [],\r\n \"backupPolicy\": {\r\n \"type\": \"Continuous\"\r\n },\r\n \"restoreParameters\": {\r\n \"restoreMode\": \"PointInTime\",\r\n \"restoreSource\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/restorableDatabaseAccounts/9f8ee54b-f275-44fa-b2c5-9983644c131f\",\r\n \"restoreTimestampInUtc\": \"2021-06-16T07:01:38.282628Z\",\r\n \"databasesToRestore\": []\r\n },\r\n \"networkAclBypassResourceIds\": []\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 } ], "Names": { "RestoreDatabaseAccountTests": [ - "restoredaccountname8295" + "restoredaccountname3766" ] }, "Variables": { - "SubscriptionId": "80be3961-0521-4a0a-8570-5cd5a4e2f98c" + "SubscriptionId": "259fbb24-9bcd-4cfc-865c-fc33b22fe38a" } } \ No newline at end of file diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/RetrieveSqlContainerBackupInformationTests/RetrieveContinuousBackupInfoTest.json b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/RetrieveSqlContainerBackupInformationTests/RetrieveContinuousBackupInfoTest.json new file mode 100644 index 000000000000..f2e0f25b0988 --- /dev/null +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/RetrieveSqlContainerBackupInformationTests/RetrieveContinuousBackupInfoTest.json @@ -0,0 +1,938 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/sqltestaccount124/sqlDatabases/TestDB1/containers/TestContainer2?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvc3FsdGVzdGFjY291bnQxMjQvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29udGFpbmVyMj9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestContainer2\",\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/id\"\r\n ]\r\n }\r\n },\r\n \"options\": {\r\n \"throughput\": 400\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "84e67394-e50c-40a6-b6bc-4cda0e097fc5" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "218" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/sqltestaccount124/sqlDatabases/TestDB1/containers/TestContainer2/operationResults/6aeefaef-3899-4545-acae-495d7d5c9477?api-version=2021-06-15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/6aeefaef-3899-4545-acae-495d7d5c9477?api-version=2021-06-15" + ], + "x-ms-request-id": [ + "6aeefaef-3899-4545-acae-495d7d5c9477" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "d1b60f35-6f4d-4b17-9677-ded352bf5ce1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T065431Z:d1b60f35-6f4d-4b17-9677-ded352bf5ce1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 06:54:31 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/6aeefaef-3899-4545-acae-495d7d5c9477?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzZhZWVmYWVmLTM4OTktNDU0NS1hY2FlLTQ5NWQ3ZDVjOTQ3Nz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "166d970b-7241-4366-8a37-cfb0dde589c5" + ], + "x-ms-correlation-request-id": [ + "166d970b-7241-4366-8a37-cfb0dde589c5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T065502Z:166d970b-7241-4366-8a37-cfb0dde589c5" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 06:55:01 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/sqltestaccount124/sqlDatabases/TestDB1/containers/TestContainer2?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvc3FsdGVzdGFjY291bnQxMjQvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29udGFpbmVyMj9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "93395a3c-a0e7-4cfa-9e77-eed89991fd59" + ], + "x-ms-correlation-request-id": [ + "93395a3c-a0e7-4cfa-9e77-eed89991fd59" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T065502Z:93395a3c-a0e7-4cfa-9e77-eed89991fd59" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 06:55:02 GMT" + ], + "Content-Length": [ + "1106" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/sqltestaccount124/sqlDatabases/TestDB1/containers/TestContainer2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers\",\r\n \"name\": \"TestContainer2\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"TestContainer2\",\r\n \"indexingPolicy\": {\r\n \"indexingMode\": \"consistent\",\r\n \"automatic\": true,\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/\\\"_etag\\\"/?\"\r\n }\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/id\"\r\n ],\r\n \"kind\": \"Hash\"\r\n },\r\n \"uniqueKeyPolicy\": {\r\n \"uniqueKeys\": []\r\n },\r\n \"conflictResolutionPolicy\": {\r\n \"mode\": \"LastWriterWins\",\r\n \"conflictResolutionPath\": \"/_ts\",\r\n \"conflictResolutionProcedure\": \"\"\r\n },\r\n \"backupPolicy\": {\r\n \"type\": 1\r\n },\r\n \"allowMaterializedViews\": false,\r\n \"geospatialConfig\": {\r\n \"type\": \"Geography\"\r\n },\r\n \"_rid\": \"nNkMAJ3y89g=\",\r\n \"_ts\": 1623826477,\r\n \"_self\": \"dbs/nNkMAA==/colls/nNkMAJ3y89g=/\",\r\n \"_etag\": \"\\\"00003206-0000-0200-0000-60c9a02d0000\\\"\",\r\n \"_docs\": \"docs/\",\r\n \"_sprocs\": \"sprocs/\",\r\n \"_triggers\": \"triggers/\",\r\n \"_udfs\": \"udfs/\",\r\n \"_conflicts\": \"conflicts/\",\r\n \"statistics\": [\r\n {\r\n \"id\": \"0\",\r\n \"sizeInKB\": 0,\r\n \"documentCount\": 0,\r\n \"partitionKeys\": []\r\n }\r\n ]\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/sqltestaccount124/sqlDatabases/TestDB1/containers/TestContainer2/retrieveContinuousBackupInformation?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvc3FsdGVzdGFjY291bnQxMjQvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29udGFpbmVyMi9yZXRyaWV2ZUNvbnRpbnVvdXNCYWNrdXBJbmZvcm1hdGlvbj9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "76f4d5e5-acb0-45e7-be5d-646070899d2e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/sqltestaccount124/sqlDatabases/TestDB1/containers/TestContainer2/retrieveContinuousBackupInformation/operationResults/99e13563-72c5-4129-91f5-884db45233d7?api-version=2021-06-15" + ], + "x-ms-request-id": [ + "99e13563-72c5-4129-91f5-884db45233d7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "fe9180ed-ee8c-485c-aeee-1e1459dc9e8e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T065502Z:fe9180ed-ee8c-485c-aeee-1e1459dc9e8e" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 06:55:02 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/sqltestaccount124/sqlDatabases/TestDB1/containers/TestContainer2/retrieveContinuousBackupInformation?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvc3FsdGVzdGFjY291bnQxMjQvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29udGFpbmVyMi9yZXRyaWV2ZUNvbnRpbnVvdXNCYWNrdXBJbmZvcm1hdGlvbj9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"location\": \"eastus2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "59eb1581-f0a4-4748-817d-9d1a7852edeb" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/sqltestaccount124/sqlDatabases/TestDB1/containers/TestContainer2/retrieveContinuousBackupInformation/operationResults/5244e034-a747-44d8-8f92-8eca50c542e8?api-version=2021-06-15" + ], + "x-ms-request-id": [ + "5244e034-a747-44d8-8f92-8eca50c542e8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "25d57284-9138-47a3-89bd-08a061b2a355" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T065604Z:25d57284-9138-47a3-89bd-08a061b2a355" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 06:56:04 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/sqltestaccount124/sqlDatabases/TestDB1/containers/TestContainer2/retrieveContinuousBackupInformation/operationResults/99e13563-72c5-4129-91f5-884db45233d7?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvc3FsdGVzdGFjY291bnQxMjQvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29udGFpbmVyMi9yZXRyaWV2ZUNvbnRpbnVvdXNCYWNrdXBJbmZvcm1hdGlvbi9vcGVyYXRpb25SZXN1bHRzLzk5ZTEzNTYzLTcyYzUtNDEyOS05MWY1LTg4NGRiNDUyMzNkNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "b23745db-bbda-469a-be54-3bb6d2f4253b" + ], + "x-ms-correlation-request-id": [ + "b23745db-bbda-469a-be54-3bb6d2f4253b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T065533Z:b23745db-bbda-469a-be54-3bb6d2f4253b" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 06:55:32 GMT" + ], + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"continuousBackupInformation\": {\r\n \"latestRestorableTimestamp\": \"1623826517\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/sqltestaccount124/sqlDatabases/TestDB1/containers/TestContainer2/retrieveContinuousBackupInformation/operationResults/99e13563-72c5-4129-91f5-884db45233d7?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvc3FsdGVzdGFjY291bnQxMjQvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29udGFpbmVyMi9yZXRyaWV2ZUNvbnRpbnVvdXNCYWNrdXBJbmZvcm1hdGlvbi9vcGVyYXRpb25SZXN1bHRzLzk5ZTEzNTYzLTcyYzUtNDEyOS05MWY1LTg4NGRiNDUyMzNkNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "82823ed4-74e7-4579-a207-379ed61a7a70" + ], + "x-ms-correlation-request-id": [ + "82823ed4-74e7-4579-a207-379ed61a7a70" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T065533Z:82823ed4-74e7-4579-a207-379ed61a7a70" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 06:55:32 GMT" + ], + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"continuousBackupInformation\": {\r\n \"latestRestorableTimestamp\": \"1623826517\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/sqltestaccount124/sqlDatabases/TestDB1/containers/TestContainer2/throughputSettings/default?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvc3FsdGVzdGFjY291bnQxMjQvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29udGFpbmVyMi90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 4000\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e76c4786-7532-43d9-8816-22f379a69492" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "80" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/sqltestaccount124/sqlDatabases/TestDB1/containers/TestContainer2/throughputSettings/default/operationResults/3b33458a-4636-410f-9f6b-2fd53e42340a?api-version=2021-06-15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/3b33458a-4636-410f-9f6b-2fd53e42340a?api-version=2021-06-15" + ], + "x-ms-request-id": [ + "3b33458a-4636-410f-9f6b-2fd53e42340a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "eac026ca-1bed-4cd8-ad8a-774c3b48867a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T065533Z:eac026ca-1bed-4cd8-ad8a-774c3b48867a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 06:55:33 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/3b33458a-4636-410f-9f6b-2fd53e42340a?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzNiMzM0NThhLTQ2MzYtNDEwZi05ZjZiLTJmZDUzZTQyMzQwYT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "04342c55-2166-485b-b9e8-e8cbc8e512cd" + ], + "x-ms-correlation-request-id": [ + "04342c55-2166-485b-b9e8-e8cbc8e512cd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T065604Z:04342c55-2166-485b-b9e8-e8cbc8e512cd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 06:56:03 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/sqltestaccount124/sqlDatabases/TestDB1/containers/TestContainer2/throughputSettings/default?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvc3FsdGVzdGFjY291bnQxMjQvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29udGFpbmVyMi90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "9e7a2610-3673-41de-9ff8-ca944950bbf0" + ], + "x-ms-correlation-request-id": [ + "9e7a2610-3673-41de-9ff8-ca944950bbf0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T065604Z:9e7a2610-3673-41de-9ff8-ca944950bbf0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 06:56:03 GMT" + ], + "Content-Length": [ + "417" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/sqltestaccount124/sqlDatabases/TestDB1/containers/TestContainer2/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings\",\r\n \"name\": \"bME0\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 4000,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/sqltestaccount124/sqlDatabases/TestDB1/containers/TestContainer2/retrieveContinuousBackupInformation/operationResults/5244e034-a747-44d8-8f92-8eca50c542e8?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvc3FsdGVzdGFjY291bnQxMjQvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29udGFpbmVyMi9yZXRyaWV2ZUNvbnRpbnVvdXNCYWNrdXBJbmZvcm1hdGlvbi9vcGVyYXRpb25SZXN1bHRzLzUyNDRlMDM0LWE3NDctNDRkOC04ZjkyLThlY2E1MGM1NDJlOD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-request-id": [ + "f1f6ab77-350b-47cb-b384-d3a91d86f5a1" + ], + "x-ms-correlation-request-id": [ + "f1f6ab77-350b-47cb-b384-d3a91d86f5a1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T065634Z:f1f6ab77-350b-47cb-b384-d3a91d86f5a1" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 06:56:34 GMT" + ], + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"continuousBackupInformation\": {\r\n \"latestRestorableTimestamp\": \"1623826579\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/sqltestaccount124/sqlDatabases/TestDB1/containers/TestContainer2/retrieveContinuousBackupInformation/operationResults/5244e034-a747-44d8-8f92-8eca50c542e8?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvc3FsdGVzdGFjY291bnQxMjQvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29udGFpbmVyMi9yZXRyaWV2ZUNvbnRpbnVvdXNCYWNrdXBJbmZvcm1hdGlvbi9vcGVyYXRpb25SZXN1bHRzLzUyNDRlMDM0LWE3NDctNDRkOC04ZjkyLThlY2E1MGM1NDJlOD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-request-id": [ + "fa310cb8-b710-462a-95b6-5d5d3c102f41" + ], + "x-ms-correlation-request-id": [ + "fa310cb8-b710-462a-95b6-5d5d3c102f41" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T065635Z:fa310cb8-b710-462a-95b6-5d5d3c102f41" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 06:56:34 GMT" + ], + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"continuousBackupInformation\": {\r\n \"latestRestorableTimestamp\": \"1623826579\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/sqltestaccount124/sqlDatabases/TestDB1/containers/TestContainer2?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvc3FsdGVzdGFjY291bnQxMjQvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29udGFpbmVyMj9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "acbd831b-c184-4831-9e9a-813e15c09f24" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/sqltestaccount124/sqlDatabases/TestDB1/containers/TestContainer2/operationResults/8fd6bf31-88a0-4e57-9c71-b6a9137d399e?api-version=2021-06-15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/8fd6bf31-88a0-4e57-9c71-b6a9137d399e?api-version=2021-06-15" + ], + "x-ms-request-id": [ + "8fd6bf31-88a0-4e57-9c71-b6a9137d399e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "4d79b492-5096-420a-9e64-44b04cde432f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T065635Z:4d79b492-5096-420a-9e64-44b04cde432f" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 06:56:35 GMT" + ], + "Content-Length": [ + "21" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/8fd6bf31-88a0-4e57-9c71-b6a9137d399e?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzhmZDZiZjMxLTg4YTAtNGU1Ny05YzcxLWI2YTkxMzdkMzk5ZT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-request-id": [ + "e60203de-1dd5-41df-bb6a-9156ed56d05a" + ], + "x-ms-correlation-request-id": [ + "e60203de-1dd5-41df-bb6a-9156ed56d05a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T065705Z:e60203de-1dd5-41df-bb6a-9156ed56d05a" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 06:57:05 GMT" + ], + "Content-Length": [ + "22" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/sqltestaccount124/sqlDatabases/TestDB1/containers/TestContainer2/operationResults/8fd6bf31-88a0-4e57-9c71-b6a9137d399e?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvc3FsdGVzdGFjY291bnQxMjQvc3FsRGF0YWJhc2VzL1Rlc3REQjEvY29udGFpbmVycy9UZXN0Q29udGFpbmVyMi9vcGVyYXRpb25SZXN1bHRzLzhmZDZiZjMxLTg4YTAtNGU1Ny05YzcxLWI2YTkxMzdkMzk5ZT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.28207.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-gatewayversion": [ + "version=2.14.0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-request-id": [ + "a90803cd-e806-4e04-a515-27272192d5dd" + ], + "x-ms-correlation-request-id": [ + "a90803cd-e806-4e04-a515-27272192d5dd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210616T065705Z:a90803cd-e806-4e04-a515-27272192d5dd" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 16 Jun 2021 06:57:05 GMT" + ], + "Content-Type": [ + "application/json" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "259fbb24-9bcd-4cfc-865c-fc33b22fe38a" + } +} \ No newline at end of file diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/SqlResourcesOperationsTests/SqlCRUDTests.json b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/SqlResourcesOperationsTests/SqlCRUDTests.json index cf48ee06727a..8fa5f1c04212 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/SqlResourcesOperationsTests/SqlCRUDTests.json +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/SqlResourcesOperationsTests/SqlCRUDTests.json @@ -1,21 +1,21 @@ { "Entries": [ { - "RequestUri": "/providers/Microsoft.DocumentDB/databaseAccountNames/cli124?api-version=2021-04-15", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnROYW1lcy9jbGkxMjQ/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", + "RequestUri": "/providers/Microsoft.DocumentDB/databaseAccountNames/cli126?api-version=2021-06-15", + "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnROYW1lcy9jbGkxMjY/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "HEAD", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2b83f260-8160-473b-b211-6da9961cbb3c" + "dec186b4-89c1-4de6-a0b9-9e77b8317a09" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -30,7 +30,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-activity-id": [ - "2b83f260-8160-473b-b211-6da9961cbb3c" + "dec186b4-89c1-4de6-a0b9-9e77b8317a09" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -39,19 +39,19 @@ "11999" ], "x-ms-request-id": [ - "8998fda8-ee22-4be4-b66b-a20832ab97b0" + "78d9ae00-a153-4ed4-ba62-e38cee5aaaf2" ], "x-ms-correlation-request-id": [ - "8998fda8-ee22-4be4-b66b-a20832ab97b0" + "78d9ae00-a153-4ed4-ba62-e38cee5aaaf2" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174428Z:8998fda8-ee22-4be4-b66b-a20832ab97b0" + "WESTUS2:20210616T075815Z:78d9ae00-a153-4ed4-ba62-e38cee5aaaf2" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:44:28 GMT" + "Wed, 16 Jun 2021 07:58:14 GMT" ], "Content-Length": [ "0" @@ -61,21 +61,21 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWU/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI2L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWU/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName\"\r\n },\r\n \"options\": {}\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "fbcea387-12ed-4254-bc7f-ed05b8138813" + "8f2b12a7-aba2-452a-90cb-05df84dcee75" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ @@ -93,19 +93,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/operationResults/6cc325fb-e2ff-4105-8a33-53f45f30c9ba?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/operationResults/9135e661-d84a-4811-8536-572761dc9dbb?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/6cc325fb-e2ff-4105-8a33-53f45f30c9ba?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/9135e661-d84a-4811-8536-572761dc9dbb?api-version=2021-06-15" ], "x-ms-request-id": [ - "6cc325fb-e2ff-4105-8a33-53f45f30c9ba" + "9135e661-d84a-4811-8536-572761dc9dbb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -114,16 +114,16 @@ "1199" ], "x-ms-correlation-request-id": [ - "8a7855e1-73cc-4fe6-8778-e49d41194961" + "a8610c35-1523-493e-b484-a6b6a7c37096" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174429Z:8a7855e1-73cc-4fe6-8778-e49d41194961" + "WESTUS2:20210616T075816Z:a8610c35-1523-493e-b484-a6b6a7c37096" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:44:29 GMT" + "Wed, 16 Jun 2021 07:58:16 GMT" ], "Content-Length": [ "21" @@ -136,15 +136,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/6cc325fb-e2ff-4105-8a33-53f45f30c9ba?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzZjYzMyNWZiLWUyZmYtNDEwNS04YTMzLTUzZjQ1ZjMwYzliYT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/9135e661-d84a-4811-8536-572761dc9dbb?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzkxMzVlNjYxLWQ4NGEtNDgxMS04NTM2LTU3Mjc2MWRjOWRiYj9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -159,7 +159,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -168,19 +168,19 @@ "11999" ], "x-ms-request-id": [ - "a107e341-b554-46ff-9430-2bd780e082dc" + "ed5f3dfb-09a0-46da-9ef6-f8abb1054fc0" ], "x-ms-correlation-request-id": [ - "a107e341-b554-46ff-9430-2bd780e082dc" + "ed5f3dfb-09a0-46da-9ef6-f8abb1054fc0" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174459Z:a107e341-b554-46ff-9430-2bd780e082dc" + "WESTUS2:20210616T075846Z:ed5f3dfb-09a0-46da-9ef6-f8abb1054fc0" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:44:59 GMT" + "Wed, 16 Jun 2021 07:58:46 GMT" ], "Content-Length": [ "22" @@ -193,15 +193,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWU/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI2L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWU/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -216,7 +216,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -225,19 +225,19 @@ "11998" ], "x-ms-request-id": [ - "4e07a839-902b-4a0c-9cf2-ad4d35161783" + "34e46b72-0bbc-4224-98df-c53039d4ecf2" ], "x-ms-correlation-request-id": [ - "4e07a839-902b-4a0c-9cf2-ad4d35161783" + "34e46b72-0bbc-4224-98df-c53039d4ecf2" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174500Z:4e07a839-902b-4a0c-9cf2-ad4d35161783" + "WESTUS2:20210616T075846Z:34e46b72-0bbc-4224-98df-c53039d4ecf2" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:44:59 GMT" + "Wed, 16 Jun 2021 07:58:46 GMT" ], "Content-Length": [ "458" @@ -246,25 +246,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases\",\r\n \"name\": \"databaseName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName\",\r\n \"_rid\": \"6EAGAA==\",\r\n \"_self\": \"dbs/6EAGAA==/\",\r\n \"_etag\": \"\\\"0000c20e-0000-0200-0000-60884d820000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1619545474\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases\",\r\n \"name\": \"databaseName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName\",\r\n \"_rid\": \"xaE4AA==\",\r\n \"_self\": \"dbs/xaE4AA==/\",\r\n \"_etag\": \"\\\"0000c401-0000-0200-0000-60c944c50000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1623803077\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWU/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI2L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWU/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "c50a30fe-dfc3-495a-ba45-5a2df530a8ba" + "d3fddd52-e0bb-479c-9416-4d450ec59d98" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -279,7 +279,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -288,19 +288,19 @@ "11997" ], "x-ms-request-id": [ - "7127b2fe-37b2-4716-a8f2-442649d3800e" + "b639a19e-6507-4110-a5ce-9be5e28f7a0e" ], "x-ms-correlation-request-id": [ - "7127b2fe-37b2-4716-a8f2-442649d3800e" + "b639a19e-6507-4110-a5ce-9be5e28f7a0e" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174500Z:7127b2fe-37b2-4716-a8f2-442649d3800e" + "WESTUS2:20210616T075847Z:b639a19e-6507-4110-a5ce-9be5e28f7a0e" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:44:59 GMT" + "Wed, 16 Jun 2021 07:58:46 GMT" ], "Content-Length": [ "458" @@ -309,25 +309,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases\",\r\n \"name\": \"databaseName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName\",\r\n \"_rid\": \"6EAGAA==\",\r\n \"_self\": \"dbs/6EAGAA==/\",\r\n \"_etag\": \"\\\"0000c20e-0000-0200-0000-60884d820000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1619545474\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases\",\r\n \"name\": \"databaseName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName\",\r\n \"_rid\": \"xaE4AA==\",\r\n \"_self\": \"dbs/xaE4AA==/\",\r\n \"_etag\": \"\\\"0000c401-0000-0200-0000-60c944c50000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1623803077\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName2?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUyP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName2?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI2L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUyP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName2\"\r\n },\r\n \"options\": {\r\n \"throughput\": 700\r\n }\r\n },\r\n \"location\": \"EAST US 2\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "7a824c4d-7cd2-4b9b-9334-b4643edd8256" + "b191d4bd-d53b-4895-b95d-1051dd2d4cb7" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ @@ -345,19 +345,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName2/operationResults/db60d581-18ae-4752-99f7-ceb089ecfd58?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName2/operationResults/b22d325f-c852-4eb4-b5d7-7fd1bfff0a49?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/db60d581-18ae-4752-99f7-ceb089ecfd58?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/b22d325f-c852-4eb4-b5d7-7fd1bfff0a49?api-version=2021-06-15" ], "x-ms-request-id": [ - "db60d581-18ae-4752-99f7-ceb089ecfd58" + "b22d325f-c852-4eb4-b5d7-7fd1bfff0a49" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -366,16 +366,16 @@ "1198" ], "x-ms-correlation-request-id": [ - "52c39d89-fe3c-46c8-91fb-b814f7eed34e" + "6fd5201e-f3f0-416d-b9bd-4d655945db0c" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174501Z:52c39d89-fe3c-46c8-91fb-b814f7eed34e" + "WESTUS2:20210616T075847Z:6fd5201e-f3f0-416d-b9bd-4d655945db0c" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:45:00 GMT" + "Wed, 16 Jun 2021 07:58:47 GMT" ], "Content-Length": [ "21" @@ -388,15 +388,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/db60d581-18ae-4752-99f7-ceb089ecfd58?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2RiNjBkNTgxLTE4YWUtNDc1Mi05OWY3LWNlYjA4OWVjZmQ1OD9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/b22d325f-c852-4eb4-b5d7-7fd1bfff0a49?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2IyMmQzMjVmLWM4NTItNGViNC1iNWQ3LTdmZDFiZmZmMGE0OT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -411,7 +411,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -420,19 +420,19 @@ "11996" ], "x-ms-request-id": [ - "88139015-4731-4228-90ea-80262773d5c9" + "2dc98b4b-8eee-4742-8035-5af3e2cfc104" ], "x-ms-correlation-request-id": [ - "88139015-4731-4228-90ea-80262773d5c9" + "2dc98b4b-8eee-4742-8035-5af3e2cfc104" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174531Z:88139015-4731-4228-90ea-80262773d5c9" + "WESTUS2:20210616T075917Z:2dc98b4b-8eee-4742-8035-5af3e2cfc104" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:45:31 GMT" + "Wed, 16 Jun 2021 07:59:16 GMT" ], "Content-Length": [ "22" @@ -445,15 +445,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName2?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUyP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName2?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI2L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUyP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -468,7 +468,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -477,19 +477,19 @@ "11995" ], "x-ms-request-id": [ - "92e448e2-5116-4447-aad1-23c733243fc0" + "712e3bb7-7b08-4c75-93fa-51a7d37d4ef2" ], "x-ms-correlation-request-id": [ - "92e448e2-5116-4447-aad1-23c733243fc0" + "712e3bb7-7b08-4c75-93fa-51a7d37d4ef2" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174531Z:92e448e2-5116-4447-aad1-23c733243fc0" + "WESTUS2:20210616T075918Z:712e3bb7-7b08-4c75-93fa-51a7d37d4ef2" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:45:31 GMT" + "Wed, 16 Jun 2021 07:59:17 GMT" ], "Content-Length": [ "461" @@ -498,25 +498,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases\",\r\n \"name\": \"databaseName2\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName2\",\r\n \"_rid\": \"ok8iAA==\",\r\n \"_self\": \"dbs/ok8iAA==/\",\r\n \"_etag\": \"\\\"0000c40e-0000-0200-0000-60884da60000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1619545510\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases\",\r\n \"name\": \"databaseName2\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName2\",\r\n \"_rid\": \"Cy8eAA==\",\r\n \"_self\": \"dbs/Cy8eAA==/\",\r\n \"_etag\": \"\\\"0000c601-0000-0200-0000-60c944e60000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1623803110\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI2L3NxbERhdGFiYXNlcz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a7bde4cb-aa97-479f-99f1-80aa77bd5a51" + "015f855c-c0a6-40d9-8164-25a17b9fe0f8" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -531,7 +531,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -540,46 +540,46 @@ "11994" ], "x-ms-request-id": [ - "d286f36f-c978-4ee5-9eff-a8902e42c87e" + "3ec3774d-d6cb-4904-b9e3-3871524b5819" ], "x-ms-correlation-request-id": [ - "d286f36f-c978-4ee5-9eff-a8902e42c87e" + "3ec3774d-d6cb-4904-b9e3-3871524b5819" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174531Z:d286f36f-c978-4ee5-9eff-a8902e42c87e" + "WESTUS2:20210616T075918Z:3ec3774d-d6cb-4904-b9e3-3871524b5819" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:45:31 GMT" + "Wed, 16 Jun 2021 07:59:17 GMT" ], "Content-Length": [ - "932" + "1394" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases\",\r\n \"name\": \"databaseName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName\",\r\n \"_rid\": \"6EAGAA==\",\r\n \"_self\": \"dbs/6EAGAA==/\",\r\n \"_etag\": \"\\\"0000c20e-0000-0200-0000-60884d820000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1619545474\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases\",\r\n \"name\": \"databaseName2\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName2\",\r\n \"_rid\": \"ok8iAA==\",\r\n \"_self\": \"dbs/ok8iAA==/\",\r\n \"_etag\": \"\\\"0000c40e-0000-0200-0000-60884da60000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1619545510\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases\",\r\n \"name\": \"databaseName2\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName2\",\r\n \"_rid\": \"Cy8eAA==\",\r\n \"_self\": \"dbs/Cy8eAA==/\",\r\n \"_etag\": \"\\\"0000c601-0000-0200-0000-60c944e60000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1623803110\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases\",\r\n \"name\": \"databaseName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName\",\r\n \"_rid\": \"xaE4AA==\",\r\n \"_self\": \"dbs/xaE4AA==/\",\r\n \"_etag\": \"\\\"0000c401-0000-0200-0000-60c944c50000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1623803077\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName3\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases\",\r\n \"name\": \"databaseName3\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"databaseName3\",\r\n \"_rid\": \"VE5xAA==\",\r\n \"_self\": \"dbs/VE5xAA==/\",\r\n \"_etag\": \"\\\"0000db01-0000-0200-0000-60c9483d0000\\\"\",\r\n \"_colls\": \"colls/\",\r\n \"_users\": \"users/\",\r\n \"_ts\": 1623803965\r\n }\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName2/throughputSettings/default?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUyL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName2/throughputSettings/default?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI2L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUyL3Rocm91Z2hwdXRTZXR0aW5ncy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6b95967e-fba5-483c-9cd5-6fbfe5915734" + "775571e3-ec31-4fe9-989f-3c6943319369" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -594,7 +594,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -603,19 +603,19 @@ "11993" ], "x-ms-request-id": [ - "f61ad662-cad8-41a9-b72a-ed0f15fb528b" + "8b659c74-462d-4be7-9999-f42afbfceb46" ], "x-ms-correlation-request-id": [ - "f61ad662-cad8-41a9-b72a-ed0f15fb528b" + "8b659c74-462d-4be7-9999-f42afbfceb46" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174532Z:f61ad662-cad8-41a9-b72a-ed0f15fb528b" + "WESTUS2:20210616T075918Z:8b659c74-462d-4be7-9999-f42afbfceb46" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:45:31 GMT" + "Wed, 16 Jun 2021 07:59:17 GMT" ], "Content-Length": [ "374" @@ -624,32 +624,32 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName2/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings\",\r\n \"name\": \"1nZu\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 700,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName2/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings\",\r\n \"name\": \"TskQ\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 700,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName2?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI2L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lMj9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"containerName\",\r\n \"indexingPolicy\": {\r\n \"automatic\": true,\r\n \"indexingMode\": \"consistent\",\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/pathToNotIndex/*\"\r\n }\r\n ],\r\n \"compositeIndexes\": [\r\n [\r\n {\r\n \"path\": \"/orderByPath1\",\r\n \"order\": \"ascending\"\r\n },\r\n {\r\n \"path\": \"/orderByPath2\",\r\n \"order\": \"descending\"\r\n }\r\n ],\r\n [\r\n {\r\n \"path\": \"/orderByPath3\",\r\n \"order\": \"ascending\"\r\n },\r\n {\r\n \"path\": \"/orderByPath4\",\r\n \"order\": \"descending\"\r\n }\r\n ]\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/address/zipCode\"\r\n ],\r\n \"kind\": \"Hash\"\r\n }\r\n },\r\n \"options\": {\r\n \"throughput\": 700\r\n }\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"containerName2\",\r\n \"indexingPolicy\": {\r\n \"automatic\": true,\r\n \"indexingMode\": \"consistent\",\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/pathToNotIndex/*\"\r\n }\r\n ],\r\n \"compositeIndexes\": [\r\n [\r\n {\r\n \"path\": \"/orderByPath1\",\r\n \"order\": \"ascending\"\r\n },\r\n {\r\n \"path\": \"/orderByPath2\",\r\n \"order\": \"descending\"\r\n }\r\n ],\r\n [\r\n {\r\n \"path\": \"/orderByPath3\",\r\n \"order\": \"ascending\"\r\n },\r\n {\r\n \"path\": \"/orderByPath4\",\r\n \"order\": \"descending\"\r\n }\r\n ]\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/address/zipCode\"\r\n ],\r\n \"kind\": \"Hash\"\r\n }\r\n },\r\n \"options\": {\r\n \"throughput\": 700\r\n }\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "74fffc6c-7156-4be3-83ff-c65b9b73df8d" + "d3bc7c2d-d300-4636-a80f-ba5c4137472e" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "1081" + "1082" ] }, "ResponseHeaders": { @@ -660,19 +660,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/operationResults/f055147d-6919-4744-b6c3-2cbd3e853278?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName2/operationResults/4cc010d8-5975-4210-a1b9-b1eb500de178?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/f055147d-6919-4744-b6c3-2cbd3e853278?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/4cc010d8-5975-4210-a1b9-b1eb500de178?api-version=2021-06-15" ], "x-ms-request-id": [ - "f055147d-6919-4744-b6c3-2cbd3e853278" + "4cc010d8-5975-4210-a1b9-b1eb500de178" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -681,16 +681,16 @@ "1197" ], "x-ms-correlation-request-id": [ - "57e37d4e-1fca-4361-a3bd-9ae6d1abea62" + "25708cd9-bc3e-4d2a-8c14-5407cbbfbf64" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174533Z:57e37d4e-1fca-4361-a3bd-9ae6d1abea62" + "WESTUS2:20210616T075919Z:25708cd9-bc3e-4d2a-8c14-5407cbbfbf64" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:45:32 GMT" + "Wed, 16 Jun 2021 07:59:18 GMT" ], "Content-Length": [ "21" @@ -703,15 +703,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/f055147d-6919-4744-b6c3-2cbd3e853278?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2YwNTUxNDdkLTY5MTktNDc0NC1iNmMzLTJjYmQzZTg1MzI3OD9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/4cc010d8-5975-4210-a1b9-b1eb500de178?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzRjYzAxMGQ4LTU5NzUtNDIxMC1hMWI5LWIxZWI1MDBkZTE3OD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -726,7 +726,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -735,19 +735,19 @@ "11992" ], "x-ms-request-id": [ - "07b93a27-2e05-462d-af06-852cf7434fad" + "cb045140-d012-459e-8b45-19b1dd2020a4" ], "x-ms-correlation-request-id": [ - "07b93a27-2e05-462d-af06-852cf7434fad" + "cb045140-d012-459e-8b45-19b1dd2020a4" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174603Z:07b93a27-2e05-462d-af06-852cf7434fad" + "WESTUS2:20210616T075949Z:cb045140-d012-459e-8b45-19b1dd2020a4" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:46:02 GMT" + "Wed, 16 Jun 2021 07:59:49 GMT" ], "Content-Length": [ "22" @@ -760,15 +760,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName2?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI2L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lMj9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -783,7 +783,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -792,46 +792,46 @@ "11991" ], "x-ms-request-id": [ - "2e789efb-0f12-4214-829a-d11fb1534b12" + "0fa482bf-0149-4421-8622-5f5f2dc118b4" ], "x-ms-correlation-request-id": [ - "2e789efb-0f12-4214-829a-d11fb1534b12" + "0fa482bf-0149-4421-8622-5f5f2dc118b4" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174603Z:2e789efb-0f12-4214-829a-d11fb1534b12" + "WESTUS2:20210616T075949Z:0fa482bf-0149-4421-8622-5f5f2dc118b4" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:46:02 GMT" + "Wed, 16 Jun 2021 07:59:49 GMT" ], "Content-Length": [ - "1320" + "1323" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers\",\r\n \"name\": \"containerName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"containerName\",\r\n \"indexingPolicy\": {\r\n \"indexingMode\": \"consistent\",\r\n \"automatic\": true,\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/pathToNotIndex/*\"\r\n },\r\n {\r\n \"path\": \"/\\\"_etag\\\"/?\"\r\n }\r\n ],\r\n \"compositeIndexes\": [\r\n [\r\n {\r\n \"path\": \"/orderByPath1\",\r\n \"order\": \"ascending\"\r\n },\r\n {\r\n \"path\": \"/orderByPath2\",\r\n \"order\": \"descending\"\r\n }\r\n ],\r\n [\r\n {\r\n \"path\": \"/orderByPath3\",\r\n \"order\": \"ascending\"\r\n },\r\n {\r\n \"path\": \"/orderByPath4\",\r\n \"order\": \"descending\"\r\n }\r\n ]\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/address/zipCode\"\r\n ],\r\n \"kind\": \"Hash\"\r\n },\r\n \"uniqueKeyPolicy\": {\r\n \"uniqueKeys\": []\r\n },\r\n \"conflictResolutionPolicy\": {\r\n \"mode\": \"LastWriterWins\",\r\n \"conflictResolutionPath\": \"/_ts\",\r\n \"conflictResolutionProcedure\": \"\"\r\n },\r\n \"allowMaterializedViews\": false,\r\n \"geospatialConfig\": {\r\n \"type\": \"Geography\"\r\n },\r\n \"_rid\": \"6EAGAPmHjic=\",\r\n \"_ts\": 1619545541,\r\n \"_self\": \"dbs/6EAGAA==/colls/6EAGAPmHjic=/\",\r\n \"_etag\": \"\\\"0000c80e-0000-0200-0000-60884dc50000\\\"\",\r\n \"_docs\": \"docs/\",\r\n \"_sprocs\": \"sprocs/\",\r\n \"_triggers\": \"triggers/\",\r\n \"_udfs\": \"udfs/\",\r\n \"_conflicts\": \"conflicts/\",\r\n \"statistics\": [\r\n {\r\n \"id\": \"0\",\r\n \"sizeInKB\": 0,\r\n \"documentCount\": 0,\r\n \"partitionKeys\": []\r\n }\r\n ]\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers\",\r\n \"name\": \"containerName2\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"containerName2\",\r\n \"indexingPolicy\": {\r\n \"indexingMode\": \"consistent\",\r\n \"automatic\": true,\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/pathToNotIndex/*\"\r\n },\r\n {\r\n \"path\": \"/\\\"_etag\\\"/?\"\r\n }\r\n ],\r\n \"compositeIndexes\": [\r\n [\r\n {\r\n \"path\": \"/orderByPath1\",\r\n \"order\": \"ascending\"\r\n },\r\n {\r\n \"path\": \"/orderByPath2\",\r\n \"order\": \"descending\"\r\n }\r\n ],\r\n [\r\n {\r\n \"path\": \"/orderByPath3\",\r\n \"order\": \"ascending\"\r\n },\r\n {\r\n \"path\": \"/orderByPath4\",\r\n \"order\": \"descending\"\r\n }\r\n ]\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/address/zipCode\"\r\n ],\r\n \"kind\": \"Hash\"\r\n },\r\n \"uniqueKeyPolicy\": {\r\n \"uniqueKeys\": []\r\n },\r\n \"conflictResolutionPolicy\": {\r\n \"mode\": \"LastWriterWins\",\r\n \"conflictResolutionPath\": \"/_ts\",\r\n \"conflictResolutionProcedure\": \"\"\r\n },\r\n \"allowMaterializedViews\": false,\r\n \"geospatialConfig\": {\r\n \"type\": \"Geography\"\r\n },\r\n \"_rid\": \"xaE4AO-G7eg=\",\r\n \"_ts\": 1623803142,\r\n \"_self\": \"dbs/xaE4AA==/colls/xaE4AO-G7eg=/\",\r\n \"_etag\": \"\\\"0000ca01-0000-0200-0000-60c945060000\\\"\",\r\n \"_docs\": \"docs/\",\r\n \"_sprocs\": \"sprocs/\",\r\n \"_triggers\": \"triggers/\",\r\n \"_udfs\": \"udfs/\",\r\n \"_conflicts\": \"conflicts/\",\r\n \"statistics\": [\r\n {\r\n \"id\": \"0\",\r\n \"sizeInKB\": 0,\r\n \"documentCount\": 0,\r\n \"partitionKeys\": []\r\n }\r\n ]\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI2L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "1ed83b9b-a737-4486-b056-8ec4fc507a01" + "ca666a87-ed91-417b-8fed-b9e27ffd27fe" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -846,7 +846,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -855,46 +855,46 @@ "11990" ], "x-ms-request-id": [ - "c7163b76-0b04-463b-ae4c-159824cd638c" + "a9656ac1-03ee-40da-97f9-9ec6529c35c7" ], "x-ms-correlation-request-id": [ - "c7163b76-0b04-463b-ae4c-159824cd638c" + "a9656ac1-03ee-40da-97f9-9ec6529c35c7" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174603Z:c7163b76-0b04-463b-ae4c-159824cd638c" + "WESTUS2:20210616T075949Z:a9656ac1-03ee-40da-97f9-9ec6529c35c7" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:46:02 GMT" + "Wed, 16 Jun 2021 07:59:49 GMT" ], "Content-Length": [ - "1256" + "2504" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers\",\r\n \"name\": \"containerName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"containerName\",\r\n \"indexingPolicy\": {\r\n \"indexingMode\": \"consistent\",\r\n \"automatic\": true,\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/pathToNotIndex/*\"\r\n },\r\n {\r\n \"path\": \"/\\\"_etag\\\"/?\"\r\n }\r\n ],\r\n \"compositeIndexes\": [\r\n [\r\n {\r\n \"path\": \"/orderByPath1\",\r\n \"order\": \"ascending\"\r\n },\r\n {\r\n \"path\": \"/orderByPath2\",\r\n \"order\": \"descending\"\r\n }\r\n ],\r\n [\r\n {\r\n \"path\": \"/orderByPath3\",\r\n \"order\": \"ascending\"\r\n },\r\n {\r\n \"path\": \"/orderByPath4\",\r\n \"order\": \"descending\"\r\n }\r\n ]\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/address/zipCode\"\r\n ],\r\n \"kind\": \"Hash\"\r\n },\r\n \"uniqueKeyPolicy\": {\r\n \"uniqueKeys\": []\r\n },\r\n \"conflictResolutionPolicy\": {\r\n \"mode\": \"LastWriterWins\",\r\n \"conflictResolutionPath\": \"/_ts\",\r\n \"conflictResolutionProcedure\": \"\"\r\n },\r\n \"allowMaterializedViews\": false,\r\n \"geospatialConfig\": {\r\n \"type\": \"Geography\"\r\n },\r\n \"_rid\": \"6EAGAPmHjic=\",\r\n \"_ts\": 1619545541,\r\n \"_self\": \"dbs/6EAGAA==/colls/6EAGAPmHjic=/\",\r\n \"_etag\": \"\\\"0000c80e-0000-0200-0000-60884dc50000\\\"\",\r\n \"_docs\": \"docs/\",\r\n \"_sprocs\": \"sprocs/\",\r\n \"_triggers\": \"triggers/\",\r\n \"_udfs\": \"udfs/\",\r\n \"_conflicts\": \"conflicts/\"\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers\",\r\n \"name\": \"containerName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"containerName\",\r\n \"indexingPolicy\": {\r\n \"indexingMode\": \"consistent\",\r\n \"automatic\": true,\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/pathToNotIndex/*\"\r\n },\r\n {\r\n \"path\": \"/\\\"_etag\\\"/?\"\r\n }\r\n ],\r\n \"compositeIndexes\": [\r\n [\r\n {\r\n \"path\": \"/orderByPath1\",\r\n \"order\": \"ascending\"\r\n },\r\n {\r\n \"path\": \"/orderByPath2\",\r\n \"order\": \"descending\"\r\n }\r\n ],\r\n [\r\n {\r\n \"path\": \"/orderByPath3\",\r\n \"order\": \"ascending\"\r\n },\r\n {\r\n \"path\": \"/orderByPath4\",\r\n \"order\": \"descending\"\r\n }\r\n ]\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/address/zipCode\"\r\n ],\r\n \"kind\": \"Hash\"\r\n },\r\n \"uniqueKeyPolicy\": {\r\n \"uniqueKeys\": []\r\n },\r\n \"conflictResolutionPolicy\": {\r\n \"mode\": \"LastWriterWins\",\r\n \"conflictResolutionPath\": \"/_ts\",\r\n \"conflictResolutionProcedure\": \"\"\r\n },\r\n \"allowMaterializedViews\": false,\r\n \"geospatialConfig\": {\r\n \"type\": \"Geography\"\r\n },\r\n \"_rid\": \"xaE4AOImaIk=\",\r\n \"_ts\": 1623806406,\r\n \"_self\": \"dbs/xaE4AA==/colls/xaE4AOImaIk=/\",\r\n \"_etag\": \"\\\"0000ef01-0000-0200-0000-60c951c60000\\\"\",\r\n \"_docs\": \"docs/\",\r\n \"_sprocs\": \"sprocs/\",\r\n \"_triggers\": \"triggers/\",\r\n \"_udfs\": \"udfs/\",\r\n \"_conflicts\": \"conflicts/\"\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName2\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers\",\r\n \"name\": \"containerName2\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"containerName2\",\r\n \"indexingPolicy\": {\r\n \"indexingMode\": \"consistent\",\r\n \"automatic\": true,\r\n \"includedPaths\": [\r\n {\r\n \"path\": \"/*\"\r\n }\r\n ],\r\n \"excludedPaths\": [\r\n {\r\n \"path\": \"/pathToNotIndex/*\"\r\n },\r\n {\r\n \"path\": \"/\\\"_etag\\\"/?\"\r\n }\r\n ],\r\n \"compositeIndexes\": [\r\n [\r\n {\r\n \"path\": \"/orderByPath1\",\r\n \"order\": \"ascending\"\r\n },\r\n {\r\n \"path\": \"/orderByPath2\",\r\n \"order\": \"descending\"\r\n }\r\n ],\r\n [\r\n {\r\n \"path\": \"/orderByPath3\",\r\n \"order\": \"ascending\"\r\n },\r\n {\r\n \"path\": \"/orderByPath4\",\r\n \"order\": \"descending\"\r\n }\r\n ]\r\n ]\r\n },\r\n \"partitionKey\": {\r\n \"paths\": [\r\n \"/address/zipCode\"\r\n ],\r\n \"kind\": \"Hash\"\r\n },\r\n \"uniqueKeyPolicy\": {\r\n \"uniqueKeys\": []\r\n },\r\n \"conflictResolutionPolicy\": {\r\n \"mode\": \"LastWriterWins\",\r\n \"conflictResolutionPath\": \"/_ts\",\r\n \"conflictResolutionProcedure\": \"\"\r\n },\r\n \"allowMaterializedViews\": false,\r\n \"geospatialConfig\": {\r\n \"type\": \"Geography\"\r\n },\r\n \"_rid\": \"xaE4AO-G7eg=\",\r\n \"_ts\": 1623803142,\r\n \"_self\": \"dbs/xaE4AA==/colls/xaE4AO-G7eg=/\",\r\n \"_etag\": \"\\\"0000ca01-0000-0200-0000-60c945060000\\\"\",\r\n \"_docs\": \"docs/\",\r\n \"_sprocs\": \"sprocs/\",\r\n \"_triggers\": \"triggers/\",\r\n \"_udfs\": \"udfs/\",\r\n \"_conflicts\": \"conflicts/\"\r\n }\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/storedProcedures/storedProcedureName?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lL3N0b3JlZFByb2NlZHVyZXMvc3RvcmVkUHJvY2VkdXJlTmFtZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName2/storedProcedures/storedProcedureName?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI2L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lMi9zdG9yZWRQcm9jZWR1cmVzL3N0b3JlZFByb2NlZHVyZU5hbWU/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"storedProcedureName\",\r\n \"body\": \"function () { var context = getContext(); var response = context.getResponse();response.setBody('Hello, World');}\"\r\n },\r\n \"options\": {}\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "9dba277c-ce85-4b62-9c38-49b6ef23420e" + "d687b9d2-a093-4a29-add3-a71b4be5c86e" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ @@ -912,19 +912,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/storedProcedures/storedProcedureName/operationResults/708065d8-37f0-473a-bb55-9d0cb17d4500?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName2/storedProcedures/storedProcedureName/operationResults/a84f59af-2060-4135-b5b6-fdebaee4dacf?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/708065d8-37f0-473a-bb55-9d0cb17d4500?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/a84f59af-2060-4135-b5b6-fdebaee4dacf?api-version=2021-06-15" ], "x-ms-request-id": [ - "708065d8-37f0-473a-bb55-9d0cb17d4500" + "a84f59af-2060-4135-b5b6-fdebaee4dacf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -933,16 +933,16 @@ "1196" ], "x-ms-correlation-request-id": [ - "37eb7699-325a-4012-99fb-b121e52f656f" + "fc336a26-ef77-45c2-9c8c-a58352c4c234" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174604Z:37eb7699-325a-4012-99fb-b121e52f656f" + "WESTUS2:20210616T075950Z:fc336a26-ef77-45c2-9c8c-a58352c4c234" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:46:03 GMT" + "Wed, 16 Jun 2021 07:59:50 GMT" ], "Content-Length": [ "21" @@ -955,15 +955,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/708065d8-37f0-473a-bb55-9d0cb17d4500?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzcwODA2NWQ4LTM3ZjAtNDczYS1iYjU1LTlkMGNiMTdkNDUwMD9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/a84f59af-2060-4135-b5b6-fdebaee4dacf?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2E4NGY1OWFmLTIwNjAtNDEzNS1iNWI2LWZkZWJhZWU0ZGFjZj9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -978,7 +978,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -987,19 +987,19 @@ "11989" ], "x-ms-request-id": [ - "0c1d6466-3bdb-46fe-9750-87792f5cf76a" + "0cc13fa5-9361-4c13-bd8d-b5e0b50d5cfc" ], "x-ms-correlation-request-id": [ - "0c1d6466-3bdb-46fe-9750-87792f5cf76a" + "0cc13fa5-9361-4c13-bd8d-b5e0b50d5cfc" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174634Z:0c1d6466-3bdb-46fe-9750-87792f5cf76a" + "WESTUS2:20210616T080020Z:0cc13fa5-9361-4c13-bd8d-b5e0b50d5cfc" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:46:33 GMT" + "Wed, 16 Jun 2021 08:00:19 GMT" ], "Content-Length": [ "22" @@ -1012,15 +1012,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/storedProcedures/storedProcedureName?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lL3N0b3JlZFByb2NlZHVyZXMvc3RvcmVkUHJvY2VkdXJlTmFtZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName2/storedProcedures/storedProcedureName?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI2L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lMi9zdG9yZWRQcm9jZWR1cmVzL3N0b3JlZFByb2NlZHVyZU5hbWU/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1035,7 +1035,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1044,46 +1044,46 @@ "11988" ], "x-ms-request-id": [ - "490e2ddb-1cb7-42fe-96e0-97f60b4e4bfe" + "124d7175-a4aa-40f8-a151-3f380b26a574" ], "x-ms-correlation-request-id": [ - "490e2ddb-1cb7-42fe-96e0-97f60b4e4bfe" + "124d7175-a4aa-40f8-a151-3f380b26a574" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174634Z:490e2ddb-1cb7-42fe-96e0-97f60b4e4bfe" + "WESTUS2:20210616T080020Z:124d7175-a4aa-40f8-a151-3f380b26a574" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:46:34 GMT" + "Wed, 16 Jun 2021 08:00:20 GMT" ], "Content-Length": [ - "716" + "717" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/storedProcedures/storedProcedureName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/storedProcedures\",\r\n \"name\": \"storedProcedureName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"storedProcedureName\",\r\n \"body\": \"function () { var context = getContext(); var response = context.getResponse();response.setBody('Hello, World');}\",\r\n \"_rid\": \"6EAGAPmHjicBAAAAAAAAgA==\",\r\n \"_self\": \"dbs/6EAGAA==/colls/6EAGAPmHjic=/sprocs/6EAGAPmHjicBAAAAAAAAgA==/\",\r\n \"_etag\": \"\\\"7100f55f-0000-0200-0000-60884de20000\\\"\",\r\n \"_ts\": 1619545570\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName2/storedProcedures/storedProcedureName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/storedProcedures\",\r\n \"name\": \"storedProcedureName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"storedProcedureName\",\r\n \"body\": \"function () { var context = getContext(); var response = context.getResponse();response.setBody('Hello, World');}\",\r\n \"_rid\": \"xaE4AO-G7egBAAAAAAAAgA==\",\r\n \"_self\": \"dbs/xaE4AA==/colls/xaE4AO-G7eg=/sprocs/xaE4AO-G7egBAAAAAAAAgA==/\",\r\n \"_etag\": \"\\\"00009c04-0000-0200-0000-60c9af7a0000\\\"\",\r\n \"_ts\": 1623830394\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/storedProcedures?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lL3N0b3JlZFByb2NlZHVyZXM/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName/storedProcedures?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI2L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lL3N0b3JlZFByb2NlZHVyZXM/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bd3da3c0-ffc6-4e95-9b0f-b96cca43bb21" + "fee4dc7a-0d44-47f2-98d5-d8db420c8af8" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1098,7 +1098,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1107,115 +1107,46 @@ "11987" ], "x-ms-request-id": [ - "974828c0-1f2b-4580-8043-7fe3cb260549" + "de614af1-ac6b-4858-a5cc-ba125756e99d" ], "x-ms-correlation-request-id": [ - "974828c0-1f2b-4580-8043-7fe3cb260549" + "de614af1-ac6b-4858-a5cc-ba125756e99d" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174635Z:974828c0-1f2b-4580-8043-7fe3cb260549" + "WESTUS2:20210616T080020Z:de614af1-ac6b-4858-a5cc-ba125756e99d" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:46:34 GMT" + "Wed, 16 Jun 2021 08:00:20 GMT" ], "Content-Length": [ - "728" + "12" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/storedProcedures/storedProcedureName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/storedProcedures\",\r\n \"name\": \"storedProcedureName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"storedProcedureName\",\r\n \"body\": \"function () { var context = getContext(); var response = context.getResponse();response.setBody('Hello, World');}\",\r\n \"_rid\": \"6EAGAPmHjicBAAAAAAAAgA==\",\r\n \"_self\": \"dbs/6EAGAA==/colls/6EAGAPmHjic=/sprocs/6EAGAPmHjicBAAAAAAAAgA==/\",\r\n \"_etag\": \"\\\"7100f55f-0000-0200-0000-60884de20000\\\"\",\r\n \"_ts\": 1619545570\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": []\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/storedProcedures/storedProcedureName?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lL3N0b3JlZFByb2NlZHVyZXMvc3RvcmVkUHJvY2VkdXJlTmFtZT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "66a6e26b-a722-4877-b42a-26f6885e5b4f" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.29916.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/storedProcedures/storedProcedureName/operationResults/c9e521d7-56af-44b5-8433-ad093504c418?api-version=2021-04-15" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/c9e521d7-56af-44b5-8433-ad093504c418?api-version=2021-04-15" - ], - "x-ms-request-id": [ - "c9e521d7-56af-44b5-8433-ad093504c418" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" - ], - "x-ms-correlation-request-id": [ - "f13c4992-7600-43a7-a56d-9113dc195912" - ], - "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174635Z:f13c4992-7600-43a7-a56d-9113dc195912" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 27 Apr 2021 17:46:35 GMT" - ], - "Content-Length": [ - "21" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Enqueued\"\r\n}", - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/userDefinedFunctions/userDefinedFunctionName?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lL3VzZXJEZWZpbmVkRnVuY3Rpb25zL3VzZXJEZWZpbmVkRnVuY3Rpb25OYW1lP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName/userDefinedFunctions/userDefinedFunctionName?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI2L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lL3VzZXJEZWZpbmVkRnVuY3Rpb25zL3VzZXJEZWZpbmVkRnVuY3Rpb25OYW1lP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"userDefinedFunctionName\",\r\n \"body\": \"function () { var context = getContext(); var response = context.getResponse();response.setBody('Hello, World');}\"\r\n },\r\n \"options\": {}\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "8e861382-100c-459c-9d7f-5db3c05b8e01" + "e1cd7b13-3bea-48bc-a984-7193ac55eea5" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ @@ -1233,37 +1164,37 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/userDefinedFunctions/userDefinedFunctionName/operationResults/b6dc992f-4cb1-45a4-8d0e-8398012d27a5?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName/userDefinedFunctions/userDefinedFunctionName/operationResults/7d0447bf-c225-47d0-bb0b-c4682df727fd?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/b6dc992f-4cb1-45a4-8d0e-8398012d27a5?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/7d0447bf-c225-47d0-bb0b-c4682df727fd?api-version=2021-06-15" ], "x-ms-request-id": [ - "b6dc992f-4cb1-45a4-8d0e-8398012d27a5" + "7d0447bf-c225-47d0-bb0b-c4682df727fd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" + "1195" ], "x-ms-correlation-request-id": [ - "81ebf9cc-f3e0-4270-92cd-0b80d4f5c010" + "c68a4bfb-624e-4aa9-a4bb-c0759be0c623" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T174636Z:81ebf9cc-f3e0-4270-92cd-0b80d4f5c010" + "WESTUS2:20210616T080021Z:c68a4bfb-624e-4aa9-a4bb-c0759be0c623" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:46:35 GMT" + "Wed, 16 Jun 2021 08:00:21 GMT" ], "Content-Length": [ "21" @@ -1276,72 +1207,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/c9e521d7-56af-44b5-8433-ad093504c418?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2M5ZTUyMWQ3LTU2YWYtNDRiNS04NDMzLWFkMDkzNTA0YzQxOD9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.29916.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "569f1bcf-b5a1-42d1-97df-6b8a1c236812" - ], - "x-ms-correlation-request-id": [ - "569f1bcf-b5a1-42d1-97df-6b8a1c236812" - ], - "x-ms-routing-request-id": [ - "WESTUS:20210427T174706Z:569f1bcf-b5a1-42d1-97df-6b8a1c236812" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 27 Apr 2021 17:47:05 GMT" - ], - "Content-Length": [ - "22" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "{\r\n \"status\": \"Succeeded\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/storedProcedures/storedProcedureName/operationResults/c9e521d7-56af-44b5-8433-ad093504c418?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lL3N0b3JlZFByb2NlZHVyZXMvc3RvcmVkUHJvY2VkdXJlTmFtZS9vcGVyYXRpb25SZXN1bHRzL2M5ZTUyMWQ3LTU2YWYtNDRiNS04NDMzLWFkMDkzNTA0YzQxOD9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/7d0447bf-c225-47d0-bb0b-c4682df727fd?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzdkMDQ0N2JmLWMyMjUtNDdkMC1iYjBiLWM0NjgyZGY3MjdmZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1356,61 +1230,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-request-id": [ - "ebb02d10-dfb2-444a-8fdc-c5e53607f322" - ], - "x-ms-correlation-request-id": [ - "ebb02d10-dfb2-444a-8fdc-c5e53607f322" - ], - "x-ms-routing-request-id": [ - "WESTUS:20210427T174706Z:ebb02d10-dfb2-444a-8fdc-c5e53607f322" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 27 Apr 2021 17:47:05 GMT" - ], - "Content-Type": [ - "application/json" - ] - }, - "ResponseBody": "", - "StatusCode": 204 - }, - { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/b6dc992f-4cb1-45a4-8d0e-8398012d27a5?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2I2ZGM5OTJmLTRjYjEtNDVhNC04ZDBlLTgzOTgwMTJkMjdhNT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.29916.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1419,19 +1239,19 @@ "11986" ], "x-ms-request-id": [ - "40abf89d-5378-4f8f-8f57-5a53eb91c53c" + "61ba8a57-4db4-4a5a-ac84-e6c95e8b9eb7" ], "x-ms-correlation-request-id": [ - "40abf89d-5378-4f8f-8f57-5a53eb91c53c" + "61ba8a57-4db4-4a5a-ac84-e6c95e8b9eb7" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174706Z:40abf89d-5378-4f8f-8f57-5a53eb91c53c" + "WESTUS2:20210616T080051Z:61ba8a57-4db4-4a5a-ac84-e6c95e8b9eb7" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:47:06 GMT" + "Wed, 16 Jun 2021 08:00:50 GMT" ], "Content-Length": [ "22" @@ -1444,15 +1264,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/userDefinedFunctions/userDefinedFunctionName?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lL3VzZXJEZWZpbmVkRnVuY3Rpb25zL3VzZXJEZWZpbmVkRnVuY3Rpb25OYW1lP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName/userDefinedFunctions/userDefinedFunctionName?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI2L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lL3VzZXJEZWZpbmVkRnVuY3Rpb25zL3VzZXJEZWZpbmVkRnVuY3Rpb25OYW1lP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1467,7 +1287,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1476,19 +1296,19 @@ "11985" ], "x-ms-request-id": [ - "a27fdc45-fff3-4a04-92d8-94c1b7177a53" + "6e67be5b-1a70-4bcf-ab86-0a6a1b0fa440" ], "x-ms-correlation-request-id": [ - "a27fdc45-fff3-4a04-92d8-94c1b7177a53" + "6e67be5b-1a70-4bcf-ab86-0a6a1b0fa440" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174706Z:a27fdc45-fff3-4a04-92d8-94c1b7177a53" + "WESTUS2:20210616T080051Z:6e67be5b-1a70-4bcf-ab86-0a6a1b0fa440" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:47:06 GMT" + "Wed, 16 Jun 2021 08:00:51 GMT" ], "Content-Length": [ "734" @@ -1497,25 +1317,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/userDefinedFunctions/userDefinedFunctionName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/userDefinedFunctions\",\r\n \"name\": \"userDefinedFunctionName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"userDefinedFunctionName\",\r\n \"body\": \"function () { var context = getContext(); var response = context.getResponse();response.setBody('Hello, World');}\",\r\n \"_rid\": \"6EAGAPmHjicBAAAAAAAAYA==\",\r\n \"_self\": \"dbs/6EAGAA==/colls/6EAGAPmHjic=/udfs/6EAGAPmHjicBAAAAAAAAYA==/\",\r\n \"_etag\": \"\\\"71008162-0000-0200-0000-60884e010000\\\"\",\r\n \"_ts\": 1619545601\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName/userDefinedFunctions/userDefinedFunctionName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/userDefinedFunctions\",\r\n \"name\": \"userDefinedFunctionName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"userDefinedFunctionName\",\r\n \"body\": \"function () { var context = getContext(); var response = context.getResponse();response.setBody('Hello, World');}\",\r\n \"_rid\": \"xaE4AOImaIkBAAAAAAAAYA==\",\r\n \"_self\": \"dbs/xaE4AA==/colls/xaE4AOImaIk=/udfs/xaE4AOImaIkBAAAAAAAAYA==/\",\r\n \"_etag\": \"\\\"0000580c-0000-0200-0000-60c9af990000\\\"\",\r\n \"_ts\": 1623830425\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/userDefinedFunctions?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lL3VzZXJEZWZpbmVkRnVuY3Rpb25zP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName/userDefinedFunctions?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI2L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lL3VzZXJEZWZpbmVkRnVuY3Rpb25zP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "516b30ba-9178-40f4-aca8-45c68c1597b0" + "58f7899d-2302-489c-83ee-a6b5dff7b2e5" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1530,7 +1350,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1539,19 +1359,19 @@ "11984" ], "x-ms-request-id": [ - "25c0d2c0-06b9-4ef8-bb12-cf35701c527e" + "f3fd063e-870a-49e0-b7aa-57a3327a83f6" ], "x-ms-correlation-request-id": [ - "25c0d2c0-06b9-4ef8-bb12-cf35701c527e" + "f3fd063e-870a-49e0-b7aa-57a3327a83f6" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174707Z:25c0d2c0-06b9-4ef8-bb12-cf35701c527e" + "WESTUS2:20210616T080052Z:f3fd063e-870a-49e0-b7aa-57a3327a83f6" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:47:06 GMT" + "Wed, 16 Jun 2021 08:00:51 GMT" ], "Content-Length": [ "746" @@ -1560,25 +1380,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/userDefinedFunctions/userDefinedFunctionName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/userDefinedFunctions\",\r\n \"name\": \"userDefinedFunctionName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"userDefinedFunctionName\",\r\n \"body\": \"function () { var context = getContext(); var response = context.getResponse();response.setBody('Hello, World');}\",\r\n \"_rid\": \"6EAGAPmHjicBAAAAAAAAYA==\",\r\n \"_self\": \"dbs/6EAGAA==/colls/6EAGAPmHjic=/udfs/6EAGAPmHjicBAAAAAAAAYA==/\",\r\n \"_etag\": \"\\\"71008162-0000-0200-0000-60884e010000\\\"\",\r\n \"_ts\": 1619545601\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName/userDefinedFunctions/userDefinedFunctionName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/userDefinedFunctions\",\r\n \"name\": \"userDefinedFunctionName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"userDefinedFunctionName\",\r\n \"body\": \"function () { var context = getContext(); var response = context.getResponse();response.setBody('Hello, World');}\",\r\n \"_rid\": \"xaE4AOImaIkBAAAAAAAAYA==\",\r\n \"_self\": \"dbs/xaE4AA==/colls/xaE4AOImaIk=/udfs/xaE4AOImaIkBAAAAAAAAYA==/\",\r\n \"_etag\": \"\\\"0000580c-0000-0200-0000-60c9af990000\\\"\",\r\n \"_ts\": 1623830425\r\n }\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/userDefinedFunctions/userDefinedFunctionName?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lL3VzZXJEZWZpbmVkRnVuY3Rpb25zL3VzZXJEZWZpbmVkRnVuY3Rpb25OYW1lP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName2/userDefinedFunctions/userDefinedFunctionName?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI2L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lMi91c2VyRGVmaW5lZEZ1bmN0aW9ucy91c2VyRGVmaW5lZEZ1bmN0aW9uTmFtZT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "356f4db4-8efa-4e44-bd30-38e0457347ea" + "6c7e3571-162b-441a-ad67-0d3b5f853af8" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1590,37 +1410,37 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/userDefinedFunctions/userDefinedFunctionName/operationResults/b329581f-999a-4f22-927d-d54d969b827d?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName2/userDefinedFunctions/userDefinedFunctionName/operationResults/2135cacd-233f-4b93-b7c6-f1e61a6c9331?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/b329581f-999a-4f22-927d-d54d969b827d?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2135cacd-233f-4b93-b7c6-f1e61a6c9331?api-version=2021-06-15" ], "x-ms-request-id": [ - "b329581f-999a-4f22-927d-d54d969b827d" + "2135cacd-233f-4b93-b7c6-f1e61a6c9331" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14998" + "14999" ], "x-ms-correlation-request-id": [ - "1b3f6e9e-4916-4269-93a7-b0a9cb2bf75c" + "c02db41e-3267-4696-8c2d-9fe3fba9c72a" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174707Z:1b3f6e9e-4916-4269-93a7-b0a9cb2bf75c" + "WESTUS2:20210616T080052Z:c02db41e-3267-4696-8c2d-9fe3fba9c72a" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:47:07 GMT" + "Wed, 16 Jun 2021 08:00:51 GMT" ], "Content-Length": [ "21" @@ -1633,21 +1453,21 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/triggers/triggerName?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lL3RyaWdnZXJzL3RyaWdnZXJOYW1lP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName/triggers/triggerName?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI2L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lL3RyaWdnZXJzL3RyaWdnZXJOYW1lP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"triggerName\",\r\n \"body\": \"function () { var context = getContext(); var response = context.getResponse();response.setBody('Hello, World');}\",\r\n \"triggerType\": \"Pre\",\r\n \"triggerOperation\": \"All\"\r\n },\r\n \"options\": {}\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "317d0d86-e70e-4385-8a1f-147d30274107" + "27023024-7770-498b-b3f9-b1d09848c81b" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ @@ -1665,37 +1485,37 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/triggers/triggerName/operationResults/c2305891-264d-4893-ba81-8491c7fb717d?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName/triggers/triggerName/operationResults/6fb5d99d-5089-40c1-95c7-41e931a042f2?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/c2305891-264d-4893-ba81-8491c7fb717d?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/6fb5d99d-5089-40c1-95c7-41e931a042f2?api-version=2021-06-15" ], "x-ms-request-id": [ - "c2305891-264d-4893-ba81-8491c7fb717d" + "6fb5d99d-5089-40c1-95c7-41e931a042f2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1199" ], "x-ms-correlation-request-id": [ - "e93f4159-9aac-4b0a-b9f0-6166b1d24b2c" + "378e050c-5ce9-4ecc-a3ea-7233731ae50e" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174708Z:e93f4159-9aac-4b0a-b9f0-6166b1d24b2c" + "WESTUS2:20210616T080053Z:378e050c-5ce9-4ecc-a3ea-7233731ae50e" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:47:08 GMT" + "Wed, 16 Jun 2021 08:00:52 GMT" ], "Content-Length": [ "21" @@ -1708,15 +1528,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/b329581f-999a-4f22-927d-d54d969b827d?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2IzMjk1ODFmLTk5OWEtNGYyMi05MjdkLWQ1NGQ5NjliODI3ZD9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2135cacd-233f-4b93-b7c6-f1e61a6c9331?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzIxMzVjYWNkLTIzM2YtNGI5My1iN2M2LWYxZTYxYTZjOTMzMT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1731,28 +1551,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" + "11999" ], "x-ms-request-id": [ - "21d54e91-3bb6-4250-a15d-d25384e1a750" + "60cd1d89-a2bc-4e0a-8282-c12ecd9e5f9b" ], "x-ms-correlation-request-id": [ - "21d54e91-3bb6-4250-a15d-d25384e1a750" + "60cd1d89-a2bc-4e0a-8282-c12ecd9e5f9b" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174737Z:21d54e91-3bb6-4250-a15d-d25384e1a750" + "WESTUS2:20210616T080122Z:60cd1d89-a2bc-4e0a-8282-c12ecd9e5f9b" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:47:37 GMT" + "Wed, 16 Jun 2021 08:01:21 GMT" ], "Content-Length": [ "22" @@ -1765,15 +1585,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/userDefinedFunctions/userDefinedFunctionName/operationResults/b329581f-999a-4f22-927d-d54d969b827d?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lL3VzZXJEZWZpbmVkRnVuY3Rpb25zL3VzZXJEZWZpbmVkRnVuY3Rpb25OYW1lL29wZXJhdGlvblJlc3VsdHMvYjMyOTU4MWYtOTk5YS00ZjIyLTkyN2QtZDU0ZDk2OWI4MjdkP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName2/userDefinedFunctions/userDefinedFunctionName/operationResults/2135cacd-233f-4b93-b7c6-f1e61a6c9331?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI2L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lMi91c2VyRGVmaW5lZEZ1bmN0aW9ucy91c2VyRGVmaW5lZEZ1bmN0aW9uTmFtZS9vcGVyYXRpb25SZXN1bHRzLzIxMzVjYWNkLTIzM2YtNGI5My1iN2M2LWYxZTYxYTZjOTMzMT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1788,28 +1608,28 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" + "11998" ], "x-ms-request-id": [ - "b5bf3c24-e729-4605-9b03-1a56a0defcb7" + "33a49a43-35a3-4653-9337-bdaf3c9dfc1d" ], "x-ms-correlation-request-id": [ - "b5bf3c24-e729-4605-9b03-1a56a0defcb7" + "33a49a43-35a3-4653-9337-bdaf3c9dfc1d" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174738Z:b5bf3c24-e729-4605-9b03-1a56a0defcb7" + "WESTUS2:20210616T080122Z:33a49a43-35a3-4653-9337-bdaf3c9dfc1d" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:47:37 GMT" + "Wed, 16 Jun 2021 08:01:21 GMT" ], "Content-Type": [ "application/json" @@ -1819,15 +1639,15 @@ "StatusCode": 204 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/c2305891-264d-4893-ba81-8491c7fb717d?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2MyMzA1ODkxLTI2NGQtNDg5My1iYTgxLTg0OTFjN2ZiNzE3ZD9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/6fb5d99d-5089-40c1-95c7-41e931a042f2?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzZmYjVkOTlkLTUwODktNDBjMS05NWM3LTQxZTkzMWEwNDJmMj9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1842,7 +1662,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1851,19 +1671,19 @@ "11983" ], "x-ms-request-id": [ - "7317914c-5c22-4240-b317-103325561d4e" + "9698b38c-51d4-4286-bb92-36ea1ce56f9b" ], "x-ms-correlation-request-id": [ - "7317914c-5c22-4240-b317-103325561d4e" + "9698b38c-51d4-4286-bb92-36ea1ce56f9b" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174738Z:7317914c-5c22-4240-b317-103325561d4e" + "WESTUS2:20210616T080123Z:9698b38c-51d4-4286-bb92-36ea1ce56f9b" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:47:37 GMT" + "Wed, 16 Jun 2021 08:01:22 GMT" ], "Content-Length": [ "22" @@ -1876,15 +1696,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/triggers/triggerName?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lL3RyaWdnZXJzL3RyaWdnZXJOYW1lP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName/triggers/triggerName?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI2L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lL3RyaWdnZXJzL3RyaWdnZXJOYW1lP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1899,7 +1719,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1908,19 +1728,19 @@ "11982" ], "x-ms-request-id": [ - "bd00cd5e-3678-46de-9f8d-c6f139c7e3d4" + "89acee80-79a6-4137-81ba-723925ec6ad0" ], "x-ms-correlation-request-id": [ - "bd00cd5e-3678-46de-9f8d-c6f139c7e3d4" + "89acee80-79a6-4137-81ba-723925ec6ad0" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174738Z:bd00cd5e-3678-46de-9f8d-c6f139c7e3d4" + "WESTUS2:20210616T080123Z:89acee80-79a6-4137-81ba-723925ec6ad0" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:47:38 GMT" + "Wed, 16 Jun 2021 08:01:23 GMT" ], "Content-Length": [ "723" @@ -1929,25 +1749,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/triggers/triggerName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/triggers\",\r\n \"name\": \"triggerName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"triggerName\",\r\n \"body\": \"function () { var context = getContext(); var response = context.getResponse();response.setBody('Hello, World');}\",\r\n \"triggerType\": \"Pre\",\r\n \"triggerOperation\": \"All\",\r\n \"_rid\": \"6EAGAPmHjicBAAAAAAAAcA==\",\r\n \"_self\": \"dbs/6EAGAA==/colls/6EAGAPmHjic=/triggers/6EAGAPmHjicBAAAAAAAAcA==/\",\r\n \"_etag\": \"\\\"71003765-0000-0200-0000-60884e210000\\\"\",\r\n \"_ts\": 1619545633\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName/triggers/triggerName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/triggers\",\r\n \"name\": \"triggerName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"triggerName\",\r\n \"body\": \"function () { var context = getContext(); var response = context.getResponse();response.setBody('Hello, World');}\",\r\n \"triggerType\": \"Pre\",\r\n \"triggerOperation\": \"All\",\r\n \"_rid\": \"xaE4AOImaIkBAAAAAAAAcA==\",\r\n \"_self\": \"dbs/xaE4AA==/colls/xaE4AOImaIk=/triggers/xaE4AOImaIkBAAAAAAAAcA==/\",\r\n \"_etag\": \"\\\"0000590c-0000-0200-0000-60c9afb90000\\\"\",\r\n \"_ts\": 1623830457\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/triggers?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lL3RyaWdnZXJzP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName/triggers?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI2L3NxbERhdGFiYXNlcy9kYXRhYmFzZU5hbWUvY29udGFpbmVycy9jb250YWluZXJOYW1lL3RyaWdnZXJzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "370a1d13-4df9-4013-93ef-a6b0bad449db" + "4cd7ff95-3d8e-4d4e-b30f-df055441bf74" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1962,7 +1782,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1971,19 +1791,19 @@ "11981" ], "x-ms-request-id": [ - "744172fc-344e-442c-9697-2ae8d7796ed0" + "b1ecd63f-a09b-4cb5-8b2c-1b3bcdf6b007" ], "x-ms-correlation-request-id": [ - "744172fc-344e-442c-9697-2ae8d7796ed0" + "b1ecd63f-a09b-4cb5-8b2c-1b3bcdf6b007" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210427T174738Z:744172fc-344e-442c-9697-2ae8d7796ed0" + "WESTUS2:20210616T080123Z:b1ecd63f-a09b-4cb5-8b2c-1b3bcdf6b007" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:47:38 GMT" + "Wed, 16 Jun 2021 08:01:23 GMT" ], "Content-Length": [ "735" @@ -1992,12 +1812,12 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlDatabases/databaseName/containers/containerName/triggers/triggerName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/triggers\",\r\n \"name\": \"triggerName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"triggerName\",\r\n \"body\": \"function () { var context = getContext(); var response = context.getResponse();response.setBody('Hello, World');}\",\r\n \"triggerType\": \"Pre\",\r\n \"triggerOperation\": \"All\",\r\n \"_rid\": \"6EAGAPmHjicBAAAAAAAAcA==\",\r\n \"_self\": \"dbs/6EAGAA==/colls/6EAGAPmHjic=/triggers/6EAGAPmHjicBAAAAAAAAcA==/\",\r\n \"_etag\": \"\\\"71003765-0000-0200-0000-60884e210000\\\"\",\r\n \"_ts\": 1619545633\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlDatabases/databaseName/containers/containerName/triggers/triggerName\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/triggers\",\r\n \"name\": \"triggerName\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"triggerName\",\r\n \"body\": \"function () { var context = getContext(); var response = context.getResponse();response.setBody('Hello, World');}\",\r\n \"triggerType\": \"Pre\",\r\n \"triggerOperation\": \"All\",\r\n \"_rid\": \"xaE4AOImaIkBAAAAAAAAcA==\",\r\n \"_self\": \"dbs/xaE4AA==/colls/xaE4AOImaIk=/triggers/xaE4AOImaIkBAAAAAAAAcA==/\",\r\n \"_etag\": \"\\\"0000590c-0000-0200-0000-60c9afb90000\\\"\",\r\n \"_ts\": 1623830457\r\n }\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 } ], "Names": {}, "Variables": { - "SubscriptionId": "80be3961-0521-4a0a-8570-5cd5a4e2f98c" + "SubscriptionId": "259fbb24-9bcd-4cfc-865c-fc33b22fe38a" } } \ No newline at end of file diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/SqlResourcesOperationsTests/SqlRoleTests.json b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/SqlResourcesOperationsTests/SqlRoleTests.json index d8e1e66e8d24..a77cc5b5d4cf 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/SqlResourcesOperationsTests/SqlRoleTests.json +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/SqlResourcesOperationsTests/SqlRoleTests.json @@ -1,28 +1,28 @@ { "Entries": [ { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYy9zcWxSb2xlRGVmaW5pdGlvbnMvNzA1ODBhYzMtY2QwYi00NTQ5LTgzMzYtMmYwZDU1ZGYxMTFlP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYzEyNi9zcWxSb2xlRGVmaW5pdGlvbnMvNzA1ODBhYzMtY2QwYi00NTQ5LTgzMzYtMmYwZDU1ZGYxMTFlP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"roleName\": \"roleName\",\r\n \"type\": \"CustomRole\",\r\n \"assignableScopes\": [\r\n \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac\"\r\n ],\r\n \"permissions\": [\r\n {\r\n \"dataActions\": [\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read\"\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"roleName\": \"roleName\",\r\n \"type\": \"CustomRole\",\r\n \"assignableScopes\": [\r\n \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126\"\r\n ],\r\n \"permissions\": [\r\n {\r\n \"dataActions\": [\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read\"\r\n ]\r\n }\r\n ]\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "65baeeea-782b-4729-a956-6b7685c54575" + "4e4a42ff-0068-4c72-a58b-bd6db218a5a6" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "533" + "536" ] }, "ResponseHeaders": { @@ -33,19 +33,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e/operationResults/0a078d69-c290-4c4d-a234-163b333712ea?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e/operationResults/426a7e35-c883-4495-bf25-ed0947bd5ffd?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/0a078d69-c290-4c4d-a234-163b333712ea?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/426a7e35-c883-4495-bf25-ed0947bd5ffd?api-version=2021-06-15" ], "x-ms-request-id": [ - "0a078d69-c290-4c4d-a234-163b333712ea" + "426a7e35-c883-4495-bf25-ed0947bd5ffd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -54,16 +54,16 @@ "1199" ], "x-ms-correlation-request-id": [ - "4776df49-650c-4654-a8e0-6c7d1938ec86" + "bc0c19e8-26e3-44b6-bd85-eb7c87688768" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185256Z:4776df49-650c-4654-a8e0-6c7d1938ec86" + "WESTUS2:20210616T075259Z:bc0c19e8-26e3-44b6-bd85-eb7c87688768" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:52:56 GMT" + "Wed, 16 Jun 2021 07:52:58 GMT" ], "Content-Length": [ "21" @@ -76,21 +76,21 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYy9zcWxSb2xlRGVmaW5pdGlvbnMvNzA1ODBhYzMtY2QwYi00NTQ5LTgzMzYtMmYwZDU1ZGYxMTFlP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYzEyNi9zcWxSb2xlRGVmaW5pdGlvbnMvNzA1ODBhYzMtY2QwYi00NTQ5LTgzMzYtMmYwZDU1ZGYxMTFlP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"roleName\": \"roleName3\",\r\n \"type\": \"CustomRole\",\r\n \"assignableScopes\": [\r\n \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124\"\r\n ],\r\n \"permissions\": [\r\n {\r\n \"dataActions\": [\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/delete\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/replace\"\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"roleName\": \"roleName3\",\r\n \"type\": \"CustomRole\",\r\n \"assignableScopes\": [\r\n \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126\"\r\n ],\r\n \"permissions\": [\r\n {\r\n \"dataActions\": [\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/delete\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/replace\"\r\n ]\r\n }\r\n ]\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "7c605e66-6e98-4f17-8ad4-2309730e984b" + "74da667c-4fcb-4c46-874c-bd04f06a242b" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ @@ -108,19 +108,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e/operationResults/5e7e1323-f723-48de-9c8c-06979c12a5e0?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e/operationResults/c3b8b52c-3a98-4e89-a2c8-ddb602f1ab92?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/5e7e1323-f723-48de-9c8c-06979c12a5e0?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/c3b8b52c-3a98-4e89-a2c8-ddb602f1ab92?api-version=2021-06-15" ], "x-ms-request-id": [ - "5e7e1323-f723-48de-9c8c-06979c12a5e0" + "c3b8b52c-3a98-4e89-a2c8-ddb602f1ab92" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -129,16 +129,16 @@ "1197" ], "x-ms-correlation-request-id": [ - "60b6403d-c040-4713-97f9-76cd6a87a2cf" + "91c5d2e2-5a83-4b3e-a6e3-567c634d77d1" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185400Z:60b6403d-c040-4713-97f9-76cd6a87a2cf" + "WESTUS2:20210616T075402Z:91c5d2e2-5a83-4b3e-a6e3-567c634d77d1" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:54:00 GMT" + "Wed, 16 Jun 2021 07:54:01 GMT" ], "Content-Length": [ "21" @@ -151,15 +151,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/0a078d69-c290-4c4d-a234-163b333712ea?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzBhMDc4ZDY5LWMyOTAtNGM0ZC1hMjM0LTE2M2IzMzM3MTJlYT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/426a7e35-c883-4495-bf25-ed0947bd5ffd?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzQyNmE3ZTM1LWM4ODMtNDQ5NS1iZjI1LWVkMDk0N2JkNWZmZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -174,7 +174,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -183,19 +183,19 @@ "11999" ], "x-ms-request-id": [ - "292ccb2b-dc9f-476e-a55e-209933df0429" + "cfe5ac10-c71b-4bae-acba-3e771216c138" ], "x-ms-correlation-request-id": [ - "292ccb2b-dc9f-476e-a55e-209933df0429" + "cfe5ac10-c71b-4bae-acba-3e771216c138" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185326Z:292ccb2b-dc9f-476e-a55e-209933df0429" + "WESTUS2:20210616T075329Z:cfe5ac10-c71b-4bae-acba-3e771216c138" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:53:26 GMT" + "Wed, 16 Jun 2021 07:53:29 GMT" ], "Content-Length": [ "22" @@ -208,15 +208,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYy9zcWxSb2xlRGVmaW5pdGlvbnMvNzA1ODBhYzMtY2QwYi00NTQ5LTgzMzYtMmYwZDU1ZGYxMTFlP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYzEyNi9zcWxSb2xlRGVmaW5pdGlvbnMvNzA1ODBhYzMtY2QwYi00NTQ5LTgzMzYtMmYwZDU1ZGYxMTFlP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -231,7 +231,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -240,46 +240,46 @@ "11998" ], "x-ms-request-id": [ - "88bddc15-e11e-4136-bd86-b3a3d154b75b" + "1f404336-f247-470f-acc6-6b68130b2dba" ], "x-ms-correlation-request-id": [ - "88bddc15-e11e-4136-bd86-b3a3d154b75b" + "1f404336-f247-470f-acc6-6b68130b2dba" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185327Z:88bddc15-e11e-4136-bd86-b3a3d154b75b" + "WESTUS2:20210616T075329Z:1f404336-f247-470f-acc6-6b68130b2dba" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:53:26 GMT" + "Wed, 16 Jun 2021 07:53:29 GMT" ], "Content-Length": [ - "743" + "749" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e\",\r\n \"name\": \"70580ac3-cd0b-4549-8336-2f0d55df111e\",\r\n \"properties\": {\r\n \"roleName\": \"roleName\",\r\n \"type\": 1,\r\n \"assignableScopes\": [\r\n \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac\"\r\n ],\r\n \"permissions\": [\r\n {\r\n \"dataActions\": [\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read\"\r\n ],\r\n \"notDataActions\": []\r\n }\r\n ]\r\n },\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e\",\r\n \"name\": \"70580ac3-cd0b-4549-8336-2f0d55df111e\",\r\n \"properties\": {\r\n \"roleName\": \"roleName\",\r\n \"type\": 1,\r\n \"assignableScopes\": [\r\n \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126\"\r\n ],\r\n \"permissions\": [\r\n {\r\n \"dataActions\": [\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read\"\r\n ],\r\n \"notDataActions\": []\r\n }\r\n ]\r\n },\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYy9zcWxSb2xlRGVmaW5pdGlvbnMvNzA1ODBhYzMtY2QwYi00NTQ5LTgzMzYtMmYwZDU1ZGYxMTFlP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYzEyNi9zcWxSb2xlRGVmaW5pdGlvbnMvNzA1ODBhYzMtY2QwYi00NTQ5LTgzMzYtMmYwZDU1ZGYxMTFlP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "79926309-2afb-4a6f-b898-8587be573218" + "33479392-dfe5-45e7-8e19-116b71329bfe" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -294,7 +294,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -303,40 +303,40 @@ "11997" ], "x-ms-request-id": [ - "1ce0d7da-0b63-40db-b825-e39a99b2c541" + "50744813-3bbd-4aa7-ac7f-f1ad1be49419" ], "x-ms-correlation-request-id": [ - "1ce0d7da-0b63-40db-b825-e39a99b2c541" + "50744813-3bbd-4aa7-ac7f-f1ad1be49419" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185327Z:1ce0d7da-0b63-40db-b825-e39a99b2c541" + "WESTUS2:20210616T075329Z:50744813-3bbd-4aa7-ac7f-f1ad1be49419" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:53:27 GMT" + "Wed, 16 Jun 2021 07:53:29 GMT" ], "Content-Length": [ - "743" + "749" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e\",\r\n \"name\": \"70580ac3-cd0b-4549-8336-2f0d55df111e\",\r\n \"properties\": {\r\n \"roleName\": \"roleName\",\r\n \"type\": 1,\r\n \"assignableScopes\": [\r\n \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac\"\r\n ],\r\n \"permissions\": [\r\n {\r\n \"dataActions\": [\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read\"\r\n ],\r\n \"notDataActions\": []\r\n }\r\n ]\r\n },\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e\",\r\n \"name\": \"70580ac3-cd0b-4549-8336-2f0d55df111e\",\r\n \"properties\": {\r\n \"roleName\": \"roleName\",\r\n \"type\": 1,\r\n \"assignableScopes\": [\r\n \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126\"\r\n ],\r\n \"permissions\": [\r\n {\r\n \"dataActions\": [\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read\"\r\n ],\r\n \"notDataActions\": []\r\n }\r\n ]\r\n },\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYy9zcWxSb2xlRGVmaW5pdGlvbnMvNzA1ODBhYzMtY2QwYi00NTQ5LTgzMzYtMmYwZDU1ZGYxMTFlP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYzEyNi9zcWxSb2xlRGVmaW5pdGlvbnMvNzA1ODBhYzMtY2QwYi00NTQ5LTgzMzYtMmYwZDU1ZGYxMTFlP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -351,7 +351,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -360,53 +360,53 @@ "11993" ], "x-ms-request-id": [ - "09df9252-ee21-4db7-ae3d-bf474e78efca" + "626a19ff-9c20-49b1-bbaf-ae0bbc7062fc" ], "x-ms-correlation-request-id": [ - "09df9252-ee21-4db7-ae3d-bf474e78efca" + "626a19ff-9c20-49b1-bbaf-ae0bbc7062fc" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185431Z:09df9252-ee21-4db7-ae3d-bf474e78efca" + "WESTUS2:20210616T075432Z:626a19ff-9c20-49b1-bbaf-ae0bbc7062fc" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:54:30 GMT" + "Wed, 16 Jun 2021 07:54:31 GMT" ], "Content-Length": [ - "824" + "830" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e\",\r\n \"name\": \"70580ac3-cd0b-4549-8336-2f0d55df111e\",\r\n \"properties\": {\r\n \"roleName\": \"roleName3\",\r\n \"type\": 1,\r\n \"assignableScopes\": [\r\n \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac\"\r\n ],\r\n \"permissions\": [\r\n {\r\n \"dataActions\": [\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/delete\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/replace\"\r\n ],\r\n \"notDataActions\": []\r\n }\r\n ]\r\n },\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e\",\r\n \"name\": \"70580ac3-cd0b-4549-8336-2f0d55df111e\",\r\n \"properties\": {\r\n \"roleName\": \"roleName3\",\r\n \"type\": 1,\r\n \"assignableScopes\": [\r\n \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126\"\r\n ],\r\n \"permissions\": [\r\n {\r\n \"dataActions\": [\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/delete\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/replace\"\r\n ],\r\n \"notDataActions\": []\r\n }\r\n ]\r\n },\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/fbf74201-f33f-46f0-8234-2b8bf15ecec4?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYy9zcWxSb2xlRGVmaW5pdGlvbnMvZmJmNzQyMDEtZjMzZi00NmYwLTgyMzQtMmI4YmYxNWVjZWM0P2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/fbf74201-f33f-46f0-8234-2b8bf15ecec4?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYzEyNi9zcWxSb2xlRGVmaW5pdGlvbnMvZmJmNzQyMDEtZjMzZi00NmYwLTgyMzQtMmI4YmYxNWVjZWM0P2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"roleName\": \"roleName2\",\r\n \"type\": \"CustomRole\",\r\n \"assignableScopes\": [\r\n \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac\"\r\n ],\r\n \"permissions\": [\r\n {\r\n \"dataActions\": [\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/delete\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/replace\"\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"roleName\": \"roleName2\",\r\n \"type\": \"CustomRole\",\r\n \"assignableScopes\": [\r\n \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126\"\r\n ],\r\n \"permissions\": [\r\n {\r\n \"dataActions\": [\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/delete\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/replace\"\r\n ]\r\n }\r\n ]\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "7e155292-1e7b-4acc-a0ea-8322dbff8f24" + "d05dbeed-6241-4994-b239-74ef5a905894" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "713" + "716" ] }, "ResponseHeaders": { @@ -417,19 +417,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/fbf74201-f33f-46f0-8234-2b8bf15ecec4/operationResults/22c9e47e-cff8-4772-a06d-0a5e9cf6bd85?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/fbf74201-f33f-46f0-8234-2b8bf15ecec4/operationResults/81bc6fd1-ee41-4e25-bbf9-283e4da53acb?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/22c9e47e-cff8-4772-a06d-0a5e9cf6bd85?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/81bc6fd1-ee41-4e25-bbf9-283e4da53acb?api-version=2021-06-15" ], "x-ms-request-id": [ - "22c9e47e-cff8-4772-a06d-0a5e9cf6bd85" + "81bc6fd1-ee41-4e25-bbf9-283e4da53acb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -438,16 +438,16 @@ "1198" ], "x-ms-correlation-request-id": [ - "669a4760-6c2a-4a67-8965-dad4c81b4cc7" + "b1adc655-8c04-4a2d-a4b1-028648f26bce" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185329Z:669a4760-6c2a-4a67-8965-dad4c81b4cc7" + "WESTUS2:20210616T075330Z:b1adc655-8c04-4a2d-a4b1-028648f26bce" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:53:28 GMT" + "Wed, 16 Jun 2021 07:53:30 GMT" ], "Content-Length": [ "21" @@ -460,15 +460,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/22c9e47e-cff8-4772-a06d-0a5e9cf6bd85?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzIyYzllNDdlLWNmZjgtNDc3Mi1hMDZkLTBhNWU5Y2Y2YmQ4NT9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/81bc6fd1-ee41-4e25-bbf9-283e4da53acb?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzgxYmM2ZmQxLWVlNDEtNGUyNS1iYmY5LTI4M2U0ZGE1M2FjYj9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -483,7 +483,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -492,19 +492,19 @@ "11996" ], "x-ms-request-id": [ - "635f8373-75b2-438e-bc87-9152a66bad50" + "338baac5-5d25-4c03-b48b-d86e0dc8968f" ], "x-ms-correlation-request-id": [ - "635f8373-75b2-438e-bc87-9152a66bad50" + "338baac5-5d25-4c03-b48b-d86e0dc8968f" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185359Z:635f8373-75b2-438e-bc87-9152a66bad50" + "WESTUS2:20210616T075400Z:338baac5-5d25-4c03-b48b-d86e0dc8968f" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:53:58 GMT" + "Wed, 16 Jun 2021 07:54:00 GMT" ], "Content-Length": [ "22" @@ -517,15 +517,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/fbf74201-f33f-46f0-8234-2b8bf15ecec4?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYy9zcWxSb2xlRGVmaW5pdGlvbnMvZmJmNzQyMDEtZjMzZi00NmYwLTgyMzQtMmI4YmYxNWVjZWM0P2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/fbf74201-f33f-46f0-8234-2b8bf15ecec4?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYzEyNi9zcWxSb2xlRGVmaW5pdGlvbnMvZmJmNzQyMDEtZjMzZi00NmYwLTgyMzQtMmI4YmYxNWVjZWM0P2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -540,7 +540,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -549,40 +549,40 @@ "11995" ], "x-ms-request-id": [ - "8e9d266e-2e53-4961-9cbf-4be006392172" + "0cc1262e-168d-495b-ba00-81ee91f17fb1" ], "x-ms-correlation-request-id": [ - "8e9d266e-2e53-4961-9cbf-4be006392172" + "0cc1262e-168d-495b-ba00-81ee91f17fb1" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185359Z:8e9d266e-2e53-4961-9cbf-4be006392172" + "WESTUS2:20210616T075401Z:0cc1262e-168d-495b-ba00-81ee91f17fb1" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:53:58 GMT" + "Wed, 16 Jun 2021 07:54:00 GMT" ], "Content-Length": [ - "899" + "905" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/fbf74201-f33f-46f0-8234-2b8bf15ecec4\",\r\n \"name\": \"fbf74201-f33f-46f0-8234-2b8bf15ecec4\",\r\n \"properties\": {\r\n \"roleName\": \"roleName2\",\r\n \"type\": 1,\r\n \"assignableScopes\": [\r\n \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac\"\r\n ],\r\n \"permissions\": [\r\n {\r\n \"dataActions\": [\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/delete\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/replace\"\r\n ],\r\n \"notDataActions\": []\r\n }\r\n ]\r\n },\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/fbf74201-f33f-46f0-8234-2b8bf15ecec4\",\r\n \"name\": \"fbf74201-f33f-46f0-8234-2b8bf15ecec4\",\r\n \"properties\": {\r\n \"roleName\": \"roleName2\",\r\n \"type\": 1,\r\n \"assignableScopes\": [\r\n \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126\"\r\n ],\r\n \"permissions\": [\r\n {\r\n \"dataActions\": [\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/delete\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/replace\"\r\n ],\r\n \"notDataActions\": []\r\n }\r\n ]\r\n },\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/5e7e1323-f723-48de-9c8c-06979c12a5e0?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzVlN2UxMzIzLWY3MjMtNDhkZS05YzhjLTA2OTc5YzEyYTVlMD9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/c3b8b52c-3a98-4e89-a2c8-ddb602f1ab92?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2MzYjhiNTJjLTNhOTgtNGU4OS1hMmM4LWRkYjYwMmYxYWI5Mj9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -597,7 +597,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -606,19 +606,19 @@ "11994" ], "x-ms-request-id": [ - "4640e021-0b1f-427c-bf01-2021c474f274" + "c3542ce6-3ac4-403a-b841-a51c753ca6d6" ], "x-ms-correlation-request-id": [ - "4640e021-0b1f-427c-bf01-2021c474f274" + "c3542ce6-3ac4-403a-b841-a51c753ca6d6" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185430Z:4640e021-0b1f-427c-bf01-2021c474f274" + "WESTUS2:20210616T075432Z:c3542ce6-3ac4-403a-b841-a51c753ca6d6" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:54:29 GMT" + "Wed, 16 Jun 2021 07:54:31 GMT" ], "Content-Length": [ "22" @@ -631,21 +631,21 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYy9zcWxSb2xlRGVmaW5pdGlvbnM/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYzEyNi9zcWxSb2xlRGVmaW5pdGlvbnM/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "bd66e807-2f7c-4b76-abc1-666e76291f79" + "bc0b3d36-b63d-4029-9a9e-2db4077c079d" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -660,7 +660,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -669,53 +669,53 @@ "11992" ], "x-ms-request-id": [ - "45797106-2431-4caf-9e8d-16036f2b018c" + "02c57bec-be20-4d06-a141-7088e88b18f5" ], "x-ms-correlation-request-id": [ - "45797106-2431-4caf-9e8d-16036f2b018c" + "02c57bec-be20-4d06-a141-7088e88b18f5" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185431Z:45797106-2431-4caf-9e8d-16036f2b018c" + "WESTUS2:20210616T075432Z:02c57bec-be20-4d06-a141-7088e88b18f5" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:54:30 GMT" + "Wed, 16 Jun 2021 07:54:31 GMT" ], "Content-Length": [ - "1736" + "3468" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/fbf74201-f33f-46f0-8234-2b8bf15ecec4\",\r\n \"name\": \"fbf74201-f33f-46f0-8234-2b8bf15ecec4\",\r\n \"properties\": {\r\n \"roleName\": \"roleName2\",\r\n \"type\": 1,\r\n \"assignableScopes\": [\r\n \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac\"\r\n ],\r\n \"permissions\": [\r\n {\r\n \"dataActions\": [\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/delete\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/replace\"\r\n ],\r\n \"notDataActions\": []\r\n }\r\n ]\r\n },\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e\",\r\n \"name\": \"70580ac3-cd0b-4549-8336-2f0d55df111e\",\r\n \"properties\": {\r\n \"roleName\": \"roleName3\",\r\n \"type\": 1,\r\n \"assignableScopes\": [\r\n \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac\"\r\n ],\r\n \"permissions\": [\r\n {\r\n \"dataActions\": [\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/delete\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/replace\"\r\n ],\r\n \"notDataActions\": []\r\n }\r\n ]\r\n },\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/fbf74201-f33f-46f0-8234-2b8bf15ecec4\",\r\n \"name\": \"fbf74201-f33f-46f0-8234-2b8bf15ecec4\",\r\n \"properties\": {\r\n \"roleName\": \"roleName2\",\r\n \"type\": 1,\r\n \"assignableScopes\": [\r\n \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126\"\r\n ],\r\n \"permissions\": [\r\n {\r\n \"dataActions\": [\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/delete\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/replace\"\r\n ],\r\n \"notDataActions\": []\r\n }\r\n ]\r\n },\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e\",\r\n \"name\": \"70580ac3-cd0b-4549-8336-2f0d55df111e\",\r\n \"properties\": {\r\n \"roleName\": \"roleName3\",\r\n \"type\": 1,\r\n \"assignableScopes\": [\r\n \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126\"\r\n ],\r\n \"permissions\": [\r\n {\r\n \"dataActions\": [\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/delete\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/replace\"\r\n ],\r\n \"notDataActions\": []\r\n }\r\n ]\r\n },\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/00000000-0000-0000-0000-000000000001\",\r\n \"name\": \"00000000-0000-0000-0000-000000000001\",\r\n \"properties\": {\r\n \"roleName\": \"Cosmos DB Built-in Data Reader\",\r\n \"type\": 0,\r\n \"assignableScopes\": [\r\n \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126\"\r\n ],\r\n \"permissions\": [\r\n {\r\n \"dataActions\": [\r\n \"Microsoft.DocumentDB/databaseAccounts/readMetadata\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/executeQuery\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/readChangeFeed\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read\"\r\n ],\r\n \"notDataActions\": []\r\n }\r\n ]\r\n },\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/00000000-0000-0000-0000-000000000002\",\r\n \"name\": \"00000000-0000-0000-0000-000000000002\",\r\n \"properties\": {\r\n \"roleName\": \"Cosmos DB Built-in Data Contributor\",\r\n \"type\": 0,\r\n \"assignableScopes\": [\r\n \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126\"\r\n ],\r\n \"permissions\": [\r\n {\r\n \"dataActions\": [\r\n \"Microsoft.DocumentDB/databaseAccounts/readMetadata\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/*\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/*\"\r\n ],\r\n \"notDataActions\": []\r\n }\r\n ]\r\n },\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions\"\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleAssignments/adcb35e1-e104-41c2-b76d-70a8b03e6463?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYy9zcWxSb2xlQXNzaWdubWVudHMvYWRjYjM1ZTEtZTEwNC00MWMyLWI3NmQtNzBhOGIwM2U2NDYzP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleAssignments/adcb35e1-e104-41c2-b76d-70a8b03e6463?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYzEyNi9zcWxSb2xlQXNzaWdubWVudHMvYWRjYjM1ZTEtZTEwNC00MWMyLWI3NmQtNzBhOGIwM2U2NDYzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"roleDefinitionId\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e\",\r\n \"scope\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/dbs/databaseName\",\r\n \"principalId\": \"ed4c2395-a18c-4018-afb3-6e521e7534d2\"\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"roleDefinitionId\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e\",\r\n \"scope\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/dbs/databaseName\",\r\n \"principalId\": \"ed4c2395-a18c-4018-afb3-6e521e7534d2\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "0d3b1695-c769-4906-9ded-b89e0085a062" + "45f60382-dd2c-4bc2-9813-ea35f1907f9f" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "497" + "503" ] }, "ResponseHeaders": { @@ -726,19 +726,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleAssignments/adcb35e1-e104-41c2-b76d-70a8b03e6463/operationResults/00e98026-f104-4683-9f46-ba4a16d147a3?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleAssignments/adcb35e1-e104-41c2-b76d-70a8b03e6463/operationResults/93110450-a035-4bd2-a21c-793c916efa28?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/00e98026-f104-4683-9f46-ba4a16d147a3?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/93110450-a035-4bd2-a21c-793c916efa28?api-version=2021-06-15" ], "x-ms-request-id": [ - "00e98026-f104-4683-9f46-ba4a16d147a3" + "93110450-a035-4bd2-a21c-793c916efa28" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -747,16 +747,16 @@ "1196" ], "x-ms-correlation-request-id": [ - "064e5cb8-fa3c-4c85-91ec-dd3915e26541" + "8770c3ff-50dc-42f5-9849-32fc7a39878c" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185432Z:064e5cb8-fa3c-4c85-91ec-dd3915e26541" + "WESTUS2:20210616T075433Z:8770c3ff-50dc-42f5-9849-32fc7a39878c" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:54:31 GMT" + "Wed, 16 Jun 2021 07:54:32 GMT" ], "Content-Length": [ "21" @@ -769,15 +769,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/00e98026-f104-4683-9f46-ba4a16d147a3?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzAwZTk4MDI2LWYxMDQtNDY4My05ZjQ2LWJhNGExNmQxNDdhMz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/93110450-a035-4bd2-a21c-793c916efa28?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzkzMTEwNDUwLWEwMzUtNGJkMi1hMjFjLTc5M2M5MTZlZmEyOD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -792,7 +792,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -801,19 +801,19 @@ "11991" ], "x-ms-request-id": [ - "508655f8-35d3-49c0-9109-2d274e222751" + "1fbf6fe3-4632-4495-acaf-031b132bdd72" ], "x-ms-correlation-request-id": [ - "508655f8-35d3-49c0-9109-2d274e222751" + "1fbf6fe3-4632-4495-acaf-031b132bdd72" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185502Z:508655f8-35d3-49c0-9109-2d274e222751" + "WESTUS2:20210616T075503Z:1fbf6fe3-4632-4495-acaf-031b132bdd72" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:55:02 GMT" + "Wed, 16 Jun 2021 07:55:03 GMT" ], "Content-Length": [ "22" @@ -826,15 +826,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleAssignments/adcb35e1-e104-41c2-b76d-70a8b03e6463?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYy9zcWxSb2xlQXNzaWdubWVudHMvYWRjYjM1ZTEtZTEwNC00MWMyLWI3NmQtNzBhOGIwM2U2NDYzP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleAssignments/adcb35e1-e104-41c2-b76d-70a8b03e6463?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYzEyNi9zcWxSb2xlQXNzaWdubWVudHMvYWRjYjM1ZTEtZTEwNC00MWMyLWI3NmQtNzBhOGIwM2U2NDYzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -849,7 +849,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -858,46 +858,46 @@ "11990" ], "x-ms-request-id": [ - "57669654-268d-4c1f-92e2-8fc2bbbfa6cf" + "e9ccb33a-8c94-4ee3-8ced-2cff381875a7" ], "x-ms-correlation-request-id": [ - "57669654-268d-4c1f-92e2-8fc2bbbfa6cf" + "e9ccb33a-8c94-4ee3-8ced-2cff381875a7" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185503Z:57669654-268d-4c1f-92e2-8fc2bbbfa6cf" + "WESTUS2:20210616T075504Z:e9ccb33a-8c94-4ee3-8ced-2cff381875a7" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:55:03 GMT" + "Wed, 16 Jun 2021 07:55:03 GMT" ], "Content-Length": [ - "786" + "795" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleAssignments/adcb35e1-e104-41c2-b76d-70a8b03e6463\",\r\n \"name\": \"adcb35e1-e104-41c2-b76d-70a8b03e6463\",\r\n \"properties\": {\r\n \"roleDefinitionId\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e\",\r\n \"principalId\": \"ed4c2395-a18c-4018-afb3-6e521e7534d2\",\r\n \"scope\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/dbs/databaseName\"\r\n },\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleAssignments/adcb35e1-e104-41c2-b76d-70a8b03e6463\",\r\n \"name\": \"adcb35e1-e104-41c2-b76d-70a8b03e6463\",\r\n \"properties\": {\r\n \"roleDefinitionId\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e\",\r\n \"principalId\": \"ed4c2395-a18c-4018-afb3-6e521e7534d2\",\r\n \"scope\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/dbs/databaseName\"\r\n },\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleAssignments/adcb35e1-e104-41c2-b76d-70a8b03e6463?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYy9zcWxSb2xlQXNzaWdubWVudHMvYWRjYjM1ZTEtZTEwNC00MWMyLWI3NmQtNzBhOGIwM2U2NDYzP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleAssignments/adcb35e1-e104-41c2-b76d-70a8b03e6463?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYzEyNi9zcWxSb2xlQXNzaWdubWVudHMvYWRjYjM1ZTEtZTEwNC00MWMyLWI3NmQtNzBhOGIwM2U2NDYzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f878c160-a065-4875-b6ff-b98f35457a4c" + "bf5f4271-8d8a-458e-b148-5c2d8416706a" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -912,7 +912,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -921,53 +921,53 @@ "11989" ], "x-ms-request-id": [ - "ae21eb3c-7d5b-491c-bb81-6949ee453673" + "a80015c7-cd83-4ed6-b36c-db563357e596" ], "x-ms-correlation-request-id": [ - "ae21eb3c-7d5b-491c-bb81-6949ee453673" + "a80015c7-cd83-4ed6-b36c-db563357e596" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185503Z:ae21eb3c-7d5b-491c-bb81-6949ee453673" + "WESTUS2:20210616T075504Z:a80015c7-cd83-4ed6-b36c-db563357e596" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:55:03 GMT" + "Wed, 16 Jun 2021 07:55:03 GMT" ], "Content-Length": [ - "786" + "795" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleAssignments/adcb35e1-e104-41c2-b76d-70a8b03e6463\",\r\n \"name\": \"adcb35e1-e104-41c2-b76d-70a8b03e6463\",\r\n \"properties\": {\r\n \"roleDefinitionId\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e\",\r\n \"principalId\": \"ed4c2395-a18c-4018-afb3-6e521e7534d2\",\r\n \"scope\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/dbs/databaseName\"\r\n },\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleAssignments/adcb35e1-e104-41c2-b76d-70a8b03e6463\",\r\n \"name\": \"adcb35e1-e104-41c2-b76d-70a8b03e6463\",\r\n \"properties\": {\r\n \"roleDefinitionId\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e\",\r\n \"principalId\": \"ed4c2395-a18c-4018-afb3-6e521e7534d2\",\r\n \"scope\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/dbs/databaseName\"\r\n },\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleAssignments/d5fcc566-a91c-4fce-8f54-138855981e63?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYy9zcWxSb2xlQXNzaWdubWVudHMvZDVmY2M1NjYtYTkxYy00ZmNlLThmNTQtMTM4ODU1OTgxZTYzP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleAssignments/d5fcc566-a91c-4fce-8f54-138855981e63?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYzEyNi9zcWxSb2xlQXNzaWdubWVudHMvZDVmY2M1NjYtYTkxYy00ZmNlLThmNTQtMTM4ODU1OTgxZTYzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"roleDefinitionId\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/fbf74201-f33f-46f0-8234-2b8bf15ecec4\",\r\n \"scope\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac\",\r\n \"principalId\": \"d60019b0-c5a8-4e38-beb9-fb80daa3ce90\"\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"roleDefinitionId\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/fbf74201-f33f-46f0-8234-2b8bf15ecec4\",\r\n \"scope\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126\",\r\n \"principalId\": \"d60019b0-c5a8-4e38-beb9-fb80daa3ce90\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "06f6f229-ecbc-4b64-9225-b2ce23ec830a" + "f5e59091-e778-4dd0-9f96-dd0126de9fd3" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "480" + "486" ] }, "ResponseHeaders": { @@ -978,19 +978,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleAssignments/d5fcc566-a91c-4fce-8f54-138855981e63/operationResults/2450ef99-5571-4a84-8242-8348fba6eaef?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleAssignments/d5fcc566-a91c-4fce-8f54-138855981e63/operationResults/2345063e-9fd8-4c0b-a854-5b531253fff3?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2450ef99-5571-4a84-8242-8348fba6eaef?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2345063e-9fd8-4c0b-a854-5b531253fff3?api-version=2021-06-15" ], "x-ms-request-id": [ - "2450ef99-5571-4a84-8242-8348fba6eaef" + "2345063e-9fd8-4c0b-a854-5b531253fff3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -999,16 +999,16 @@ "1195" ], "x-ms-correlation-request-id": [ - "4fe309b4-51c7-42e3-b9c9-6b1bb5f34ed4" + "3e8144b0-f626-4f2d-b35a-8ee7cabad264" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185504Z:4fe309b4-51c7-42e3-b9c9-6b1bb5f34ed4" + "WESTUS2:20210616T075505Z:3e8144b0-f626-4f2d-b35a-8ee7cabad264" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:55:04 GMT" + "Wed, 16 Jun 2021 07:55:04 GMT" ], "Content-Length": [ "21" @@ -1021,15 +1021,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2450ef99-5571-4a84-8242-8348fba6eaef?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzI0NTBlZjk5LTU1NzEtNGE4NC04MjQyLTgzNDhmYmE2ZWFlZj9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/2345063e-9fd8-4c0b-a854-5b531253fff3?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzIzNDUwNjNlLTlmZDgtNGMwYi1hODU0LTViNTMxMjUzZmZmMz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1044,7 +1044,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1053,19 +1053,19 @@ "11988" ], "x-ms-request-id": [ - "8cf34785-4a13-4f70-8a4e-33d539ebc390" + "19589040-9d9e-4b0f-b449-818689f44cb9" ], "x-ms-correlation-request-id": [ - "8cf34785-4a13-4f70-8a4e-33d539ebc390" + "19589040-9d9e-4b0f-b449-818689f44cb9" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185535Z:8cf34785-4a13-4f70-8a4e-33d539ebc390" + "WESTUS2:20210616T075535Z:19589040-9d9e-4b0f-b449-818689f44cb9" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:55:34 GMT" + "Wed, 16 Jun 2021 07:55:34 GMT" ], "Content-Length": [ "22" @@ -1078,15 +1078,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleAssignments/d5fcc566-a91c-4fce-8f54-138855981e63?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYy9zcWxSb2xlQXNzaWdubWVudHMvZDVmY2M1NjYtYTkxYy00ZmNlLThmNTQtMTM4ODU1OTgxZTYzP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleAssignments/d5fcc566-a91c-4fce-8f54-138855981e63?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYzEyNi9zcWxSb2xlQXNzaWdubWVudHMvZDVmY2M1NjYtYTkxYy00ZmNlLThmNTQtMTM4ODU1OTgxZTYzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1101,7 +1101,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1110,46 +1110,46 @@ "11987" ], "x-ms-request-id": [ - "4251657d-2ca0-472b-97e5-184db8fed440" + "0ed4497f-6780-4349-82f5-bfc2e2e5ce0f" ], "x-ms-correlation-request-id": [ - "4251657d-2ca0-472b-97e5-184db8fed440" + "0ed4497f-6780-4349-82f5-bfc2e2e5ce0f" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185535Z:4251657d-2ca0-472b-97e5-184db8fed440" + "WESTUS2:20210616T075535Z:0ed4497f-6780-4349-82f5-bfc2e2e5ce0f" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:55:35 GMT" + "Wed, 16 Jun 2021 07:55:34 GMT" ], "Content-Length": [ - "769" + "778" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleAssignments/d5fcc566-a91c-4fce-8f54-138855981e63\",\r\n \"name\": \"d5fcc566-a91c-4fce-8f54-138855981e63\",\r\n \"properties\": {\r\n \"roleDefinitionId\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/fbf74201-f33f-46f0-8234-2b8bf15ecec4\",\r\n \"principalId\": \"d60019b0-c5a8-4e38-beb9-fb80daa3ce90\",\r\n \"scope\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac\"\r\n },\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleAssignments/d5fcc566-a91c-4fce-8f54-138855981e63\",\r\n \"name\": \"d5fcc566-a91c-4fce-8f54-138855981e63\",\r\n \"properties\": {\r\n \"roleDefinitionId\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/fbf74201-f33f-46f0-8234-2b8bf15ecec4\",\r\n \"principalId\": \"d60019b0-c5a8-4e38-beb9-fb80daa3ce90\",\r\n \"scope\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126\"\r\n },\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleAssignments?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYy9zcWxSb2xlQXNzaWdubWVudHM/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleAssignments?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYzEyNi9zcWxSb2xlQXNzaWdubWVudHM/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "5f9eb75c-67f1-46f5-a208-90e9f754641e" + "1162990a-2860-43c3-8465-be0c7ed493ea" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1164,7 +1164,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1173,46 +1173,46 @@ "11986" ], "x-ms-request-id": [ - "84de2ba8-1dde-4923-bef6-d98ff1ff8807" + "1b529124-2d85-4d9c-9ef4-de85508700c1" ], "x-ms-correlation-request-id": [ - "84de2ba8-1dde-4923-bef6-d98ff1ff8807" + "1b529124-2d85-4d9c-9ef4-de85508700c1" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185535Z:84de2ba8-1dde-4923-bef6-d98ff1ff8807" + "WESTUS2:20210616T075535Z:1b529124-2d85-4d9c-9ef4-de85508700c1" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:55:35 GMT" + "Wed, 16 Jun 2021 07:55:35 GMT" ], "Content-Length": [ - "1568" + "1586" ], "Content-Type": [ "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleAssignments/adcb35e1-e104-41c2-b76d-70a8b03e6463\",\r\n \"name\": \"adcb35e1-e104-41c2-b76d-70a8b03e6463\",\r\n \"properties\": {\r\n \"roleDefinitionId\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e\",\r\n \"principalId\": \"ed4c2395-a18c-4018-afb3-6e521e7534d2\",\r\n \"scope\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/dbs/databaseName\"\r\n },\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleAssignments/d5fcc566-a91c-4fce-8f54-138855981e63\",\r\n \"name\": \"d5fcc566-a91c-4fce-8f54-138855981e63\",\r\n \"properties\": {\r\n \"roleDefinitionId\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/fbf74201-f33f-46f0-8234-2b8bf15ecec4\",\r\n \"principalId\": \"d60019b0-c5a8-4e38-beb9-fb80daa3ce90\",\r\n \"scope\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac\"\r\n },\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleAssignments/adcb35e1-e104-41c2-b76d-70a8b03e6463\",\r\n \"name\": \"adcb35e1-e104-41c2-b76d-70a8b03e6463\",\r\n \"properties\": {\r\n \"roleDefinitionId\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e\",\r\n \"principalId\": \"ed4c2395-a18c-4018-afb3-6e521e7534d2\",\r\n \"scope\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/dbs/databaseName\"\r\n },\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleAssignments/d5fcc566-a91c-4fce-8f54-138855981e63\",\r\n \"name\": \"d5fcc566-a91c-4fce-8f54-138855981e63\",\r\n \"properties\": {\r\n \"roleDefinitionId\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/fbf74201-f33f-46f0-8234-2b8bf15ecec4\",\r\n \"principalId\": \"d60019b0-c5a8-4e38-beb9-fb80daa3ce90\",\r\n \"scope\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126\"\r\n },\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments\"\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleAssignments/adcb35e1-e104-41c2-b76d-70a8b03e6463?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYy9zcWxSb2xlQXNzaWdubWVudHMvYWRjYjM1ZTEtZTEwNC00MWMyLWI3NmQtNzBhOGIwM2U2NDYzP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleAssignments/adcb35e1-e104-41c2-b76d-70a8b03e6463?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYzEyNi9zcWxSb2xlQXNzaWdubWVudHMvYWRjYjM1ZTEtZTEwNC00MWMyLWI3NmQtNzBhOGIwM2U2NDYzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a4703928-b686-4fd9-be5a-f984a572d798" + "0cc28fea-1599-4c1c-bc15-27aa3161b4c8" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1224,19 +1224,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleAssignments/adcb35e1-e104-41c2-b76d-70a8b03e6463/operationResults/612c1299-71a2-4c9d-b61a-73533ae4cc33?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleAssignments/adcb35e1-e104-41c2-b76d-70a8b03e6463/operationResults/33e889e0-e174-4092-b9aa-a7b173a28db6?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/612c1299-71a2-4c9d-b61a-73533ae4cc33?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/33e889e0-e174-4092-b9aa-a7b173a28db6?api-version=2021-06-15" ], "x-ms-request-id": [ - "612c1299-71a2-4c9d-b61a-73533ae4cc33" + "33e889e0-e174-4092-b9aa-a7b173a28db6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1245,16 +1245,16 @@ "14999" ], "x-ms-correlation-request-id": [ - "f2c19109-f12c-4c8d-ac53-651c5d5d129b" + "43aa6b58-bdca-49ee-8f2c-9bfd587839c8" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185536Z:f2c19109-f12c-4c8d-ac53-651c5d5d129b" + "WESTUS2:20210616T075536Z:43aa6b58-bdca-49ee-8f2c-9bfd587839c8" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:55:36 GMT" + "Wed, 16 Jun 2021 07:55:35 GMT" ], "Content-Length": [ "21" @@ -1267,15 +1267,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/612c1299-71a2-4c9d-b61a-73533ae4cc33?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzYxMmMxMjk5LTcxYTItNGM5ZC1iNjFhLTczNTMzYWU0Y2MzMz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/33e889e0-e174-4092-b9aa-a7b173a28db6?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzMzZTg4OWUwLWUxNzQtNDA5Mi1iOWFhLWE3YjE3M2EyOGRiNj9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1290,7 +1290,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1299,19 +1299,19 @@ "11985" ], "x-ms-request-id": [ - "d9ac20f4-f8d4-4b65-a789-d082e1a2dcc8" + "832ec39f-988e-4a5f-9e95-017fbc5b723b" ], "x-ms-correlation-request-id": [ - "d9ac20f4-f8d4-4b65-a789-d082e1a2dcc8" + "832ec39f-988e-4a5f-9e95-017fbc5b723b" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185607Z:d9ac20f4-f8d4-4b65-a789-d082e1a2dcc8" + "WESTUS2:20210616T075606Z:832ec39f-988e-4a5f-9e95-017fbc5b723b" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:56:06 GMT" + "Wed, 16 Jun 2021 07:56:06 GMT" ], "Content-Length": [ "22" @@ -1324,15 +1324,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleAssignments/adcb35e1-e104-41c2-b76d-70a8b03e6463/operationResults/612c1299-71a2-4c9d-b61a-73533ae4cc33?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYy9zcWxSb2xlQXNzaWdubWVudHMvYWRjYjM1ZTEtZTEwNC00MWMyLWI3NmQtNzBhOGIwM2U2NDYzL29wZXJhdGlvblJlc3VsdHMvNjEyYzEyOTktNzFhMi00YzlkLWI2MWEtNzM1MzNhZTRjYzMzP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleAssignments/adcb35e1-e104-41c2-b76d-70a8b03e6463/operationResults/33e889e0-e174-4092-b9aa-a7b173a28db6?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYzEyNi9zcWxSb2xlQXNzaWdubWVudHMvYWRjYjM1ZTEtZTEwNC00MWMyLWI3NmQtNzBhOGIwM2U2NDYzL29wZXJhdGlvblJlc3VsdHMvMzNlODg5ZTAtZTE3NC00MDkyLWI5YWEtYTdiMTczYTI4ZGI2P2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1347,7 +1347,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1356,19 +1356,19 @@ "11984" ], "x-ms-request-id": [ - "e92788a6-78ff-4b43-a956-db9d8adb755e" + "c2b4c28e-a5cf-4bcc-8ecc-18ae15858b89" ], "x-ms-correlation-request-id": [ - "e92788a6-78ff-4b43-a956-db9d8adb755e" + "c2b4c28e-a5cf-4bcc-8ecc-18ae15858b89" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185607Z:e92788a6-78ff-4b43-a956-db9d8adb755e" + "WESTUS2:20210616T075607Z:c2b4c28e-a5cf-4bcc-8ecc-18ae15858b89" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:56:06 GMT" + "Wed, 16 Jun 2021 07:56:06 GMT" ], "Content-Length": [ "22" @@ -1381,21 +1381,21 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleAssignments/d5fcc566-a91c-4fce-8f54-138855981e63?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYy9zcWxSb2xlQXNzaWdubWVudHMvZDVmY2M1NjYtYTkxYy00ZmNlLThmNTQtMTM4ODU1OTgxZTYzP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleAssignments/d5fcc566-a91c-4fce-8f54-138855981e63?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYzEyNi9zcWxSb2xlQXNzaWdubWVudHMvZDVmY2M1NjYtYTkxYy00ZmNlLThmNTQtMTM4ODU1OTgxZTYzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "0443f261-37af-48ca-9dea-548bc2bdc0c2" + "c190bc23-7379-46a4-8f97-352cd456e212" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1407,19 +1407,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleAssignments/d5fcc566-a91c-4fce-8f54-138855981e63/operationResults/13733377-9f5a-4b34-9aa8-6c1b2ca982e7?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleAssignments/d5fcc566-a91c-4fce-8f54-138855981e63/operationResults/75ce63db-084c-496e-877b-d7a50b110978?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/13733377-9f5a-4b34-9aa8-6c1b2ca982e7?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/75ce63db-084c-496e-877b-d7a50b110978?api-version=2021-06-15" ], "x-ms-request-id": [ - "13733377-9f5a-4b34-9aa8-6c1b2ca982e7" + "75ce63db-084c-496e-877b-d7a50b110978" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1428,16 +1428,16 @@ "14998" ], "x-ms-correlation-request-id": [ - "c8155233-90fb-40dd-8f5a-335588511fee" + "1724a767-f726-4e45-99de-02be92c9892c" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185608Z:c8155233-90fb-40dd-8f5a-335588511fee" + "WESTUS2:20210616T075607Z:1724a767-f726-4e45-99de-02be92c9892c" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:56:07 GMT" + "Wed, 16 Jun 2021 07:56:07 GMT" ], "Content-Length": [ "21" @@ -1450,15 +1450,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/13733377-9f5a-4b34-9aa8-6c1b2ca982e7?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzEzNzMzMzc3LTlmNWEtNGIzNC05YWE4LTZjMWIyY2E5ODJlNz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/75ce63db-084c-496e-877b-d7a50b110978?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzc1Y2U2M2RiLTA4NGMtNDk2ZS04NzdiLWQ3YTUwYjExMDk3OD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1473,7 +1473,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1482,19 +1482,19 @@ "11983" ], "x-ms-request-id": [ - "4cebf5d1-e7f2-417a-92ce-a14103a2a065" + "0b12b413-b07b-4d3b-a3ab-f398dddfb664" ], "x-ms-correlation-request-id": [ - "4cebf5d1-e7f2-417a-92ce-a14103a2a065" + "0b12b413-b07b-4d3b-a3ab-f398dddfb664" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185638Z:4cebf5d1-e7f2-417a-92ce-a14103a2a065" + "WESTUS2:20210616T075637Z:0b12b413-b07b-4d3b-a3ab-f398dddfb664" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:56:37 GMT" + "Wed, 16 Jun 2021 07:56:37 GMT" ], "Content-Length": [ "22" @@ -1507,15 +1507,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleAssignments/d5fcc566-a91c-4fce-8f54-138855981e63/operationResults/13733377-9f5a-4b34-9aa8-6c1b2ca982e7?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYy9zcWxSb2xlQXNzaWdubWVudHMvZDVmY2M1NjYtYTkxYy00ZmNlLThmNTQtMTM4ODU1OTgxZTYzL29wZXJhdGlvblJlc3VsdHMvMTM3MzMzNzctOWY1YS00YjM0LTlhYTgtNmMxYjJjYTk4MmU3P2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleAssignments/d5fcc566-a91c-4fce-8f54-138855981e63/operationResults/75ce63db-084c-496e-877b-d7a50b110978?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYzEyNi9zcWxSb2xlQXNzaWdubWVudHMvZDVmY2M1NjYtYTkxYy00ZmNlLThmNTQtMTM4ODU1OTgxZTYzL29wZXJhdGlvblJlc3VsdHMvNzVjZTYzZGItMDg0Yy00OTZlLTg3N2ItZDdhNTBiMTEwOTc4P2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1530,7 +1530,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1539,19 +1539,19 @@ "11982" ], "x-ms-request-id": [ - "5a402b41-4549-40c6-bc4d-da13f43b9a93" + "1146f5b7-d2e2-458a-8094-3883d6b6b161" ], "x-ms-correlation-request-id": [ - "5a402b41-4549-40c6-bc4d-da13f43b9a93" + "1146f5b7-d2e2-458a-8094-3883d6b6b161" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185638Z:5a402b41-4549-40c6-bc4d-da13f43b9a93" + "WESTUS2:20210616T075638Z:1146f5b7-d2e2-458a-8094-3883d6b6b161" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:56:37 GMT" + "Wed, 16 Jun 2021 07:56:37 GMT" ], "Content-Length": [ "22" @@ -1564,21 +1564,21 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/fbf74201-f33f-46f0-8234-2b8bf15ecec4?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYy9zcWxSb2xlRGVmaW5pdGlvbnMvZmJmNzQyMDEtZjMzZi00NmYwLTgyMzQtMmI4YmYxNWVjZWM0P2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/fbf74201-f33f-46f0-8234-2b8bf15ecec4?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYzEyNi9zcWxSb2xlRGVmaW5pdGlvbnMvZmJmNzQyMDEtZjMzZi00NmYwLTgyMzQtMmI4YmYxNWVjZWM0P2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "491140e9-c298-49ad-89e2-190341c1d739" + "eb4dfe20-7e1e-4725-8032-c7f039944033" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1590,19 +1590,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/fbf74201-f33f-46f0-8234-2b8bf15ecec4/operationResults/8bb92ed1-5f38-4553-81e4-e3b3bee46e2d?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/fbf74201-f33f-46f0-8234-2b8bf15ecec4/operationResults/04063ca1-35e2-4aad-8681-3ed8df6c8499?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/8bb92ed1-5f38-4553-81e4-e3b3bee46e2d?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/04063ca1-35e2-4aad-8681-3ed8df6c8499?api-version=2021-06-15" ], "x-ms-request-id": [ - "8bb92ed1-5f38-4553-81e4-e3b3bee46e2d" + "04063ca1-35e2-4aad-8681-3ed8df6c8499" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1611,16 +1611,16 @@ "14997" ], "x-ms-correlation-request-id": [ - "e5a1eec6-570e-44d8-a996-be483aa38f59" + "fe30cf1b-02e1-4315-9948-12a1dfde0b71" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185639Z:e5a1eec6-570e-44d8-a996-be483aa38f59" + "WESTUS2:20210616T075638Z:fe30cf1b-02e1-4315-9948-12a1dfde0b71" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:56:38 GMT" + "Wed, 16 Jun 2021 07:56:38 GMT" ], "Content-Length": [ "21" @@ -1633,15 +1633,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/8bb92ed1-5f38-4553-81e4-e3b3bee46e2d?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzhiYjkyZWQxLTVmMzgtNDU1My04MWU0LWUzYjNiZWU0NmUyZD9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/04063ca1-35e2-4aad-8681-3ed8df6c8499?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzA0MDYzY2ExLTM1ZTItNGFhZC04NjgxLTNlZDhkZjZjODQ5OT9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1656,7 +1656,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1665,19 +1665,19 @@ "11981" ], "x-ms-request-id": [ - "b6aa36ff-5bfe-45ea-8932-66d8bbef9894" + "afb8f8ac-1901-4ec3-847f-b8127abe3002" ], "x-ms-correlation-request-id": [ - "b6aa36ff-5bfe-45ea-8932-66d8bbef9894" + "afb8f8ac-1901-4ec3-847f-b8127abe3002" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185709Z:b6aa36ff-5bfe-45ea-8932-66d8bbef9894" + "WESTUS2:20210616T075708Z:afb8f8ac-1901-4ec3-847f-b8127abe3002" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:57:09 GMT" + "Wed, 16 Jun 2021 07:57:07 GMT" ], "Content-Length": [ "22" @@ -1690,15 +1690,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/fbf74201-f33f-46f0-8234-2b8bf15ecec4/operationResults/8bb92ed1-5f38-4553-81e4-e3b3bee46e2d?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYy9zcWxSb2xlRGVmaW5pdGlvbnMvZmJmNzQyMDEtZjMzZi00NmYwLTgyMzQtMmI4YmYxNWVjZWM0L29wZXJhdGlvblJlc3VsdHMvOGJiOTJlZDEtNWYzOC00NTUzLTgxZTQtZTNiM2JlZTQ2ZTJkP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/fbf74201-f33f-46f0-8234-2b8bf15ecec4/operationResults/04063ca1-35e2-4aad-8681-3ed8df6c8499?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYzEyNi9zcWxSb2xlRGVmaW5pdGlvbnMvZmJmNzQyMDEtZjMzZi00NmYwLTgyMzQtMmI4YmYxNWVjZWM0L29wZXJhdGlvblJlc3VsdHMvMDQwNjNjYTEtMzVlMi00YWFkLTg2ODEtM2VkOGRmNmM4NDk5P2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1713,7 +1713,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1722,19 +1722,19 @@ "11980" ], "x-ms-request-id": [ - "940cccc9-de50-4d3b-87b8-8d954f10a838" + "a7918451-864d-4a24-94b4-a929b3dcd958" ], "x-ms-correlation-request-id": [ - "940cccc9-de50-4d3b-87b8-8d954f10a838" + "a7918451-864d-4a24-94b4-a929b3dcd958" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185710Z:940cccc9-de50-4d3b-87b8-8d954f10a838" + "WESTUS2:20210616T075709Z:a7918451-864d-4a24-94b4-a929b3dcd958" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:57:10 GMT" + "Wed, 16 Jun 2021 07:57:08 GMT" ], "Content-Length": [ "22" @@ -1747,21 +1747,21 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYy9zcWxSb2xlRGVmaW5pdGlvbnMvNzA1ODBhYzMtY2QwYi00NTQ5LTgzMzYtMmYwZDU1ZGYxMTFlP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYzEyNi9zcWxSb2xlRGVmaW5pdGlvbnMvNzA1ODBhYzMtY2QwYi00NTQ5LTgzMzYtMmYwZDU1ZGYxMTFlP2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "13a9bb41-1537-4976-801f-3c67a50d5171" + "6375f92b-c852-4116-9ccb-1fea80bd4f97" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1773,19 +1773,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e/operationResults/d7f5673a-b661-4542-befe-f827a22d97bf?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e/operationResults/6cff3b66-14b4-4780-95a8-6a6215af5354?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d7f5673a-b661-4542-befe-f827a22d97bf?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/6cff3b66-14b4-4780-95a8-6a6215af5354?api-version=2021-06-15" ], "x-ms-request-id": [ - "d7f5673a-b661-4542-befe-f827a22d97bf" + "6cff3b66-14b4-4780-95a8-6a6215af5354" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1794,16 +1794,16 @@ "14996" ], "x-ms-correlation-request-id": [ - "030bdda0-c08b-4375-963a-0e282aa3d4e8" + "08284fa6-3be0-436d-acfe-3a20dbad25c6" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185711Z:030bdda0-c08b-4375-963a-0e282aa3d4e8" + "WESTUS2:20210616T075710Z:08284fa6-3be0-436d-acfe-3a20dbad25c6" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:57:11 GMT" + "Wed, 16 Jun 2021 07:57:09 GMT" ], "Content-Length": [ "21" @@ -1816,15 +1816,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/d7f5673a-b661-4542-befe-f827a22d97bf?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzL2Q3ZjU2NzNhLWI2NjEtNDU0Mi1iZWZlLWY4MjdhMjJkOTdiZj9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/6cff3b66-14b4-4780-95a8-6a6215af5354?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzZjZmYzYjY2LTE0YjQtNDc4MC05NWE4LTZhNjIxNWFmNTM1ND9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1839,7 +1839,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1848,19 +1848,19 @@ "11979" ], "x-ms-request-id": [ - "ced5e601-7f51-498a-bfbf-fdaa25c7a151" + "145977cd-4255-4ca3-9157-042234b88db4" ], "x-ms-correlation-request-id": [ - "ced5e601-7f51-498a-bfbf-fdaa25c7a151" + "145977cd-4255-4ca3-9157-042234b88db4" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185741Z:ced5e601-7f51-498a-bfbf-fdaa25c7a151" + "WESTUS2:20210616T075740Z:145977cd-4255-4ca3-9157-042234b88db4" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:57:41 GMT" + "Wed, 16 Jun 2021 07:57:39 GMT" ], "Content-Length": [ "22" @@ -1873,15 +1873,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e/operationResults/d7f5673a-b661-4542-befe-f827a22d97bf?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYy9zcWxSb2xlRGVmaW5pdGlvbnMvNzA1ODBhYzMtY2QwYi00NTQ5LTgzMzYtMmYwZDU1ZGYxMTFlL29wZXJhdGlvblJlc3VsdHMvZDdmNTY3M2EtYjY2MS00NTQyLWJlZmUtZjgyN2EyMmQ5N2JmP2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/rbac126/sqlRoleDefinitions/70580ac3-cd0b-4549-8336-2f0d55df111e/operationResults/6cff3b66-14b4-4780-95a8-6a6215af5354?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvcmJhYzEyNi9zcWxSb2xlRGVmaW5pdGlvbnMvNzA1ODBhYzMtY2QwYi00NTQ5LTgzMzYtMmYwZDU1ZGYxMTFlL29wZXJhdGlvblJlc3VsdHMvNmNmZjNiNjYtMTRiNC00NzgwLTk1YTgtNmE2MjE1YWY1MzU0P2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -1896,7 +1896,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1905,19 +1905,19 @@ "11978" ], "x-ms-request-id": [ - "298e12b7-6436-465d-9c38-827ebe7df39a" + "d8929e71-1800-4864-882e-7af78795449c" ], "x-ms-correlation-request-id": [ - "298e12b7-6436-465d-9c38-827ebe7df39a" + "d8929e71-1800-4864-882e-7af78795449c" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185741Z:298e12b7-6436-465d-9c38-827ebe7df39a" + "WESTUS2:20210616T075740Z:d8929e71-1800-4864-882e-7af78795449c" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:57:41 GMT" + "Wed, 16 Jun 2021 07:57:40 GMT" ], "Content-Length": [ "22" @@ -1930,21 +1930,21 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124/sqlRoleDefinitions/a5d92de7-1c34-481e-aafa-44f5cb03744c?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI0L3NxbFJvbGVEZWZpbml0aW9ucy9hNWQ5MmRlNy0xYzM0LTQ4MWUtYWFmYS00NGY1Y2IwMzc0NGM/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126/sqlRoleDefinitions/a5d92de7-1c34-481e-aafa-44f5cb03744c?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvY2xpMTI2L3NxbFJvbGVEZWZpbml0aW9ucy9hNWQ5MmRlNy0xYzM0LTQ4MWUtYWFmYS00NGY1Y2IwMzc0NGM/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"roleName\": \"roleName4\",\r\n \"type\": \"CustomRole\",\r\n \"assignableScopes\": [\r\n \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli124\"\r\n ],\r\n \"permissions\": [\r\n {\r\n \"dataActions\": [\r\n \"invalid-action-name\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/delete\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/replace\"\r\n ]\r\n }\r\n ]\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"roleName\": \"roleName4\",\r\n \"type\": \"CustomRole\",\r\n \"assignableScopes\": [\r\n \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/cli126\"\r\n ],\r\n \"permissions\": [\r\n {\r\n \"dataActions\": [\r\n \"invalid-action-name\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/delete\",\r\n \"Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/replace\"\r\n ]\r\n }\r\n ]\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "7e758ad9-5539-427f-a346-848ea82d0047" + "9018c79b-0637-4816-bb95-73a20e201c9a" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ @@ -1965,7 +1965,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1974,19 +1974,19 @@ "1194" ], "x-ms-request-id": [ - "e089af9e-ed2b-4cc8-81ac-5c9e7ab23a92" + "86711fa9-cd3f-4200-8f79-1d409199df01" ], "x-ms-correlation-request-id": [ - "e089af9e-ed2b-4cc8-81ac-5c9e7ab23a92" + "86711fa9-cd3f-4200-8f79-1d409199df01" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T185742Z:e089af9e-ed2b-4cc8-81ac-5c9e7ab23a92" + "WESTUS2:20210616T075741Z:86711fa9-cd3f-4200-8f79-1d409199df01" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 18:57:41 GMT" + "Wed, 16 Jun 2021 07:57:40 GMT" ], "Content-Length": [ "230" @@ -1995,12 +1995,12 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"code\": \"BadRequest\",\r\n \"message\": \"The provided data action string [invalid-action-name] does not correspond to any valid SQL data action.\\r\\nActivityId: 7e758ad9-5539-427f-a346-848ea82d0047, Microsoft.Azure.Documents.Common/2.11.0\"\r\n}", + "ResponseBody": "{\r\n \"code\": \"BadRequest\",\r\n \"message\": \"The provided data action string [invalid-action-name] does not correspond to any valid SQL data action.\\r\\nActivityId: 9018c79b-0637-4816-bb95-73a20e201c9a, Microsoft.Azure.Documents.Common/2.14.0\"\r\n}", "StatusCode": 400 } ], "Names": {}, "Variables": { - "SubscriptionId": "80be3961-0521-4a0a-8570-5cd5a4e2f98c" + "SubscriptionId": "259fbb24-9bcd-4cfc-865c-fc33b22fe38a" } } \ No newline at end of file diff --git a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/TableResourcesOperationsTests/TableCRUDTests.json b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/TableResourcesOperationsTests/TableCRUDTests.json index 3f8feed5087c..276303b9d453 100644 --- a/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/TableResourcesOperationsTests/TableCRUDTests.json +++ b/sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/tests/SessionRecords/TableResourcesOperationsTests/TableCRUDTests.json @@ -1,21 +1,21 @@ { "Entries": [ { - "RequestUri": "/providers/Microsoft.DocumentDB/databaseAccountNames/db2048?api-version=2021-04-15", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnROYW1lcy9kYjIwNDg/YXBpLXZlcnNpb249MjAyMS0wNC0xNQ==", + "RequestUri": "/providers/Microsoft.DocumentDB/databaseAccountNames/db2048?api-version=2021-06-15", + "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9kYXRhYmFzZUFjY291bnROYW1lcy9kYjIwNDg/YXBpLXZlcnNpb249MjAyMS0wNi0xNQ==", "RequestMethod": "HEAD", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8b490331-fcf2-4b0d-98d6-a4a88afba420" + "ba373e93-f3d5-496b-b7b8-a02460dd55ae" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -30,7 +30,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-activity-id": [ - "8b490331-fcf2-4b0d-98d6-a4a88afba420" + "ba373e93-f3d5-496b-b7b8-a02460dd55ae" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -39,19 +39,19 @@ "11999" ], "x-ms-request-id": [ - "300f5a1d-438b-4cc2-96e0-36fa70b21ace" + "32e5ab8d-aa38-480e-8cd9-00225f56308b" ], "x-ms-correlation-request-id": [ - "300f5a1d-438b-4cc2-96e0-36fa70b21ace" + "32e5ab8d-aa38-480e-8cd9-00225f56308b" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T173835Z:300f5a1d-438b-4cc2-96e0-36fa70b21ace" + "WESTUS2:20210616T055947Z:32e5ab8d-aa38-480e-8cd9-00225f56308b" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:38:34 GMT" + "Wed, 16 Jun 2021 05:59:46 GMT" ], "Content-Length": [ "0" @@ -61,21 +61,21 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName2527?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyMDQ4L3RhYmxlcy90YWJsZU5hbWUyNTI3P2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName2527?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyMDQ4L3RhYmxlcy90YWJsZU5hbWUyNTI3P2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"tableName2527\"\r\n },\r\n \"options\": {}\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "903babb9-f2c4-4b5f-8cbb-e1e3a0217c25" + "9fa121fd-ad59-426c-bb82-c3b9e3a5539a" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ @@ -93,19 +93,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName2527/operationResults/16010563-4a5e-4c7a-ba7f-2bc8552400e8?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName2527/operationResults/19b033cd-69eb-4bdf-a6bc-813e75b5965d?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/16010563-4a5e-4c7a-ba7f-2bc8552400e8?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/19b033cd-69eb-4bdf-a6bc-813e75b5965d?api-version=2021-06-15" ], "x-ms-request-id": [ - "16010563-4a5e-4c7a-ba7f-2bc8552400e8" + "19b033cd-69eb-4bdf-a6bc-813e75b5965d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -114,16 +114,16 @@ "1199" ], "x-ms-correlation-request-id": [ - "f301eef4-75e0-48c4-8906-a9f9fc1d1787" + "50f7a051-49a9-418b-b388-ca6f44ab99db" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T173836Z:f301eef4-75e0-48c4-8906-a9f9fc1d1787" + "WESTUS2:20210616T055948Z:50f7a051-49a9-418b-b388-ca6f44ab99db" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:38:36 GMT" + "Wed, 16 Jun 2021 05:59:48 GMT" ], "Content-Length": [ "21" @@ -136,15 +136,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/16010563-4a5e-4c7a-ba7f-2bc8552400e8?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzE2MDEwNTYzLTRhNWUtNGM3YS1iYTdmLTJiYzg1NTI0MDBlOD9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/19b033cd-69eb-4bdf-a6bc-813e75b5965d?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzE5YjAzM2NkLTY5ZWItNGJkZi1hNmJjLTgxM2U3NWI1OTY1ZD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -159,7 +159,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -168,19 +168,19 @@ "11999" ], "x-ms-request-id": [ - "0bd24c61-ddbf-4222-ba0d-423fdf550e42" + "28fa50c4-4885-46e2-83b6-d2d6bbeba31a" ], "x-ms-correlation-request-id": [ - "0bd24c61-ddbf-4222-ba0d-423fdf550e42" + "28fa50c4-4885-46e2-83b6-d2d6bbeba31a" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T173907Z:0bd24c61-ddbf-4222-ba0d-423fdf550e42" + "WESTUS2:20210616T060018Z:28fa50c4-4885-46e2-83b6-d2d6bbeba31a" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:39:06 GMT" + "Wed, 16 Jun 2021 06:00:17 GMT" ], "Content-Length": [ "22" @@ -193,15 +193,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName2527?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyMDQ4L3RhYmxlcy90YWJsZU5hbWUyNTI3P2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName2527?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyMDQ4L3RhYmxlcy90YWJsZU5hbWUyNTI3P2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -216,7 +216,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -225,19 +225,19 @@ "11998" ], "x-ms-request-id": [ - "ccdf01f4-04f6-4d3b-9b49-6513957547f7" + "ebfd55a7-b18c-431c-a3bd-d6cb53857c11" ], "x-ms-correlation-request-id": [ - "ccdf01f4-04f6-4d3b-9b49-6513957547f7" + "ebfd55a7-b18c-431c-a3bd-d6cb53857c11" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T173907Z:ccdf01f4-04f6-4d3b-9b49-6513957547f7" + "WESTUS2:20210616T060019Z:ebfd55a7-b18c-431c-a3bd-d6cb53857c11" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:39:07 GMT" + "Wed, 16 Jun 2021 06:00:18 GMT" ], "Content-Length": [ "393" @@ -246,25 +246,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName2527\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/tables\",\r\n \"name\": \"tableName2527\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"tableName2527\",\r\n \"_rid\": \"QX49AM2IVPM=\",\r\n \"_etag\": \"\\\"00000000-0000-0000-3b8c-2abcb40201d7\\\"\",\r\n \"_ts\": 1619545122\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName2527\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/tables\",\r\n \"name\": \"tableName2527\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"tableName2527\",\r\n \"_rid\": \"YLxZAKBC3Pg=\",\r\n \"_etag\": \"\\\"00000000-0000-0000-5d60-d378a40201d7\\\"\",\r\n \"_ts\": 1623264847\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName2527?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyMDQ4L3RhYmxlcy90YWJsZU5hbWUyNTI3P2FwaS12ZXJzaW9uPTIwMjEtMDQtMTU=", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName2527?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyMDQ4L3RhYmxlcy90YWJsZU5hbWUyNTI3P2FwaS12ZXJzaW9uPTIwMjEtMDYtMTU=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "2a1a0945-a9be-480f-b590-0eb25cb1cf79" + "fd2d50e2-607a-4d13-aff0-a4d54e0d911c" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -279,7 +279,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -288,19 +288,19 @@ "11997" ], "x-ms-request-id": [ - "c53d5680-4030-47ae-80d2-a7a90e244d75" + "8798a41e-7536-47c9-abde-daa14bce9257" ], "x-ms-correlation-request-id": [ - "c53d5680-4030-47ae-80d2-a7a90e244d75" + "8798a41e-7536-47c9-abde-daa14bce9257" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T173907Z:c53d5680-4030-47ae-80d2-a7a90e244d75" + "WESTUS2:20210616T060019Z:8798a41e-7536-47c9-abde-daa14bce9257" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:39:07 GMT" + "Wed, 16 Jun 2021 06:00:18 GMT" ], "Content-Length": [ "393" @@ -309,25 +309,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName2527\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/tables\",\r\n \"name\": \"tableName2527\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"tableName2527\",\r\n \"_rid\": \"QX49AM2IVPM=\",\r\n \"_etag\": \"\\\"00000000-0000-0000-3b8c-2abcb40201d7\\\"\",\r\n \"_ts\": 1619545122\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName2527\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/tables\",\r\n \"name\": \"tableName2527\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"tableName2527\",\r\n \"_rid\": \"YLxZAKBC3Pg=\",\r\n \"_etag\": \"\\\"00000000-0000-0000-5d60-d378a40201d7\\\"\",\r\n \"_ts\": 1623264847\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName22527?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyMDQ4L3RhYmxlcy90YWJsZU5hbWUyMjUyNz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName22527?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyMDQ4L3RhYmxlcy90YWJsZU5hbWUyMjUyNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"tableName22527\"\r\n },\r\n \"options\": {\r\n \"throughput\": 700\r\n }\r\n },\r\n \"location\": \"EAST US 2\",\r\n \"tags\": {\r\n \"key3\": \"value3\",\r\n \"key4\": \"value4\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "ffb954be-4b84-4268-a615-047aaa60b451" + "83879e8d-0aea-4298-9246-4111513907d3" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ], "Content-Type": [ @@ -345,19 +345,19 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName22527/operationResults/412f175a-ae9e-4934-9e44-0c722497e1d4?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName22527/operationResults/338b98d0-7cad-44ee-a57e-72c76355c3dc?api-version=2021-06-15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/412f175a-ae9e-4934-9e44-0c722497e1d4?api-version=2021-04-15" + "https://management.azure.com/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/338b98d0-7cad-44ee-a57e-72c76355c3dc?api-version=2021-06-15" ], "x-ms-request-id": [ - "412f175a-ae9e-4934-9e44-0c722497e1d4" + "338b98d0-7cad-44ee-a57e-72c76355c3dc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -366,16 +366,16 @@ "1198" ], "x-ms-correlation-request-id": [ - "b0559496-b9a4-4ba1-960f-92bc9d467b31" + "bccf39c4-5ba0-4d86-ab9d-8082633e9cb0" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T173908Z:b0559496-b9a4-4ba1-960f-92bc9d467b31" + "WESTUS2:20210616T060019Z:bccf39c4-5ba0-4d86-ab9d-8082633e9cb0" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:39:08 GMT" + "Wed, 16 Jun 2021 06:00:18 GMT" ], "Content-Length": [ "21" @@ -388,15 +388,15 @@ "StatusCode": 202 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/412f175a-ae9e-4934-9e44-0c722497e1d4?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzQxMmYxNzVhLWFlOWUtNDkzNC05ZTQ0LTBjNzIyNDk3ZTFkND9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/338b98d0-7cad-44ee-a57e-72c76355c3dc?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Byb3ZpZGVycy9NaWNyb3NvZnQuRG9jdW1lbnREQi9sb2NhdGlvbnMvZWFzdHVzMi9vcGVyYXRpb25zU3RhdHVzLzMzOGI5OGQwLTdjYWQtNDRlZS1hNTdlLTcyYzc2MzU1YzNkYz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -411,7 +411,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -420,19 +420,19 @@ "11996" ], "x-ms-request-id": [ - "9c5785cf-7ee5-45fe-80da-210c303f56a3" + "a1067811-2353-4740-bc4e-0e032d3dd1bd" ], "x-ms-correlation-request-id": [ - "9c5785cf-7ee5-45fe-80da-210c303f56a3" + "a1067811-2353-4740-bc4e-0e032d3dd1bd" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T173938Z:9c5785cf-7ee5-45fe-80da-210c303f56a3" + "WESTUS2:20210616T060049Z:a1067811-2353-4740-bc4e-0e032d3dd1bd" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:39:38 GMT" + "Wed, 16 Jun 2021 06:00:49 GMT" ], "Content-Length": [ "22" @@ -445,15 +445,15 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName22527?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyMDQ4L3RhYmxlcy90YWJsZU5hbWUyMjUyNz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName22527?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyMDQ4L3RhYmxlcy90YWJsZU5hbWUyMjUyNz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -468,7 +468,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -477,19 +477,19 @@ "11995" ], "x-ms-request-id": [ - "791fd915-ce86-4f9b-b15d-d0fecae83ccb" + "7f54868e-f628-4050-a46b-a0c698fc3f3e" ], "x-ms-correlation-request-id": [ - "791fd915-ce86-4f9b-b15d-d0fecae83ccb" + "7f54868e-f628-4050-a46b-a0c698fc3f3e" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T173938Z:791fd915-ce86-4f9b-b15d-d0fecae83ccb" + "WESTUS2:20210616T060050Z:7f54868e-f628-4050-a46b-a0c698fc3f3e" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:39:38 GMT" + "Wed, 16 Jun 2021 06:00:49 GMT" ], "Content-Length": [ "396" @@ -498,25 +498,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName22527\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/tables\",\r\n \"name\": \"tableName22527\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"tableName22527\",\r\n \"_rid\": \"QX49AOqBcfY=\",\r\n \"_etag\": \"\\\"00000000-0000-0000-3b8c-3ec8980201d7\\\"\",\r\n \"_ts\": 1619545156\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName22527\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/tables\",\r\n \"name\": \"tableName22527\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"tableName22527\",\r\n \"_rid\": \"YLxZAMC8GaM=\",\r\n \"_etag\": \"\\\"00000000-0000-0000-6274-e7e2700201d7\\\"\",\r\n \"_ts\": 1623823227\r\n }\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyMDQ4L3RhYmxlcz9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyMDQ4L3RhYmxlcz9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "3a45bede-0def-4976-804b-668c814cb5df" + "52e097d3-abf7-49d4-8f7e-be41bd5b570f" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -531,7 +531,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -540,19 +540,19 @@ "11994" ], "x-ms-request-id": [ - "dcdc140d-63bb-45bb-b7b9-c2ba7766f393" + "a3b0a367-88d1-449c-8c82-a025d1b54e5b" ], "x-ms-correlation-request-id": [ - "dcdc140d-63bb-45bb-b7b9-c2ba7766f393" + "a3b0a367-88d1-449c-8c82-a025d1b54e5b" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T173938Z:dcdc140d-63bb-45bb-b7b9-c2ba7766f393" + "WESTUS2:20210616T060050Z:a3b0a367-88d1-449c-8c82-a025d1b54e5b" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:39:38 GMT" + "Wed, 16 Jun 2021 06:00:49 GMT" ], "Content-Length": [ "802" @@ -561,25 +561,25 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName2527\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/tables\",\r\n \"name\": \"tableName2527\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"tableName2527\",\r\n \"_rid\": \"QX49AM2IVPM=\",\r\n \"_etag\": \"\\\"00000000-0000-0000-3b8c-2abcb40201d7\\\"\",\r\n \"_ts\": 1619545122\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName22527\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/tables\",\r\n \"name\": \"tableName22527\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"tableName22527\",\r\n \"_rid\": \"QX49AOqBcfY=\",\r\n \"_etag\": \"\\\"00000000-0000-0000-3b8c-3ec8980201d7\\\"\",\r\n \"_ts\": 1619545156\r\n }\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName22527\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/tables\",\r\n \"name\": \"tableName22527\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"tableName22527\",\r\n \"_rid\": \"YLxZAMC8GaM=\",\r\n \"_etag\": \"\\\"00000000-0000-0000-6274-e7e2700201d7\\\"\",\r\n \"_ts\": 1623823227\r\n }\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName2527\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/tables\",\r\n \"name\": \"tableName2527\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"id\": \"tableName2527\",\r\n \"_rid\": \"YLxZAKBC3Pg=\",\r\n \"_etag\": \"\\\"00000000-0000-0000-5d60-d378a40201d7\\\"\",\r\n \"_ts\": 1623264847\r\n }\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName22527/throughputSettings/default?api-version=2021-04-15", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvODBiZTM5NjEtMDUyMS00YTBhLTg1NzAtNWNkNWE0ZTJmOThjL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyMDQ4L3RhYmxlcy90YWJsZU5hbWUyMjUyNy90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTA0LTE1", + "RequestUri": "/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName22527/throughputSettings/default?api-version=2021-06-15", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMjU5ZmJiMjQtOWJjZC00Y2ZjLTg2NWMtZmMzM2IyMmZlMzhhL3Jlc291cmNlR3JvdXBzL0Nvc21vc0RCUmVzb3VyY2VHcm91cDM2NjgvcHJvdmlkZXJzL01pY3Jvc29mdC5Eb2N1bWVudERCL2RhdGFiYXNlQWNjb3VudHMvZGIyMDQ4L3RhYmxlcy90YWJsZU5hbWUyMjUyNy90aHJvdWdocHV0U2V0dGluZ3MvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTA2LTE1", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "028ea130-60b8-41a2-9b03-24c81bb0c7ff" + "13ee3d9c-a2cc-4504-8e2a-972a3c61718a" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29916.01", + "FxVersion/4.6.28207.03", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.CosmosDB.CosmosDBManagementClient/3.0.0.0" ] }, @@ -594,7 +594,7 @@ "max-age=31536000; includeSubDomains" ], "x-ms-gatewayversion": [ - "version=2.11.0" + "version=2.14.0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -603,19 +603,19 @@ "11993" ], "x-ms-request-id": [ - "bdf823d6-25b5-4b29-baaa-cd85e4647eae" + "b5913b71-e0a2-49c3-8a03-c531f78ad54d" ], "x-ms-correlation-request-id": [ - "bdf823d6-25b5-4b29-baaa-cd85e4647eae" + "b5913b71-e0a2-49c3-8a03-c531f78ad54d" ], "x-ms-routing-request-id": [ - "WESTUS:20210427T173939Z:bdf823d6-25b5-4b29-baaa-cd85e4647eae" + "WESTUS2:20210616T060050Z:b5913b71-e0a2-49c3-8a03-c531f78ad54d" ], "X-Content-Type-Options": [ "nosniff" ], "Date": [ - "Tue, 27 Apr 2021 17:39:38 GMT" + "Wed, 16 Jun 2021 06:00:50 GMT" ], "Content-Length": [ "363" @@ -624,12 +624,12 @@ "application/json" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/80be3961-0521-4a0a-8570-5cd5a4e2f98c/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName22527/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings\",\r\n \"name\": \"CXCZ\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 700,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/259fbb24-9bcd-4cfc-865c-fc33b22fe38a/resourceGroups/CosmosDBResourceGroup3668/providers/Microsoft.DocumentDB/databaseAccounts/db2048/tables/tableName22527/throughputSettings/default\",\r\n \"type\": \"Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings\",\r\n \"name\": \"Y5FA\",\r\n \"properties\": {\r\n \"resource\": {\r\n \"throughput\": 700,\r\n \"minimumThroughput\": \"400\"\r\n }\r\n }\r\n}", "StatusCode": 200 } ], "Names": {}, "Variables": { - "SubscriptionId": "80be3961-0521-4a0a-8570-5cd5a4e2f98c" + "SubscriptionId": "259fbb24-9bcd-4cfc-865c-fc33b22fe38a" } } \ No newline at end of file diff --git a/sdk/cosmosdb/ci.yml b/sdk/cosmosdb/ci.yml index 173e1560e25f..282b1cb5e7a6 100644 --- a/sdk/cosmosdb/ci.yml +++ b/sdk/cosmosdb/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/deviceprovisioningservices/Microsoft.Azure.Management.DeviceProvisioningServices/tests/readme.md b/sdk/deviceprovisioningservices/Microsoft.Azure.Management.DeviceProvisioningServices/tests/readme.md index 44d4f20c6955..e44e050d0b54 100644 --- a/sdk/deviceprovisioningservices/Microsoft.Azure.Management.DeviceProvisioningServices/tests/readme.md +++ b/sdk/deviceprovisioningservices/Microsoft.Azure.Management.DeviceProvisioningServices/tests/readme.md @@ -1,4 +1,4 @@ -# Running tests +# Running tests To run or record tests, you must set some environment variables. -Instructions can be found at . \ No newline at end of file +Instructions can be found at . \ No newline at end of file diff --git a/sdk/deviceupdate/Azure.IoT.DeviceUpdate/README.md b/sdk/deviceupdate/Azure.IoT.DeviceUpdate/README.md index 72bb6174f9e4..1c9e7020619d 100644 --- a/sdk/deviceupdate/Azure.IoT.DeviceUpdate/README.md +++ b/sdk/deviceupdate/Azure.IoT.DeviceUpdate/README.md @@ -2,7 +2,7 @@ The library provides access to the Device Update for IoT Hub service that enables customers to publish updates for their IoT devices to the cloud, and then deploy these updates to their devices (approve updates to groups of devices managed and provisioned in IoT Hub). - [Source code](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk) | [Package](https://www.nuget.org) | [Product documentation](https://docs.microsoft.com/azure/iot-hub-device-update/understand-device-update) + [Source code](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk) | [Package](https://www.nuget.org) | [Product documentation](https://docs.microsoft.com/azure/iot-hub-device-update/understand-device-update) ## Getting started @@ -40,7 +40,7 @@ You can learn more about Device Update for IoT Hub by visiting [Device Update fo ## Examples -You can familiarize yourself with different APIs using [Samples](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk). +You can familiarize yourself with different APIs using [Samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk). ## Troubleshooting @@ -64,7 +64,7 @@ catch (RequestFailedException ex) when (ex.Status == (int)HttpStatusCode.NotFoun ## Next steps -Get started with our [Device Update for IoT Hub samples](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk) +Get started with our [Device Update for IoT Hub samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk) ## Contributing diff --git a/sdk/deviceupdate/Microsoft.Azure.Management.DeviceUpdate/tests/readme.md b/sdk/deviceupdate/Microsoft.Azure.Management.DeviceUpdate/tests/readme.md index 44d4f20c6955..e44e050d0b54 100644 --- a/sdk/deviceupdate/Microsoft.Azure.Management.DeviceUpdate/tests/readme.md +++ b/sdk/deviceupdate/Microsoft.Azure.Management.DeviceUpdate/tests/readme.md @@ -1,4 +1,4 @@ -# Running tests +# Running tests To run or record tests, you must set some environment variables. -Instructions can be found at . \ No newline at end of file +Instructions can be found at . \ No newline at end of file diff --git a/sdk/deviceupdate/ci.yml b/sdk/deviceupdate/ci.yml index 18af255d127f..2efd2d1906ac 100644 --- a/sdk/deviceupdate/ci.yml +++ b/sdk/deviceupdate/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/Azure.DigitalTwins.Core.sln b/sdk/digitaltwins/Azure.DigitalTwins.Core/Azure.DigitalTwins.Core.sln index 55edb7319efb..b07fbb94b985 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/Azure.DigitalTwins.Core.sln +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/Azure.DigitalTwins.Core.sln @@ -21,6 +21,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core.TestFramework", "..\..\core\Azure.Core.TestFramework\src\Azure.Core.TestFramework.csproj", "{1FC8A3EA-3C0D-4DDF-B710-A7091F2CEBB1}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.DigitalTwins.Core.Perf", "perf\Azure.DigitalTwins.Core.Perf\Azure.DigitalTwins.Core.Perf.csproj", "{207EB40F-CEBA-4658-8D46-B5644D37F18C}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Test.Perf", "..\..\..\common\Perf\Azure.Test.Perf\Azure.Test.Perf.csproj", "{15EF5B20-42F6-4280-BE8E-DAC973B572A7}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "External", "External", "{E685A401-AF9E-4196-975B-26C4A340256F}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -43,10 +49,22 @@ Global {1FC8A3EA-3C0D-4DDF-B710-A7091F2CEBB1}.Debug|Any CPU.Build.0 = Debug|Any CPU {1FC8A3EA-3C0D-4DDF-B710-A7091F2CEBB1}.Release|Any CPU.ActiveCfg = Release|Any CPU {1FC8A3EA-3C0D-4DDF-B710-A7091F2CEBB1}.Release|Any CPU.Build.0 = Release|Any CPU + {207EB40F-CEBA-4658-8D46-B5644D37F18C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {207EB40F-CEBA-4658-8D46-B5644D37F18C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {207EB40F-CEBA-4658-8D46-B5644D37F18C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {207EB40F-CEBA-4658-8D46-B5644D37F18C}.Release|Any CPU.Build.0 = Release|Any CPU + {15EF5B20-42F6-4280-BE8E-DAC973B572A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {15EF5B20-42F6-4280-BE8E-DAC973B572A7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {15EF5B20-42F6-4280-BE8E-DAC973B572A7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {15EF5B20-42F6-4280-BE8E-DAC973B572A7}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {1FC8A3EA-3C0D-4DDF-B710-A7091F2CEBB1} = {E685A401-AF9E-4196-975B-26C4A340256F} + {15EF5B20-42F6-4280-BE8E-DAC973B572A7} = {E685A401-AF9E-4196-975B-26C4A340256F} + EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {A97F4B90-2591-4689-B1F8-5F21FE6D6CAE} EndGlobalSection diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/CHANGELOG.md b/sdk/digitaltwins/Azure.DigitalTwins.Core/CHANGELOG.md index f06c97941bbb..52f4f63cdf0d 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/CHANGELOG.md +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/CHANGELOG.md @@ -52,7 +52,7 @@ Note that these breaking changes are only breaking changes from the **preview** - Renamed model type `ModelData` to `DigitalTwinsModelData` to make type less generic, and less likely to conflict with other libraries. - Renamed model type `EventRoute` to `DigitalTwinsEventRoute` to make type less generic, and less likely to conflict with other libraries. - `EventRoute` (now `DigitalTwinsEventRoute`) object ctor now requires filter. -- Removed `UpdateOperationsUtility` and replace it with a direct dependency on [JsonPatchDocument](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/src/JsonPatchDocument.cs) from Azure.Core. +- Removed `UpdateOperationsUtility` and replace it with a direct dependency on [JsonPatchDocument](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/src/JsonPatchDocument.cs) from Azure.Core. - Removed `WritableProperty` since service no longer returns that type. - Removed `MaxItemCount` parameter as an option for `GetEventRoutes` APIs since users are expected to provide page size in pageable type's .AsPages() method instead. - Removed Serialization namespace, moving its contents to the base Azure.DigitalTwins.Core namespace. @@ -82,6 +82,6 @@ Note that these breaking changes are only breaking changes from the **preview** ### New features - Official public preview of [Azure.DigitalTwins.Core SDK](https://www.nuget.org/packages/Azure.DigitalTwins.Core) -- [Azure Digital Twins Public Repo](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/digitaltwins/Azure.DigitalTwins.Core) -- [Azure Digital Twins Samples](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/digitaltwins/Azure.DigitalTwins.Core/samples) +- [Azure Digital Twins Public Repo](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/digitaltwins/Azure.DigitalTwins.Core) +- [Azure Digital Twins Samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/digitaltwins/Azure.DigitalTwins.Core/samples) diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/README.md b/sdk/digitaltwins/Azure.DigitalTwins.Core/README.md index 69f9ac2ca19a..62d48324c0bb 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/README.md +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/README.md @@ -48,18 +48,18 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) ## Examples -You can familiarize yourself with different APIs using [samples for Digital Twins](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/digitaltwins/Azure.DigitalTwins.Core/samples/). +You can familiarize yourself with different APIs using [samples for Digital Twins](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/digitaltwins/Azure.DigitalTwins.Core/samples/). ## Source code folder structure @@ -71,18 +71,18 @@ The Digital Twins public client, `DigitalTwinsClient`, and the additional config The code generated by autorest using the swagger file defined in the autorest config file. -To regenerate the code, run the powershell script [generate.ps1](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/digitaltwins/Azure.DigitalTwins.Core/src/generate.ps1). +To regenerate the code, run the powershell script [generate.ps1](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/digitaltwins/Azure.DigitalTwins.Core/src/generate.ps1). Any time the client library code is updated, the following scripts need to be run: -- [Export-AdtApis.ps1](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/digitaltwins/Export-AdtApis.ps1), which will update the [API surface document](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/digitaltwins/Azure.DigitalTwins.Core/api/Azure.DigitalTwins.Core.netstandard2.0.cs). -- [Update-Snippets.ps1](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/digitaltwins/Update-AdtSnippets.ps1), which will update all the code snippets in the readme files and in the client documentation comments. +- [Export-AdtApis.ps1](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/digitaltwins/Export-AdtApis.ps1), which will update the [API surface document](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/digitaltwins/Azure.DigitalTwins.Core/api/Azure.DigitalTwins.Core.netstandard2.0.cs). +- [Update-Snippets.ps1](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/digitaltwins/Update-AdtSnippets.ps1), which will update all the code snippets in the readme files and in the client documentation comments. ### /src/Customized The customzied code written to override the following behavior of auto-generated code: -- Rename some of the generated types, eg. [GetModelsOptions](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Customized/Models/GetModelsOptions.cs) +- Rename some of the generated types, eg. [GetModelsOptions](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Customized/Models/GetModelsOptions.cs) - Declare some of the generated types as **internal**, instead of the autorest default of **public**. - Declare some methods to accept input parameters as **strings** instead of **objects**. - Declare some methods to return the response as **strings** instead of **objects**. @@ -118,7 +118,7 @@ catch (RequestFailedException ex) when (ex.Status == (int)HttpStatusCode.NotFoun ## Next steps -See implementation examples with our [code samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/digitaltwins/Azure.DigitalTwins.Core/samples). +See implementation examples with our [code samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/digitaltwins/Azure.DigitalTwins.Core/samples). ## Contributing @@ -138,16 +138,16 @@ For more information see the [Code of Conduct FAQ][code_of_conduct_faq] or conta [azure_sdk_target_frameworks]: https://github.com/azure/azure-sdk-for-net#target-frameworks [azure_cli]: https://docs.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/digitaltwins/Azure.DigitalTwins.Core/src +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/digitaltwins/Azure.DigitalTwins.Core/src [package]: https://www.nuget.org/packages/Azure.DigitalTwins.Core [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ [code_of_conduct_faq]: https://opensource.microsoft.com/codeofconduct/faq/ [nuget]: https://www.nuget.org/ [azure_portal]: https://portal.azure.com/ [azure_rest_api]: https://docs.microsoft.com/rest/api/azure/ -[azure_core_library]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core +[azure_core_library]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core [token_credential]: https://docs.microsoft.com/dotnet/api/azure.core.tokencredential?view=azure-dotnet -[digital_twins_client]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/digitaltwins/Azure.DigitalTwins.Core/src/DigitalTwinsClient.cs +[digital_twins_client]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/digitaltwins/Azure.DigitalTwins.Core/src/DigitalTwinsClient.cs [digital_twins_documentation]: https://docs.microsoft.com/azure/digital-twins/ [iot_cli_extension]: https://github.com/Azure/azure-iot-cli-extension/releases [iot_cli_doc]: https://docs.microsoft.com/cli/azure/azure-cli-reference-for-iot diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/perf/Azure.DigitalTwins.Core.Perf/Azure.DigitalTwins.Core.Perf.csproj b/sdk/digitaltwins/Azure.DigitalTwins.Core/perf/Azure.DigitalTwins.Core.Perf/Azure.DigitalTwins.Core.Perf.csproj new file mode 100644 index 000000000000..f209d1c262a9 --- /dev/null +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/perf/Azure.DigitalTwins.Core.Perf/Azure.DigitalTwins.Core.Perf.csproj @@ -0,0 +1,24 @@ + + + Exe + + + + + + + + + + + + + + + PreserveNewest + + + PreserveNewest + + + diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/perf/Azure.DigitalTwins.Core.Perf/Infrastructure/AdtInstancePopulator.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/perf/Azure.DigitalTwins.Core.Perf/Infrastructure/AdtInstancePopulator.cs new file mode 100644 index 000000000000..808fb6a646da --- /dev/null +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/perf/Azure.DigitalTwins.Core.Perf/Infrastructure/AdtInstancePopulator.cs @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Net; +using System.Reflection; +using System.Text.Json; +using System.Threading.Tasks; + +namespace Azure.DigitalTwins.Core.Perf.Infrastructure +{ + internal class AdtInstancePopulator + { + private static readonly string s_dtdlDirectoryPath = Path.Combine(GetWorkingDirectory(), "Infrastructure"); + + private static readonly string s_modelsPath = Path.Combine(s_dtdlDirectoryPath, "Models"); + private static readonly string s_twinsPath = Path.Combine(s_dtdlDirectoryPath, "Twins"); + + private const string RoomModelFileName = "Room.json"; + private const string RoomTwinFileName = "RoomTwin.json"; + + public static async Task CreateRoomModelAsync(DigitalTwinsClient client) + { + try + { + await client.CreateModelsAsync(new List { GetRoomModel() }).ConfigureAwait(false); + } + catch (RequestFailedException ex) when (ex.Status == (int)HttpStatusCode.Conflict) + { + Console.WriteLine("Model already exists"); + } + } + + public static async Task> CreateRoomTwinsForTestIdAsync(DigitalTwinsClient client, string testId, long countOftwins) + { + List createdTwins = new List(); + + string batchTwinPrefix = $"room-{testId}-{Guid.NewGuid().ToString().Substring(0, 8)}"; + for (long i = 0; i < countOftwins; i++) + { + string twinId = $"{batchTwinPrefix}-{i}"; + createdTwins.Add(await client.CreateOrReplaceDigitalTwinAsync(twinId, GetRoomTwin(testId)).ConfigureAwait(false)); + } + + return createdTwins; + } + + public static string GetRoomModel() + { + return LoadFileFromPath(s_modelsPath, RoomModelFileName); + } + + public static BasicDigitalTwin GetRoomTwin(string testId) + { + string value = LoadFileFromPath(s_twinsPath, RoomTwinFileName).Replace("TEST_ID", testId); + return JsonSerializer.Deserialize(value); + } + + private static string GetWorkingDirectory() + { + string codeBase = Assembly.GetExecutingAssembly().Location; + var uri = new UriBuilder(codeBase); + string path = Uri.UnescapeDataString(uri.Path); + return Path.GetDirectoryName(path); + } + + private static string LoadFileFromPath(string path, string fileName) + { + string[] allFilesPath = Directory.GetFiles(path, "*.json"); + try + { + string filePathOfInterest = allFilesPath.Where(s => Path.GetFileName(s) == fileName).FirstOrDefault(); + return File.ReadAllText(filePathOfInterest); + } + catch (Exception ex) + { + Console.WriteLine($"Error reading twin types from disk due to: {ex.Message}", ConsoleColor.Red); + Environment.Exit(0); + } + + return null; + } + } +} diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/perf/Azure.DigitalTwins.Core.Perf/Infrastructure/Models/Room.json b/sdk/digitaltwins/Azure.DigitalTwins.Core/perf/Azure.DigitalTwins.Core.Perf/Infrastructure/Models/Room.json new file mode 100644 index 000000000000..afb857025035 --- /dev/null +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/perf/Azure.DigitalTwins.Core.Perf/Infrastructure/Models/Room.json @@ -0,0 +1,13 @@ +{ + "@id": "dtmi:com:samples:Room;1", + "@type": "Interface", + "@context": "dtmi:dtdl:context;2", + "displayName": "Room", + "contents": [ + { + "@type": "Property", + "name": "TestId", + "schema": "string" + } + ] +} diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/perf/Azure.DigitalTwins.Core.Perf/Infrastructure/PerfTestEnvironment.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/perf/Azure.DigitalTwins.Core.Perf/Infrastructure/PerfTestEnvironment.cs new file mode 100644 index 000000000000..bcea3f1d7b3e --- /dev/null +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/perf/Azure.DigitalTwins.Core.Perf/Infrastructure/PerfTestEnvironment.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core.TestFramework; + +namespace Azure.DigitalTwins.Core.Perf +{ + /// + /// Represents the ambient environment in which the test suite is being run, offering access to information such as environment variables. + /// + internal sealed class PerfTestEnvironment : TestEnvironment + { + /// + /// The shared instance of the to be used during test runs. + /// + public static PerfTestEnvironment Instance { get; } = new PerfTestEnvironment(); + + /// + /// The Digital Twins instance endpoint to run the tests against. + /// + public string DigitalTwinsUrl => GetVariable("DIGITALTWINS_URL"); + + /// + /// The Microsoft tenant Id for the App registration. + /// + /// The Microsoft tenant Id for the App registration, read from the "DIGITALTWINS_TENANT_ID" environment variable. + public string DigitalTwinsTenantId => GetVariable("DIGITALTWINS_TENANT_ID"); + + /// + /// The App registration client Id used to authenticate against the instance. + /// + /// The App registration client Id used to authenticate against the instance, read from the "DIGITALTWINS_CLIENT_ID" environment variable. + public string DigitalTwinsClientId => GetVariable("DIGITALTWINS_CLIENT_ID"); + + /// + /// The App registration client secret. + /// + /// The App registration client secret, read from the "DIGITALTWINS_CLIENT_SECRET" environment variable. + public string DigitalTwinsClientSecret => GetVariable("DIGITALTWINS_CLIENT_SECRET"); + + /// + /// Initializes a new instance of the class. + /// + public PerfTestEnvironment() + { + } + } +} diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/perf/Azure.DigitalTwins.Core.Perf/Infrastructure/Twins/RoomTwin.json b/sdk/digitaltwins/Azure.DigitalTwins.Core/perf/Azure.DigitalTwins.Core.Perf/Infrastructure/Twins/RoomTwin.json new file mode 100644 index 000000000000..76b66820176d --- /dev/null +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/perf/Azure.DigitalTwins.Core.Perf/Infrastructure/Twins/RoomTwin.json @@ -0,0 +1,6 @@ +{ + "$metadata": { + "$model": "dtmi:com:samples:Room;1" + }, + "TestId": "TEST_ID" +} diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/perf/Azure.DigitalTwins.Core.Perf/Program.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/perf/Azure.DigitalTwins.Core.Perf/Program.cs new file mode 100644 index 000000000000..1ad7284aaa19 --- /dev/null +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/perf/Azure.DigitalTwins.Core.Perf/Program.cs @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Reflection; +using Azure.Test.Perf; + +await PerfProgram.Main(Assembly.GetEntryAssembly(), args); diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/perf/Azure.DigitalTwins.Core.Perf/Scenarios/QueryDigitalTwins.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/perf/Azure.DigitalTwins.Core.Perf/Scenarios/QueryDigitalTwins.cs new file mode 100644 index 000000000000..96625d51685c --- /dev/null +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/perf/Azure.DigitalTwins.Core.Perf/Scenarios/QueryDigitalTwins.cs @@ -0,0 +1,125 @@ +//Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.Threading; +using System.Threading.Tasks; +using Azure.DigitalTwins.Core.Perf.Infrastructure; +using Azure.Identity; +using Azure.Test.Perf; +using NUnit.Framework; +using FluentAssertions; + +namespace Azure.DigitalTwins.Core.Perf.Scenarios +{ + /// + /// The performance test scenario focused on running queries against digital twins instances. + /// + /// + public sealed class QueryDigitalTwins : PerfTest + { + private readonly DigitalTwinsClient _digitalTwinsClient; + private readonly string _testId; + private readonly long _size; + private readonly TimeSpan _delayPeriod = TimeSpan.FromMinutes(1); + private List _createdTwins = new List(); + + public QueryDigitalTwins(SizeOptions options) : base(options) + { + _digitalTwinsClient = new DigitalTwinsClient( + new Uri(PerfTestEnvironment.Instance.DigitalTwinsUrl), + new ClientSecretCredential( + PerfTestEnvironment.Instance.DigitalTwinsTenantId, + PerfTestEnvironment.Instance.DigitalTwinsClientId, + PerfTestEnvironment.Instance.DigitalTwinsClientSecret)); + + _size = options.Size; + _testId = Guid.NewGuid().ToString().Substring(0, 8); + } + + public override async Task GlobalSetupAsync() + { + await base.GlobalSetupAsync(); + + // Global setup code that runs once at the beginning of test execution. + // Create the model globally so all tests can take advantage of it. + await AdtInstancePopulator.CreateRoomModelAsync(_digitalTwinsClient).ConfigureAwait(false); + } + + public override async Task SetupAsync() + { + await base.SetupAsync(); + _createdTwins = await AdtInstancePopulator.CreateRoomTwinsForTestIdAsync(_digitalTwinsClient, _testId, _size).ConfigureAwait(false); + + // Since it takes some time for the newly created twins to be included in the query result, we have to wait some time. + await Task.Delay(_delayPeriod); + } + + public override async Task CleanupAsync() + { + // Individual test-level cleanup code that runs for each instance of the test. + await base.CleanupAsync(); + + // We will delete all twins created by this test instance. + foreach (BasicDigitalTwin twin in _createdTwins) + { + await _digitalTwinsClient.DeleteDigitalTwinAsync(twin.Id).ConfigureAwait(false); + } + } + + public override async Task GlobalCleanupAsync() + { + // Global cleanup code that runs once at the end of test execution. + await base.GlobalCleanupAsync(); + + // List all the models and delete all of them. + AsyncPageable allModels = _digitalTwinsClient.GetModelsAsync(); + + await foreach (DigitalTwinsModelData model in allModels) + { + await _digitalTwinsClient.DeleteModelAsync(model.Id).ConfigureAwait(false); + } + } + + /// + /// Queries for all digital twins using . + /// + /// The token used to signal cancellation request. + public override void Run(CancellationToken cancellationToken) + { + Pageable result = _digitalTwinsClient + .Query($"SELECT * FROM DIGITALTWINS WHERE TestId = '{_testId}'", CancellationToken.None); + long resultCount = 0; + + foreach (BasicDigitalTwin a in result) + { + resultCount++; + } + +#if DEBUG + resultCount.Should().Be(_size); +#endif + } + + /// + /// Queries for all digital twins using . + /// + /// The token used to signal cancellation request. + public override async Task RunAsync(CancellationToken cancellationToken) + { + AsyncPageable result = _digitalTwinsClient + .QueryAsync($"SELECT * FROM DIGITALTWINS WHERE TestId = '{_testId}'", CancellationToken.None); + long resultCount = 0; + + await foreach (BasicDigitalTwin a in result) + { + resultCount++; + } + +#if DEBUG + resultCount.Should().Be(_size); +#endif + } + } +} diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/perf/README.md b/sdk/digitaltwins/Azure.DigitalTwins.Core/perf/README.md new file mode 100644 index 000000000000..8daea36df71a --- /dev/null +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/perf/README.md @@ -0,0 +1,43 @@ +# Azure Digital Twins performance tests + +The assets in this area comprise a set of performance tests for the [Azure DigitalTwins client library for .NET](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/digitaltwins/Azure.DigitalTwins.Core) and its associated ecosystem. The artifacts in this library are intended to be used primarily with the Azure SDK engineering system's testing infrastructure, but may also be run as stand-alone applications from the command-line. + +You can learn more about the project structure [here](https://github.com/Azure/azure-sdk-for-net/wiki/Writing-performance-tests-for-Client-libraries). +## Purpose +Performance Testing using performance framework, in general, allows you to test throughput and latency offered to the customers via the SDKs. + +Major Benefit: +- Performance Regressions are caught prior to release. Regressions can come in from new code changes that get merged between two releases, new dependencies that get introduced or old dependencies that are upgraded. + +The Digital Twins performance tests will be plugged into performance automation pipelines automatically and will run the tests regularly to scan for any performance issues that should be fixed before releasing the SDK. + +## Perf test scenarios + +### QueryDigitalTwins + +This scenario tests API calls to the DigitalTwins service to query for Twins and Relationships. +The `GlobalTestSetupAsync` method override will create a single model that is used for all instances of the parallel test runs. This method is only invoked once and will not be called during the parallel test run across all instances of the test. +The `SetupAsync` method override will create multiple Twins that is configurable using the input options. Each test will create Twins using a unique test Id and will only query that subset during each run. + +## Running the tests + +Build a performance test project +```bash +dotnet run -c Release -f --no-build -p -- [parameters needed for the test] +``` + +Run the executable output of a project +```bash +dotnet run -c Release -f --no-build -p -- [parameters needed for the test] +``` + +\ can be one of netcoreapp2.1, netcoreapp3.1, net461 or net5.0. Note the -- before any custom parameters to pass. This prevents dotnet from trying to handle any ambiguous command line switches. + +You should use the scenario test class names as the first parameter that is needed for running the test. + +## Contributing +This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com. + +When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA. + +This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/samples/Readme.md b/sdk/digitaltwins/Azure.DigitalTwins.Core/samples/Readme.md index 332097074f6d..0bf2841abc42 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/samples/Readme.md +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/samples/Readme.md @@ -45,12 +45,12 @@ var client = new DigitalTwinsClient( ### Override options If you need to override pipeline behavior, such as provide your own HttpClient instance, you can do that via the other constructor that takes a -[DigitalTwinsClientOptions](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/digitaltwins/Azure.DigitalTwins.Core/src/DigitalTwinsClientOptions.cs) parameter. +[DigitalTwinsClientOptions](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/digitaltwins/Azure.DigitalTwins.Core/src/DigitalTwinsClientOptions.cs) parameter. It provides an opportunity to override default behavior including: -- Overriding [transport](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Pipeline.md) -- Enabling [diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) -- Controlling [retry strategy](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Configuration.md) +- Overriding [transport](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Pipeline.md) +- Enabling [diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) +- Controlling [retry strategy](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Configuration.md) - Specifying API version - Object serializer (see below) @@ -73,7 +73,7 @@ This would prevent unset properties on your digital twin or relationship from be ### Create models Let's create models using the code below. You need to pass in `List` containing list of json models. -Check out sample models [here](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/digitaltwins/Azure.DigitalTwins.Core/samples/DigitalTwinsClientSample/DTDL/Models). +Check out sample models [here](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/digitaltwins/Azure.DigitalTwins.Core/samples/DigitalTwinsClientSample/DTDL/Models). ```C# Snippet:DigitalTwinsSampleCreateModels await client.CreateModelsAsync(new[] { newComponentModelPayload, newModelPayload }); @@ -138,7 +138,7 @@ catch (Exception ex) ### Create digital twins -For Creating Twin you will need to provide Id of a digital Twin such as `myTwin` and the application/json digital twin based on the model created earlier. You can look at sample application/json [here](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/digitaltwins/Azure.DigitalTwins.Core/samples/DigitalTwinsClientSample/DTDL/DigitalTwins "DigitalTwin"). +For Creating Twin you will need to provide Id of a digital Twin such as `myTwin` and the application/json digital twin based on the model created earlier. You can look at sample application/json [here](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/digitaltwins/Azure.DigitalTwins.Core/samples/DigitalTwinsClientSample/DTDL/DigitalTwins "DigitalTwin"). One option is to use the provided class BasicDigitalTwin for serialization and deserialization. It uses functionality from the `System.Text.Json` library to maintain any unmapped json properties to a dictionary. @@ -178,7 +178,7 @@ Console.WriteLine($"Created digital twin '{createDigitalTwinResponse.Value.Id}'. Alternatively, you can create your own custom data types to serialize and deserialize your digital twins. By specifying your properties and types directly, it requires less code or knowledge of the type for interaction. -You can review the [CustomDigitalTwin definition](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/digitaltwins/Azure.DigitalTwins.Core/samples/DigitalTwinsClientSample/CustomDigitalTwin.cs). +You can review the [CustomDigitalTwin definition](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/digitaltwins/Azure.DigitalTwins.Core/samples/DigitalTwinsClientSample/CustomDigitalTwin.cs). ```C# Snippet:DigitalTwinsSampleCreateCustomTwin var customTwin = new CustomDigitalTwin @@ -347,7 +347,7 @@ Console.WriteLine($"Created a digital twin relationship '{createBuildingFloorRel Alternatively, you can create your own custom data types to serialize and deserialize your relationships. By specifying your properties and types directly, it requires less code or knowledge of the type for interaction. -You can review the [CustomRelationship definition](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/digitaltwins/Azure.DigitalTwins.Core/samples/DigitalTwinsClientSample/CustomRelationship.cs). +You can review the [CustomRelationship definition](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/digitaltwins/Azure.DigitalTwins.Core/samples/DigitalTwinsClientSample/CustomRelationship.cs). ```C# Snippet:DigitalTwinsSampleCreateCustomRelationship var floorBuildingRelationshipPayload = new CustomRelationship diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/DigitalTwinRelationshipTests.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/DigitalTwinRelationshipTests.cs index 8ca516e3ca87..0420811e4935 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/DigitalTwinRelationshipTests.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/DigitalTwinRelationshipTests.cs @@ -19,9 +19,9 @@ public class DigitalTwinRelationshipTests : E2eTestBase // Relationships list operation default max item count is 10. We create 31 to make sure we will get over 3 pages of response. // Ideally, service team would let us set max items per page when listing, but that isn't a feature yet - private const int bulkRelationshipCount = 31; + private const int BulkRelationshipCount = 31; - private const int defaultRelationshipPageSize = 10; + private const int DefaultRelationshipPageSize = 10; public DigitalTwinRelationshipTests(bool isAsync) : base(isAsync) @@ -140,7 +140,7 @@ await client AsyncPageable floorRelationships = client.GetRelationshipsAsync(floorTwinId); int numberOfFloorRelationships = 0; - await foreach (var relationship in floorRelationships) + await foreach (BasicRelationship relationship in floorRelationships) { ++numberOfFloorRelationships; } @@ -154,7 +154,7 @@ await client containsRelationshipId.Value.Id.Should().Be(floorContainsRoomRelationshipId); int numberOfRelationships = 0; - await foreach (var relationship in roomTwinRelationships) + await foreach (BasicRelationship relationship in roomTwinRelationships) { ++numberOfRelationships; } @@ -289,7 +289,7 @@ public async Task Relationships_PaginationWorks() string randomPostfix = "-" + GetRandom(); string floorToRoomRelationshipPrefix = "FloorToRoomRelationship-"; string roomToFloorRelationshipPrefix = "RoomToFloorRelationship-"; - for (int i = 0; i < bulkRelationshipCount; i++) + for (int i = 0; i < BulkRelationshipCount; i++) { var floorContainsRoomRelationshipId = $"{floorToRoomRelationshipPrefix}{i}{randomPostfix}"; @@ -303,7 +303,7 @@ await client } // For the sake of test simplicity, we'll just add multiple relationships from the same room to the same floor. - for (int i = 0; i < bulkRelationshipCount; i++) + for (int i = 0; i < BulkRelationshipCount; i++) { var roomContainedInFloorRelationshipId = $"{roomToFloorRelationshipPrefix}{i}{randomPostfix}"; @@ -325,7 +325,7 @@ await client incomingRelationshipPageCount++; if (incomingRelationshipPage.ContinuationToken != null) { - incomingRelationshipPage.Values.Count.Should().Be(defaultRelationshipPageSize, "Unexpected page size for a non-terminal page"); + incomingRelationshipPage.Values.Count.Should().Be(DefaultRelationshipPageSize, "Unexpected page size for a non-terminal page"); } } @@ -340,13 +340,13 @@ await client outgoingRelationshipPageCount++; if (outgoingRelationshipPage.ContinuationToken != null) { - outgoingRelationshipPage.Values.Count.Should().Be(defaultRelationshipPageSize, "Unexpected page size for a non-terminal page"); + outgoingRelationshipPage.Values.Count.Should().Be(DefaultRelationshipPageSize, "Unexpected page size for a non-terminal page"); } } outgoingRelationshipPageCount.Should().BeGreaterThan(1, "Expected more than one page of outgoing relationships"); - for (int i = 0; i < bulkRelationshipCount; i++) + for (int i = 0; i < BulkRelationshipCount; i++) { await client.DeleteRelationshipAsync(floorTwinId, $"{floorToRoomRelationshipPrefix}{i}{randomPostfix}").ConfigureAwait(false); await client.DeleteRelationshipAsync(roomTwinId, $"{roomToFloorRelationshipPrefix}{i}{randomPostfix}").ConfigureAwait(false); diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/E2eTestBase.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/E2eTestBase.cs index c6f6015574ac..9f662cb47c44 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/E2eTestBase.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/E2eTestBase.cs @@ -96,7 +96,7 @@ protected string GetRandom() // model and creating a digital twin that implements this model. The work around is to list the model(s) after // creating them in order to accommodate for that lag. Once service side investigates and comes up with a solution, // there is no need to list the models after creating them. - protected async Task CreateAndListModelsAsync(DigitalTwinsClient client, List lists) + protected static async Task CreateAndListModelsAsync(DigitalTwinsClient client, List lists) { await client.CreateModelsAsync(lists).ConfigureAwait(false); diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/TestObjectSerializer.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/TestObjectSerializer.cs index 01670f204430..49ce44e6f503 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/TestObjectSerializer.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/TestObjectSerializer.cs @@ -17,7 +17,7 @@ namespace Azure.DigitalTwins.Core.Tests /// public class TestObjectSerializer : ObjectSerializer { - private static JsonObjectSerializer _serializer = new JsonObjectSerializer(); + private static readonly JsonObjectSerializer s_serializer = new JsonObjectSerializer(); // This field is used by the tests to confirm the function was called. public bool WasDeserializeCalled { get; set; } @@ -28,25 +28,25 @@ public class TestObjectSerializer : ObjectSerializer public override object Deserialize(Stream stream, Type returnType, CancellationToken cancellationToken) { WasDeserializeCalled = true; - return _serializer.Deserialize(stream, returnType, cancellationToken); + return s_serializer.Deserialize(stream, returnType, cancellationToken); } - public async override ValueTask DeserializeAsync(Stream stream, Type returnType, CancellationToken cancellationToken) + public override async ValueTask DeserializeAsync(Stream stream, Type returnType, CancellationToken cancellationToken) { WasDeserializeCalled = true; - return await _serializer.DeserializeAsync(stream, returnType, cancellationToken); + return await s_serializer.DeserializeAsync(stream, returnType, cancellationToken); } public override void Serialize(Stream stream, object value, Type inputType, CancellationToken cancellationToken) { WasSerializeCalled = true; - _serializer.Serialize(stream, value, inputType, cancellationToken); + s_serializer.Serialize(stream, value, inputType, cancellationToken); } - public async override ValueTask SerializeAsync(Stream stream, object value, Type inputType, CancellationToken cancellationToken) + public override async ValueTask SerializeAsync(Stream stream, object value, Type inputType, CancellationToken cancellationToken) { WasSerializeCalled = true; - await _serializer.SerializeAsync(stream, value, inputType, cancellationToken); + await s_serializer.SerializeAsync(stream, value, inputType, cancellationToken); } } } diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/prerequisites/prerequisite readme.md b/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/prerequisites/prerequisite readme.md index 966dd1418e6e..69584dee5432 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/prerequisites/prerequisite readme.md +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/prerequisites/prerequisite readme.md @@ -17,13 +17,13 @@ ### Run the setup script -The script outputs [test-resources.bicep](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/digitaltwins/test-resources.bicep) file in the root folder [digitaltwins](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/digitaltwins) +The script outputs [test-resources.bicep](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/digitaltwins/test-resources.bicep) file in the root folder [digitaltwins](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/digitaltwins) - `.\setup.ps1` ### Generate the ARM template -The ARM template [test-resources.json](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/digitaltwins/test-resources.json) is generated from the [test-resources.bicep](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/digitaltwins/test-resources.bicep) file by running the following script +The ARM template [test-resources.json](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/digitaltwins/test-resources.json) is generated from the [test-resources.bicep](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/digitaltwins/test-resources.bicep) file by running the following script - `.\generateArmTemplate.ps1` diff --git a/sdk/digitaltwins/Microsoft.Azure.Management.DigitalTwins/tests/readme.md b/sdk/digitaltwins/Microsoft.Azure.Management.DigitalTwins/tests/readme.md index 44d4f20c6955..e44e050d0b54 100644 --- a/sdk/digitaltwins/Microsoft.Azure.Management.DigitalTwins/tests/readme.md +++ b/sdk/digitaltwins/Microsoft.Azure.Management.DigitalTwins/tests/readme.md @@ -1,4 +1,4 @@ -# Running tests +# Running tests To run or record tests, you must set some environment variables. -Instructions can be found at . \ No newline at end of file +Instructions can be found at . \ No newline at end of file diff --git a/sdk/digitaltwins/ci.yml b/sdk/digitaltwins/ci.yml index 7c3e918ea394..e03c69ef5fd9 100644 --- a/sdk/digitaltwins/ci.yml +++ b/sdk/digitaltwins/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/dns/Azure.ResourceManager.Dns/README.md b/sdk/dns/Azure.ResourceManager.Dns/README.md index 21d94e04af6d..162bbcfeb8c0 100644 --- a/sdk/dns/Azure.ResourceManager.Dns/README.md +++ b/sdk/dns/Azure.ResourceManager.Dns/README.md @@ -18,7 +18,7 @@ Install-Package Azure.ResourceManager.dns -Version 1.0.0-preview.1 ### Authenticate the Client -To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) ## Key concepts @@ -28,9 +28,9 @@ Key concepts of the Azure .NET SDK can be found [here](https://azure.github.io/a Documentation is available to help you learn how to use this package -- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) - [API References](https://docs.microsoft.com/dotnet/api/?view=azure-dotnet) -- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md) +- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md) ## Examples diff --git a/sdk/dns/ci.yml b/sdk/dns/ci.yml index 8959de511e5b..82417ae80e59 100644 --- a/sdk/dns/ci.yml +++ b/sdk/dns/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/CHANGELOG.md b/sdk/eventgrid/Azure.Messaging.EventGrid/CHANGELOG.md index 8b81c89311a2..2e7e4b0fb2cd 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/CHANGELOG.md +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 4.4.0-beta.1 (Unreleased) +## 4.5.0-beta.1 (Unreleased) ### Features Added @@ -11,6 +11,14 @@ ### Fixed +## 4.4.0 (2021-06-21) + +### Features Added +- Added public constructor and settable property for `SubscriptionValidationResponse`. + +### Key Bugs Fixed +- Fix issue where ARM system event data could not be deserialized into their strongly typed models. + ## 4.3.0 (2021-06-08) ### New Features @@ -93,7 +101,7 @@ ## 4.0.0-beta.1 (2020-09-08) This is the first preview of the Azure Event Grid client library that follows the [.NET Azure SDK Design Guidelines](https://azure.github.io/azure-sdk/dotnet_introduction.html). This library is not a drop-in replacement for `Microsoft.Azure.EventGrid`, as code changes would be required to use the new library. -This package's [documentation](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventgrid/Azure.Messaging.EventGrid/README.md) and [samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventgrid/Azure.Messaging.EventGrid/samples/README.md) demonstrate the new API. +This package's [documentation](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventgrid/Azure.Messaging.EventGrid/README.md) and [samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventgrid/Azure.Messaging.EventGrid/samples/README.md) demonstrate the new API. ### Features: - Configurable publisher client that supports sending user-defined events of the Event Grid, CloudEvents v1.0, or custom schema. - Ability to parse and deserialize system or user-defined events from JSON to events of the Event Grid or CloudEvents schema. diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/MigrationGuide.md b/sdk/eventgrid/Azure.Messaging.EventGrid/MigrationGuide.md index 2feaea27577f..6d09918d4840 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/MigrationGuide.md +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/MigrationGuide.md @@ -2,7 +2,7 @@ This guide is intended to assist in the migration to `Azure.Messaging.EventGrid` from `Microsoft.Azure.EventGrid`. It will focus on side-by-side comparisons for similar operations between the two packages. -We assume that you are familiar with `Microsoft.Azure.EventGrid`. If not, please refer to the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventgrid/Azure.Messaging.EventGrid/README.md) for `Azure.Messaging.EventGrid` rather than this guide. +We assume that you are familiar with `Microsoft.Azure.EventGrid`. If not, please refer to the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventgrid/Azure.Messaging.EventGrid/README.md) for `Azure.Messaging.EventGrid` rather than this guide. ## Table of contents - [Migration benefits](#migration-benefits) @@ -207,4 +207,4 @@ foreach (EventGridEvent egEvent in egEvents) ## Additional samples More examples can be found at: -- [Event Grid samples](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventgrid/Azure.Messaging.EventGrid/samples) +- [Event Grid samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventgrid/Azure.Messaging.EventGrid/samples) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/README.md b/sdk/eventgrid/Azure.Messaging.EventGrid/README.md index 6dc4522f81fc..1e92ca984483 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/README.md +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/README.md @@ -7,7 +7,7 @@ Use the client library for Azure Event Grid to: - Consume events that have been delivered to event handlers - Generate SAS tokens to authenticate the client publishing events to Azure Event Grid topics - [Source code](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventgrid/Azure.Messaging.EventGrid/src) | [Package (NuGet)](https://www.nuget.org/packages/Azure.Messaging.EventGrid/) | [API reference documentation](https://azure.github.io/azure-sdk-for-net/eventgrid.html) | [Product documentation](https://docs.microsoft.com/azure/event-grid/) | [Samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventgrid/Azure.Messaging.EventGrid/samples) | [Migration guide](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventgrid/Azure.Messaging.EventGrid/MigrationGuide.md) + [Source code](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventgrid/Azure.Messaging.EventGrid/src) | [Package (NuGet)](https://www.nuget.org/packages/Azure.Messaging.EventGrid/) | [API reference documentation](https://azure.github.io/azure-sdk-for-net/eventgrid.html) | [Product documentation](https://docs.microsoft.com/azure/event-grid/) | [Samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventgrid/Azure.Messaging.EventGrid/samples) | [Migration guide](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventgrid/Azure.Messaging.EventGrid/MigrationGuide.md) ## Getting started @@ -93,12 +93,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -318,17 +318,17 @@ foreach (EventGridEvent egEvent in egEvents) - An `InvalidOperationException` will be thrown during `GetData()` if a custom serializer is passed into `GetData()` with non-serialized event data (for example, if the event was created by the user and not created by parsing from JSON). ### Setting up console logging -You can also easily [enable console logging](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md#logging) if you want to dig deeper into the requests you're making against the service. +You can also easily [enable console logging](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md#logging) if you want to dig deeper into the requests you're making against the service. ### Distributed Tracing -The Event Grid library supports distributing tracing out of the box. In order to adhere to the CloudEvents specification's [guidance](https://github.com/cloudevents/spec/blob/master/extensions/distributed-tracing.md) on distributing tracing, the library will set the `traceparent` and `tracestate` on the `ExtensionAttributes` of a `CloudEvent` when distributed tracing is enabled. To learn more about how to enable distributed tracing in your application, take a look at the Azure SDK [distributed tracing documentation](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md#Distributed-tracing). +The Event Grid library supports distributing tracing out of the box. In order to adhere to the CloudEvents specification's [guidance](https://github.com/cloudevents/spec/blob/master/extensions/distributed-tracing.md) on distributing tracing, the library will set the `traceparent` and `tracestate` on the `ExtensionAttributes` of a `CloudEvent` when distributed tracing is enabled. To learn more about how to enable distributed tracing in your application, take a look at the Azure SDK [distributed tracing documentation](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md#Distributed-tracing). ### Event Grid on Kubernetes This library has been tested and validated on Kubernetes using Azure Arc. ## Next steps -View more https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventgrid/Azure.Messaging.EventGrid/samples here for common usages of the Event Grid client library: [Event Grid Samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventgrid/Azure.Messaging.EventGrid/samples). +View more https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventgrid/Azure.Messaging.EventGrid/samples here for common usages of the Event Grid client library: [Event Grid Samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventgrid/Azure.Messaging.EventGrid/samples). ## Contributing diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/api/Azure.Messaging.EventGrid.netstandard2.0.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/api/Azure.Messaging.EventGrid.netstandard2.0.cs index 96421f735e1c..9bc0184e334f 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/api/Azure.Messaging.EventGrid.netstandard2.0.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/api/Azure.Messaging.EventGrid.netstandard2.0.cs @@ -147,6 +147,7 @@ public static partial class EventGridModelFactory public static Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyCompletedEventData StorageLifecyclePolicyCompletedEventData(string scheduleTime = null, Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail deleteSummary = null, Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail tierToCoolSummary = null, Azure.Messaging.EventGrid.SystemEvents.StorageLifecyclePolicyActionSummaryDetail tierToArchiveSummary = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.SubscriptionDeletedEventData SubscriptionDeletedEventData(string eventSubscriptionId = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.SubscriptionValidationEventData SubscriptionValidationEventData(string validationCode = null, string validationUrl = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Messaging.EventGrid.SystemEvents.SubscriptionValidationResponse SubscriptionValidationResponse(string validationResponse = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.WebAppServicePlanUpdatedEventData WebAppServicePlanUpdatedEventData(Azure.Messaging.EventGrid.SystemEvents.AppServicePlanEventTypeDetail appServicePlanEventTypeDetail = null, Azure.Messaging.EventGrid.SystemEvents.WebAppServicePlanUpdatedEventDataSku sku = null, string name = null, string clientRequestId = null, string correlationRequestId = null, string requestId = null, string address = null, string verb = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.WebAppServicePlanUpdatedEventDataSku WebAppServicePlanUpdatedEventDataSku(string name = null, string tier = null, string size = null, string family = null, string capacity = null) { throw null; } @@ -1673,8 +1674,8 @@ internal SubscriptionValidationEventData() { } } public partial class SubscriptionValidationResponse { - internal SubscriptionValidationResponse() { } - public string ValidationResponse { get { throw null; } } + public SubscriptionValidationResponse() { } + public string ValidationResponse { get { throw null; } set { } } } public partial class WebAppServicePlanUpdatedEventData { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/samples/README.md b/sdk/eventgrid/Azure.Messaging.EventGrid/samples/README.md index c19a864953d6..f386aef8e58e 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/samples/README.md +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/samples/README.md @@ -10,8 +10,8 @@ description: Samples for the Azure.Messaging.EventGrid client library --- # Azure Event Grid SDK Samples -Before starting, take a look at the Azure Event Grid [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventgrid/Azure.Messaging.EventGrid/README.md) for more information on how to create an Event Grid custom topic or domain using the Azure portal/Azure CLI, and retrieving the designated endpoint and credential. +Before starting, take a look at the Azure Event Grid [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventgrid/Azure.Messaging.EventGrid/README.md) for more information on how to create an Event Grid custom topic or domain using the Azure portal/Azure CLI, and retrieving the designated endpoint and credential. -- [Publishing Events to an Event Grid Topic](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventgrid/Azure.Messaging.EventGrid/samples/Sample1_PublishEventsToTopic.md) -- [Publishing Events to an Event Grid Domain](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventgrid/Azure.Messaging.EventGrid/samples/Sample2_PublishEventsToDomain.md) -- [Deserializing Events Delivered to Event Handlers ](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventgrid/Azure.Messaging.EventGrid/samples/Sample3_ParseAndDeserializeEvents.md) +- [Publishing Events to an Event Grid Topic](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventgrid/Azure.Messaging.EventGrid/samples/Sample1_PublishEventsToTopic.md) +- [Publishing Events to an Event Grid Domain](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventgrid/Azure.Messaging.EventGrid/samples/Sample2_PublishEventsToDomain.md) +- [Deserializing Events Delivered to Event Handlers ](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventgrid/Azure.Messaging.EventGrid/samples/Sample3_ParseAndDeserializeEvents.md) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/samples/Sample1_PublishEventsToTopic.md b/sdk/eventgrid/Azure.Messaging.EventGrid/samples/Sample1_PublishEventsToTopic.md index a5370953e3dd..c35a10dd9403 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/samples/Sample1_PublishEventsToTopic.md +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/samples/Sample1_PublishEventsToTopic.md @@ -2,7 +2,7 @@ This sample demonstrates how to publish both Event Grid and CloudEvent 1.0 schema events to the Event Grid service. You can publish events from your own application using the `EventGridPublisherClient`. -To begin, create separate custom Event Grid topics accepting events of the Event Grid and CloudEvent 1.0 schema. See the [Prerequisites](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventgrid/Azure.Messaging.EventGrid/#prerequisites) section of the README for more instructions on creating custom topics. +To begin, create separate custom Event Grid topics accepting events of the Event Grid and CloudEvent 1.0 schema. See the [Prerequisites](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventgrid/Azure.Messaging.EventGrid/#prerequisites) section of the README for more instructions on creating custom topics. ## Creating and Authenticating `EventGridPublisherClient` Once you have your access key and topic endpoint, you can create the publisher client using the `AzureKeyCredential` class as follows: @@ -112,4 +112,4 @@ await client.SendEventsAsync(eventsList); ## Source To view the full example source, see: -- [Sample1_SendEventsToTopicAndDomain.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventgrid/Azure.Messaging.EventGrid/tests/Samples/Sample1_SendEventsToTopicAndDomain.cs) +- [Sample1_SendEventsToTopicAndDomain.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventgrid/Azure.Messaging.EventGrid/tests/Samples/Sample1_SendEventsToTopicAndDomain.cs) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/samples/Sample2_PublishEventsToDomain.md b/sdk/eventgrid/Azure.Messaging.EventGrid/samples/Sample2_PublishEventsToDomain.md index 76a3251b75a1..6db5773c5e43 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/samples/Sample2_PublishEventsToDomain.md +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/samples/Sample2_PublishEventsToDomain.md @@ -10,7 +10,7 @@ See the this [step-by-step tutorial](https://docs.microsoft.com/azure/event-grid ## Create and Authenticate `EventGridPublisherClient` -If you have not created an `EventGridPublisherClient`, refer to the sample [Publish Events To Topic](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventgrid/Azure.Messaging.EventGrid/samples/Sample1_PublishEventsToTopic.md) for more information on creating and authenticating the client. An example is shown below: +If you have not created an `EventGridPublisherClient`, refer to the sample [Publish Events To Topic](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventgrid/Azure.Messaging.EventGrid/samples/Sample1_PublishEventsToTopic.md) for more information on creating and authenticating the client. An example is shown below: ```C# Snippet:CreateDomainClient // Create the publisher client using an AzureKeyCredential // Domain should be configured to accept events of the Event Grid schema @@ -44,4 +44,4 @@ await client.SendEventsAsync(eventsList); ## Source To view the full example source, see: -- [Sample1_SendEventsToTopicAndDomain.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventgrid/Azure.Messaging.EventGrid/tests/Samples/Sample1_SendEventsToTopicAndDomain.cs) +- [Sample1_SendEventsToTopicAndDomain.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventgrid/Azure.Messaging.EventGrid/tests/Samples/Sample1_SendEventsToTopicAndDomain.cs) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/samples/Sample3_ParseAndDeserializeEvents.md b/sdk/eventgrid/Azure.Messaging.EventGrid/samples/Sample3_ParseAndDeserializeEvents.md index bfe2889c37f3..e70a591c838c 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/samples/Sample3_ParseAndDeserializeEvents.md +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/samples/Sample3_ParseAndDeserializeEvents.md @@ -100,4 +100,4 @@ foreach (EventGridEvent egEvent in egEvents) ## Source To view the full example source, see: -- [Sample2_ParseAndDeserializeEvents.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventgrid/Azure.Messaging.EventGrid/tests/Samples/Sample2_ParseAndDeserializeEvents.cs) +- [Sample2_ParseAndDeserializeEvents.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventgrid/Azure.Messaging.EventGrid/tests/Samples/Sample2_ParseAndDeserializeEvents.cs) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Azure.Messaging.EventGrid.csproj b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Azure.Messaging.EventGrid.csproj index d6d14c6e3615..d6a8dac6b415 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Azure.Messaging.EventGrid.csproj +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Azure.Messaging.EventGrid.csproj @@ -2,9 +2,9 @@ This library can be used to publish events to Azure Event Grid and to consume events delivered by EventGrid. It also defines the event schemas for the events published to EventGrid by various Azure services. Microsoft Azure.Messaging.EventGrid client library - 4.4.0-beta.1 + 4.5.0-beta.1 - 4.3.0 + 4.4.0 Microsoft Azure EventGrid;Event Grid;Event Grid Publishing; $(RequiredTargetFrameworks) diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Customization/EventGridModelFactory.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Customization/EventGridModelFactory.cs index c948e25c527b..29c22c93eb13 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Customization/EventGridModelFactory.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Customization/EventGridModelFactory.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System.ComponentModel; using System.Text.Json; using Azure.Core; using Azure.Messaging.EventGrid.SystemEvents; @@ -180,6 +181,15 @@ public static ResourceActionCancelEventData ResourceActionCancelEventData(string { return new(tenantId, subscriptionId, resourceGroup, resourceProvider, resourceUri, operationName, status, JsonDocument.Parse(authorization).RootElement, JsonDocument.Parse(claims).RootElement, correlationId, JsonDocument.Parse(httpRequest).RootElement); } + + /// Initializes new instance of SubscriptionValidationResponse class. + /// The validation response sent by the subscriber to Azure Event Grid to complete the validation of an event subscription. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static SubscriptionValidationResponse SubscriptionValidationResponse(string validationResponse = default) + { + return new(validationResponse); + } } #pragma warning restore CA1054 // URI-like parameters should not be strings } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs index 1cf4d75c0340..bb4915a94fac 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs @@ -204,14 +204,6 @@ public static SubscriptionValidationEventData SubscriptionValidationEventData(st return new SubscriptionValidationEventData(validationCode, validationUrl); } - /// Initializes new instance of SubscriptionValidationResponse class. - /// The validation response sent by the subscriber to Azure Event Grid to complete the validation of an event subscription. - /// A new instance for mocking. - public static SubscriptionValidationResponse SubscriptionValidationResponse(string validationResponse = default) - { - return new SubscriptionValidationResponse(validationResponse); - } - /// Initializes new instance of SubscriptionDeletedEventData class. /// The Azure resource ID of the deleted event subscription. /// A new instance for mocking. diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/SubscriptionValidationResponse.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/SubscriptionValidationResponse.Serialization.cs index 1bee1720997f..f6103c2c9781 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/SubscriptionValidationResponse.Serialization.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/SubscriptionValidationResponse.Serialization.cs @@ -13,8 +13,19 @@ namespace Azure.Messaging.EventGrid.SystemEvents { [JsonConverter(typeof(SubscriptionValidationResponseConverter))] - public partial class SubscriptionValidationResponse + public partial class SubscriptionValidationResponse : IUtf8JsonSerializable { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(ValidationResponse)) + { + writer.WritePropertyName("validationResponse"); + writer.WriteStringValue(ValidationResponse); + } + writer.WriteEndObject(); + } + internal static SubscriptionValidationResponse DeserializeSubscriptionValidationResponse(JsonElement element) { Optional validationResponse = default; @@ -33,7 +44,7 @@ internal partial class SubscriptionValidationResponseConverter : JsonConverter Initializes a new instance of SubscriptionValidationResponse. - internal SubscriptionValidationResponse() + public SubscriptionValidationResponse() { } @@ -23,6 +23,6 @@ internal SubscriptionValidationResponse(string validationResponse) } /// The validation response sent by the subscriber to Azure Event Grid to complete the validation of an event subscription. - public string ValidationResponse { get; } + public string ValidationResponse { get; set; } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/autorest.md b/sdk/eventgrid/Azure.Messaging.EventGrid/src/autorest.md index 68cc31e01460..8240f3379486 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/autorest.md +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/autorest.md @@ -63,12 +63,15 @@ directive: $[path]["x-namespace"] = namespace; } if (path.endsWith("EventData") || - path.endsWith("SubscriptionValidationResponse") || path.includes("EventGridEvent") || ($[path]["x-ms-client-name"] && $[path]["x-ms-client-name"].endsWith("EventData"))) { $[path]["x-csharp-usage"] = "model,output,converter"; } + if (path.endsWith("SubscriptionValidationResponse")) + { + $[path]["x-csharp-usage"] = "model,input,output,converter"; + } $[path]["x-csharp-formats"] = "json"; if (path.includes("WebAppServicePlanUpdatedEventData")) { diff --git a/sdk/eventgrid/Microsoft.Azure.Messaging.EventGrid.CloudNativeCloudEvents/README.md b/sdk/eventgrid/Microsoft.Azure.Messaging.EventGrid.CloudNativeCloudEvents/README.md index 91a67725328e..0f75b12e4270 100644 --- a/sdk/eventgrid/Microsoft.Azure.Messaging.EventGrid.CloudNativeCloudEvents/README.md +++ b/sdk/eventgrid/Microsoft.Azure.Messaging.EventGrid.CloudNativeCloudEvents/README.md @@ -44,7 +44,7 @@ EventGridPublisherClient client = new EventGridPublisherClient( For information about general Event Grid concepts: [Concepts in Azure Event Grid](https://docs.microsoft.com/azure/event-grid/concepts). -For detailed information about the Event Grid client library concepts: [Event Grid Client Library](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventgrid/Azure.Messaging.EventGrid#key-concepts) +For detailed information about the Event Grid client library concepts: [Event Grid Client Library](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventgrid/Azure.Messaging.EventGrid#key-concepts) ## Examples @@ -65,11 +65,11 @@ await client.SendCloudEventAsync(cloudEvent); ## Troubleshooting -For troubleshooting information, see the [Event Grid Client Library documentation](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventgrid/Azure.Messaging.EventGrid#troubleshooting). +For troubleshooting information, see the [Event Grid Client Library documentation](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventgrid/Azure.Messaging.EventGrid#troubleshooting). ## Next steps -View more [samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventgrid/Microsoft.Azure.Messaging.EventGrid.CloudNativeCloudEvents/tests/Samples) here for common usages of the library. +View more [samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventgrid/Microsoft.Azure.Messaging.EventGrid.CloudNativeCloudEvents/tests/Samples) here for common usages of the library. ## Contributing diff --git a/sdk/eventgrid/Microsoft.Azure.WebJobs.Extensions.EventGrid/Microsoft.Azure.WebJobs.Extensions.EventGrid.sln b/sdk/eventgrid/Microsoft.Azure.WebJobs.Extensions.EventGrid/Microsoft.Azure.WebJobs.Extensions.EventGrid.sln index da305ef0daa7..044ee1337edc 100644 --- a/sdk/eventgrid/Microsoft.Azure.WebJobs.Extensions.EventGrid/Microsoft.Azure.WebJobs.Extensions.EventGrid.sln +++ b/sdk/eventgrid/Microsoft.Azure.WebJobs.Extensions.EventGrid/Microsoft.Azure.WebJobs.Extensions.EventGrid.sln @@ -7,6 +7,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.WebJobs.Ext EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.WebJobs.Extensions.EventGrid", "src\Microsoft.Azure.WebJobs.Extensions.EventGrid.csproj", "{9322A9CD-ADC3-4BF3-B3AA-063A66585113}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.Messaging.EventGrid", "..\Azure.Messaging.EventGrid\src\Azure.Messaging.EventGrid.csproj", "{3E40026E-2DE9-4FE0-8E25-73F7B35F5D24}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -21,6 +23,10 @@ Global {9322A9CD-ADC3-4BF3-B3AA-063A66585113}.Debug|Any CPU.Build.0 = Debug|Any CPU {9322A9CD-ADC3-4BF3-B3AA-063A66585113}.Release|Any CPU.ActiveCfg = Release|Any CPU {9322A9CD-ADC3-4BF3-B3AA-063A66585113}.Release|Any CPU.Build.0 = Release|Any CPU + {3E40026E-2DE9-4FE0-8E25-73F7B35F5D24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3E40026E-2DE9-4FE0-8E25-73F7B35F5D24}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3E40026E-2DE9-4FE0-8E25-73F7B35F5D24}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3E40026E-2DE9-4FE0-8E25-73F7B35F5D24}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/sdk/eventgrid/Microsoft.Azure.WebJobs.Extensions.EventGrid/README.md b/sdk/eventgrid/Microsoft.Azure.WebJobs.Extensions.EventGrid/README.md index 2b68b087f360..7e1ee7d268d5 100644 --- a/sdk/eventgrid/Microsoft.Azure.WebJobs.Extensions.EventGrid/README.md +++ b/sdk/eventgrid/Microsoft.Azure.WebJobs.Extensions.EventGrid/README.md @@ -138,12 +138,12 @@ additional questions or comments. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fsearch%2FMicrosoft.Azure.WebJobs.Extensions.EventGrid%2FREADME.png) -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/search/Microsoft.Azure.WebJobs.Extensions.EventGrid/src +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/search/Microsoft.Azure.WebJobs.Extensions.EventGrid/src [package]: https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.EventGrid/ [docs]: https://docs.microsoft.com/dotnet/api/Microsoft.Azure.WebJobs.Extensions.EventGrid [nuget]: https://www.nuget.org/ -[contrib]: https://github.com/Azure/azure-sdk-for-net/tree/master/CONTRIBUTING.md +[contrib]: https://github.com/Azure/azure-sdk-for-net/tree/main/CONTRIBUTING.md [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/eventgrid/Microsoft.Azure.WebJobs.Extensions.EventGrid/src/Microsoft.Azure.WebJobs.Extensions.EventGrid.csproj b/sdk/eventgrid/Microsoft.Azure.WebJobs.Extensions.EventGrid/src/Microsoft.Azure.WebJobs.Extensions.EventGrid.csproj index 0623906be7d9..9aa40b3bebb6 100644 --- a/sdk/eventgrid/Microsoft.Azure.WebJobs.Extensions.EventGrid/src/Microsoft.Azure.WebJobs.Extensions.EventGrid.csproj +++ b/sdk/eventgrid/Microsoft.Azure.WebJobs.Extensions.EventGrid/src/Microsoft.Azure.WebJobs.Extensions.EventGrid.csproj @@ -9,7 +9,13 @@ - + + + + + + + diff --git a/sdk/eventgrid/Microsoft.Azure.WebJobs.Extensions.EventGrid/src/TriggerBinding/HttpRequestProcessor.cs b/sdk/eventgrid/Microsoft.Azure.WebJobs.Extensions.EventGrid/src/TriggerBinding/HttpRequestProcessor.cs index 9f6d1629aa2f..ee8d12413b53 100644 --- a/sdk/eventgrid/Microsoft.Azure.WebJobs.Extensions.EventGrid/src/TriggerBinding/HttpRequestProcessor.cs +++ b/sdk/eventgrid/Microsoft.Azure.WebJobs.Extensions.EventGrid/src/TriggerBinding/HttpRequestProcessor.cs @@ -8,9 +8,10 @@ using System.Net.Http; using System.Threading; using System.Threading.Tasks; +using Azure.Messaging.EventGrid.SystemEvents; using Microsoft.Extensions.Logging; -using Newtonsoft.Json; using Newtonsoft.Json.Linq; +using STJ = System.Text.Json; namespace Microsoft.Azure.WebJobs.Extensions.EventGrid { @@ -66,10 +67,11 @@ internal async Task ProcessAsync( $"The request content should be parseable into a JSON object or array, but was {events.Type}."); } - SubscriptionValidationResponse validationResponse = new(){ ValidationResponse = validationCode }; + SubscriptionValidationResponse validationResponse = new SubscriptionValidationResponse{ ValidationResponse = validationCode }; var returnMessage = new HttpResponseMessage(HttpStatusCode.OK) { - Content = new StringContent(JsonConvert.SerializeObject(validationResponse)) + // use System.Text.Json to leverage the custom converter so that the casing is correct. + Content = new StringContent(STJ.JsonSerializer.Serialize(validationResponse)) }; _logger.LogInformation($"perform handshake with eventGrid for function: {functionName}"); return returnMessage; diff --git a/sdk/eventgrid/Microsoft.Azure.WebJobs.Extensions.EventGrid/src/TriggerBinding/SubscriptionValidationResponse.cs b/sdk/eventgrid/Microsoft.Azure.WebJobs.Extensions.EventGrid/src/TriggerBinding/SubscriptionValidationResponse.cs deleted file mode 100644 index ec5cb4cba718..000000000000 --- a/sdk/eventgrid/Microsoft.Azure.WebJobs.Extensions.EventGrid/src/TriggerBinding/SubscriptionValidationResponse.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using Newtonsoft.Json; - -namespace Microsoft.Azure.WebJobs.Extensions.EventGrid -{ - internal class SubscriptionValidationResponse - { - [JsonProperty(PropertyName = "validationResponse")] - public string ValidationResponse { get; set; } - } -} diff --git a/sdk/eventgrid/README.md b/sdk/eventgrid/README.md index a06eedf164b2..340ddedab7dc 100644 --- a/sdk/eventgrid/README.md +++ b/sdk/eventgrid/README.md @@ -8,17 +8,17 @@ The current generation of the Azure Event Grid client library uses the package n ### `Azure.Messaging.EventGrid` -This package is the current generation client library and is of the Azure SDK for .NET. The source code is available on [GitHub](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventgrid/Azure.Messaging.EventGrid). +This package is the current generation client library and is of the Azure SDK for .NET. The source code is available on [GitHub](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventgrid/Azure.Messaging.EventGrid). Use the following packages to publish and consume events from Event Grid: | Nuget Package | Reference | Samples | |--------------------------------------|---------------------------------------------------------------|-------------------------------------------------------------------------------| -| [Azure.Messaging.EventGrid](https://www.nuget.org/packages/Azure.Messaging.EventGrid) | [API Reference for Azure.Messaging.EventGrid](https://docs.microsoft.com/dotnet/api/azure.messaging.eventgrid?view=azure-dotnet) | [Samples for Azure.Messaging.EventGrid](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventgrid/Azure.Messaging.EventGrid/samples) | +| [Azure.Messaging.EventGrid](https://www.nuget.org/packages/Azure.Messaging.EventGrid) | [API Reference for Azure.Messaging.EventGrid](https://docs.microsoft.com/dotnet/api/azure.messaging.eventgrid?view=azure-dotnet) | [Samples for Azure.Messaging.EventGrid](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventgrid/Azure.Messaging.EventGrid/samples) | ### `Microsoft.Azure.EventGrid` -The source code for the previous generation client library, `Microsoft.Azure.EventGrid` is available on [GitHub](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventgrid/Microsoft.Azure.EventGrid). +The source code for the previous generation client library, `Microsoft.Azure.EventGrid` is available on [GitHub](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventgrid/Microsoft.Azure.EventGrid). Use the following legacy packages to publish and consume events from Event Grid: diff --git a/sdk/eventgrid/ci.yml b/sdk/eventgrid/ci.yml index 1611927f76ed..418b51e9e39b 100644 --- a/sdk/eventgrid/ci.yml +++ b/sdk/eventgrid/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/eventhub/Azure.Messaging.EventHubs.Processor/README.md b/sdk/eventhub/Azure.Messaging.EventHubs.Processor/README.md index 2005317364cb..36e3dd7ba895 100755 --- a/sdk/eventhub/Azure.Messaging.EventHubs.Processor/README.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs.Processor/README.md @@ -10,7 +10,7 @@ The Event Processor client library is a companion to the Azure Event Hubs client - Managing checkpoints and state for processing in a durable manner using Azure Storage blobs as the underlying data store. -[Source code](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/src) | [Package (NuGet)](https://www.nuget.org/packages/Azure.Messaging.EventHubs.Processor/) | [API reference documentation](https://docs.microsoft.com/dotnet/api/azure.messaging.eventhubs) | [Product documentation](https://docs.microsoft.com/azure/event-hubs/) +[Source code](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/src) | [Package (NuGet)](https://www.nuget.org/packages/Azure.Messaging.EventHubs.Processor/) | [API reference documentation](https://docs.microsoft.com/dotnet/api/azure.messaging.eventhubs) | [Product documentation](https://docs.microsoft.com/azure/event-hubs/) ## Getting started @@ -77,8 +77,8 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample02_EventProcessorConfiguration.md#event-processor-configuration) | [Event handlers](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample03_EventProcessorHandlers.md) | [Handling failures](#exception-handling) | [Diagnostics](#logging-and-diagnostics) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample02_EventProcessorConfiguration.md#event-processor-configuration) | [Event handlers](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample03_EventProcessorHandlers.md) | [Handling failures](#exception-handling) | [Diagnostics](#logging-and-diagnostics) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) ## Examples @@ -204,7 +204,7 @@ finally ### Using an Active Directory principal with the Event Processor client -The [Azure Identity library](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md) provides Azure Active Directory authentication support which can be used for the Azure client libraries, including Event Hubs and Azure Storage. +The [Azure Identity library](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md) provides Azure Active Directory authentication support which can be used for the Azure client libraries, including Event Hubs and Azure Storage. To make use of an Active Directory principal, one of the available credentials from the `Azure.Identity` library is specified when creating the Event Hubs client. In addition, the fully qualified Event Hubs namespace and the name of desired Event Hub are supplied in lieu of the Event Hubs connection string. @@ -232,7 +232,7 @@ EventProcessorClient processor = new EventProcessorClient When using Azure Active Directory with Event Hubs, your principal must be assigned a role which allows reading from Event Hubs, such as the `Azure Event Hubs Data Receiver` role. For more information about using Azure Active Directory authorization with Event Hubs, please refer to [the associated documentation](https://docs.microsoft.com/azure/event-hubs/authorize-access-azure-active-directory). -When using Azure Active Directory with Azure Storage, your principal must be assigned a role which allows read, write, and delete access to blobs, such as the `Storage Blob Data Contributor` role. For more information about using Active Directory Authorization with Azure Storage, please refer to the [the associated documentation](https://docs.microsoft.com/azure/storage/common/storage-auth-aad) and the [Azure Storage authorization sample](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/samples/Sample02_Auth.cs). +When using Azure Active Directory with Azure Storage, your principal must be assigned a role which allows read, write, and delete access to blobs, such as the `Storage Blob Data Contributor` role. For more information about using Active Directory Authorization with Azure Storage, please refer to the [the associated documentation](https://docs.microsoft.com/azure/storage/common/storage-auth-aad) and the [Azure Storage authorization sample](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/samples/Sample02_Auth.cs). ## Troubleshooting @@ -244,7 +244,7 @@ The Event Processor client makes every attempt to be resilient in the face of ex In order to allow developers the opportunity to inspect and react to exceptions that occur within the Event Processor client operations, they are surfaced via the `ProcessError` event. The arguments for this event offer details about the exception and the context in which it was observed. Developers may perform normal operations on the Event Processor client from within this event handler, such as stopping and/or restarting it in response to errors, but may not otherwise influence the processor's exception behavior. -For a basic example of implementing the error handler, please see the sample: [Event Processor Handlers](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample03_EventProcessorHandlers.md#process-error). +For a basic example of implementing the error handler, please see the sample: [Event Processor Handlers](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample03_EventProcessorHandlers.md#process-error). #### Exceptions in event handlers @@ -254,19 +254,19 @@ The Event Processor client will not attempt to detect exceptions in developer co #### Exception details -For detailed information about exceptions that may occur, please refer to the Event Hubs client library [README]( https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/README.md#event-hubs-exception) and the service documentation for [Event Hubs messaging exceptions](https://docs.microsoft.com/azure/event-hubs/event-hubs-messaging-exceptions). +For detailed information about exceptions that may occur, please refer to the Event Hubs client library [README]( https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/README.md#event-hubs-exception) and the service documentation for [Event Hubs messaging exceptions](https://docs.microsoft.com/azure/event-hubs/event-hubs-messaging-exceptions). ### Logging and diagnostics The Event Processor client library is fully instrumented for logging information at various levels of detail using the .NET `EventSource` to emit information. Logging is performed for each operation and follows the pattern of marking the starting point of the operation, it's completion, and any exceptions encountered. Additional information that may offer insight is also logged in the context of the associated operation. -The Event Processor client logs are available to any `EventListener` by opting into the source named "Azure-Messaging-EventHubs-Processor-EventProcessorClient" or opting into all sources that have the trait "AzureEventSource". To make capturing logs from the Azure client libraries easier, the `Azure.Core` library used by Event Hubs offers an `AzureEventSourceListener`. More information can be found in the [Azure.Core Diagnostics sample](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md#logging). +The Event Processor client logs are available to any `EventListener` by opting into the source named "Azure-Messaging-EventHubs-Processor-EventProcessorClient" or opting into all sources that have the trait "AzureEventSource". To make capturing logs from the Azure client libraries easier, the `Azure.Core` library used by Event Hubs offers an `AzureEventSourceListener`. More information can be found in the [Azure.Core Diagnostics sample](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md#logging). -The Event Processor library is also instrumented for distributed tracing using Application Insights or OpenTelemetry. More information can be found in the [Azure.Core Diagnostics sample](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md#distributed-tracing). +The Event Processor library is also instrumented for distributed tracing using Application Insights or OpenTelemetry. More information can be found in the [Azure.Core Diagnostics sample](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md#distributed-tracing). ## Next steps -Beyond the scenarios discussed, the Azure Event Hubs Processor library offers support for additional scenarios to help take advantage of the full feature set of the `EventProcessorClient`. In order to help explore some of these scenarios, the Event Hubs Processor client library offers a project of samples to serve as an illustration for common scenarios. Please see the samples [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/README.md) for details. +Beyond the scenarios discussed, the Azure Event Hubs Processor library offers support for additional scenarios to help take advantage of the full feature set of the `EventProcessorClient`. In order to help explore some of these scenarios, the Event Hubs Processor client library offers a project of samples to serve as an illustration for common scenarios. Please see the samples [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/README.md) for details. ## Contributing @@ -276,6 +276,6 @@ When you submit a pull request, a CLA-bot will automatically determine whether y This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. -Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md) for more information. +Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md) for more information. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Feventhub%2FAzure.Messaging.EventHubs.Processor%2FREADME.png) diff --git a/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/README.md b/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/README.md index deb69793e60f..98068b74210d 100755 --- a/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/README.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/README.md @@ -55,22 +55,22 @@ For the event processor client to make use of Azure Storage blobs for checkpoint ## Common samples -- [Hello world](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample01_HelloWorld.md) +- [Hello world](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample01_HelloWorld.md) An introduction to the Event Processor client, illustrating how to create the client and perform basic operations. -- [Event Processor Configuration](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample02_EventProcessorConfiguration.md) +- [Event Processor Configuration](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample02_EventProcessorConfiguration.md) A demonstration of the options for customizing the Event Processor client configuration, such as specifying a proxy. -- [Event Processor Handlers](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample03_EventProcessorHandlers.md) +- [Event Processor Handlers](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample03_EventProcessorHandlers.md) A discussion of using event handlers for interacting with the Event Processor client as it is running, illustrating the available events and common usage scenarios like processing events, detecting errors, and specifying a position to begin reading events if a checkpoint does not exist. -- [Processing Events](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample04_ProcessingEvents.md) +- [Processing Events](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample04_ProcessingEvents.md) A deep dive into processing events, handling errors, and creating checkpoints using the Event Processor client. -- [Identity and Shared Access Credentials](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample05_IdentityAndSharedAccessCredentials.md) +- [Identity and Shared Access Credentials](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample05_IdentityAndSharedAccessCredentials.md) A discussion of the different types of authorization supported, focusing on identity-based credentials for Azure Active Directory and use the of shared access signatures and keys. -- [Requesting Azure Storage Service Versions](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample06_RequestingStorageServiceVersions.md) +- [Requesting Azure Storage Service Versions](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample06_RequestingStorageServiceVersions.md) An illustration of configuring the Blob Storage client to use a specific version of the service, rather than the default (latest). This is useful when the Azure host environment that you are targeting supports a different version of Blob Storage service than is available in the Azure public cloud, such as Azure Stack Hub 2002. ## Contributing @@ -81,6 +81,6 @@ When you submit a pull request, a CLA-bot will automatically determine whether y This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. -Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md) for more information. +Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md) for more information. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Feventhub%2FAzure.Messaging.EventHubs.Processor/samples/%2FREADME.png) diff --git a/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample01_HelloWorld.md b/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample01_HelloWorld.md index e407fcd0ff32..704533c82373 100644 --- a/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample01_HelloWorld.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample01_HelloWorld.md @@ -2,7 +2,7 @@ This sample demonstrates the basic flow of events through an Event Hub, with the goal of quickly allowing you to publish events and process events from the Event Hubs service. To accomplish this, the `EventHubProducerClient` and `EventProcessorClient` types will be introduced, along with some of the core concepts of Event Hubs. -To begin, please ensure that you're familiar with the items discussed in the [Getting started](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples#getting-started) section of the README and have the prerequisites, such as the connection string information, available. +To begin, please ensure that you're familiar with the items discussed in the [Getting started](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples#getting-started) section of the README and have the prerequisites, such as the connection string information, available. ## Client lifetime diff --git a/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample02_EventProcessorConfiguration.md b/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample02_EventProcessorConfiguration.md index 1a68825eee38..39039cb67506 100755 --- a/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample02_EventProcessorConfiguration.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample02_EventProcessorConfiguration.md @@ -2,7 +2,7 @@ The `EventProcessorClient` supports a set of options to configure many aspects of its core functionality including how it communicates with the Event Hubs service. This sample demonstrates some of these options. Configuration of processing-related configuration will be discussed in the samples dedicated to that feature. -To begin, please ensure that you're familiar with the items discussed in the [Getting started](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples#getting-started) section of the README, and have the prerequisites and connection string information available. +To begin, please ensure that you're familiar with the items discussed in the [Getting started](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples#getting-started) section of the README, and have the prerequisites and connection string information available. ## Influencing load balancing behavior diff --git a/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample03_EventProcessorHandlers.md b/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample03_EventProcessorHandlers.md index 461075c06362..daca477a772a 100644 --- a/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample03_EventProcessorHandlers.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample03_EventProcessorHandlers.md @@ -2,13 +2,13 @@ Once started, the majority of work performed by the `EventProcessorClient` takes place in the background. Interaction with the host application takes place using .NET [events](https://docs.microsoft.com/dotnet/standard/events/), allowing the processor to surface information and the application to influence processor behavior. Unlike most .NET events, those used by the processor are asynchronous and allow only a single handler to be subscribed. -This sample details the means to receive information and interact with the `EventProcessorClient` as it is running and demonstrates how to configure the event handlers for some common scenarios. To begin, please ensure that you're familiar with the items discussed in the [Getting started](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples#getting-started) section of the README, and have the prerequisites and connection string information available. +This sample details the means to receive information and interact with the `EventProcessorClient` as it is running and demonstrates how to configure the event handlers for some common scenarios. To begin, please ensure that you're familiar with the items discussed in the [Getting started](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples#getting-started) section of the README, and have the prerequisites and connection string information available. ## Process Event The processor will invoke the `ProcessEventAsync` handler when an event read from the Event Hubs service is available for processing or, if the [MaximumWaitTime](https://docs.microsoft.com/dotnet/api/azure.messaging.eventhubs.eventprocessorclientoptions.maximumwaittime?view=azure-dotnet#Azure_Messaging_EventHubs_EventProcessorClientOptions_MaximumWaitTime) was specified, when that duration has elapsed without an event being available. This handler will be invoked concurrently, limited to one active call per partition. While the handler may be processing events from different partitions concurrently, the processor will ensure that the events from the same partition are processed one-at-a-time in the order that they were read from the partition. -Processing events are covered in more depth for different scenarios in [Sample04_ProcessingEvents](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample04_ProcessingEvents.md). +Processing events are covered in more depth for different scenarios in [Sample04_ProcessingEvents](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample04_ProcessingEvents.md). ### Respecting cancellation diff --git a/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample04_ProcessingEvents.md b/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample04_ProcessingEvents.md index 2a0d5adf5e0e..8d9741284e42 100644 --- a/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample04_ProcessingEvents.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample04_ProcessingEvents.md @@ -1,6 +1,6 @@ # Processing Events -This sample demonstrates scenarios for processing events read from the Event Hubs service. To begin, please ensure that you're familiar with the items discussed in the [Event Processor Handlers](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample03_EventProcessorHandlers.md) sample. You'll also need to have the prerequisites and connection string information available, as discussed in the [Getting started](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples#getting-started) section of the README. +This sample demonstrates scenarios for processing events read from the Event Hubs service. To begin, please ensure that you're familiar with the items discussed in the [Event Processor Handlers](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample03_EventProcessorHandlers.md) sample. You'll also need to have the prerequisites and connection string information available, as discussed in the [Getting started](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples#getting-started) section of the README. ## Client types @@ -42,13 +42,13 @@ Once it has been configured, the `EventProcessorClient` must be explicitly start When stopping, the processor will relinquish ownership of partitions that it was responsible for processing and clean up network resources used for communication with the Event Hubs service. As a result, this method will perform network I/O and may need to wait for partition reads that were active to complete. Due to service calls and network latency, an invocation of this method may take slightly longer than the configured [MaximumWaitTime](https://docs.microsoft.com/dotnet/api/azure.messaging.eventhubs.eventprocessorclientoptions.maximumwaittime?view=azure-dotnet#Azure_Messaging_EventHubs_EventProcessorClientOptions_MaximumWaitTime). In the case where the wait time was not configured, stopping may take slightly longer than the [TryTimeout](https://docs.microsoft.com/dotnet/api/azure.messaging.eventhubs.eventhubsretryoptions.trytimeout?view=azure-dotnet#Azure_Messaging_EventHubs_EventHubsRetryOptions_TryTimeout) of the active retry policy. By default, this is 60 seconds. - For more information on configuring the `TryTimeout`, see: [Configuring the timeout used for Event Hubs service operations](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample02_EventProcessorConfiguration.md#configuring-the-timeout-used-for-event-hubs-service-operations). + For more information on configuring the `TryTimeout`, see: [Configuring the timeout used for Event Hubs service operations](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample02_EventProcessorConfiguration.md#configuring-the-timeout-used-for-event-hubs-service-operations). ## Interacting with the processor while running The act of processing events read from the partition and handling any errors that occur is delegated by the `EventProcessorClient` to code that you provide using the [.NET event pattern](https://docs.microsoft.com/dotnet/csharp/event-pattern). This allows your logic to concentrate on delivering business value while the processor handles the tasks associated with reading events, managing the partitions, and allowing state to be persisted in the form of checkpoints. -An in-depth discussion of the handlers used with the `EventProcessorClient` along with guidance for implementing them can be found in the sample: [Event Processor Handlers](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample03_EventProcessorHandlers.md). The following examples will assume familiarity with best practices for handler implementation and will often avoid going into detail in the interest of brevity. +An in-depth discussion of the handlers used with the `EventProcessorClient` along with guidance for implementing them can be found in the sample: [Event Processor Handlers](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample03_EventProcessorHandlers.md). The following examples will assume familiarity with best practices for handler implementation and will often avoid going into detail in the interest of brevity. ## Basic event processing @@ -386,7 +386,7 @@ In order to ensure efficient communication with the Event Hubs service and the b This approach is optimized for scenarios where the processing of events can be performed quickly and without heavy resource costs. For scenarios where that is not the case, it may be advantageous to collect the events into batches and send them to be processed outside of the context of the "ProcessEvent" handler. In this example, the `processEventHandler` will group events into batches of 50 by partition, sending them to the application to process when the batch size was reached. -One important thing to note is that batching with the `EventProcessorClient` may boost throughput, but more demanding applications may need more control and less ceremony to meet their higher throughput or specialized needs - that's where the [EventProcessor<TPartition>](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample02_EventHubsClients.md) from the [Azure.Messaging.EventHubs](https://www.nuget.org/packages/Azure.Messaging.EventHubs) package is intended to help. More on the design and philosophy behind the `EventProcessor` can be found in its [design document](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-event-processor%7BT%7D.md). +One important thing to note is that batching with the `EventProcessorClient` may boost throughput, but more demanding applications may need more control and less ceremony to meet their higher throughput or specialized needs - that's where the [EventProcessor<TPartition>](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample02_EventHubsClients.md) from the [Azure.Messaging.EventHubs](https://www.nuget.org/packages/Azure.Messaging.EventHubs) package is intended to help. More on the design and philosophy behind the `EventProcessor` can be found in its [design document](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-event-processor%7BT%7D.md). ```C# Snippet:EventHubs_Processor_Sample04_ProcessByBatch var storageConnectionString = "<< CONNECTION STRING FOR THE STORAGE ACCOUNT >>"; diff --git a/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample05_IdentityAndSharedAccessCredentials.md b/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample05_IdentityAndSharedAccessCredentials.md index 3da2f60fb85e..42ab41d3ef3a 100644 --- a/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample05_IdentityAndSharedAccessCredentials.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample05_IdentityAndSharedAccessCredentials.md @@ -4,7 +4,7 @@ This sample demonstrates using credentials to authorize clients with the Event H ## Prerequisites -To begin, please ensure that you're familiar with the items discussed in the [Getting started](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples#getting-started) section of the README. You will also need to the fully qualified namespace for the Event Hubs resource that you would like to use. This can be found in the Azure Portal view of the Event Hubs namespace in the "Overview" tab. In the center pane, the "essentials" area will list a "hostname." This is the fully qualified namespace and is likely be similar to: `{your-namespace}.servicebus.windows.net`. +To begin, please ensure that you're familiar with the items discussed in the [Getting started](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples#getting-started) section of the README. You will also need to the fully qualified namespace for the Event Hubs resource that you would like to use. This can be found in the Azure Portal view of the Event Hubs namespace in the "Overview" tab. In the center pane, the "essentials" area will list a "hostname." This is the fully qualified namespace and is likely be similar to: `{your-namespace}.servicebus.windows.net`. If you'd like to use an identity credential for accessing Azure Storage, you will need one of the Blob service endpoint URLs. These can be found in the Azure Portal view of the Azure Storage account in the "Properties" area under the "Settings" tab. Either the primary or secondary endpoint can be used, but you'll need to ensure that "Blob service" appears under the endpoint that you've selected for it to be valid. This endpoint is likely similar to: `{your-account-name}.blob.core.windows.net`. @@ -14,7 +14,7 @@ Depending on the type of authorization that you wish to use, additional setup ma **Azure.Identity** -The `Azure.Identity` library is recommended for identity-based authentication across the different sources supported by the Azure platform for [role-based access control (RBAC)](https://docs.microsoft.com/azure/role-based-access-control/overview). This includes Azure Active Directory principals and Managed Identities. To allow for the best developer experience, and one that supports promoting applications between environments without code changes, this sample will concentrate on the `DefaultAzureCredential`. Please see the [Azure.Identity README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md#defaultazurecredential) for details on configuring your environment for `DefaultAzureCredential` integration. +The `Azure.Identity` library is recommended for identity-based authentication across the different sources supported by the Azure platform for [role-based access control (RBAC)](https://docs.microsoft.com/azure/role-based-access-control/overview). This includes Azure Active Directory principals and Managed Identities. To allow for the best developer experience, and one that supports promoting applications between environments without code changes, this sample will concentrate on the `DefaultAzureCredential`. Please see the [Azure.Identity README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md#defaultazurecredential) for details on configuring your environment for `DefaultAzureCredential` integration. **Role Assignments** diff --git a/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample06_RequestingStorageServiceVersions.md b/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample06_RequestingStorageServiceVersions.md index 3a76c7bff747..d4d713fa83b3 100644 --- a/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample06_RequestingStorageServiceVersions.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample06_RequestingStorageServiceVersions.md @@ -2,7 +2,7 @@ This sample demonstrates configuring the Blob Storage client to use a specific version of the service, rather than the default. This is useful when the Azure environment that you are targeting supports a different version of Blob Storage service than is available in the Azure public cloud. For example, if you are running Event Hubs on an Azure Stack Hub version 2002, the highest available version for the Storage service is version 2017-11-09. In this case, you will need to use the following code to change the Blob Storage service API version to 2017-11-09. For more information on the Azure Storage service versions supported on Azure Stack Hub, please refer to the [Azure Stack documentation](https://docs.microsoft.com/azure-stack/user/azure-stack-acs-differences). -To begin, please ensure that you're familiar with the items discussed in the [Event Processor Handlers](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample03_EventProcessorHandlers.md) sample. You'll also need to have the prerequisites and connection string information available, as discussed in the [Getting started](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples#getting-started) section of the README. +To begin, please ensure that you're familiar with the items discussed in the [Event Processor Handlers](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples/Sample03_EventProcessorHandlers.md) sample. You'll also need to have the prerequisites and connection string information available, as discussed in the [Getting started](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples#getting-started) section of the README. ## Configuring the Blob Storage client diff --git a/sdk/eventhub/Azure.Messaging.EventHubs.Shared/README.md b/sdk/eventhub/Azure.Messaging.EventHubs.Shared/README.md index eb9205c25b92..f3c6a0aad88a 100755 --- a/sdk/eventhub/Azure.Messaging.EventHubs.Shared/README.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs.Shared/README.md @@ -1,6 +1,6 @@ # Azure Event Hubs code sharing library -This library is intended to serve as a common location for non-public code that is shared amongst the packages that comprise the [Azure Event Hubs client library for .NET](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs) development ecosystem. The artifacts in this library are intended to be small and cohesive units of work with minimal dependencies, which offer common building blocks for internal implementation. These artifacts should be accompanied by their suite of unit tests, allowing the `Shared` library to have sole responsibility for them. +This library is intended to serve as a common location for non-public code that is shared amongst the packages that comprise the [Azure Event Hubs client library for .NET](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs) development ecosystem. The artifacts in this library are intended to be small and cohesive units of work with minimal dependencies, which offer common building blocks for internal implementation. These artifacts should be accompanied by their suite of unit tests, allowing the `Shared` library to have sole responsibility for them. The other libraries within the Azure Event Hubs ecosystem are expected to include these artifacts by shared links to enable them to be loosely hosted within those projects rather than consumed by direct project or package reference. @@ -12,6 +12,6 @@ When you submit a pull request, a CLA-bot will automatically determine whether y This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. -Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md) for more information. +Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md) for more information. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Feventhub%2FAzure.Messaging.EventHubs.Shared%2FREADME.png) diff --git a/sdk/eventhub/Azure.Messaging.EventHubs/CHANGELOG.md b/sdk/eventhub/Azure.Messaging.EventHubs/CHANGELOG.md index 8ec9fef199cf..d79f55449bd7 100755 --- a/sdk/eventhub/Azure.Messaging.EventHubs/CHANGELOG.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs/CHANGELOG.md @@ -310,9 +310,9 @@ Thank you to our developer community members who helped to make the Event Hubs c #### Consuming events -- A new primitive, `EventProcessor`, has been implemented to serve as an extensibility point for creating a custom event processor instance. It offers built-in fault tolerance, load balancing, and structure while allowing tuning for low-level network configuration, processing of events in batches, and customization for the storage of checkpoints. More detail can be found in the [design proposal](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-event-processor%7BT%7D.md). +- A new primitive, `EventProcessor`, has been implemented to serve as an extensibility point for creating a custom event processor instance. It offers built-in fault tolerance, load balancing, and structure while allowing tuning for low-level network configuration, processing of events in batches, and customization for the storage of checkpoints. More detail can be found in the [design proposal](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-event-processor%7BT%7D.md). -- A new primitive, `PartitionProcessor`, has been implemented to serve as a low-level means of reading batches of events from a single partition with greater control over network configuration. More detail can be found in the [design proposal](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-partition-receiver.md). +- A new primitive, `PartitionProcessor`, has been implemented to serve as a low-level means of reading batches of events from a single partition with greater control over network configuration. More detail can be found in the [design proposal](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-partition-receiver.md). #### Publishing events @@ -405,9 +405,9 @@ _(A community contribution, courtesy of [albertodenatale](https://github.com/alb - A large portion of the public API surface, including members and parameters, have had adjustments to their naming in order to improve discoverability, provide better context to developers, and better conform to the [Azure SDK Design Guidelines for .NET](https://azure.github.io/azure-sdk/dotnet_introduction.html). -- The `EventProcessorClient` has been moved into its own [package](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor) and evolved into an opinionated implementation on top of Azure Storage Blobs. This is intended to offer a more streamlined developer experience for the majority of scenarios and allow developers to more easily take advantage of the processor. +- The `EventProcessorClient` has been moved into its own [package](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor) and evolved into an opinionated implementation on top of Azure Storage Blobs. This is intended to offer a more streamlined developer experience for the majority of scenarios and allow developers to more easily take advantage of the processor. -- A collection of internal supporting types were moved into a new [shared library](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs.Shared) to allow them to be shared as source between the Event Hubs client libraries. The tests assoociated with these types were also moved to the shared library for locality with the source being tested. +- A collection of internal supporting types were moved into a new [shared library](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs.Shared) to allow them to be shared as source between the Event Hubs client libraries. The tests assoociated with these types were also moved to the shared library for locality with the source being tested. ## 5.0.0-preview.5 diff --git a/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md b/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md index 68284ce2bdf2..6edb39c1368b 100755 --- a/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md @@ -13,7 +13,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope Before working on a contribution, it would be beneficial to familiarize yourself with the process and guidelines used for the Azure SDKs so that your submission is consistent with the project standards and is ready to be accepted with fewer changes requested. In particular, it is recommended to review: - [Azure SDK README](https://github.com/Azure/azure-sdk), to learn more about the overall project and processes used. - - [Azure SDK Contributing Guide](https://github.com/Azure/azure-sdk-for-net/blob/master/CONTRIBUTING.md), for information about how to onboard and contribute to the overall Azure SDK ecosystem. + - [Azure SDK Contributing Guide](https://github.com/Azure/azure-sdk-for-net/blob/main/CONTRIBUTING.md), for information about how to onboard and contribute to the overall Azure SDK ecosystem. - [Azure SDK Design Guidelines](https://azure.github.io/azure-sdk/general_introduction.html), to understand the general guidelines for the Azure SDK across all languages and platforms. - [Azure SDK Design Guidelines for .NET](https://azure.github.io/azure-sdk/dotnet_introduction.html), to understand the guidelines specific to the Azure SDK for .NET. @@ -64,7 +64,7 @@ The maximum duration, in minutes, that a single test is permitted to run before - `RESOURCE_MANAGER_URL` _**(optional)**_ The URL of the endpoint responsible for resource management operations in Azure. The default for this is appropriate for use with the Azure public cloud; when testing in other cloud instances, this may be needed. -To make setting up your environment easier, a [PowerShell script](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/assets/live-tests-azure-setup.ps1) is included in the repository and will create and/or configure the needed Azure resources. To use this script, open a PowerShell instance and login to your Azure account using `Login-AzAccount`, then execute the script. You will need to provide some information, after which the script will configure the Azure resources and then output the set of environment variables with the correct values for running tests. +To make setting up your environment easier, a [PowerShell script](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/assets/live-tests-azure-setup.ps1) is included in the repository and will create and/or configure the needed Azure resources. To use this script, open a PowerShell instance and login to your Azure account using `Login-AzAccount`, then execute the script. You will need to provide some information, after which the script will configure the Azure resources and then output the set of environment variables with the correct values for running tests. The simplest way to get started is to execute the script with your subscription name and then follow the prompts: diff --git a/sdk/eventhub/Azure.Messaging.EventHubs/MigrationGuide.md b/sdk/eventhub/Azure.Messaging.EventHubs/MigrationGuide.md index 2ea27fde60a7..a1d069e18d5f 100755 --- a/sdk/eventhub/Azure.Messaging.EventHubs/MigrationGuide.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs/MigrationGuide.md @@ -2,7 +2,7 @@ This guide is intended to assist in the migration to the `Azure.Messaging.EventHubs` family of packages from the legacy `Microsoft.Azure.EventHubs` family of packages. It will focus on side-by-side comparisons for similar operations between the to versions, covering the [`Azure.Messaging.EventHubs`](https://www.nuget.org/packages/Azure.Messaging.EventHubs/) and [`Azure.Messaging.EventHubs.Processor`](https://www.nuget.org/packages/Azure.Messaging.EventHubs.Processor/) packages and their legacy equivalents, [`Microsoft.Azure.EventHubs`](https://www.nuget.org/packages/Microsoft.Azure.EventHubs/) and [`Microsoft.Azure.EventHubs.Processor`](https://www.nuget.org/packages/Microsoft.Azure.EventHubs.Processor/). -Familiarity with the `Microsoft.Azure.EventHubs` family of packages is assumed. For those new to the Event Hubs client library for .NET, please refer to the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/README.md), [Event Hubs samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/samples), and the [Event Processor samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples) rather than this guide. +Familiarity with the `Microsoft.Azure.EventHubs` family of packages is assumed. For those new to the Event Hubs client library for .NET, please refer to the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/README.md), [Event Hubs samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/samples), and the [Event Processor samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples) rather than this guide. ## Table of contents @@ -70,11 +70,11 @@ In order to allow for a single focus and clear responsibility, the core function #### Specialized -- The [PartitionReceiver](https://docs.microsoft.com/dotnet/api/azure.messaging.eventhubs.primitives.partitionreceiver?view=azure-dotnet) is responsible for reading events from a specific partition of an Event Hub, with a greater level of control over communication with the Event Hubs service than is offered by other event consumers. More detail on the design and philosophy for the `PartitionReceiver` can be found in its [design document](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-partition-receiver.md). +- The [PartitionReceiver](https://docs.microsoft.com/dotnet/api/azure.messaging.eventhubs.primitives.partitionreceiver?view=azure-dotnet) is responsible for reading events from a specific partition of an Event Hub, with a greater level of control over communication with the Event Hubs service than is offered by other event consumers. More detail on the design and philosophy for the `PartitionReceiver` can be found in its [design document](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-partition-receiver.md). - The [EventProcessor<TPartition>](https://docs.microsoft.com/dotnet/api/azure.messaging.eventhubs.primitives.eventprocessor-1?view=azure-dotnet) provides a base for creating a custom processor for reading and processing events for all partitions of an Event Hub. The `EventProcessor` fills a similar role as the EventProcessorClient, with cooperative load balancing and resiliency as its core features. However, it also offers native batch processing, the ability to customize checkpoint storage, a greater level of control over communication with the Event Hubs service, and a less opinionated API. The caveat is that this comes with additional complexity and exists as of an abstract base, which needs to be extended and the core "handler" activities implemented via override. - Generally speaking, the `EventProcessorClient` was designed to provide a familiar API to that of the `EventHubConsumerClient` and offer an intuitive "step-up" experience for developers exploring Event Hubs as they advance to production scenarios. For a large portion of our library users, that covers their needs well. There's definitely a point, however, where an application requires more control to handle higher throughput or unique needs - that's where the `EventProcessor` is intended to help. More on the design and philosophy behind this type can be found in its [design document](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-event-processor%7BT%7D.md). + Generally speaking, the `EventProcessorClient` was designed to provide a familiar API to that of the `EventHubConsumerClient` and offer an intuitive "step-up" experience for developers exploring Event Hubs as they advance to production scenarios. For a large portion of our library users, that covers their needs well. There's definitely a point, however, where an application requires more control to handle higher throughput or unique needs - that's where the `EventProcessor` is intended to help. More on the design and philosophy behind this type can be found in its [design document](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-event-processor%7BT%7D.md). ### Client constructors @@ -132,7 +132,7 @@ EventHubClient client = EventHubClient.CreateWithManagedIdentity( In the `Azure.Messaging.EventHubs` library, there is no longer a higher-level client that serves as a factory. Instead, the producers and consumers are created directly using the `EventHubProducerClient` or `EventHubConsumerClient` for standard cases. A full description of the client types available can be found above in the [Client hierarchy](#client-hierarchy) section. -Each of the client types supports connection strings as well as Azure Active Directory and other forms of identity. One key change in `Azure.Messaging.EventHubs` is that when using identity credentials, the [`Azure.Identity`](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md) library is used to offer a consistent and uniform approach to authentication across the client libraries for different Azure services. For more information on using identity credentials with Event Hubs, please see the [Identity and Shared Access Credentials](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample06_IdentityAndSharedAccessCredentials.md) sample. +Each of the client types supports connection strings as well as Azure Active Directory and other forms of identity. One key change in `Azure.Messaging.EventHubs` is that when using identity credentials, the [`Azure.Identity`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md) library is used to offer a consistent and uniform approach to authentication across the client libraries for different Azure services. For more information on using identity credentials with Event Hubs, please see the [Identity and Shared Access Credentials](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample06_IdentityAndSharedAccessCredentials.md) sample. Using a connection string: @@ -162,7 +162,7 @@ var consumer = new EventHubConsumerClient(consumerGroup, fullyQualifiedNamespace In the `Microsoft.Azure.EventHubs` library, publishing events can be performed by several types, each targeted at a different set of scenarios but with some overlap between them. Generally, the `EventHubClient` is used when publishing events that are not intended for a specific partition and the `PartitionSender` is used for publishing events to a single partition. -In the `Azure.Messaging.EventHubs` library, the `EventHubProducerClient` is used for all event publishing scenarios. It's goal is to provide a consistent experience for publishing with a set of options used to control behavior. For a detailed discussion of common scenarios and options, please see the [Publishing Events](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample04_PublishingEvents.md) sample. +In the `Azure.Messaging.EventHubs` library, the `EventHubProducerClient` is used for all event publishing scenarios. It's goal is to provide a consistent experience for publishing with a set of options used to control behavior. For a detailed discussion of common scenarios and options, please see the [Publishing Events](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample04_PublishingEvents.md) sample. This section will provide a high-level comparison of the most common publishing scenarios. @@ -390,7 +390,7 @@ finally In the `Microsoft.Azure.EventHubs` library, reading events can be performed by either the `EventProcessorHost` or the `PartitionReceiver`, depending on whether you would like to read from all partitions of an Event Hub or a single partition. Generally, using the `EventProcessorHost` is the preferred approach for most production scenarios. -The `Azure.Messaging.EventHubs` library also provides multiple types for reading events, with the `EventProcessorClient` focused on reading from all partitions, and the `EventHubConsumerClient` and `PartitionReceiver` focused on reading from a single partition. The `EventProcessorClient` is the preferred approach for most production scenarios. For a detailed discussion of common scenarios and options, please see the [Event Processor Client](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples) and [Reading Events](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample05_ReadingEvents.md) samples. +The `Azure.Messaging.EventHubs` library also provides multiple types for reading events, with the `EventProcessorClient` focused on reading from all partitions, and the `EventHubConsumerClient` and `PartitionReceiver` focused on reading from a single partition. The `EventProcessorClient` is the preferred approach for most production scenarios. For a detailed discussion of common scenarios and options, please see the [Event Processor Client](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples) and [Reading Events](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample05_ReadingEvents.md) samples. #### Reading events from all partitions @@ -871,6 +871,6 @@ private async Task> ReadLegacyCheckpoints( ## Additional samples More examples can be found at: -- [Event Hubs samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/samples) -- [Event Hubs Processor samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples) +- [Event Hubs samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/samples) +- [Event Hubs Processor samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples) - [Building a custom Event Hubs Event Processor with .NET](https://devblogs.microsoft.com/azure-sdk/custom-event-processor/) _(blog article)_ diff --git a/sdk/eventhub/Azure.Messaging.EventHubs/README.md b/sdk/eventhub/Azure.Messaging.EventHubs/README.md index f7cf2b1352af..0f5d6a5b05a3 100755 --- a/sdk/eventhub/Azure.Messaging.EventHubs/README.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs/README.md @@ -12,7 +12,7 @@ The Azure Event Hubs client library allows for publishing and consuming of Azure - Receive events from one or more publishers, transform them to better meet the needs of your ecosystem, then publish the transformed events to a new stream for consumers to observe. -[Source code](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/src) | [Package (NuGet)](https://www.nuget.org/packages/Azure.Messaging.EventHubs/) | [API reference documentation](https://docs.microsoft.com/dotnet/api/azure.messaging.eventhubs)) | [Product documentation](https://docs.microsoft.com/azure/event-hubs/) | [Migration guide](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/MigrationGuide.md) +[Source code](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/src) | [Package (NuGet)](https://www.nuget.org/packages/Azure.Messaging.EventHubs/) | [API reference documentation](https://docs.microsoft.com/dotnet/api/azure.messaging.eventhubs)) | [Product documentation](https://docs.microsoft.com/azure/event-hubs/) | [Migration guide](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/MigrationGuide.md) ## Getting started @@ -28,7 +28,7 @@ The Azure Event Hubs client library allows for publishing and consuming of Azure You can still use the library with previous C# language versions, but will need to manage asynchronous enumerable and asynchronous disposable members manually rather than benefiting from the new syntax. You may still target any framework version supported by your .NET Core SDK, including earlier versions of .NET Core or the .NET framework. For more information, see: [how to specify target frameworks](https://docs.microsoft.com/dotnet/standard/frameworks#how-to-specify-target-frameworks). - **Important Note:** In order to build or run the [examples](#examples) and the [samples](#next-steps) without modification, use of C# 8.0 is mandatory. You can still run the samples if you decide to tweak them for other language versions. An example of doing so is available in the sample: [Earlier Language Versions](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample07_EarlierLanguageVersions.md). + **Important Note:** In order to build or run the [examples](#examples) and the [samples](#next-steps) without modification, use of C# 8.0 is mandatory. You can still run the samples if you decide to tweak them for other language versions. An example of doing so is available in the sample: [Earlier Language Versions](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample07_EarlierLanguageVersions.md). To quickly create a basic set of Event Hubs resources in Azure and to receive a connection string for them, you can deploy our sample template by clicking: @@ -70,8 +70,8 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample02_EventHubsClients.md#configuration) | [Handling failures](#exception-handling) | [Diagnostics](#logging-and-diagnostics) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample02_EventHubsClients.md#configuration) | [Handling failures](#exception-handling) | [Diagnostics](#logging-and-diagnostics) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) ## Examples @@ -112,7 +112,7 @@ await using (var producer = new EventHubProducerClient(connectionString, eventHu In order to read events from an Event Hub, you'll need to create an `EventHubConsumerClient` for a given consumer group. When an Event Hub is created, it provides a default consumer group that can be used to get started with exploring Event Hubs. In our example, we will focus on reading all events that have been published to the Event Hub using an iterator. -**Note:** It is important to note that this approach to consuming is intended to improve the experience of exploring the Event Hubs client library and prototyping. It is recommended that it not be used in production scenarios. For production use, we recommend using the [Event Processor Client](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor), as it provides a more robust and performant experience. +**Note:** It is important to note that this approach to consuming is intended to improve the experience of exploring the Event Hubs client library and prototyping. It is recommended that it not be used in production scenarios. For production use, we recommend using the [Event Processor Client](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor), as it provides a more robust and performant experience. ```C# Snippet:EventHubs_ReadMe_Read var connectionString = "<< CONNECTION STRING FOR THE EVENT HUBS NAMESPACE >>"; @@ -162,7 +162,7 @@ await using (var consumer = new EventHubConsumerClient(consumerGroup, connection ### Process events using an Event Processor client -For the majority of production scenarios, it is recommended that the [Event Processor Client](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor) be used for reading and processing events. The processor is intended to provide a robust experience for processing events across all partitions of an Event Hub in a performant and fault tolerant manner while providing a means to persist its state. Event Processor clients are also capable of working cooperatively within the context of a consumer group for a given Event Hub, where they will automatically manage distribution and balancing of work as instances become available or unavailable for the group. +For the majority of production scenarios, it is recommended that the [Event Processor Client](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor) be used for reading and processing events. The processor is intended to provide a robust experience for processing events across all partitions of an Event Hub in a performant and fault tolerant manner while providing a means to persist its state. Event Processor clients are also capable of working cooperatively within the context of a consumer group for a given Event Hub, where they will automatically manage distribution and balancing of work as instances become available or unavailable for the group. Since the `EventProcessorClient` has a dependency on Azure Storage blobs for persistence of its state, you'll need to provide a `BlobContainerClient` for the processor, which has been configured for the storage account and container that should be used. @@ -211,11 +211,11 @@ finally } ``` -More details can be found in the Event Processor Client [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/README.md) and the accompanying [samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples). +More details can be found in the Event Processor Client [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/README.md) and the accompanying [samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples). ### Using an Active Directory principal with the Event Hub clients -The [Azure Identity library](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md) provides Azure Active Directory authentication support which can be used for the Azure client libraries, including Event Hubs. +The [Azure Identity library](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md) provides Azure Active Directory authentication support which can be used for the Azure client libraries, including Event Hubs. To make use of an Active Directory principal, one of the available credentials from the `Azure.Identity` library is specified when creating the Event Hubs client. In addition, the fully qualified Event Hubs namespace and the name of desired Event Hub are supplied in lieu of the Event Hubs connection string. For illustration, the `EventHubProducerClient` is demonstrated in these examples, but the concept and form are common across clients. @@ -283,13 +283,13 @@ For detailed information about the failures represented by the `EventHubsExcepti The Event Hubs client library is fully instrumented for logging information at various levels of detail using the .NET `EventSource` to emit information. Logging is performed for each operation and follows the pattern of marking the starting point of the operation, it's completion, and any exceptions encountered. Additional information that may offer insight is also logged in the context of the associated operation. -The Event Hubs client logs are available to any `EventListener` by opting into the source named "Azure-Messaging-EventHubs" or opting into all sources that have the trait "AzureEventSource". To make capturing logs from the Azure client libraries easier, the `Azure.Core` library used by Event Hubs offers an `AzureEventSourceListener`. More information can be found in the [Azure.Core Diagnostics sample](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md#logging). +The Event Hubs client logs are available to any `EventListener` by opting into the source named "Azure-Messaging-EventHubs" or opting into all sources that have the trait "AzureEventSource". To make capturing logs from the Azure client libraries easier, the `Azure.Core` library used by Event Hubs offers an `AzureEventSourceListener`. More information can be found in the [Azure.Core Diagnostics sample](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md#logging). -The Event Hubs client library is also instrumented for distributed tracing using Application Insights or OpenTelemetry. More information can be found in the [Azure.Core Diagnostics sample](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md#distributed-tracing). +The Event Hubs client library is also instrumented for distributed tracing using Application Insights or OpenTelemetry. More information can be found in the [Azure.Core Diagnostics sample](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md#distributed-tracing). ## Next steps -Beyond the introductory scenarios discussed, the Azure Event Hubs client library offers support for additional scenarios to help take advantage of the full feature set of the Azure Event Hubs service. In order to help explore some of these scenarios, the Event Hubs client library offers a project of samples to serve as an illustration for common scenarios. Please see the samples [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/samples/README.md) for details. +Beyond the introductory scenarios discussed, the Azure Event Hubs client library offers support for additional scenarios to help take advantage of the full feature set of the Azure Event Hubs service. In order to help explore some of these scenarios, the Event Hubs client library offers a project of samples to serve as an illustration for common scenarios. Please see the samples [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/samples/README.md) for details. ## Contributing @@ -299,6 +299,6 @@ When you submit a pull request, a CLA-bot will automatically determine whether y This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. -Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md) for more information. +Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md) for more information. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Feventhub%2FAzure.Messaging.EventHubs%2FREADME.png) diff --git a/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-event-hubs-second-preview.md b/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-event-hubs-second-preview.md index ea06b9a1b171..d63c26c169c7 100755 --- a/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-event-hubs-second-preview.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-event-hubs-second-preview.md @@ -4,11 +4,11 @@ Azure Event Hubs is a highly scalable publish-subscribe service that can ingest ## Design Overview -This design is focused on the second preview of the track two Event Hubs client library, and limits the scope of discussion to those areas with active development for the second preview. For wider context and more general discussion of the design goals for the track two Event Hubs client, please see the [.NET Event Hubs Client: Track Two Proposal (First Preview)](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-event-hubs-first-preview.md). +This design is focused on the second preview of the track two Event Hubs client library, and limits the scope of discussion to those areas with active development for the second preview. For wider context and more general discussion of the design goals for the track two Event Hubs client, please see the [.NET Event Hubs Client: Track Two Proposal (First Preview)](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-event-hubs-first-preview.md). ## Goals for the Second Preview -- Adhere to, and advance, the goals outline in the the [.NET Event Hubs Client: Track Two Proposal (First Preview)](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-event-hubs-first-preview.md). +- Adhere to, and advance, the goals outline in the the [.NET Event Hubs Client: Track Two Proposal (First Preview)](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-event-hubs-first-preview.md). - Continue to align the public API surface area to the guidance outlined in the [Azure SDK Design Guidelines for .NET](https://azuresdkspecs.z5.web.core.windows.net/DotNetSpec.html). diff --git a/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-strawman-october-2019.md b/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-strawman-october-2019.md index c19bf396760b..f675d10f3d92 100755 --- a/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-strawman-october-2019.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-strawman-october-2019.md @@ -1,4 +1,4 @@ -# Event Hubs Client: October Strawman (Preview 5) +# Event Hubs Client: October Strawman (Preview 5) This design is focused on the fifth preview of the track two Event Hubs client library, and limits the scope of discussion to those areas with active development for that preview. For wider context and more general discussion of the design goals for the track two Event Hubs client, please see: diff --git a/sdk/eventhub/Azure.Messaging.EventHubs/perf/README.md b/sdk/eventhub/Azure.Messaging.EventHubs/perf/README.md index 355b526c5ffc..ee0769afa1ef 100644 --- a/sdk/eventhub/Azure.Messaging.EventHubs/perf/README.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs/perf/README.md @@ -1,10 +1,10 @@ # Azure Event Hubs performance tests -The assets in this area comprise a set of performance tests for the [Azure Event Hubs client library for .NET](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs) and its associated ecosystem. The artifacts in this library are intended to be used primarily with the Azure SDK engineering system's testing infrastructure, but may also be run as stand-alone applications from the command line. +The assets in this area comprise a set of performance tests for the [Azure Event Hubs client library for .NET](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs) and its associated ecosystem. The artifacts in this library are intended to be used primarily with the Azure SDK engineering system's testing infrastructure, but may also be run as stand-alone applications from the command line. ## Running performance tests -The Event Hubs client library performance tests by executing the command-line application using the `dotnet run` command or, in some environments, your operating system's executable support. The performance tests rely on the same set of environment variables used by the Event Hubs client library's test suite. Full details can be found in the [Running tests](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md#running-tests) section of the contributing guide. +The Event Hubs client library performance tests by executing the command-line application using the `dotnet run` command or, in some environments, your operating system's executable support. The performance tests rely on the same set of environment variables used by the Event Hubs client library's test suite. Full details can be found in the [Running tests](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md#running-tests) section of the contributing guide. ## Contributing @@ -14,6 +14,6 @@ When you submit a pull request, a CLA-bot will automatically determine whether y This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. -Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md) for more information. +Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md) for more information. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Feventhub%2FAzure.Messaging.EventHubs.Perf%2FREADME.png) diff --git a/sdk/eventhub/Azure.Messaging.EventHubs/samples/README.md b/sdk/eventhub/Azure.Messaging.EventHubs/samples/README.md index a576eed65032..edb66cb9604a 100644 --- a/sdk/eventhub/Azure.Messaging.EventHubs/samples/README.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs/samples/README.md @@ -49,28 +49,28 @@ For the Event Hubs client library to interact with an Event Hub, it will need to ## Common samples -- [Hello world](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample01_HelloWorld.md) +- [Hello world](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample01_HelloWorld.md) An introduction to Event Hubs, illustrating the basic flow of events through an Event Hub, with the goal of quickly allowing you to view events being published and read from the Event Hubs service. -- [Event Hubs Clients](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample02_EventHubsClients.md) +- [Event Hubs Clients](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample02_EventHubsClients.md) An overview of the Event Hubs clients, detailing the available client types, the scenarios they serve, and demonstrating options for customizing their configuration, such as specifying a proxy. -- [Event Hubs Metadata](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample03_EventHubMetadata.md) +- [Event Hubs Metadata](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample03_EventHubMetadata.md) A discussion of the metadata available for an Event Hub instance and demonstration of how to query and inspect the information. -- [Publishing Events](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample04_PublishingEvents.md) +- [Publishing Events](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample04_PublishingEvents.md) A deep dive into publishing events using the Event Hubs client library, detailing the different options available and illustrating common scenarios. -- [Reading Events](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample05_ReadingEvents.md) +- [Reading Events](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample05_ReadingEvents.md) A deep dive into reading events using the Event Hubs client library, detailing the different options available and illustrating common scenarios. -- [Identity and Shared Access Credentials](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample06_IdentityAndSharedAccessCredentials.md) +- [Identity and Shared Access Credentials](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample06_IdentityAndSharedAccessCredentials.md) A discussion of the different types of authorization supported, focusing on identity-based credentials for Azure Active Directory and use the of shared access signatures and keys. -- [Earlier Language Versions](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample07_EarlierLanguageVersions.md) +- [Earlier Language Versions](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample07_EarlierLanguageVersions.md) A demonstration of how to interact with the client library using earlier versions of C#, where newer syntax for asynchronous enumeration and disposal are not available. -- [Building a Custom Event Processor using EventProcessor<TPartition>](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample08_CustomEventProcessor.md) +- [Building a Custom Event Processor using EventProcessor<TPartition>](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample08_CustomEventProcessor.md) An introduction to the `EventProcessor` base class which is used when building advanced processors which need full control over state management. ## Contributing @@ -81,6 +81,6 @@ When you submit a pull request, a CLA-bot will automatically determine whether y This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. -Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md) for more information. +Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md) for more information. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Feventhub%2FAzure.Messaging.EventHubs/samples/%2FREADME.png) diff --git a/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample01_HelloWorld.md b/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample01_HelloWorld.md index 314e627f84f1..8c91f3bc5488 100644 --- a/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample01_HelloWorld.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample01_HelloWorld.md @@ -2,7 +2,7 @@ This sample demonstrates the basic flow of events through an Event Hub, with the goal of quickly allowing you to publish events and read from the Event Hubs service. To accomplish this, the `EventHubProducerClient` and `EventHubConsumerClient` types will be introduced, along with some of the core concepts of Event Hubs. -To begin, please ensure that you're familiar with the items discussed in the [Getting started](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/samples#getting-started) section of the README, and have the prerequisites and connection string information available. +To begin, please ensure that you're familiar with the items discussed in the [Getting started](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs/samples#getting-started) section of the README, and have the prerequisites and connection string information available. ## Create the clients @@ -121,4 +121,4 @@ finally This example makes use of the `ReadEvents` method of the `EventHubConsumerClient`, which allows it to see events from all [partitions](https://docs.microsoft.com/azure/event-hubs/event-hubs-features#partitions) of an Event Hub. While this is convenient to use for exploration, we strongly recommend not using it for production scenarios. `ReadEvents` does not guarantee fairness amongst the partitions during iteration; each of the partitions compete to publish events to be read. Depending on how service communication takes place, there may be a clustering of events per partition and a noticeable bias for a given partition or subset of partitions. -To read from all partitions in a production application, we recommend preferring the [EventProcessorClient](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples) or a custom [EventProcessor](https://docs.microsoft.com/dotnet/api/azure.messaging.eventhubs.primitives.eventprocessor-1?view=azure-dotnet) implementation. \ No newline at end of file +To read from all partitions in a production application, we recommend preferring the [EventProcessorClient](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples) or a custom [EventProcessor](https://docs.microsoft.com/dotnet/api/azure.messaging.eventhubs.primitives.eventprocessor-1?view=azure-dotnet) implementation. \ No newline at end of file diff --git a/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample02_EventHubsClients.md b/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample02_EventHubsClients.md index ea87f73b2cc8..e55d119aa0c4 100644 --- a/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample02_EventHubsClients.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample02_EventHubsClients.md @@ -2,7 +2,7 @@ The Event Hubs client library has the goal of providing an approachable onboarding experience for developers new to messaging and/or the Event Hubs service with a focus on enabling a quick initial feedback loop for publishing and consuming events. As developers shift from exploration to tackling real-world production scenarios, we want to provide a gradual step-up path, building on the onboarding experience with additional robustness and a familiar API surface. For application scenarios with high-throughput or special needs, we want to be sure that developers are able to work at a low-level and assert more control. -This sample details the client types available for the Event Hubs client library and demonstrates some of the options for customizing their configuration. To begin, please ensure that you're familiar with the items discussed in the [Getting started](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/samples#getting-started) section of the README, and have the prerequisites and connection string information available. +This sample details the client types available for the Event Hubs client library and demonstrates some of the options for customizing their configuration. To begin, please ensure that you're familiar with the items discussed in the [Getting started](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs/samples#getting-started) section of the README, and have the prerequisites and connection string information available. ## Hierarchy @@ -14,13 +14,13 @@ The mainstream set of clients provides an approachable onboarding experience for - The [EventHubProducerClient](https://docs.microsoft.com/dotnet/api/azure.messaging.eventhubs.producer?view=azure-dotnet) is responsible for publishing events and supports multiple approaches for selecting the partition to which the event is associated, including automatic routing by the Event Hubs service and specifying an explicit partition. -- The [EventHubConsumerClient](https://docs.microsoft.com/dotnet/api/azure.messaging.eventhubs.consumer.eventhubconsumerclient?view=azure-dotnet) supports reading events from a single partition and also offers an easy way to familiarize yourself with Event Hubs by reading from all partitions without the rigor and complexity that you would need in a production application. For reading events from all partitions in a production scenario, we strongly recommend using the [EventProcessorClient](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples) from the [Azure.Messaging.EventHubs.Processor](https://www.nuget.org/packages/Azure.Messaging.EventHubs.Processor) package over the `EventHubConsumerClient`. +- The [EventHubConsumerClient](https://docs.microsoft.com/dotnet/api/azure.messaging.eventhubs.consumer.eventhubconsumerclient?view=azure-dotnet) supports reading events from a single partition and also offers an easy way to familiarize yourself with Event Hubs by reading from all partitions without the rigor and complexity that you would need in a production application. For reading events from all partitions in a production scenario, we strongly recommend using the [EventProcessorClient](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples) from the [Azure.Messaging.EventHubs.Processor](https://www.nuget.org/packages/Azure.Messaging.EventHubs.Processor) package over the `EventHubConsumerClient`. **Specialized** -- The [PartitionReceiver](https://docs.microsoft.com/dotnet/api/azure.messaging.eventhubs.primitives.partitionreceiver?view=azure-dotnet) is responsible for reading events from a specific partition of an Event Hub, with a greater level of control over communication with the Event Hubs service than is offered by other event consumers. More detail on the design and philosophy for the `PartitionReceiver` can be found in its [design document](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-partition-receiver.md). +- The [PartitionReceiver](https://docs.microsoft.com/dotnet/api/azure.messaging.eventhubs.primitives.partitionreceiver?view=azure-dotnet) is responsible for reading events from a specific partition of an Event Hub, with a greater level of control over communication with the Event Hubs service than is offered by other event consumers. More detail on the design and philosophy for the `PartitionReceiver` can be found in its [design document](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-partition-receiver.md). -- The [EventProcessor<TPartition>](https://docs.microsoft.com/dotnet/api/azure.messaging.eventhubs.primitives.eventprocessor-1?view=azure-dotnet) provides a base for creating a custom processor for reading and processing events for all partitions of an Event Hub. It fills a role similar to the [EventProcessorClient](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples) from the [Azure.Messaging.EventHubs.Processor](https://www.nuget.org/packages/Azure.Messaging.EventHubs.Processor) package, with cooperative load balancing and resiliency as its core features. However, `EventProcessor` also offers native batch processing, the ability to customize checkpoint storage, a greater level of control over communication with the Event Hubs service, and a less opinionated API. The caveat is that this comes with additional complexity and exists as an abstract base, which needs to be extended. More on the design and philosophy behind this type can be found in its [design document](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-event-processor%7BT%7D.md). +- The [EventProcessor<TPartition>](https://docs.microsoft.com/dotnet/api/azure.messaging.eventhubs.primitives.eventprocessor-1?view=azure-dotnet) provides a base for creating a custom processor for reading and processing events for all partitions of an Event Hub. It fills a role similar to the [EventProcessorClient](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples) from the [Azure.Messaging.EventHubs.Processor](https://www.nuget.org/packages/Azure.Messaging.EventHubs.Processor) package, with cooperative load balancing and resiliency as its core features. However, `EventProcessor` also offers native batch processing, the ability to customize checkpoint storage, a greater level of control over communication with the Event Hubs service, and a less opinionated API. The caveat is that this comes with additional complexity and exists as an abstract base, which needs to be extended. More on the design and philosophy behind this type can be found in its [design document](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-event-processor%7BT%7D.md). ## Lifetime diff --git a/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample03_EventHubMetadata.md b/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample03_EventHubMetadata.md index fe05e6c71bf9..ce5b9a187681 100644 --- a/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample03_EventHubMetadata.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample03_EventHubMetadata.md @@ -1,6 +1,6 @@ # Event Hub Metadata -This sample discusses the metadata available for an Event Hub instance and demonstrates how to query and inspect the information. To begin, please ensure that you're familiar with the items discussed in the [Getting started](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/samples#getting-started) section of the README, and have the prerequisites and connection string information available. +This sample discusses the metadata available for an Event Hub instance and demonstrates how to query and inspect the information. To begin, please ensure that you're familiar with the items discussed in the [Getting started](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs/samples#getting-started) section of the README, and have the prerequisites and connection string information available. # Client types @@ -58,7 +58,7 @@ finally Some application scenarios call for understanding the "backlog" of events in an Event Hub, where an event being consumed is compared with the latest event available in the partition to understand how many events have accumulated and have yet to be processed. This allows applications to make reasoned decisions about scaling consumers or throttling publishers to ensure that event processing does not fall too far behind. To support this, the `EventHubProducerClient` and `EventHubConsumerClient` provide the ability to query partitions of the Event Hub for information about its current state. -This query is useful for occasionally inspecting partitions, but should not be used frequently as it may negatively impact performance by saturating the connection. When this information is needed often, an option can be set when reading events to query the last published event information for a partition in real-time. More detail can be found in [Sample05_ReadingEvents](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample05_ReadingEvents.md#query-partition-information-while-reading). +This query is useful for occasionally inspecting partitions, but should not be used frequently as it may negatively impact performance by saturating the connection. When this information is needed often, an option can be set when reading events to query the last published event information for a partition in real-time. More detail can be found in [Sample05_ReadingEvents](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample05_ReadingEvents.md#query-partition-information-while-reading). For illustration, the `EventHubConsumerClient` is demonstrated, but the concept and form are common across both clients. diff --git a/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample04_PublishingEvents.md b/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample04_PublishingEvents.md index 4b84022ce9bd..574a5415ae00 100644 --- a/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample04_PublishingEvents.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample04_PublishingEvents.md @@ -1,6 +1,6 @@ # Publishing Events -This sample demonstrates publishing events to an Event Hub. To begin, please ensure that you're familiar with the items discussed in the [Getting started](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/samples#getting-started) section of the README, and have the prerequisites and connection string information available. +This sample demonstrates publishing events to an Event Hub. To begin, please ensure that you're familiar with the items discussed in the [Getting started](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs/samples#getting-started) section of the README, and have the prerequisites and connection string information available. ## Client types diff --git a/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample05_ReadingEvents.md b/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample05_ReadingEvents.md index de030d783617..b461d3d41224 100644 --- a/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample05_ReadingEvents.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample05_ReadingEvents.md @@ -1,10 +1,10 @@ # Reading Events -This sample demonstrates reading events from an Event Hub. To begin, please ensure that you're familiar with the items discussed in the [Getting started](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/samples#getting-started) section of the README, and have the prerequisites and connection string information available. +This sample demonstrates reading events from an Event Hub. To begin, please ensure that you're familiar with the items discussed in the [Getting started](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs/samples#getting-started) section of the README, and have the prerequisites and connection string information available. ## Client types -Reading events is the responsibility of an event consumer. The client library offers several different consumers, each intended to support a specific set of scenarios. The `EventHubConsumerClient` will be the focal point of the samples, as it offers an approachable onboarding experience for exploring Event Hubs as well as supporting some production scenarios. More detail about the available event consumers, including those with more specialized uses, can be found in [Sample02_EventHubsClients](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample02_EventHubsClients.md). +Reading events is the responsibility of an event consumer. The client library offers several different consumers, each intended to support a specific set of scenarios. The `EventHubConsumerClient` will be the focal point of the samples, as it offers an approachable onboarding experience for exploring Event Hubs as well as supporting some production scenarios. More detail about the available event consumers, including those with more specialized uses, can be found in [Sample02_EventHubsClients](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample02_EventHubsClients.md). Each of the event consumer client types are safe to cache and use for the lifetime of an application, which is best practice when the events are read regularly or semi-regularly. The event consumers are responsible for efficient resource management, working to keep resource usage low during periods of inactivity and manage health during periods of higher use. Calling either the `CloseAsync` or `DisposeAsync` method as the application is shutting down will ensure that network resources and other unmanaged objects are properly cleaned up. @@ -22,7 +22,7 @@ Each consumer has a unique view of the events in a partition that it reads from, Every event that is published is sent to one of the [partitions](https://docs.microsoft.com/azure/architecture/reference-architectures/event-hubs/partitioning-in-event-hubs-and-kafka) of the Event Hub. When reading events, an application may be interested in reading events from all partitions or limiting to a single partition, depending on the application scenarios and throughput needs. The `EventHubConsumerClient` is not associated with any specific partition and the same instance can be used for reading from multiple partitions. -The `EventHubConsumerClient` supports reading events from a single partition and also offers an easy way to familiarize yourself with Event Hubs by reading from all partitions without the rigor and complexity that you would need in a production application. For reading events from all partitions in a production scenario, we strongly recommend using the [EventProcessorClient](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples) from the [Azure.Messaging.EventHubs.Processor](https://www.nuget.org/packages/Azure.Messaging.EventHubs.Processor) package over the `EventHubConsumerClient`. +The `EventHubConsumerClient` supports reading events from a single partition and also offers an easy way to familiarize yourself with Event Hubs by reading from all partitions without the rigor and complexity that you would need in a production application. For reading events from all partitions in a production scenario, we strongly recommend using the [EventProcessorClient](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples) from the [Azure.Messaging.EventHubs.Processor](https://www.nuget.org/packages/Azure.Messaging.EventHubs.Processor) package over the `EventHubConsumerClient`. ## Read events from all partitions @@ -486,7 +486,7 @@ finally ## Read events from a partition using the `PartitionReceiver` -When an application is working at a high volume and is willing to accept additional complexity to maximize throughput, the `PartitionReceiver` is worthy of consideration. It provides a very thin wrapper over the Event Hubs transport, allowing events to be read in batches as well as supporting options to control transport behavior. More detail on the design and philosophy for the `PartitionReceiver` can be found in its [design document](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-partition-receiver.md). +When an application is working at a high volume and is willing to accept additional complexity to maximize throughput, the `PartitionReceiver` is worthy of consideration. It provides a very thin wrapper over the Event Hubs transport, allowing events to be read in batches as well as supporting options to control transport behavior. More detail on the design and philosophy for the `PartitionReceiver` can be found in its [design document](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-partition-receiver.md). Because the receiver endeavors to avoid adding overhead, it does not follow the patterns established in the `EventHubConsumerClient` nor offer some of its convenience. Of particular note is that the model for reading events is based on polling with its `ReceiveBatchAsync` method instead of an iterator. It is also important to be aware that the transport library is timeout-based and will not honor cancellation when a service operation is active. This example illustrates the basic flow of reading events and will do so for 30 seconds regardless of how many events have been read. diff --git a/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample06_IdentityAndSharedAccessCredentials.md b/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample06_IdentityAndSharedAccessCredentials.md index 3b202da69f2b..8fd0963a78f4 100644 --- a/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample06_IdentityAndSharedAccessCredentials.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample06_IdentityAndSharedAccessCredentials.md @@ -4,7 +4,7 @@ This sample demonstrates using credentials to authorize clients with the Event H ## Prerequisites -To begin, please ensure that you're familiar with the items discussed in the [Getting started](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/samples#getting-started) section of the README. You will also need to the fully qualified namespace for the Event Hubs resource that you would like to use. This can be found in the Azure Portal view of the Event Hubs namespace in the "Overview" tab. In the center pane, the "essentials" area will list a "hostname." This is the fully qualified namespace and is likely be similar to: `{your-namespace}.servicebus.windows.net`. +To begin, please ensure that you're familiar with the items discussed in the [Getting started](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs/samples#getting-started) section of the README. You will also need to the fully qualified namespace for the Event Hubs resource that you would like to use. This can be found in the Azure Portal view of the Event Hubs namespace in the "Overview" tab. In the center pane, the "essentials" area will list a "hostname." This is the fully qualified namespace and is likely be similar to: `{your-namespace}.servicebus.windows.net`. Depending on the type of authorization that you wish to use, additional setup may be necessary before using these examples. Details for each authorization type can be found below. @@ -12,7 +12,7 @@ Depending on the type of authorization that you wish to use, additional setup ma **Azure.Identity** -The `Azure.Identity` library is recommended for identity-based authentication across the different sources supported by the Azure platform for [role-based access control (RBAC)](https://docs.microsoft.com/azure/role-based-access-control/overview). This includes Azure Active Directory principals and Managed Identities. To allow for the best developer experience, and one that supports promoting applications between environments without code changes, this sample will concentrate on the `DefaultAzureCredential`. Please see the [Azure.Identity README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md#defaultazurecredential) for details on configuring your environment for `DefaultAzureCredential` integration. +The `Azure.Identity` library is recommended for identity-based authentication across the different sources supported by the Azure platform for [role-based access control (RBAC)](https://docs.microsoft.com/azure/role-based-access-control/overview). This includes Azure Active Directory principals and Managed Identities. To allow for the best developer experience, and one that supports promoting applications between environments without code changes, this sample will concentrate on the `DefaultAzureCredential`. Please see the [Azure.Identity README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md#defaultazurecredential) for details on configuring your environment for `DefaultAzureCredential` integration. **Role Assignments** @@ -38,7 +38,7 @@ In step 6 of the article, the policy that you select will be the name of your sh ## Client types -All of the client types within the Event Hubs client library support the use of [Azure.Identity](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity) authentication, as well as shared access credentials for shared access key and shared access signature use. More information about client types can be found in [Sample02_EventHubsClients](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample02_EventHubsClients.md). +All of the client types within the Event Hubs client library support the use of [Azure.Identity](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity) authentication, as well as shared access credentials for shared access key and shared access signature use. More information about client types can be found in [Sample02_EventHubsClients](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample02_EventHubsClients.md). For illustration, the `EventHubProducerClient` is demonstrated in these examples, but the concept and form are common across clients. diff --git a/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample07_EarlierLanguageVersions.md b/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample07_EarlierLanguageVersions.md index fc823b963a00..49028f7f367a 100644 --- a/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample07_EarlierLanguageVersions.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample07_EarlierLanguageVersions.md @@ -8,7 +8,7 @@ The Azure Event Hubs client library makes use of new features that were introduc ## Publish a batch of events using C# 7 - This example illustrates publishing a batch with a single event, allowing the Event Hubs service to assign the partition to which it will be published. For more information on publishing, see: [Sample04_PublishingEvents](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample04_PublishingEvents.md). + This example illustrates publishing a batch with a single event, allowing the Event Hubs service to assign the partition to which it will be published. For more information on publishing, see: [Sample04_PublishingEvents](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample04_PublishingEvents.md). ```C# Snippet:EventHubs_Sample07_Publish var connectionString = "<< CONNECTION STRING FOR THE EVENT HUBS NAMESPACE >>"; @@ -37,9 +37,9 @@ finally ## Read events from all partitions using C# 7 -The `ReadEventsAsync` method of the `EventHubConsumerClient` allows events to be read from each partition for prototyping and exploring, but is not a recommended approach for production scenarios. For reading events from all partitions in a production scenario, we strongly recommend using the [EventProcessorClient](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples) from the [Azure.Messaging.EventHubs.Processor](https://www.nuget.org/packages/Azure.Messaging.EventHubs.Processor) package. +The `ReadEventsAsync` method of the `EventHubConsumerClient` allows events to be read from each partition for prototyping and exploring, but is not a recommended approach for production scenarios. For reading events from all partitions in a production scenario, we strongly recommend using the [EventProcessorClient](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples) from the [Azure.Messaging.EventHubs.Processor](https://www.nuget.org/packages/Azure.Messaging.EventHubs.Processor) package. -This example illustrates reading either 50 events or stopping after 30 seconds has elapsed, whichever occurs first. For more information on publishing, see: [Sample05_ReadingEvents](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample05_ReadingEvents.md). +This example illustrates reading either 50 events or stopping after 30 seconds has elapsed, whichever occurs first. For more information on publishing, see: [Sample05_ReadingEvents](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample05_ReadingEvents.md). ```C# Snippet:EventHubs_Sample07_ReadAllPartitions var connectionString = "<< CONNECTION STRING FOR THE EVENT HUBS NAMESPACE >>"; diff --git a/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample08_CustomEventProcessor.md b/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample08_CustomEventProcessor.md index d03f8edc0561..c5165f14f31c 100644 --- a/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample08_CustomEventProcessor.md +++ b/sdk/eventhub/Azure.Messaging.EventHubs/samples/Sample08_CustomEventProcessor.md @@ -1,6 +1,6 @@ # Building a custom processor with EventProcessor<TPartition> -This sample demonstrates using `EventProcessor` to build a custom event processor which manages its own load balancing and checkpoint state and then shows how to use it to consume events from Event Hubs. For the majority of scenarios, we recommend using the [EventProcessorClient](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples) from the [Azure.Messaging.EventHubs.Processor](https://www.nuget.org/packages/Azure.Messaging.EventHubs.Processor) package instead of implementing your own processor library. +This sample demonstrates using `EventProcessor` to build a custom event processor which manages its own load balancing and checkpoint state and then shows how to use it to consume events from Event Hubs. For the majority of scenarios, we recommend using the [EventProcessorClient](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples) from the [Azure.Messaging.EventHubs.Processor](https://www.nuget.org/packages/Azure.Messaging.EventHubs.Processor) package instead of implementing your own processor library. ## Reading events @@ -446,4 +446,4 @@ This should look familiar if you've used `EventProcessorClient` before, but ther - The partition object passed to `OnProcessingErrorAsync` may be `null`. This happens when the exception is not tied to a specific partition (for example, if an exception was thrown by `ListOwnershipAsync`, it will not be tied to a specific partition and so the partition context will be `null` when the error handler is called), so we need to guard for that case as well. -For a step-by-step discussion of the concepts discussed in this sample, please see the [Building A Custom Event Hubs Event Processor with .NET](https://devblogs.microsoft.com/azure-sdk/custom-event-processor/) article on the [Azure SDK blog](https://devblogs.microsoft.com/azure-sdk). More detail on the design and philosophy of `EventProcessor` can be found in the [EventProcessor<TPartition> design document](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-event-processor%7BT%7D.md). +For a step-by-step discussion of the concepts discussed in this sample, please see the [Building A Custom Event Hubs Event Processor with .NET](https://devblogs.microsoft.com/azure-sdk/custom-event-processor/) article on the [Azure SDK blog](https://devblogs.microsoft.com/azure-sdk). More detail on the design and philosophy of `EventProcessor` can be found in the [EventProcessor<TPartition> design document](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/design/proposal-event-processor%7BT%7D.md). diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/README.md b/sdk/eventhub/Azure.ResourceManager.EventHubs/README.md index 81622c46a361..34ec3534515d 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/README.md +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/README.md @@ -18,7 +18,7 @@ Install-Package Azure.ResourceManager.EventHubs -Version 1.0.0-preview.2 ### Authenticate the Client -To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) ## Key concepts @@ -28,9 +28,9 @@ Key concepts of the Azure .NET SDK can be found [here](https://azure.github.io/a Documentation is available to help you learn how to use this package -- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) - [API References](https://docs.microsoft.com/dotnet/api/?view=azure-dotnet) -- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md) +- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md) ## Examples diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs.ServiceFabricProcessor/src/ProgrammersGuide.md b/sdk/eventhub/Microsoft.Azure.EventHubs.ServiceFabricProcessor/src/ProgrammersGuide.md index 3ef9fe4e7e47..8b07832370f3 100644 --- a/sdk/eventhub/Microsoft.Azure.EventHubs.ServiceFabricProcessor/src/ProgrammersGuide.md +++ b/sdk/eventhub/Microsoft.Azure.EventHubs.ServiceFabricProcessor/src/ProgrammersGuide.md @@ -1,4 +1,4 @@ -# Programmer's Guide to Service Fabric Processor +# Programmer's Guide to Service Fabric Processor ## Introduction diff --git a/sdk/eventhub/Microsoft.Azure.EventHubs/README.md b/sdk/eventhub/Microsoft.Azure.EventHubs/README.md index 79c9b7e1a412..582565a84148 100755 --- a/sdk/eventhub/Microsoft.Azure.EventHubs/README.md +++ b/sdk/eventhub/Microsoft.Azure.EventHubs/README.md @@ -27,7 +27,7 @@ Use the client library for Event Hubs to: - Receive events from one or more publishers, transform them to better meet the needs of your ecosystem, then publish the transformed events to a new stream for consumers to observe. -[Source code](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Microsoft.Azure.EventHubs) | [Package (NuGet)](https://www.nuget.org/packages/Microsoft.Azure.EventHubs/) | [API reference documentation](https://docs.microsoft.com/dotnet/api/overview/azure/event-hubs?view=azure-dotnet) | [Product documentation](https://docs.microsoft.com/azure/event-hubs/) +[Source code](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Microsoft.Azure.EventHubs) | [Package (NuGet)](https://www.nuget.org/packages/Microsoft.Azure.EventHubs/) | [API reference documentation](https://docs.microsoft.com/dotnet/api/overview/azure/event-hubs?view=azure-dotnet) | [Product documentation](https://docs.microsoft.com/azure/event-hubs/) ## Getting started @@ -84,7 +84,7 @@ The Live tests read information from the following environment variables: `EVENTHUB_CLIENT_SECRET` The client secret (password) of the Azure Active Directory application that is associated with the service principal -To make setting up your environment easier, a [PowerShell script](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/assets/live-tests-azure-setup.ps1) is included in the repository and will create and/or configure the needed Azure resources. To use this script, open a PowerShell instance and login to your Azure account using `Login-AzAccount`, then execute the script. You will need to provide some information, after which the script will configure the Azure resources and then output the set of environment variables with the correct values for running tests. +To make setting up your environment easier, a [PowerShell script](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/assets/live-tests-azure-setup.ps1) is included in the repository and will create and/or configure the needed Azure resources. To use this script, open a PowerShell instance and login to your Azure account using `Login-AzAccount`, then execute the script. You will need to provide some information, after which the script will configure the Azure resources and then output the set of environment variables with the correct values for running tests. The simplest way to get started is to execute the script with your subscription name and then follow the prompts: diff --git a/sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/README.md b/sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/README.md index 834c90f5698c..6b5f37b2d184 100644 --- a/sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/README.md +++ b/sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/README.md @@ -214,12 +214,12 @@ additional questions or comments. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fsearch%2FMicrosoft.Azure.WebJobs.Extensions.EventHubs%2FREADME.png) -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/search/Microsoft.Azure.WebJobs.Extensions.EventHubs/src +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/search/Microsoft.Azure.WebJobs.Extensions.EventHubs/src [package]: https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.EventHubs/ [docs]: https://docs.microsoft.com/dotnet/api/Microsoft.Azure.WebJobs.Extensions.EventHubs [nuget]: https://www.nuget.org/ -[contrib]: https://github.com/Azure/azure-sdk-for-net/tree/master/CONTRIBUTING.md +[contrib]: https://github.com/Azure/azure-sdk-for-net/tree/main/CONTRIBUTING.md [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/eventhub/README.md b/sdk/eventhub/README.md index 769022e7d489..562f0dee1516 100644 --- a/sdk/eventhub/README.md +++ b/sdk/eventhub/README.md @@ -8,18 +8,18 @@ The current generation of the Azure Event Hubs client library uses package names ### `Azure.Messaging.EventHubs` -These packages are the current generation of client libraries for Event Hubs and are part of the Azure SDK for .NET. The source code is available on [GitHub](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub). +These packages are the current generation of client libraries for Event Hubs and are part of the Azure SDK for .NET. The source code is available on [GitHub](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub). Use the following packages to publish and consume events from Event Hubs: | Nuget Package | Reference | Samples | |--------------------------------------|---------------------------------------------------------------|-------------------------------------------------------------------------------| -| [Azure.Messaging.EventHubs](https://www.nuget.org/packages/Azure.Messaging.EventHubs) | [API Reference for Azure.Messaging.EventHubs](https://docs.microsoft.com/dotnet/api/azure.messaging.eventhubs?view=azure-dotnet) | [Samples for Azure.Messaging.EventHubs](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs/samples) | -| [Azure.Messaging.EventHubs.Processor](https://www.nuget.org/packages/Azure.Messaging.EventHubs.Processor) | [API Reference for Azure.Messaging.EventHubs.Processor](https://docs.microsoft.com/dotnet/api/azure.messaging.eventhubs?view=azure-dotnet) | [Samples for Azure.Messaging.EventHubs.Processor](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples) | +| [Azure.Messaging.EventHubs](https://www.nuget.org/packages/Azure.Messaging.EventHubs) | [API Reference for Azure.Messaging.EventHubs](https://docs.microsoft.com/dotnet/api/azure.messaging.eventhubs?view=azure-dotnet) | [Samples for Azure.Messaging.EventHubs](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs/samples) | +| [Azure.Messaging.EventHubs.Processor](https://www.nuget.org/packages/Azure.Messaging.EventHubs.Processor) | [API Reference for Azure.Messaging.EventHubs.Processor](https://docs.microsoft.com/dotnet/api/azure.messaging.eventhubs?view=azure-dotnet) | [Samples for Azure.Messaging.EventHubs.Processor](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs.Processor/samples) | ### `Microsoft.Azure.EventHubs` -These packages are the legacy generation of client libraries for Event Hubs. The source code is available on [GitHub](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub). +These packages are the legacy generation of client libraries for Event Hubs. The source code is available on [GitHub](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub). Use the following legacy packages to publish and consume events from Event Hubs: diff --git a/sdk/eventhub/ci.data.yml b/sdk/eventhub/ci.data.yml index f120091349b7..d9caf3fbac6a 100644 --- a/sdk/eventhub/ci.data.yml +++ b/sdk/eventhub/ci.data.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -18,7 +17,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/eventhub/ci.mgmt.yml b/sdk/eventhub/ci.mgmt.yml index c8899a8969bf..8c799a4312c4 100644 --- a/sdk/eventhub/ci.mgmt.yml +++ b/sdk/eventhub/ci.mgmt.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/eventhub/ci.yml b/sdk/eventhub/ci.yml index 0d5e6d162af9..8200cbf71e1b 100644 --- a/sdk/eventhub/ci.yml +++ b/sdk/eventhub/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -19,7 +18,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/extensions/Azure.Extensions.AspNetCore.Configuration.Secrets/README.md b/sdk/extensions/Azure.Extensions.AspNetCore.Configuration.Secrets/README.md index 23c73d356e57..4f712826d5d4 100644 --- a/sdk/extensions/Azure.Extensions.AspNetCore.Configuration.Secrets/README.md +++ b/sdk/extensions/Azure.Extensions.AspNetCore.Configuration.Secrets/README.md @@ -43,12 +43,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -85,7 +85,7 @@ additional questions or comments. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fextensions%2FAzure.Extensions.AspNetCore.Configuration.Secrets%2FREADME.png) -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/extensions/Azure.Extensions.AspNetCore.Configuration.Secrets/src +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/extensions/Azure.Extensions.AspNetCore.Configuration.Secrets/src [package]: https://www.nuget.org/packages/Azure.Extensions.AspNetCore.Configuration.Secrets/ [docs]: https://docs.microsoft.com/dotnet/api/Azure.Extensions.AspNetCore.Configuration.Secrets [nuget]: https://www.nuget.org/packages/Azure.Extensions.AspNetCore.Configuration.Secrets @@ -94,7 +94,7 @@ additional questions or comments. [keyvault_create_ps]: https://docs.microsoft.com/azure/key-vault/quick-create-powershell#create-a-key-vault [azure_cli]: https://docs.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ -[identity]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity/README.md +[identity]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity/README.md [aspnetcore_configuration_doc]: https://docs.microsoft.com/aspnet/core/fundamentals/configuration/?view=aspnetcore-3.1 [error_codes]: https://docs.microsoft.com/rest/api/storageservices/blob-service-error-codes [cla]: https://cla.microsoft.com diff --git a/sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Blobs/README.md b/sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Blobs/README.md index 7c92c8cf4f63..ae14d5d44963 100644 --- a/sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Blobs/README.md +++ b/sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Blobs/README.md @@ -40,12 +40,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -94,7 +94,7 @@ additional questions or comments. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fextensions%2FAzure.Extensions.AspNetCore.DataProtection.Blobs%2FREADME.png) -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Blobs/src +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Blobs/src [package]: https://www.nuget.org/packages/Azure.Extensions.AspNetCore.DataProtection.Blobs/ [docs]: https://docs.microsoft.com/dotnet/api/Azure.Extensions.AspNetCore.DataProtection.Blobs [nuget]: https://www.nuget.org/packages/Azure.Extensions.AspNetCore.DataProtection.Blobs @@ -105,7 +105,7 @@ additional questions or comments. [storage_container_docs]: https://docs.microsoft.com/azure/storage/blobs/storage-blobs-introduction#containers [azure_cli]: https://docs.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ -[identity]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity/README.md +[identity]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity/README.md [aspnetcore_dataprotection_doc]: https://docs.microsoft.com/aspnet/core/security/data-protection/introduction [samples]: samples/ [cla]: https://cla.microsoft.com diff --git a/sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Keys/README.md b/sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Keys/README.md index 4a694e22f095..c8612238b532 100644 --- a/sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Keys/README.md +++ b/sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Keys/README.md @@ -36,12 +36,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -79,7 +79,7 @@ additional questions or comments. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fextensions%2FAzure.AspNetCore.Extensions.DataProtection.Keys%2FREADME.png) -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Keys/src +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Keys/src [package]: https://www.nuget.org/packages/Azure.Extensions.AspNetCore.DataProtection.Keys/ [docs]: https://docs.microsoft.com/dotnet/api/Azure.Extensions.AspNetCore.DataProtection.Keys [nuget]: https://www.nuget.org/packages/Azure.Extensions.AspNetCore.DataProtection.Keys @@ -89,9 +89,9 @@ additional questions or comments. [keyvault_create_ps]: https://docs.microsoft.com/azure/key-vault/quick-create-powershell#create-a-key-vault [azure_cli]: https://docs.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ -[identity]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity/README.md +[identity]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity/README.md [aspnetcore_dataprotection_doc]: https://docs.microsoft.com/aspnet/core/security/data-protection/introduction?view=aspnetcore-3.1 -[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core/src/RequestFailedException.cs +[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core/src/RequestFailedException.cs [error_codes]: https://docs.microsoft.com/rest/api/storageservices/blob-service-error-codes [samples]: samples/ [storage_contrib]: ../CONTRIBUTING.md diff --git a/sdk/extensions/Microsoft.Azure.WebJobs.Extensions.Clients/README.md b/sdk/extensions/Microsoft.Azure.WebJobs.Extensions.Clients/README.md index e9bef69338bb..7d5bb4986e12 100644 --- a/sdk/extensions/Microsoft.Azure.WebJobs.Extensions.Clients/README.md +++ b/sdk/extensions/Microsoft.Azure.WebJobs.Extensions.Clients/README.md @@ -70,7 +70,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con -[source_root]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/extensions/Microsoft.Azure.WebJobs.Extensions.Clients/ +[source_root]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/extensions/Microsoft.Azure.WebJobs.Extensions.Clients/ [nuget]: https://www.nuget.org/ [package]: https://www.nuget.org/packages/Microsoft.Extensions.Azure/ [azure_function_settings]: https://docs.microsoft.com/azure/azure-functions/functions-how-to-use-azure-function-app-settings diff --git a/sdk/extensions/Microsoft.Extensions.Azure/README.md b/sdk/extensions/Microsoft.Extensions.Azure/README.md index ffac31b29718..29ce8707f94e 100644 --- a/sdk/extensions/Microsoft.Extensions.Azure/README.md +++ b/sdk/extensions/Microsoft.Extensions.Azure/README.md @@ -143,7 +143,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con -[source_root]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/extensions/Microsoft.Extensions.Azure/src +[source_root]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/extensions/Microsoft.Extensions.Azure/src [nuget]: https://www.nuget.org/ [package]: https://www.nuget.org/packages/Microsoft.Extensions.Azure/ [configuration]: https://docs.microsoft.com/aspnet/core/fundamentals/configuration/?view=aspnetcore-3.0 diff --git a/sdk/extensions/README.md b/sdk/extensions/README.md index 7bcd983fc425..2aae761410b2 100644 --- a/sdk/extensions/README.md +++ b/sdk/extensions/README.md @@ -23,9 +23,9 @@ additional questions or comments. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fstorage%2FREADME.png) -[configuration_secrets]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/extensions/Azure.Extensions.AspNetCore.Configuration.Secrets/README.md -[dataprotection_keys]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Keys/README.md -[dataprotection_blobs]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Blobs/README.md +[configuration_secrets]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/extensions/Azure.Extensions.AspNetCore.Configuration.Secrets/README.md +[dataprotection_keys]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Keys/README.md +[dataprotection_blobs]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Blobs/README.md [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/extensions/ci.yml b/sdk/extensions/ci.yml index a923942be05f..50036dee2854 100644 --- a/sdk/extensions/ci.yml +++ b/sdk/extensions/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/CHANGELOG.md b/sdk/formrecognizer/Azure.AI.FormRecognizer/CHANGELOG.md index 7be15aa1137f..e9fa79da3737 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/CHANGELOG.md +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/CHANGELOG.md @@ -234,5 +234,5 @@ This package's [documentation][readme] and [samples][samples] demonstrate the ne [guidelines]: https://azure.github.io/azure-sdk/dotnet_introduction.html [cognitiveServices_fr_nuget]: https://www.nuget.org/packages/Microsoft.Azure.CognitiveServices.FormRecognizer/0.8.0-preview -[readme]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/README.md -[samples]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/README.md +[readme]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/README.md +[samples]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/README.md diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/README.md b/sdk/formrecognizer/Azure.AI.FormRecognizer/README.md index 9669ec2e7376..09c830c8a7b0 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/README.md +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/README.md @@ -161,11 +161,11 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -625,22 +625,22 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con -[formreco_client_src]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/src +[formreco_client_src]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/src [formreco_docs]: https://docs.microsoft.com/azure/cognitive-services/form-recognizer/ [formreco_refdocs]: https://aka.ms/azsdk/net/docs/ref/formrecognizer [formreco_nuget_package]: https://www.nuget.org/packages/Azure.AI.FormRecognizer -[formreco_samples]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/README.md +[formreco_samples]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/README.md [formreco_rest_api]: https://westus2.dev.cognitive.microsoft.com/docs/services/form-recognizer-api-v2-1/operations/AnalyzeBusinessCardAsync [cognitive_resource]: https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account -[form_recognizer_client_class]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/src/FormRecognizerClient.cs -[azure_identity]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity +[form_recognizer_client_class]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/src/FormRecognizerClient.cs +[azure_identity]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity [cognitive_auth]: https://docs.microsoft.com/azure/cognitive-services/authentication [register_aad_app]: https://docs.microsoft.com/azure/cognitive-services/authentication#assign-a-role-to-a-service-principal [aad_grant_access]: https://docs.microsoft.com/azure/cognitive-services/authentication#assign-a-role-to-a-service-principal [custom_subdomain]: https://docs.microsoft.com/azure/cognitive-services/authentication#create-a-resource-with-a-custom-subdomain -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity/README.md +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity/README.md [cognitive_resource_portal]: https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account [cognitive_resource_cli]: https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account-cli [regional_endpoints]: https://docs.microsoft.com/azure/cognitive-services/cognitive-services-custom-subdomains#is-there-a-list-of-regional-endpoints @@ -653,18 +653,18 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con [service_recognize_identity_documents_fields]: https://aka.ms/formrecognizer/iddocumentfields [dotnet_lro_guidelines]: https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-longrunning -[logging]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core/samples/Diagnostics.md - -[recognize_content]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample1_RecognizeFormContent.md -[recognize_custom_forms]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample2_RecognizeCustomForms.md -[recognize_receipts]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample3_RecognizeReceipts.md -[recognize_business_cards]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample9_RecognizeBusinessCards.md -[recognize_invoices]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample10_RecognizeInvoices.md -[recognize_identity_documents]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample11_RecognizeIdentityDocuments.md -[train_a_model]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample5_TrainModel.md -[manage_custom_models]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample6_ManageCustomModels.md -[copy_custom_models]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample7_CopyCustomModel.md -[composed_model]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample8_ModelCompose.md +[logging]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core/samples/Diagnostics.md + +[recognize_content]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample1_RecognizeFormContent.md +[recognize_custom_forms]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample2_RecognizeCustomForms.md +[recognize_receipts]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample3_RecognizeReceipts.md +[recognize_business_cards]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample9_RecognizeBusinessCards.md +[recognize_invoices]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample10_RecognizeInvoices.md +[recognize_identity_documents]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample11_RecognizeIdentityDocuments.md +[train_a_model]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample5_TrainModel.md +[manage_custom_models]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample6_ManageCustomModels.md +[copy_custom_models]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample7_CopyCustomModel.md +[composed_model]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample8_ModelCompose.md [azure_cli]: https://docs.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/perf/Azure.AI.FormRecognizer.Perf/README.md b/sdk/formrecognizer/Azure.AI.FormRecognizer/perf/Azure.AI.FormRecognizer.Perf/README.md index 9d6855806bef..ee5b69e9f815 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/perf/Azure.AI.FormRecognizer.Perf/README.md +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/perf/Azure.AI.FormRecognizer.Perf/README.md @@ -1,6 +1,6 @@ # Azure Form Recognizer performance tests -The assets in this area comprise a set of performance tests for the [Azure Form Recognizer client library for .NET](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer) and its associated ecosystem. The artifacts in this library are intended to be used primarily with the Azure SDK engineering system's testing infrastructure, but may also be run as stand-alone applications from the command line. +The assets in this area comprise a set of performance tests for the [Azure Form Recognizer client library for .NET](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer) and its associated ecosystem. The artifacts in this library are intended to be used primarily with the Azure SDK engineering system's testing infrastructure, but may also be run as stand-alone applications from the command line. ## Running performance tests @@ -14,6 +14,6 @@ When you submit a pull request, a CLA-bot will automatically determine whether y This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. -Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md) for more information. +Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md) for more information. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fformrecognizer%2FAzure.AI.FormRecognizer%2Fperf%2FAzure.AI.FormRecognizer.Perf%2FREADME.png) diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/README.md b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/README.md index 6d25e921292f..2634c3ea4b38 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/README.md +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/README.md @@ -22,20 +22,20 @@ Azure Cognitive Services Form Recognizer is a cloud service that uses machine le - Identity Documents - Recognize and extract common fields from identity documents like passports or driver's licenses, using a pre-trained identity documents model. ## Common scenarios samples -- [Recognize form content](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample1_RecognizeFormContent.md) -- [Recognize custom forms](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample2_RecognizeCustomForms.md) -- [Recognize receipts](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample3_RecognizeReceipts.md) -- [Recognize business cards](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample9_RecognizeBusinessCards.md) -- [Recognize invoices](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample10_RecognizeInvoices.md) -- [Recognize identity documents](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample11_RecognizeIdentityDocuments.md) -- [Train a model](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample5_TrainModel.md) -- [Manage custom models](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample6_ManageCustomModels.md) +- [Recognize form content](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample1_RecognizeFormContent.md) +- [Recognize custom forms](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample2_RecognizeCustomForms.md) +- [Recognize receipts](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample3_RecognizeReceipts.md) +- [Recognize business cards](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample9_RecognizeBusinessCards.md) +- [Recognize invoices](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample10_RecognizeInvoices.md) +- [Recognize identity documents](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample11_RecognizeIdentityDocuments.md) +- [Train a model](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample5_TrainModel.md) +- [Manage custom models](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample6_ManageCustomModels.md) ## Advanced samples -- [Strongly-typing a recognized form](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample4_StronglyTypingARecognizedForm.md) -- [Create a composed model](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample8_ModelCompose.md) -- [Differentiate output models trained with and without labels](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample10_DifferentiateOutputModelsTrainedWithAndWithoutLabels.cs) -- [Differentiate output labeled tables](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample15_DifferentiateOutputLabeledTables.cs) -- [Copy a custom model between Form Recognizer resources](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample7_CopyCustomModel.md) -- [Field Bounding Box](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample9_FieldBoundingBox.cs) -- [Mock a client for testing using the Moq library](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample_MockClient.md) +- [Strongly-typing a recognized form](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample4_StronglyTypingARecognizedForm.md) +- [Create a composed model](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample8_ModelCompose.md) +- [Differentiate output models trained with and without labels](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample10_DifferentiateOutputModelsTrainedWithAndWithoutLabels.cs) +- [Differentiate output labeled tables](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample15_DifferentiateOutputLabeledTables.cs) +- [Copy a custom model between Form Recognizer resources](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample7_CopyCustomModel.md) +- [Field Bounding Box](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample9_FieldBoundingBox.cs) +- [Mock a client for testing using the Moq library](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample_MockClient.md) diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample10_RecognizeInvoices.md b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample10_RecognizeInvoices.md index 62449294aafe..58a797e45987 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample10_RecognizeInvoices.md +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample10_RecognizeInvoices.md @@ -290,8 +290,8 @@ if (invoice.Fields.TryGetValue("InvoiceTotal", out FormField invoiceTotalField)) To see the full example source files, see: -* [Recognize invoices from URI](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample13_RecognizeInvoicesFromUri.cs) -* [Recognize invoices from file](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample13_RecognizeInvoicesFromFile.cs) +* [Recognize invoices from URI](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample13_RecognizeInvoicesFromUri.cs) +* [Recognize invoices from file](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample13_RecognizeInvoicesFromFile.cs) -[README]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer#getting-started -[strongly_typing_a_recognized_form]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample4_StronglyTypingARecognizedForm.md \ No newline at end of file +[README]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer#getting-started +[strongly_typing_a_recognized_form]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample4_StronglyTypingARecognizedForm.md \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample11_RecognizeIdentityDocuments.md b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample11_RecognizeIdentityDocuments.md index 81751066d7f3..90e156672dda 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample11_RecognizeIdentityDocuments.md +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample11_RecognizeIdentityDocuments.md @@ -221,8 +221,8 @@ if (identityDocument.Fields.TryGetValue("Sex", out FormField sexfield)) To see the full example source files, see: -* [Recognize identity documents from URI](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample14_RecognizeIdentityDocumentsFromUri.cs) -* [Recognize identity documents from file](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample14_RecognizeIdentityDocumentsFromFile.cs) +* [Recognize identity documents from URI](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample14_RecognizeIdentityDocumentsFromUri.cs) +* [Recognize identity documents from file](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample14_RecognizeIdentityDocumentsFromFile.cs) -[README]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer#getting-started -[strongly_typing_a_recognized_form]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample4_StronglyTypingARecognizedForm.md \ No newline at end of file +[README]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer#getting-started +[strongly_typing_a_recognized_form]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample4_StronglyTypingARecognizedForm.md \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample1_RecognizeFormContent.md b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample1_RecognizeFormContent.md index 6409fca48663..53a80c9157f6 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample1_RecognizeFormContent.md +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample1_RecognizeFormContent.md @@ -138,7 +138,7 @@ foreach (FormPage page in formPages) To see the full example source files, see: -* [Recognize form content from URI](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample1_RecognizeContentFromUri.cs) -* [Recognize form content from file](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample1_RecognizeContentFromFile.cs) +* [Recognize form content from URI](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample1_RecognizeContentFromUri.cs) +* [Recognize form content from file](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample1_RecognizeContentFromFile.cs) -[README]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer#getting-started \ No newline at end of file +[README]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer#getting-started \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample2_RecognizeCustomForms.md b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample2_RecognizeCustomForms.md index ff0caa5f319d..9cf01d26de84 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample2_RecognizeCustomForms.md +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample2_RecognizeCustomForms.md @@ -141,9 +141,9 @@ foreach (RecognizedForm form in forms) To see the full example source files, see: -* [Recognize custom forms from URI](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample2_RecognizeCustomFormsFromUri.cs) -* [Recognize custom forms from file](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample2_RecognizeCustomFormsFromFile.cs) +* [Recognize custom forms from URI](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample2_RecognizeCustomFormsFromUri.cs) +* [Recognize custom forms from file](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample2_RecognizeCustomFormsFromFile.cs) -[README]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer#getting-started -[strongly_typing_a_recognized_form]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample4_StronglyTypingARecognizedForm.md -[train_a_model]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample5_TrainModel.md +[README]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer#getting-started +[strongly_typing_a_recognized_form]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample4_StronglyTypingARecognizedForm.md +[train_a_model]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample5_TrainModel.md diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample3_RecognizeReceipts.md b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample3_RecognizeReceipts.md index 0ef20e0ada89..a40d308f2281 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample3_RecognizeReceipts.md +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample3_RecognizeReceipts.md @@ -194,8 +194,8 @@ foreach (RecognizedForm receipt in receipts) To see the full example source files, see: -* [Recognize receipts from URI](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample3_RecognizeReceiptsFromUri.cs) -* [Recognize receipts from file](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample3_RecognizeReceiptsFromFile.cs) +* [Recognize receipts from URI](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample3_RecognizeReceiptsFromUri.cs) +* [Recognize receipts from file](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample3_RecognizeReceiptsFromFile.cs) -[README]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer#getting-started -[strongly_typing_a_recognized_form]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample4_StronglyTypingARecognizedForm.md \ No newline at end of file +[README]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer#getting-started +[strongly_typing_a_recognized_form]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample4_StronglyTypingARecognizedForm.md \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample4_StronglyTypingARecognizedForm.md b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample4_StronglyTypingARecognizedForm.md index 413fad8e751e..ca9014c1b8dc 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample4_StronglyTypingARecognizedForm.md +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample4_StronglyTypingARecognizedForm.md @@ -23,8 +23,8 @@ Recognized receipts and custom forms are returned as `RecognizedForm` objects fr We'll be using a recognized receipt as a sample, so we'll call our wrapper class `Receipt`. To store items listed in the receipt, we'll use a similar wrapper called `ReceiptItem`. To see the full source files, see: -* [Receipt class](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Receipt.cs) -* [ReceiptItem class](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/ReceiptItem.cs) +* [Receipt class](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Receipt.cs) +* [ReceiptItem class](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/ReceiptItem.cs) The `Receipt` class is composed of multiple `FormField` properties. `FormField` is a class defined in the main Form Recognizer library and used as a strongly-typed version of `FormField`, and it's more convenient to handle since there's no need to perform type checking. @@ -107,6 +107,6 @@ Using `FormField` to make your fields strongly-typed, and populating a custom To see the full example source files, see: -* [Strongly typing a recognized form](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample4_StronglyTypingARecognizedForm.cs) +* [Strongly typing a recognized form](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample4_StronglyTypingARecognizedForm.cs) -[README]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer#getting-started \ No newline at end of file +[README]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer#getting-started \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample5_TrainModel.md b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample5_TrainModel.md index de31042d50d3..38ea89d15dfc 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample5_TrainModel.md +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample5_TrainModel.md @@ -105,8 +105,8 @@ foreach (CustomFormSubmodel submodel in model.Submodels) To see the full example source files, see: -* [Train a model with forms](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample5_TrainModelWithForms.cs) -* [Train a model with forms and labels](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample6_TrainModelWithFormsAndLabels.cs) +* [Train a model with forms](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample5_TrainModelWithForms.cs) +* [Train a model with forms and labels](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample6_TrainModelWithFormsAndLabels.cs) -[README]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer#getting-started +[README]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer#getting-started [labeling_tool]: https://docs.microsoft.com/azure/cognitive-services/form-recognizer/label-tool?tabs=v2-1 diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample6_ManageCustomModels.md b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample6_ManageCustomModels.md index 31b46def4e7b..ee61097b4a95 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample6_ManageCustomModels.md +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample6_ManageCustomModels.md @@ -136,7 +136,7 @@ client.DeleteModel(model.ModelId); To see the full example source files, see: -* [Manage custom models (Asynchronous)](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample7_ManageCustomModelsAsync.cs) -* [Manage custom models (Synchronous)](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample7_ManageCustomModels.cs) +* [Manage custom models (Asynchronous)](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample7_ManageCustomModelsAsync.cs) +* [Manage custom models (Synchronous)](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample7_ManageCustomModels.cs) -[README]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer#getting-started \ No newline at end of file +[README]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer#getting-started \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample7_CopyCustomModel.md b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample7_CopyCustomModel.md index 472d3899ceef..d0fa9f2f3159 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample7_CopyCustomModel.md +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample7_CopyCustomModel.md @@ -68,6 +68,6 @@ Console.WriteLine($"Copied model ID => {newModel.ModelId}"); To see the full example source files, see: -* [Copy custom models](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample8_CopyModel.cs) +* [Copy custom models](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample8_CopyModel.cs) -[README]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer#getting-started \ No newline at end of file +[README]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer#getting-started \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample8_ModelCompose.md b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample8_ModelCompose.md index 99dcb2ade96e..f5ae03631a81 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample8_ModelCompose.md +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample8_ModelCompose.md @@ -146,7 +146,7 @@ foreach (CustomFormSubmodel model in purchaseOrderModel.Submodels) To see the full example source files, see: -* [Composed Model](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample11_ComposedModel.cs) +* [Composed Model](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample11_ComposedModel.cs) -[README]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer#getting-started +[README]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer#getting-started [labeling_tool]: https://docs.microsoft.com/azure/cognitive-services/form-recognizer/label-tool?tabs=v2-1 diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample9_RecognizeBusinessCards.md b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample9_RecognizeBusinessCards.md index 8662f2132109..9ca710019797 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample9_RecognizeBusinessCards.md +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample9_RecognizeBusinessCards.md @@ -294,8 +294,8 @@ foreach (RecognizedForm businessCard in businessCards) To see the full example source files, see: -* [Recognize business cards from URI](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample12_RecognizeBusinessCardsFromUri.cs) -* [Recognize business cards from file](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample12_RecognizeBusinessCardsFromFile.cs) +* [Recognize business cards from URI](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample12_RecognizeBusinessCardsFromUri.cs) +* [Recognize business cards from file](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample12_RecognizeBusinessCardsFromFile.cs) -[README]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer#getting-started -[strongly_typing_a_recognized_form]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample4_StronglyTypingARecognizedForm.md \ No newline at end of file +[README]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer#getting-started +[strongly_typing_a_recognized_form]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample4_StronglyTypingARecognizedForm.md \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample_MockClient.md b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample_MockClient.md index 43dca9a4af7d..96eb4400a698 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample_MockClient.md +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/samples/Sample_MockClient.md @@ -83,5 +83,5 @@ Assert.IsTrue(result); ``` [moq]: https://github.com/Moq/moq4/ -[moq_samples]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample_MockClient.cs -[lros]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/formrecognizer/Azure.AI.FormRecognizer#long-running-operations +[moq_samples]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/samples/Sample_MockClient.cs +[lros]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/formrecognizer/Azure.AI.FormRecognizer#long-running-operations diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/FormRecognizerClient/RecognizeCustomFormsLiveTests.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/FormRecognizerClient/RecognizeCustomFormsLiveTests.cs index 66c28dd94277..a3d1ce24b823 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/FormRecognizerClient/RecognizeCustomFormsLiveTests.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/FormRecognizerClient/RecognizeCustomFormsLiveTests.cs @@ -589,7 +589,7 @@ public async Task StartRecognizeCustomFormsThrowsForDamagedFile(bool useTraining /// Recognizer cognitive service and handle returned errors. /// [RecordedTest] - [TestCase(true, Ignore = "https://github.com/Azure/azure-sdk-for-net/issues/20961")] + [TestCase(true)] [TestCase(false)] public async Task StartRecognizeCustomFormsFromUriThrowsForNonExistingContent(bool useTrainingLabels) { @@ -598,13 +598,9 @@ public async Task StartRecognizeCustomFormsFromUriThrowsForNonExistingContent(bo await using var trainedModel = await CreateDisposableTrainedModelAsync(useTrainingLabels); - var operation = await client.StartRecognizeCustomFormsFromUriAsync(trainedModel.ModelId, invalidUri); - - RequestFailedException ex = Assert.ThrowsAsync(async () => await operation.WaitForCompletionAsync()); + RequestFailedException ex = Assert.ThrowsAsync(async () => await client.StartRecognizeCustomFormsFromUriAsync(trainedModel.ModelId, invalidUri)); - Assert.AreEqual("2003", ex.ErrorCode); - Assert.True(operation.HasCompleted); - Assert.False(operation.HasValue); + Assert.AreEqual("2001", ex.ErrorCode); } [RecordedTest] diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/FormTrainingClient/FormTrainingClientLiveTests.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/FormTrainingClient/FormTrainingClientLiveTests.cs index 7116b5af0004..e28c0266c6f3 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/FormTrainingClient/FormTrainingClientLiveTests.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/FormTrainingClient/FormTrainingClientLiveTests.cs @@ -296,18 +296,14 @@ public async Task StartTrainingWithNoLabelsModelName() } [RecordedTest] - public async Task StartTrainingError() + public void StartTrainingError() { var client = CreateFormTrainingClient(); var containerUrl = new Uri("https://someUrl"); - TrainingOperation operation = await client.StartTrainingAsync(containerUrl, useTrainingLabels: false); - RequestFailedException ex = Assert.ThrowsAsync(async () => await operation.WaitForCompletionAsync()); - Assert.AreEqual("2001", ex.ErrorCode); - - Assert.False(operation.HasValue); - Assert.Throws(() => operation.Value.GetType()); + RequestFailedException ex = Assert.ThrowsAsync(async () => await client.StartTrainingAsync(containerUrl, useTrainingLabels: false)); + Assert.AreEqual("2011", ex.ErrorCode); } [RecordedTest] diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormTrainingClientLiveTests/StartTrainingError.json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormTrainingClientLiveTests/StartTrainingError.json index c2f76ada3904..77330030cf5a 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormTrainingClientLiveTests/StartTrainingError.json +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormTrainingClientLiveTests/StartTrainingError.json @@ -8,8 +8,8 @@ "Content-Length": "43", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-b7977a38c6e5054bb40b0fcd52bdc0e0-f6e8de1da8e0744b-00", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-f331884437c21e41b34c001306f55b84-b542609ff0713e46-00", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "8f9ae89208c5443b9f6e2654f1014628", "x-ms-return-client-request-id": "true" }, @@ -17,88 +17,21 @@ "source": "Sanitized", "useLabelFile": false }, - "StatusCode": 201, + "StatusCode": 400, "ResponseHeaders": { - "apim-request-id": "85b7a570-a96f-4bdb-ac83-09406f469466", - "Content-Length": "0", - "Date": "Mon, 10 May 2021 18:30:23 GMT", - "Location": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/b37b9612-829e-415c-8942-263881c1c92f", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "78" - }, - "ResponseBody": [] - }, - { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/b37b9612-829e-415c-8942-263881c1c92f?includeKeys=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "7c4755da5a276c365bff5b82043733db", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "e5184cca-5de7-433e-8f6d-fd7b5862461a", - "Content-Length": "170", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 18:30:23 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "22" - }, - "ResponseBody": { - "modelInfo": { - "modelId": "b37b9612-829e-415c-8942-263881c1c92f", - "status": "creating", - "createdDateTime": "2021-05-10T18:30:23Z", - "lastUpdatedDateTime": "2021-05-10T18:30:23Z" - } - } - }, - { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/b37b9612-829e-415c-8942-263881c1c92f?includeKeys=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "fdbffb4cd99ce866e4f9480048fe2364", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "451ac623-4579-4508-83ff-c3c4ffffe0d4", - "Content-Length": "284", + "apim-request-id": "8fe5c195-08cf-47fc-b8e6-ae8f59b564c2", + "Content-Length": "82", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 18:30:24 GMT", - "ms-azure-ai-errorcode": "2001", + "Date": "Tue, 22 Jun 2021 21:43:27 GMT", + "ms-azure-ai-errorcode": "UserResourceNotAvailable", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "21" + "x-envoy-upstream-service-time": "2310" }, "ResponseBody": { - "modelInfo": { - "modelId": "b37b9612-829e-415c-8942-263881c1c92f", - "status": "invalid", - "createdDateTime": "2021-05-10T18:30:23Z", - "lastUpdatedDateTime": "2021-05-10T18:30:23Z" - }, - "keys": { - "clusters": {} - }, - "trainResult": { - "trainingDocuments": [], - "errors": [ - { - "code": "2001", - "message": "Invalid path." - } - ] + "error": { + "code": "2011", + "message": "Could not access Azure blob storage account." } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormTrainingClientLiveTests/StartTrainingErrorAsync.json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormTrainingClientLiveTests/StartTrainingErrorAsync.json index 442b6c9fc766..c8d7ec5e522b 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormTrainingClientLiveTests/StartTrainingErrorAsync.json +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormTrainingClientLiveTests/StartTrainingErrorAsync.json @@ -8,8 +8,8 @@ "Content-Length": "43", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-82e7770948f4744fb7e835bfb4727fdf-701aa28d548dfc4e-00", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-9587eb76e2a7cb4fa95f45746e7d9c79-4343ff71c70e6b4b-00", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "c64173451e2490779e31952f2e0db6a4", "x-ms-return-client-request-id": "true" }, @@ -17,88 +17,21 @@ "source": "Sanitized", "useLabelFile": false }, - "StatusCode": 201, + "StatusCode": 400, "ResponseHeaders": { - "apim-request-id": "ea59da65-b1e4-4d53-9a9a-d3f2254481b3", - "Content-Length": "0", - "Date": "Mon, 10 May 2021 18:36:51 GMT", - "Location": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/65156cc8-f739-45e6-b9fa-d29051c6fade", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "93" - }, - "ResponseBody": [] - }, - { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/65156cc8-f739-45e6-b9fa-d29051c6fade?includeKeys=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3bb4329cdfe69426f8e12d527267761c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "250d9901-8e7a-456e-bdae-ec86feaf74ed", - "Content-Length": "170", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 18:36:51 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "17" - }, - "ResponseBody": { - "modelInfo": { - "modelId": "65156cc8-f739-45e6-b9fa-d29051c6fade", - "status": "creating", - "createdDateTime": "2021-05-10T18:36:52Z", - "lastUpdatedDateTime": "2021-05-10T18:36:52Z" - } - } - }, - { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/65156cc8-f739-45e6-b9fa-d29051c6fade?includeKeys=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "e1f94413633b528136238c1a1a5f8ffd", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "7ede864e-57ba-4969-ae30-80706b4268c9", - "Content-Length": "284", + "apim-request-id": "d48c68d8-d562-449c-9a97-8a6f1591f597", + "Content-Length": "82", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 18:36:52 GMT", - "ms-azure-ai-errorcode": "2001", + "Date": "Tue, 22 Jun 2021 21:43:30 GMT", + "ms-azure-ai-errorcode": "UserResourceNotAvailable", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "20" + "x-envoy-upstream-service-time": "2188" }, "ResponseBody": { - "modelInfo": { - "modelId": "65156cc8-f739-45e6-b9fa-d29051c6fade", - "status": "invalid", - "createdDateTime": "2021-05-10T18:36:52Z", - "lastUpdatedDateTime": "2021-05-10T18:36:52Z" - }, - "keys": { - "clusters": {} - }, - "trainResult": { - "trainingDocuments": [], - "errors": [ - { - "code": "2001", - "message": "Invalid path." - } - ] + "error": { + "code": "2011", + "message": "Could not access Azure blob storage account." } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/RecognizeCustomFormsLiveTests/StartRecognizeCustomFormsFromUriThrowsForNonExistingContent(False).json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/RecognizeCustomFormsLiveTests/StartRecognizeCustomFormsFromUriThrowsForNonExistingContent(False).json index df6a65ff5808..90d09f3c0a81 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/RecognizeCustomFormsLiveTests/StartRecognizeCustomFormsFromUriThrowsForNonExistingContent(False).json +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/RecognizeCustomFormsLiveTests/StartRecognizeCustomFormsFromUriThrowsForNonExistingContent(False).json @@ -8,8 +8,8 @@ "Content-Length": "43", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-08492205f46a15409cff41c6e43c050f-98b88ef2db97cb49-00", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-63aebcaed7a3084ab441feb4d4682ba0-d67d9b8a7d6dda4c-00", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "6d18b00586fb7bc74fb85fb1e05c83da", "x-ms-return-client-request-id": "true" }, @@ -19,463 +19,403 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "a0b376fe-c11d-4a46-a5f8-358f2ceeaff6", + "apim-request-id": "16d3ccf9-bf57-47fb-b06c-5ef00d40a136", "Content-Length": "0", - "Date": "Mon, 10 May 2021 20:26:36 GMT", - "Location": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/16aa592f-3499-4e08-8d3a-b22289fda505", + "Date": "Tue, 22 Jun 2021 21:49:16 GMT", + "Location": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/0d8a0493-a67b-4901-8acf-792ccfe996fd", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "69" + "x-envoy-upstream-service-time": "473" }, "ResponseBody": [] }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/16aa592f-3499-4e08-8d3a-b22289fda505?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/0d8a0493-a67b-4901-8acf-792ccfe996fd?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "8e312b72bed9ab41c81ee53ba0bd285b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "90b995cd-1a4e-45a7-8448-ccb7d368d74a", + "apim-request-id": "88e359cb-215d-4a7c-8b9f-973227056f24", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:26:36 GMT", + "Date": "Tue, 22 Jun 2021 21:49:16 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "18" + "x-envoy-upstream-service-time": "25" }, "ResponseBody": { "modelInfo": { - "modelId": "16aa592f-3499-4e08-8d3a-b22289fda505", + "modelId": "0d8a0493-a67b-4901-8acf-792ccfe996fd", "status": "creating", - "createdDateTime": "2021-05-10T20:26:36Z", - "lastUpdatedDateTime": "2021-05-10T20:26:36Z" + "createdDateTime": "2021-06-22T21:49:16Z", + "lastUpdatedDateTime": "2021-06-22T21:49:16Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/16aa592f-3499-4e08-8d3a-b22289fda505?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/0d8a0493-a67b-4901-8acf-792ccfe996fd?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "55fef41bb2966a71fa41802e6943e7e9", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "1eabf0b9-c92b-42d9-a12d-10ee16c50d9a", + "apim-request-id": "fd0311f0-f338-478b-8910-caa7eda08c35", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:26:37 GMT", + "Date": "Tue, 22 Jun 2021 21:49:17 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "18" + "x-envoy-upstream-service-time": "21" }, "ResponseBody": { "modelInfo": { - "modelId": "16aa592f-3499-4e08-8d3a-b22289fda505", + "modelId": "0d8a0493-a67b-4901-8acf-792ccfe996fd", "status": "creating", - "createdDateTime": "2021-05-10T20:26:36Z", - "lastUpdatedDateTime": "2021-05-10T20:26:36Z" + "createdDateTime": "2021-06-22T21:49:16Z", + "lastUpdatedDateTime": "2021-06-22T21:49:16Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/16aa592f-3499-4e08-8d3a-b22289fda505?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/0d8a0493-a67b-4901-8acf-792ccfe996fd?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "afa5060f49b547f76e6da5dda18cda92", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "11c51d0b-990e-48e0-a8f3-2fb1fef0dacc", + "apim-request-id": "5e593df4-6e28-4f27-b2ad-875a56b12f74", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:26:38 GMT", + "Date": "Tue, 22 Jun 2021 21:49:19 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "16" + "x-envoy-upstream-service-time": "81" }, "ResponseBody": { "modelInfo": { - "modelId": "16aa592f-3499-4e08-8d3a-b22289fda505", + "modelId": "0d8a0493-a67b-4901-8acf-792ccfe996fd", "status": "creating", - "createdDateTime": "2021-05-10T20:26:36Z", - "lastUpdatedDateTime": "2021-05-10T20:26:36Z" + "createdDateTime": "2021-06-22T21:49:16Z", + "lastUpdatedDateTime": "2021-06-22T21:49:16Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/16aa592f-3499-4e08-8d3a-b22289fda505?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/0d8a0493-a67b-4901-8acf-792ccfe996fd?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "eb95038f2e5ec043bac793973d124185", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "17c79d0d-f876-49c4-a126-79c817db4242", + "apim-request-id": "03faf6f5-ddf6-426f-9120-2507384e4da2", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:26:39 GMT", + "Date": "Tue, 22 Jun 2021 21:49:20 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "17" + "x-envoy-upstream-service-time": "25" }, "ResponseBody": { "modelInfo": { - "modelId": "16aa592f-3499-4e08-8d3a-b22289fda505", + "modelId": "0d8a0493-a67b-4901-8acf-792ccfe996fd", "status": "creating", - "createdDateTime": "2021-05-10T20:26:36Z", - "lastUpdatedDateTime": "2021-05-10T20:26:36Z" + "createdDateTime": "2021-06-22T21:49:16Z", + "lastUpdatedDateTime": "2021-06-22T21:49:16Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/16aa592f-3499-4e08-8d3a-b22289fda505?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/0d8a0493-a67b-4901-8acf-792ccfe996fd?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "9a2bfc377818d2a5fcb6e6290c94c96e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "58e6c2f6-3ef0-4212-b3a9-be7a2218af8b", + "apim-request-id": "5e810ac2-dd75-467f-96e1-aa82fbdaf0c4", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:26:40 GMT", + "Date": "Tue, 22 Jun 2021 21:49:21 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "18" + "x-envoy-upstream-service-time": "28" }, "ResponseBody": { "modelInfo": { - "modelId": "16aa592f-3499-4e08-8d3a-b22289fda505", + "modelId": "0d8a0493-a67b-4901-8acf-792ccfe996fd", "status": "creating", - "createdDateTime": "2021-05-10T20:26:36Z", - "lastUpdatedDateTime": "2021-05-10T20:26:36Z" + "createdDateTime": "2021-06-22T21:49:16Z", + "lastUpdatedDateTime": "2021-06-22T21:49:16Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/16aa592f-3499-4e08-8d3a-b22289fda505?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/0d8a0493-a67b-4901-8acf-792ccfe996fd?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "659fee66fbade18ac2e4f5eeb660095c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "cda737ef-bb05-4171-b334-640a8587e248", + "apim-request-id": "76d94907-8103-488f-8d3e-ad3ab0fb58ec", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:26:41 GMT", + "Date": "Tue, 22 Jun 2021 21:49:22 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "15" + "x-envoy-upstream-service-time": "20" }, "ResponseBody": { "modelInfo": { - "modelId": "16aa592f-3499-4e08-8d3a-b22289fda505", + "modelId": "0d8a0493-a67b-4901-8acf-792ccfe996fd", "status": "creating", - "createdDateTime": "2021-05-10T20:26:36Z", - "lastUpdatedDateTime": "2021-05-10T20:26:36Z" + "createdDateTime": "2021-06-22T21:49:16Z", + "lastUpdatedDateTime": "2021-06-22T21:49:16Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/16aa592f-3499-4e08-8d3a-b22289fda505?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/0d8a0493-a67b-4901-8acf-792ccfe996fd?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "a4a61f2b406016795ec3efa7471ab325", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "a3b887b0-8c4a-425c-abde-8711c502595a", + "apim-request-id": "8459b399-76ac-4ffb-8286-28cba3d2a3c9", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:26:42 GMT", + "Date": "Tue, 22 Jun 2021 21:49:23 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "18" + "x-envoy-upstream-service-time": "26" }, "ResponseBody": { "modelInfo": { - "modelId": "16aa592f-3499-4e08-8d3a-b22289fda505", + "modelId": "0d8a0493-a67b-4901-8acf-792ccfe996fd", "status": "creating", - "createdDateTime": "2021-05-10T20:26:36Z", - "lastUpdatedDateTime": "2021-05-10T20:26:36Z" + "createdDateTime": "2021-06-22T21:49:16Z", + "lastUpdatedDateTime": "2021-06-22T21:49:16Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/16aa592f-3499-4e08-8d3a-b22289fda505?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/0d8a0493-a67b-4901-8acf-792ccfe996fd?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "4f3025fedc733bd7714ad83382b71b9b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "cc306d9c-8140-414c-868e-2dfb2ef27bcd", + "apim-request-id": "20158231-0b31-452e-a321-e40c42ced3d3", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:26:44 GMT", + "Date": "Tue, 22 Jun 2021 21:49:24 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "16" + "x-envoy-upstream-service-time": "25" }, "ResponseBody": { "modelInfo": { - "modelId": "16aa592f-3499-4e08-8d3a-b22289fda505", + "modelId": "0d8a0493-a67b-4901-8acf-792ccfe996fd", "status": "creating", - "createdDateTime": "2021-05-10T20:26:36Z", - "lastUpdatedDateTime": "2021-05-10T20:26:36Z" + "createdDateTime": "2021-06-22T21:49:16Z", + "lastUpdatedDateTime": "2021-06-22T21:49:16Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/16aa592f-3499-4e08-8d3a-b22289fda505?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/0d8a0493-a67b-4901-8acf-792ccfe996fd?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "ecfe8aad24ed260d748807e90be399a7", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "e16cab85-14d2-4330-92db-7155b81ee83c", + "apim-request-id": "53480b0f-995b-4bed-9d23-05289f3936d1", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:26:45 GMT", + "Date": "Tue, 22 Jun 2021 21:49:25 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "21" + "x-envoy-upstream-service-time": "29" }, "ResponseBody": { "modelInfo": { - "modelId": "16aa592f-3499-4e08-8d3a-b22289fda505", + "modelId": "0d8a0493-a67b-4901-8acf-792ccfe996fd", "status": "creating", - "createdDateTime": "2021-05-10T20:26:36Z", - "lastUpdatedDateTime": "2021-05-10T20:26:36Z" + "createdDateTime": "2021-06-22T21:49:16Z", + "lastUpdatedDateTime": "2021-06-22T21:49:16Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/16aa592f-3499-4e08-8d3a-b22289fda505?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/0d8a0493-a67b-4901-8acf-792ccfe996fd?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "91f0cf31ba2f4fe8486a3216674693a6", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "d533e2d1-07aa-407e-bcb9-dbfcc0e4e2f5", + "apim-request-id": "d15f49a1-d023-45a5-9b1c-2faabaa210c2", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:26:46 GMT", + "Date": "Tue, 22 Jun 2021 21:49:26 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "26" + "x-envoy-upstream-service-time": "27" }, "ResponseBody": { "modelInfo": { - "modelId": "16aa592f-3499-4e08-8d3a-b22289fda505", + "modelId": "0d8a0493-a67b-4901-8acf-792ccfe996fd", "status": "creating", - "createdDateTime": "2021-05-10T20:26:36Z", - "lastUpdatedDateTime": "2021-05-10T20:26:36Z" + "createdDateTime": "2021-06-22T21:49:16Z", + "lastUpdatedDateTime": "2021-06-22T21:49:16Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/16aa592f-3499-4e08-8d3a-b22289fda505?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/0d8a0493-a67b-4901-8acf-792ccfe996fd?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "bdf953a8c61cd938170adaead4ee2f8e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "b4fff9d3-8d89-4aa6-87d6-d7e25749a1ae", + "apim-request-id": "80cf95eb-56e4-4bbf-a517-9a7eeede37d4", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:26:47 GMT", + "Date": "Tue, 22 Jun 2021 21:49:27 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "25" + "x-envoy-upstream-service-time": "28" }, "ResponseBody": { "modelInfo": { - "modelId": "16aa592f-3499-4e08-8d3a-b22289fda505", + "modelId": "0d8a0493-a67b-4901-8acf-792ccfe996fd", "status": "creating", - "createdDateTime": "2021-05-10T20:26:36Z", - "lastUpdatedDateTime": "2021-05-10T20:26:36Z" + "createdDateTime": "2021-06-22T21:49:16Z", + "lastUpdatedDateTime": "2021-06-22T21:49:16Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/16aa592f-3499-4e08-8d3a-b22289fda505?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/0d8a0493-a67b-4901-8acf-792ccfe996fd?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "b30230b08ac7f36ca1aea483f2f7be2e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "0df88551-da65-4665-85c4-39cb69346923", + "apim-request-id": "ce2a2515-0713-4749-8063-3aad2a544ddf", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:26:48 GMT", + "Date": "Tue, 22 Jun 2021 21:49:28 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "16" + "x-envoy-upstream-service-time": "22" }, "ResponseBody": { "modelInfo": { - "modelId": "16aa592f-3499-4e08-8d3a-b22289fda505", + "modelId": "0d8a0493-a67b-4901-8acf-792ccfe996fd", "status": "creating", - "createdDateTime": "2021-05-10T20:26:36Z", - "lastUpdatedDateTime": "2021-05-10T20:26:36Z" + "createdDateTime": "2021-06-22T21:49:16Z", + "lastUpdatedDateTime": "2021-06-22T21:49:16Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/16aa592f-3499-4e08-8d3a-b22289fda505?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/0d8a0493-a67b-4901-8acf-792ccfe996fd?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "b84161f5dbe96a8b97167925dffe7b59", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "8889a53c-e4e1-4d4e-8a7d-c8baf6cd5985", - "Content-Length": "170", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:26:49 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "18" - }, - "ResponseBody": { - "modelInfo": { - "modelId": "16aa592f-3499-4e08-8d3a-b22289fda505", - "status": "creating", - "createdDateTime": "2021-05-10T20:26:36Z", - "lastUpdatedDateTime": "2021-05-10T20:26:36Z" - } - } - }, - { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/16aa592f-3499-4e08-8d3a-b22289fda505?includeKeys=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "3766a33ae0441ddfe7061c6d22b4e720", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "e7741da0-4dba-4ba1-83b3-f63da011860d", - "Content-Length": "170", + "apim-request-id": "d4752e6c-c718-472b-9b53-ca83b349d7d1", + "Content-Length": "912", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:26:50 GMT", + "Date": "Tue, 22 Jun 2021 21:49:29 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "20" - }, - "ResponseBody": { - "modelInfo": { - "modelId": "16aa592f-3499-4e08-8d3a-b22289fda505", - "status": "creating", - "createdDateTime": "2021-05-10T20:26:36Z", - "lastUpdatedDateTime": "2021-05-10T20:26:36Z" - } - } - }, - { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/16aa592f-3499-4e08-8d3a-b22289fda505?includeKeys=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "73f5ac4b77acd4a5a5981bb1104614a3", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "bd4c7ac5-7a9a-437e-8717-73a0c9298398", - "Content-Length": "939", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:26:52 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "18" + "x-envoy-upstream-service-time": "26" }, "ResponseBody": { "modelInfo": { - "modelId": "16aa592f-3499-4e08-8d3a-b22289fda505", + "modelId": "0d8a0493-a67b-4901-8acf-792ccfe996fd", "status": "ready", - "createdDateTime": "2021-05-10T20:26:36Z", - "lastUpdatedDateTime": "2021-05-10T20:26:51Z" + "createdDateTime": "2021-06-22T21:49:16Z", + "lastUpdatedDateTime": "2021-06-22T21:49:29Z" }, "keys": { "clusters": { @@ -487,7 +427,6 @@ "Dated As:", "Details", "Email:", - "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", @@ -545,120 +484,59 @@ } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/16aa592f-3499-4e08-8d3a-b22289fda505/analyze?includeTextDetails=false", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/0d8a0493-a67b-4901-8acf-792ccfe996fd/analyze?includeTextDetails=false", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Content-Length": "22", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-1a88aeca9286c848aa41c0b585fb48ca-9f5a3615be363b47-00", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "4e484b33879114e98124d1e2bf1d47e3", + "traceparent": "00-9166f42603b63d43a8e540acc74d74ed-7efd8bbf3144e64d-00", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "3766a33ae0441ddfe7061c6d22b4e720", "x-ms-return-client-request-id": "true" }, "RequestBody": { "source": "Sanitized" }, - "StatusCode": 202, + "StatusCode": 400, "ResponseHeaders": { - "apim-request-id": "86202b4f-ad25-4455-b310-91d59e6e0679", - "Content-Length": "0", - "Date": "Mon, 10 May 2021 20:26:52 GMT", - "Operation-Location": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/16aa592f-3499-4e08-8d3a-b22289fda505/analyzeresults/5937277d-a9e1-496f-be4c-b4fc9ba4d756", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "79" - }, - "ResponseBody": [] - }, - { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/16aa592f-3499-4e08-8d3a-b22289fda505/analyzeResults/5937277d-a9e1-496f-be4c-b4fc9ba4d756", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "32da592e0708c3adfd9191acc52e0ca1", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b5564ce7-ee68-4a98-957d-14a2177a1db3", - "Content-Length": "109", + "apim-request-id": "42af5814-3502-4750-b7a0-05b38d5fb731", + "Content-Length": "197", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:26:52 GMT", + "Date": "Tue, 22 Jun 2021 21:49:31 GMT", + "ms-azure-ai-errorcode": "UserResourceNotAvailable", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "24" + "x-envoy-upstream-service-time": "2130" }, "ResponseBody": { - "status": "notStarted", - "createdDateTime": "2021-05-10T20:26:52Z", - "lastUpdatedDateTime": "2021-05-10T20:26:52Z" - } - }, - { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/16aa592f-3499-4e08-8d3a-b22289fda505/analyzeResults/5937277d-a9e1-496f-be4c-b4fc9ba4d756", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "d73979f2996bc38ec2e1f188a6c31487", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1ff8a5b5-aa9a-4fc3-9593-a0554bf5816d", - "Content-Length": "284", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:26:53 GMT", - "ms-azure-ai-errorcode": "2003", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "28" - }, - "ResponseBody": { - "status": "failed", - "createdDateTime": "2021-05-10T20:26:52Z", - "lastUpdatedDateTime": "2021-05-10T20:26:53Z", - "analyzeResult": { - "version": null, - "readResults": null, - "pageResults": null, - "documentResults": null, - "errors": [ - { - "code": "2003", - "message": "Download failed. Please check your input URL." - } - ] + "error": { + "code": "2001", + "message": "Failed to download the image from the submitted URL. The URL may either be invalid or the server hosting the image is experiencing some technical difficulties." } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/16aa592f-3499-4e08-8d3a-b22289fda505", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/0d8a0493-a67b-4901-8acf-792ccfe996fd", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-dbd5434ca96c1c4e90fa6f5c8114b61c-6f8f6d153203684f-00", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "b7823750e16b2b9a9e8550fff53d4f53", + "traceparent": "00-2c9a9ef3f20496449ed83dd1d6a0dfb3-b8bdc768364b1643-00", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "73f5ac4b77acd4a5a5981bb1104614a3", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "875ca2b3-7dee-45ca-a786-a7b45c7945a7", + "apim-request-id": "be6c9afc-c08b-4bd8-97d2-309178c00195", "Content-Length": "0", - "Date": "Mon, 10 May 2021 20:26:53 GMT", + "Date": "Tue, 22 Jun 2021 21:49:32 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "65" + "x-envoy-upstream-service-time": "42" }, "ResponseBody": [] } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/RecognizeCustomFormsLiveTests/StartRecognizeCustomFormsFromUriThrowsForNonExistingContent(False)Async.json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/RecognizeCustomFormsLiveTests/StartRecognizeCustomFormsFromUriThrowsForNonExistingContent(False)Async.json index e5e33fd15343..55b81e3ff924 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/RecognizeCustomFormsLiveTests/StartRecognizeCustomFormsFromUriThrowsForNonExistingContent(False)Async.json +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/RecognizeCustomFormsLiveTests/StartRecognizeCustomFormsFromUriThrowsForNonExistingContent(False)Async.json @@ -8,8 +8,8 @@ "Content-Length": "43", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-796819a524e1dd449545b66ff2aaa3b5-a84b648e94ed4c4c-00", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-33d398d5d38d6744ab7d7198feeb49f3-92fb6f06fd3b994a-00", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "c4682048d9fb9dd24cc04b238066424b", "x-ms-return-client-request-id": "true" }, @@ -19,553 +19,433 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "cded00f5-8af2-4504-bfd0-7c0c08052888", + "apim-request-id": "c27f834d-49aa-4027-8532-949b651ceb16", "Content-Length": "0", - "Date": "Mon, 10 May 2021 20:35:48 GMT", - "Location": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/f5588b45-e6c5-49d5-bfe3-453f8333e93e", + "Date": "Tue, 22 Jun 2021 21:49:41 GMT", + "Location": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/ed0dce9f-dfc0-4601-8bdf-c9b60984c099", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "84" + "x-envoy-upstream-service-time": "498" }, "ResponseBody": [] }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/f5588b45-e6c5-49d5-bfe3-453f8333e93e?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/ed0dce9f-dfc0-4601-8bdf-c9b60984c099?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "bdd4c9d02b379373bd5a8845ce45ecc2", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "08661c13-36ff-4086-9967-340fabaa45eb", + "apim-request-id": "4ab00807-b3da-4f7b-8056-26c16c272562", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:35:48 GMT", + "Date": "Tue, 22 Jun 2021 21:49:41 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "20" + "x-envoy-upstream-service-time": "19" }, "ResponseBody": { "modelInfo": { - "modelId": "f5588b45-e6c5-49d5-bfe3-453f8333e93e", + "modelId": "ed0dce9f-dfc0-4601-8bdf-c9b60984c099", "status": "creating", - "createdDateTime": "2021-05-10T20:35:49Z", - "lastUpdatedDateTime": "2021-05-10T20:35:49Z" + "createdDateTime": "2021-06-22T21:49:41Z", + "lastUpdatedDateTime": "2021-06-22T21:49:41Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/f5588b45-e6c5-49d5-bfe3-453f8333e93e?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/ed0dce9f-dfc0-4601-8bdf-c9b60984c099?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "9b49aa08ee8244944976eb0d4e23ee84", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "5c54b20c-da6f-4b74-907a-230b890bc289", + "apim-request-id": "8af566fe-5f00-4b3d-9cf6-82b067e3f706", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:35:49 GMT", + "Date": "Tue, 22 Jun 2021 21:49:43 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "17" + "x-envoy-upstream-service-time": "27" }, "ResponseBody": { "modelInfo": { - "modelId": "f5588b45-e6c5-49d5-bfe3-453f8333e93e", + "modelId": "ed0dce9f-dfc0-4601-8bdf-c9b60984c099", "status": "creating", - "createdDateTime": "2021-05-10T20:35:49Z", - "lastUpdatedDateTime": "2021-05-10T20:35:49Z" + "createdDateTime": "2021-06-22T21:49:41Z", + "lastUpdatedDateTime": "2021-06-22T21:49:41Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/f5588b45-e6c5-49d5-bfe3-453f8333e93e?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/ed0dce9f-dfc0-4601-8bdf-c9b60984c099?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "c6ee4fa2523b1c9cadd406a0508dcf07", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "67ccf812-90c7-4334-a5c7-8d4b253b0e9a", + "apim-request-id": "28dd3fce-6aa0-4109-ba1f-e20901db906c", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:35:51 GMT", + "Date": "Tue, 22 Jun 2021 21:49:44 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "16" + "x-envoy-upstream-service-time": "23" }, "ResponseBody": { "modelInfo": { - "modelId": "f5588b45-e6c5-49d5-bfe3-453f8333e93e", + "modelId": "ed0dce9f-dfc0-4601-8bdf-c9b60984c099", "status": "creating", - "createdDateTime": "2021-05-10T20:35:49Z", - "lastUpdatedDateTime": "2021-05-10T20:35:49Z" + "createdDateTime": "2021-06-22T21:49:41Z", + "lastUpdatedDateTime": "2021-06-22T21:49:41Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/f5588b45-e6c5-49d5-bfe3-453f8333e93e?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/ed0dce9f-dfc0-4601-8bdf-c9b60984c099?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "d61b89d3a71de1c8358f74c04065459a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "91acf22f-29a1-473e-800b-58b7691fbc89", + "apim-request-id": "83415b4c-fc76-4399-b275-daef83a2e2e5", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:35:52 GMT", + "Date": "Tue, 22 Jun 2021 21:49:45 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "20" + "x-envoy-upstream-service-time": "23" }, "ResponseBody": { "modelInfo": { - "modelId": "f5588b45-e6c5-49d5-bfe3-453f8333e93e", + "modelId": "ed0dce9f-dfc0-4601-8bdf-c9b60984c099", "status": "creating", - "createdDateTime": "2021-05-10T20:35:49Z", - "lastUpdatedDateTime": "2021-05-10T20:35:49Z" + "createdDateTime": "2021-06-22T21:49:41Z", + "lastUpdatedDateTime": "2021-06-22T21:49:41Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/f5588b45-e6c5-49d5-bfe3-453f8333e93e?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/ed0dce9f-dfc0-4601-8bdf-c9b60984c099?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "7ea2036b2656b6860e2ceeade8f4f4bc", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "ce2be2ba-4acf-4017-b549-f87360d0c061", + "apim-request-id": "8c733084-b862-4048-b406-e2e94416bf4d", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:35:53 GMT", + "Date": "Tue, 22 Jun 2021 21:49:46 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "21" + "x-envoy-upstream-service-time": "20" }, "ResponseBody": { "modelInfo": { - "modelId": "f5588b45-e6c5-49d5-bfe3-453f8333e93e", + "modelId": "ed0dce9f-dfc0-4601-8bdf-c9b60984c099", "status": "creating", - "createdDateTime": "2021-05-10T20:35:49Z", - "lastUpdatedDateTime": "2021-05-10T20:35:49Z" + "createdDateTime": "2021-06-22T21:49:41Z", + "lastUpdatedDateTime": "2021-06-22T21:49:41Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/f5588b45-e6c5-49d5-bfe3-453f8333e93e?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/ed0dce9f-dfc0-4601-8bdf-c9b60984c099?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "c539e3a71808fb66860c91abdedbdc47", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "6b6ffa9d-a864-4c03-8768-a0490a41885d", + "apim-request-id": "5f7fee99-a7e7-4d6f-89a2-7f9e0e2efa5f", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:35:54 GMT", + "Date": "Tue, 22 Jun 2021 21:49:47 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "17" + "x-envoy-upstream-service-time": "24" }, "ResponseBody": { "modelInfo": { - "modelId": "f5588b45-e6c5-49d5-bfe3-453f8333e93e", + "modelId": "ed0dce9f-dfc0-4601-8bdf-c9b60984c099", "status": "creating", - "createdDateTime": "2021-05-10T20:35:49Z", - "lastUpdatedDateTime": "2021-05-10T20:35:49Z" + "createdDateTime": "2021-06-22T21:49:41Z", + "lastUpdatedDateTime": "2021-06-22T21:49:41Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/f5588b45-e6c5-49d5-bfe3-453f8333e93e?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/ed0dce9f-dfc0-4601-8bdf-c9b60984c099?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "4c346b8f50eaadb00264c7f1b81af940", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "fbb5a654-a0d7-4a75-adbc-849834cd0cee", + "apim-request-id": "b40c064c-f22f-4d44-a7d8-70d7bb31027e", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:35:55 GMT", + "Date": "Tue, 22 Jun 2021 21:49:48 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "22" + "x-envoy-upstream-service-time": "20" }, "ResponseBody": { "modelInfo": { - "modelId": "f5588b45-e6c5-49d5-bfe3-453f8333e93e", + "modelId": "ed0dce9f-dfc0-4601-8bdf-c9b60984c099", "status": "creating", - "createdDateTime": "2021-05-10T20:35:49Z", - "lastUpdatedDateTime": "2021-05-10T20:35:49Z" + "createdDateTime": "2021-06-22T21:49:41Z", + "lastUpdatedDateTime": "2021-06-22T21:49:41Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/f5588b45-e6c5-49d5-bfe3-453f8333e93e?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/ed0dce9f-dfc0-4601-8bdf-c9b60984c099?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "5c18b89b7f2c53929da7f84a95dbd832", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "e56da170-5585-46d8-8a36-9a6dc90c73b2", + "apim-request-id": "051664d3-3534-409c-b5c5-c2f0eb01f232", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:35:56 GMT", + "Date": "Tue, 22 Jun 2021 21:49:49 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "20" + "x-envoy-upstream-service-time": "21" }, "ResponseBody": { "modelInfo": { - "modelId": "f5588b45-e6c5-49d5-bfe3-453f8333e93e", + "modelId": "ed0dce9f-dfc0-4601-8bdf-c9b60984c099", "status": "creating", - "createdDateTime": "2021-05-10T20:35:49Z", - "lastUpdatedDateTime": "2021-05-10T20:35:49Z" + "createdDateTime": "2021-06-22T21:49:41Z", + "lastUpdatedDateTime": "2021-06-22T21:49:41Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/f5588b45-e6c5-49d5-bfe3-453f8333e93e?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/ed0dce9f-dfc0-4601-8bdf-c9b60984c099?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "7d1ea64fa7bf57d1338bc3a35075426b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "b161e609-e187-47f8-98ea-93c7ed44fe65", + "apim-request-id": "d2cfe561-a22c-4007-90ce-fc5157270243", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:35:57 GMT", + "Date": "Tue, 22 Jun 2021 21:49:50 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "19" + "x-envoy-upstream-service-time": "23" }, "ResponseBody": { "modelInfo": { - "modelId": "f5588b45-e6c5-49d5-bfe3-453f8333e93e", + "modelId": "ed0dce9f-dfc0-4601-8bdf-c9b60984c099", "status": "creating", - "createdDateTime": "2021-05-10T20:35:49Z", - "lastUpdatedDateTime": "2021-05-10T20:35:49Z" + "createdDateTime": "2021-06-22T21:49:41Z", + "lastUpdatedDateTime": "2021-06-22T21:49:41Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/f5588b45-e6c5-49d5-bfe3-453f8333e93e?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/ed0dce9f-dfc0-4601-8bdf-c9b60984c099?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "250f501380c20f1bd8e1af4358651826", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "b68b8ce6-6ae9-4b9f-819d-a8d87c0c13dd", + "apim-request-id": "c470a3cb-35b0-49b9-8ac1-37c8f9420ada", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:35:58 GMT", + "Date": "Tue, 22 Jun 2021 21:49:52 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "18" + "x-envoy-upstream-service-time": "15" }, "ResponseBody": { "modelInfo": { - "modelId": "f5588b45-e6c5-49d5-bfe3-453f8333e93e", + "modelId": "ed0dce9f-dfc0-4601-8bdf-c9b60984c099", "status": "creating", - "createdDateTime": "2021-05-10T20:35:49Z", - "lastUpdatedDateTime": "2021-05-10T20:35:49Z" + "createdDateTime": "2021-06-22T21:49:41Z", + "lastUpdatedDateTime": "2021-06-22T21:49:41Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/f5588b45-e6c5-49d5-bfe3-453f8333e93e?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/ed0dce9f-dfc0-4601-8bdf-c9b60984c099?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "12a2958c7cfcf481e6c128a0bcef0227", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "a9b05293-76ef-483a-9dfd-d35f703f686e", + "apim-request-id": "624d1116-808b-4dfa-99d3-68c6d821adff", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:35:59 GMT", + "Date": "Tue, 22 Jun 2021 21:49:53 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "18" + "x-envoy-upstream-service-time": "19" }, "ResponseBody": { "modelInfo": { - "modelId": "f5588b45-e6c5-49d5-bfe3-453f8333e93e", + "modelId": "ed0dce9f-dfc0-4601-8bdf-c9b60984c099", "status": "creating", - "createdDateTime": "2021-05-10T20:35:49Z", - "lastUpdatedDateTime": "2021-05-10T20:35:49Z" + "createdDateTime": "2021-06-22T21:49:41Z", + "lastUpdatedDateTime": "2021-06-22T21:49:41Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/f5588b45-e6c5-49d5-bfe3-453f8333e93e?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/ed0dce9f-dfc0-4601-8bdf-c9b60984c099?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "44378c64b2cccf6f8a0fa4def78efecd", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "e31ca75f-7f1d-46d3-b02a-3bd0602531eb", + "apim-request-id": "6fad0af9-e1c6-43ac-a34a-36127aec6876", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:36:00 GMT", + "Date": "Tue, 22 Jun 2021 21:49:54 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "18" + "x-envoy-upstream-service-time": "23" }, "ResponseBody": { "modelInfo": { - "modelId": "f5588b45-e6c5-49d5-bfe3-453f8333e93e", + "modelId": "ed0dce9f-dfc0-4601-8bdf-c9b60984c099", "status": "creating", - "createdDateTime": "2021-05-10T20:35:49Z", - "lastUpdatedDateTime": "2021-05-10T20:35:49Z" + "createdDateTime": "2021-06-22T21:49:41Z", + "lastUpdatedDateTime": "2021-06-22T21:49:41Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/f5588b45-e6c5-49d5-bfe3-453f8333e93e?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/ed0dce9f-dfc0-4601-8bdf-c9b60984c099?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "bb179c7330d3976fce1a3f01577b52e8", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "d9a85a82-38ce-4af4-9b94-9f08e519c14c", + "apim-request-id": "161e11f0-8fda-4c38-aa53-fc0aa7db56fe", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:36:01 GMT", + "Date": "Tue, 22 Jun 2021 21:49:55 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "21" + "x-envoy-upstream-service-time": "20" }, "ResponseBody": { "modelInfo": { - "modelId": "f5588b45-e6c5-49d5-bfe3-453f8333e93e", + "modelId": "ed0dce9f-dfc0-4601-8bdf-c9b60984c099", "status": "creating", - "createdDateTime": "2021-05-10T20:35:49Z", - "lastUpdatedDateTime": "2021-05-10T20:35:49Z" + "createdDateTime": "2021-06-22T21:49:41Z", + "lastUpdatedDateTime": "2021-06-22T21:49:41Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/f5588b45-e6c5-49d5-bfe3-453f8333e93e?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/ed0dce9f-dfc0-4601-8bdf-c9b60984c099?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "ccde88ded32ed95a25d387ecd7a3fc58", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "0c7e03eb-d19c-431d-b19c-ccfcd2c96bd0", - "Content-Length": "170", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:36:02 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "17" - }, - "ResponseBody": { - "modelInfo": { - "modelId": "f5588b45-e6c5-49d5-bfe3-453f8333e93e", - "status": "creating", - "createdDateTime": "2021-05-10T20:35:49Z", - "lastUpdatedDateTime": "2021-05-10T20:35:49Z" - } - } - }, - { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/f5588b45-e6c5-49d5-bfe3-453f8333e93e?includeKeys=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "1f2c5bc347d834541ca075b1736e770f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "8c38d07b-17e8-46ef-870d-09e6e0754620", - "Content-Length": "170", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:36:04 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "16" - }, - "ResponseBody": { - "modelInfo": { - "modelId": "f5588b45-e6c5-49d5-bfe3-453f8333e93e", - "status": "creating", - "createdDateTime": "2021-05-10T20:35:49Z", - "lastUpdatedDateTime": "2021-05-10T20:35:49Z" - } - } - }, - { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/f5588b45-e6c5-49d5-bfe3-453f8333e93e?includeKeys=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "6fffbbbc32b09f9e423d9500a982bf2b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "93751d22-d25b-408f-92b9-4a900dbafa31", - "Content-Length": "170", + "apim-request-id": "6b26308b-661a-4e83-bfc4-b37627f6041d", + "Content-Length": "912", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:36:06 GMT", + "Date": "Tue, 22 Jun 2021 21:49:56 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "19" + "x-envoy-upstream-service-time": "30" }, "ResponseBody": { "modelInfo": { - "modelId": "f5588b45-e6c5-49d5-bfe3-453f8333e93e", - "status": "creating", - "createdDateTime": "2021-05-10T20:35:49Z", - "lastUpdatedDateTime": "2021-05-10T20:35:49Z" - } - } - }, - { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/f5588b45-e6c5-49d5-bfe3-453f8333e93e?includeKeys=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "fc3de61e324f971033a9af8e5da866b7", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6e832135-01f8-4945-aa46-9931b45e517d", - "Content-Length": "170", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:36:07 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "16" - }, - "ResponseBody": { - "modelInfo": { - "modelId": "f5588b45-e6c5-49d5-bfe3-453f8333e93e", - "status": "creating", - "createdDateTime": "2021-05-10T20:35:49Z", - "lastUpdatedDateTime": "2021-05-10T20:35:49Z" - } - } - }, - { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/f5588b45-e6c5-49d5-bfe3-453f8333e93e?includeKeys=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "1b30775b8da490a8bc8cdd9bb1538b9a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "8b8d96df-6437-49c0-a078-fa8a00e00a24", - "Content-Length": "939", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:36:08 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "19" - }, - "ResponseBody": { - "modelInfo": { - "modelId": "f5588b45-e6c5-49d5-bfe3-453f8333e93e", + "modelId": "ed0dce9f-dfc0-4601-8bdf-c9b60984c099", "status": "ready", - "createdDateTime": "2021-05-10T20:35:49Z", - "lastUpdatedDateTime": "2021-05-10T20:36:07Z" + "createdDateTime": "2021-06-22T21:49:41Z", + "lastUpdatedDateTime": "2021-06-22T21:49:55Z" }, "keys": { "clusters": { @@ -577,7 +457,6 @@ "Dated As:", "Details", "Email:", - "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", @@ -635,120 +514,59 @@ } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/f5588b45-e6c5-49d5-bfe3-453f8333e93e/analyze?includeTextDetails=false", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/ed0dce9f-dfc0-4601-8bdf-c9b60984c099/analyze?includeTextDetails=false", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Content-Length": "22", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-a2d5f956c4ab2841ab356e17a81858a6-34a86b21ba3b3546-00", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "8c924ae07b3089c0ab673b0683104199", + "traceparent": "00-0db263d3fadf6744a6fed80b88d16a73-18bf72680f22b740-00", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "1f2c5bc347d834541ca075b1736e770f", "x-ms-return-client-request-id": "true" }, "RequestBody": { "source": "Sanitized" }, - "StatusCode": 202, + "StatusCode": 400, "ResponseHeaders": { - "apim-request-id": "5d5f4b5b-9fbd-4d88-9b11-f03609c7fd52", - "Content-Length": "0", - "Date": "Mon, 10 May 2021 20:36:08 GMT", - "Operation-Location": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/f5588b45-e6c5-49d5-bfe3-453f8333e93e/analyzeresults/1726ef6e-9a70-4d09-a340-e0e1ebd45ae8", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "89" - }, - "ResponseBody": [] - }, - { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/f5588b45-e6c5-49d5-bfe3-453f8333e93e/analyzeResults/1726ef6e-9a70-4d09-a340-e0e1ebd45ae8", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "31a4ddd6a35291873ead3fc25574e5df", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "946ec0a9-719c-4383-b72a-572159adbfbd", - "Content-Length": "109", + "apim-request-id": "a4977be3-8c4d-4472-915a-f5058403f93b", + "Content-Length": "197", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:36:08 GMT", + "Date": "Tue, 22 Jun 2021 21:49:58 GMT", + "ms-azure-ai-errorcode": "UserResourceNotAvailable", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "21" + "x-envoy-upstream-service-time": "2111" }, "ResponseBody": { - "status": "notStarted", - "createdDateTime": "2021-05-10T20:36:08Z", - "lastUpdatedDateTime": "2021-05-10T20:36:08Z" - } - }, - { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/f5588b45-e6c5-49d5-bfe3-453f8333e93e/analyzeResults/1726ef6e-9a70-4d09-a340-e0e1ebd45ae8", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "13ae141ed915df87b7a66f3c51a10dac", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "2ba6e9ab-644e-4abf-b9bc-c09638fa8c8e", - "Content-Length": "284", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 10 May 2021 20:36:09 GMT", - "ms-azure-ai-errorcode": "2003", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "23" - }, - "ResponseBody": { - "status": "failed", - "createdDateTime": "2021-05-10T20:36:08Z", - "lastUpdatedDateTime": "2021-05-10T20:36:09Z", - "analyzeResult": { - "version": null, - "readResults": null, - "pageResults": null, - "documentResults": null, - "errors": [ - { - "code": "2003", - "message": "Download failed. Please check your input URL." - } - ] + "error": { + "code": "2001", + "message": "Failed to download the image from the submitted URL. The URL may either be invalid or the server hosting the image is experiencing some technical difficulties." } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/f5588b45-e6c5-49d5-bfe3-453f8333e93e", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/ed0dce9f-dfc0-4601-8bdf-c9b60984c099", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-cefdc61bc654614296cf0bf1aa29e2ec-4683ed2d454d624d-00", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210510.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "d4c4434b5aaf3c47c3014e833cfe3336", + "traceparent": "00-06cb232ee244b04d9c1ea1dff3a663a1-0a81fa847dd2264d-00", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "6fffbbbc32b09f9e423d9500a982bf2b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "6c93210c-7ef8-439b-a77f-51788e2c35bb", + "apim-request-id": "523df6a6-2268-455f-bb98-fe361c7a7b6f", "Content-Length": "0", - "Date": "Mon, 10 May 2021 20:36:09 GMT", + "Date": "Tue, 22 Jun 2021 21:49:58 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "32" + "x-envoy-upstream-service-time": "27" }, "ResponseBody": [] } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/RecognizeCustomFormsLiveTests/StartRecognizeCustomFormsFromUriThrowsForNonExistingContent(True).json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/RecognizeCustomFormsLiveTests/StartRecognizeCustomFormsFromUriThrowsForNonExistingContent(True).json index 47f8f1cc27d6..10ea1ad4541d 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/RecognizeCustomFormsLiveTests/StartRecognizeCustomFormsFromUriThrowsForNonExistingContent(True).json +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/RecognizeCustomFormsLiveTests/StartRecognizeCustomFormsFromUriThrowsForNonExistingContent(True).json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.3/custom/models", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Content-Length": "42", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-cd13084800b4b24aa9167147dee980e3-71296413f147c543-00", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210331.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-8896ccb7f6d52c4bbc60f7077fe4448c-024b8ec4da96c54f-00", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "3225f516544b04b5cbd89664f321bf89", "x-ms-return-client-request-id": "true" }, @@ -19,166 +19,136 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "7b5aba36-2cf4-45df-9d42-7d601cc2ce3a", + "apim-request-id": "ee3c6bc7-5f52-476e-a07e-f96d84cdad28", "Content-Length": "0", - "Date": "Wed, 31 Mar 2021 17:57:24 GMT", - "Location": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.3/custom/models/faac67a9-d26b-4cf8-b05b-7441fbf00a6b", + "Date": "Tue, 22 Jun 2021 21:49:08 GMT", + "Location": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/462d3333-1827-4b76-87a1-7e74b90bd82c", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "114" + "x-envoy-upstream-service-time": "694" }, "ResponseBody": [] }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.3/custom/models/faac67a9-d26b-4cf8-b05b-7441fbf00a6b?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/462d3333-1827-4b76-87a1-7e74b90bd82c?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210331.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "4cb92333247ea597cfd7a66ed2ce4b06", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "a8bf740d-5f9e-4359-8a89-82c611385329", + "apim-request-id": "a6709f6e-3317-41d1-aabd-48a0ca802b80", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 31 Mar 2021 17:57:24 GMT", + "Date": "Tue, 22 Jun 2021 21:49:08 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "23" + "x-envoy-upstream-service-time": "26" }, "ResponseBody": { "modelInfo": { - "modelId": "faac67a9-d26b-4cf8-b05b-7441fbf00a6b", + "modelId": "462d3333-1827-4b76-87a1-7e74b90bd82c", "status": "creating", - "createdDateTime": "2021-03-31T17:57:25Z", - "lastUpdatedDateTime": "2021-03-31T17:57:25Z" + "createdDateTime": "2021-06-22T21:49:08Z", + "lastUpdatedDateTime": "2021-06-22T21:49:08Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.3/custom/models/faac67a9-d26b-4cf8-b05b-7441fbf00a6b?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/462d3333-1827-4b76-87a1-7e74b90bd82c?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210331.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "c9c7080c91aafe563713bf4580776a6b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "1548c1fe-0bca-4ea9-8b9c-8b691ebcc03a", + "apim-request-id": "a7933158-3774-451b-93c6-800b27b07f23", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 31 Mar 2021 17:57:25 GMT", + "Date": "Tue, 22 Jun 2021 21:49:09 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "18" + "x-envoy-upstream-service-time": "24" }, "ResponseBody": { "modelInfo": { - "modelId": "faac67a9-d26b-4cf8-b05b-7441fbf00a6b", + "modelId": "462d3333-1827-4b76-87a1-7e74b90bd82c", "status": "creating", - "createdDateTime": "2021-03-31T17:57:25Z", - "lastUpdatedDateTime": "2021-03-31T17:57:25Z" + "createdDateTime": "2021-06-22T21:49:08Z", + "lastUpdatedDateTime": "2021-06-22T21:49:08Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.3/custom/models/faac67a9-d26b-4cf8-b05b-7441fbf00a6b?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/462d3333-1827-4b76-87a1-7e74b90bd82c?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210331.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "2c5ba19a2de8f2e25d7f6374ad4731fd", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "c8787760-1686-4d9d-b802-d7d0c49a00f5", + "apim-request-id": "fcd0ab2b-188a-4bab-929f-daf3ab7267d2", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 31 Mar 2021 17:57:27 GMT", + "Date": "Tue, 22 Jun 2021 21:49:11 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "19" + "x-envoy-upstream-service-time": "25" }, "ResponseBody": { "modelInfo": { - "modelId": "faac67a9-d26b-4cf8-b05b-7441fbf00a6b", + "modelId": "462d3333-1827-4b76-87a1-7e74b90bd82c", "status": "creating", - "createdDateTime": "2021-03-31T17:57:25Z", - "lastUpdatedDateTime": "2021-03-31T17:57:25Z" + "createdDateTime": "2021-06-22T21:49:08Z", + "lastUpdatedDateTime": "2021-06-22T21:49:08Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.3/custom/models/faac67a9-d26b-4cf8-b05b-7441fbf00a6b?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/462d3333-1827-4b76-87a1-7e74b90bd82c?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210331.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "eb58908df65aa2decdbb146a64522457", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "9e906ade-9435-43b4-9108-405e3eca5d7d", - "Content-Length": "170", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 31 Mar 2021 17:57:28 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "18" - }, - "ResponseBody": { - "modelInfo": { - "modelId": "faac67a9-d26b-4cf8-b05b-7441fbf00a6b", - "status": "creating", - "createdDateTime": "2021-03-31T17:57:25Z", - "lastUpdatedDateTime": "2021-03-31T17:57:25Z" - } - } - }, - { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.3/custom/models/faac67a9-d26b-4cf8-b05b-7441fbf00a6b?includeKeys=true", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210331.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "31d43b6d1e72df1d26d46b2a2de150f0", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1cbf1b1a-593b-4122-8ecc-722c6fd9e7cd", + "apim-request-id": "20050c68-7933-4a5b-b929-cc2929859c4c", "Content-Length": "1242", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 31 Mar 2021 17:57:29 GMT", + "Date": "Tue, 22 Jun 2021 21:49:12 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "19" + "x-envoy-upstream-service-time": "27" }, "ResponseBody": { "modelInfo": { - "modelId": "faac67a9-d26b-4cf8-b05b-7441fbf00a6b", + "modelId": "462d3333-1827-4b76-87a1-7e74b90bd82c", "attributes": { "isComposed": false }, "status": "ready", - "createdDateTime": "2021-03-31T17:57:25Z", - "lastUpdatedDateTime": "2021-03-31T17:57:29Z" + "createdDateTime": "2021-06-22T21:49:08Z", + "lastUpdatedDateTime": "2021-06-22T21:49:12Z" }, "trainResult": { "averageModelAccuracy": 0.96, @@ -276,144 +246,59 @@ } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.3/custom/models/faac67a9-d26b-4cf8-b05b-7441fbf00a6b/analyze?includeTextDetails=false", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/462d3333-1827-4b76-87a1-7e74b90bd82c/analyze?includeTextDetails=false", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Content-Length": "22", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-1e8de26bb30fef4f8adcb7298fbc20f0-6f65dbc7ffbbec4e-00", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210331.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "f0b8c2e27e1fa410c2b85f2d18778e0b", + "traceparent": "00-b9bfa2b83df55646b3f7be4a90e3d09f-6ec738708f96c04a-00", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "31d43b6d1e72df1d26d46b2a2de150f0", "x-ms-return-client-request-id": "true" }, "RequestBody": { "source": "Sanitized" }, - "StatusCode": 202, + "StatusCode": 400, "ResponseHeaders": { - "apim-request-id": "49b5c6ba-e163-4f03-9640-6c275306ef91", - "Content-Length": "0", - "Date": "Wed, 31 Mar 2021 17:57:29 GMT", - "Operation-Location": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.3/custom/models/faac67a9-d26b-4cf8-b05b-7441fbf00a6b/analyzeresults/2b1de263-b0cc-419e-964d-340850644b2a", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "83" - }, - "ResponseBody": [] - }, - { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.3/custom/models/faac67a9-d26b-4cf8-b05b-7441fbf00a6b/analyzeResults/2b1de263-b0cc-419e-964d-340850644b2a", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210331.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "71070c5b00736e8a7278c5858ab374eb", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "a774131e-448f-4d47-aa66-3e4f4c0258f8", - "Content-Length": "109", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 31 Mar 2021 17:57:30 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "23" - }, - "ResponseBody": { - "status": "notStarted", - "createdDateTime": "2021-03-31T17:57:30Z", - "lastUpdatedDateTime": "2021-03-31T17:57:30Z" - } - }, - { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.3/custom/models/faac67a9-d26b-4cf8-b05b-7441fbf00a6b/analyzeResults/2b1de263-b0cc-419e-964d-340850644b2a", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210331.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "a288246a339aee382a306ebabeefc6ae", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5bbfe9df-bab6-4024-9805-51dffc95ee8b", - "Content-Length": "109", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 31 Mar 2021 17:57:31 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "21" - }, - "ResponseBody": { - "status": "notStarted", - "createdDateTime": "2021-03-31T17:57:30Z", - "lastUpdatedDateTime": "2021-03-31T17:57:30Z" - } - }, - { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.3/custom/models/faac67a9-d26b-4cf8-b05b-7441fbf00a6b/analyzeResults/2b1de263-b0cc-419e-964d-340850644b2a", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210331.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "21cf6046dfdae17c38497ea6b88a190f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "8e080634-27a7-445e-9b05-560fa28566e9", - "Content-Length": "221", + "apim-request-id": "cf87f2a2-85ca-4c29-9f45-eb485a5985c3", + "Content-Length": "197", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 31 Mar 2021 17:57:32 GMT", - "ms-azure-ai-errorcode": "2003", + "Date": "Tue, 22 Jun 2021 21:49:14 GMT", + "ms-azure-ai-errorcode": "UserResourceNotAvailable", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "22" + "x-envoy-upstream-service-time": "2421" }, "ResponseBody": { - "status": "failed", - "createdDateTime": "2021-03-31T17:57:30Z", - "lastUpdatedDateTime": "2021-03-31T17:57:31Z", - "analyzeResult": { - "version": "2.1.0", - "errors": [ - { - "code": "2003", - "message": "Failed to download image from input URL." - } - ] + "error": { + "code": "2001", + "message": "Failed to download the image from the submitted URL. The URL may either be invalid or the server hosting the image is experiencing some technical difficulties." } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.3/custom/models/faac67a9-d26b-4cf8-b05b-7441fbf00a6b", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/462d3333-1827-4b76-87a1-7e74b90bd82c", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-3181cd41723533429549793300dac28f-a63c3c848c533e47-00", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210331.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "f4c37444ebef2771d319464392d0af82", + "traceparent": "00-d12f6d51e85d254986459b34e5acb3b4-fc8415e90779d847-00", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "f0b8c2e27e1fa410c2b85f2d18778e0b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "aa38e8df-4b58-4f9b-8e7f-7bc7f14989cb", + "apim-request-id": "3526fe7b-a0ed-4115-9b1b-33e3cb96a153", "Content-Length": "0", - "Date": "Wed, 31 Mar 2021 17:57:32 GMT", + "Date": "Tue, 22 Jun 2021 21:49:15 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "34" + "x-envoy-upstream-service-time": "40" }, "ResponseBody": [] } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/RecognizeCustomFormsLiveTests/StartRecognizeCustomFormsFromUriThrowsForNonExistingContent(True)Async.json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/RecognizeCustomFormsLiveTests/StartRecognizeCustomFormsFromUriThrowsForNonExistingContent(True)Async.json index 307382a42b5a..75af3a6a0e2f 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/RecognizeCustomFormsLiveTests/StartRecognizeCustomFormsFromUriThrowsForNonExistingContent(True)Async.json +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/RecognizeCustomFormsLiveTests/StartRecognizeCustomFormsFromUriThrowsForNonExistingContent(True)Async.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.3/custom/models", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Content-Length": "42", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-44d83be05d73764ebddef02da50a96c5-1579ccbdb361a345-00", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210331.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "traceparent": "00-b0a997960ab6f045a6051db1a87e2d72-28ac42a71d7e7949-00", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "7a03c769d88ff4d8168cdc6afdc82414", "x-ms-return-client-request-id": "true" }, @@ -19,136 +19,166 @@ }, "StatusCode": 201, "ResponseHeaders": { - "apim-request-id": "d6fac986-4f37-4047-aa25-9e9d56dd8eb7", + "apim-request-id": "3381dfb2-2f97-4c5f-8f5d-e9356a07944a", "Content-Length": "0", - "Date": "Wed, 31 Mar 2021 17:57:53 GMT", - "Location": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.3/custom/models/3a860994-c2e8-4fcb-aaa8-14e6da5f1825", + "Date": "Tue, 22 Jun 2021 21:49:33 GMT", + "Location": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/8467850b-22cf-4470-bb3e-682068a02f92", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "55" + "x-envoy-upstream-service-time": "571" }, "ResponseBody": [] }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.3/custom/models/3a860994-c2e8-4fcb-aaa8-14e6da5f1825?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/8467850b-22cf-4470-bb3e-682068a02f92?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210331.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "97fca1aee26fc2fa652a1111a70c5148", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "d9500c04-f6e1-4b07-bdc3-88b21520f6a1", + "apim-request-id": "0f81c52b-3362-40e1-a48d-d252775bd402", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 31 Mar 2021 17:57:53 GMT", + "Date": "Tue, 22 Jun 2021 21:49:33 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "18" + "x-envoy-upstream-service-time": "22" }, "ResponseBody": { "modelInfo": { - "modelId": "3a860994-c2e8-4fcb-aaa8-14e6da5f1825", + "modelId": "8467850b-22cf-4470-bb3e-682068a02f92", "status": "creating", - "createdDateTime": "2021-03-31T17:57:53Z", - "lastUpdatedDateTime": "2021-03-31T17:57:53Z" + "createdDateTime": "2021-06-22T21:49:33Z", + "lastUpdatedDateTime": "2021-06-22T21:49:33Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.3/custom/models/3a860994-c2e8-4fcb-aaa8-14e6da5f1825?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/8467850b-22cf-4470-bb3e-682068a02f92?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210331.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "7206322408c87e53524290541338bd93", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "58d59b77-43dd-40ca-bc1c-e12e04106f18", + "apim-request-id": "f930d570-aa60-4fc1-8304-2ec0e9b51f56", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 31 Mar 2021 17:57:54 GMT", + "Date": "Tue, 22 Jun 2021 21:49:35 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "20" + "x-envoy-upstream-service-time": "28" }, "ResponseBody": { "modelInfo": { - "modelId": "3a860994-c2e8-4fcb-aaa8-14e6da5f1825", + "modelId": "8467850b-22cf-4470-bb3e-682068a02f92", "status": "creating", - "createdDateTime": "2021-03-31T17:57:53Z", - "lastUpdatedDateTime": "2021-03-31T17:57:53Z" + "createdDateTime": "2021-06-22T21:49:33Z", + "lastUpdatedDateTime": "2021-06-22T21:49:33Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.3/custom/models/3a860994-c2e8-4fcb-aaa8-14e6da5f1825?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/8467850b-22cf-4470-bb3e-682068a02f92?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210331.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "5992ebd0536386cccd401464c7c74d0a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "232b07ef-a7af-4209-b86e-a05c3f8af81d", + "apim-request-id": "d72f36f6-7002-499f-820a-2037f5ff4997", "Content-Length": "170", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 31 Mar 2021 17:57:55 GMT", + "Date": "Tue, 22 Jun 2021 21:49:36 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "18" + "x-envoy-upstream-service-time": "28" }, "ResponseBody": { "modelInfo": { - "modelId": "3a860994-c2e8-4fcb-aaa8-14e6da5f1825", + "modelId": "8467850b-22cf-4470-bb3e-682068a02f92", "status": "creating", - "createdDateTime": "2021-03-31T17:57:53Z", - "lastUpdatedDateTime": "2021-03-31T17:57:53Z" + "createdDateTime": "2021-06-22T21:49:33Z", + "lastUpdatedDateTime": "2021-06-22T21:49:33Z" } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.3/custom/models/3a860994-c2e8-4fcb-aaa8-14e6da5f1825?includeKeys=true", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/8467850b-22cf-4470-bb3e-682068a02f92?includeKeys=true", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210331.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", "x-ms-client-request-id": "ca46943ab1c1a64c4d7e452d52a5ae2d", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "56dc1440-1c41-45ed-8a43-42d55cdbdd39", + "apim-request-id": "87a8365c-916e-49d7-958d-19623bcbe0e4", + "Content-Length": "170", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 22 Jun 2021 21:49:37 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "25" + }, + "ResponseBody": { + "modelInfo": { + "modelId": "8467850b-22cf-4470-bb3e-682068a02f92", + "status": "creating", + "createdDateTime": "2021-06-22T21:49:33Z", + "lastUpdatedDateTime": "2021-06-22T21:49:33Z" + } + } + }, + { + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/8467850b-22cf-4470-bb3e-682068a02f92?includeKeys=true", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "bc407d6df879d0e46580a587f3efb68b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "7e63b798-442f-489d-abce-1b43ebd2b58f", "Content-Length": "1242", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 31 Mar 2021 17:57:56 GMT", + "Date": "Tue, 22 Jun 2021 21:49:38 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "221" + "x-envoy-upstream-service-time": "24" }, "ResponseBody": { "modelInfo": { - "modelId": "3a860994-c2e8-4fcb-aaa8-14e6da5f1825", + "modelId": "8467850b-22cf-4470-bb3e-682068a02f92", "attributes": { "isComposed": false }, "status": "ready", - "createdDateTime": "2021-03-31T17:57:53Z", - "lastUpdatedDateTime": "2021-03-31T17:57:56Z" + "createdDateTime": "2021-06-22T21:49:33Z", + "lastUpdatedDateTime": "2021-06-22T21:49:37Z" }, "trainResult": { "averageModelAccuracy": 0.96, @@ -246,117 +276,59 @@ } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.3/custom/models/3a860994-c2e8-4fcb-aaa8-14e6da5f1825/analyze?includeTextDetails=false", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/8467850b-22cf-4470-bb3e-682068a02f92/analyze?includeTextDetails=false", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Content-Length": "22", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-d353ecc50ed30a49b7de3d852d93975e-4a56a324b02dc541-00", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210331.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "bc407d6df879d0e46580a587f3efb68b", + "traceparent": "00-8d0944977e2ff94db5b00c3195f9a144-9d27d6dc4203c846-00", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "7f1a85f4f3f21ed29fec0be50e9f3428", "x-ms-return-client-request-id": "true" }, "RequestBody": { "source": "Sanitized" }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "aedf8fc2-de2d-465c-8789-23ae2273bd8d", - "Content-Length": "0", - "Date": "Wed, 31 Mar 2021 17:57:57 GMT", - "Operation-Location": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.3/custom/models/3a860994-c2e8-4fcb-aaa8-14e6da5f1825/analyzeresults/29c3d616-9ba5-44ce-b4df-e2faeabe906e", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "64" - }, - "ResponseBody": [] - }, - { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.3/custom/models/3a860994-c2e8-4fcb-aaa8-14e6da5f1825/analyzeResults/29c3d616-9ba5-44ce-b4df-e2faeabe906e", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210331.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "7f1a85f4f3f21ed29fec0be50e9f3428", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, + "StatusCode": 400, "ResponseHeaders": { - "apim-request-id": "42513b49-d0de-49e4-a09e-23efd4d29c44", - "Content-Length": "109", + "apim-request-id": "1b022300-603e-468b-a72b-8994a407f3c7", + "Content-Length": "197", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 31 Mar 2021 17:57:57 GMT", + "Date": "Tue, 22 Jun 2021 21:49:40 GMT", + "ms-azure-ai-errorcode": "UserResourceNotAvailable", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "21" + "x-envoy-upstream-service-time": "2236" }, "ResponseBody": { - "status": "notStarted", - "createdDateTime": "2021-03-31T17:57:57Z", - "lastUpdatedDateTime": "2021-03-31T17:57:57Z" - } - }, - { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.3/custom/models/3a860994-c2e8-4fcb-aaa8-14e6da5f1825/analyzeResults/29c3d616-9ba5-44ce-b4df-e2faeabe906e", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210331.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "4af7e79190864191af7564410cc4b25e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d0e41042-5290-4db1-b093-2f9dfdf1c8de", - "Content-Length": "221", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 31 Mar 2021 17:57:58 GMT", - "ms-azure-ai-errorcode": "2003", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "27" - }, - "ResponseBody": { - "status": "failed", - "createdDateTime": "2021-03-31T17:57:57Z", - "lastUpdatedDateTime": "2021-03-31T17:57:58Z", - "analyzeResult": { - "version": "2.1.0", - "errors": [ - { - "code": "2003", - "message": "Failed to download image from input URL." - } - ] + "error": { + "code": "2001", + "message": "Failed to download the image from the submitted URL. The URL may either be invalid or the server hosting the image is experiencing some technical difficulties." } } }, { - "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.3/custom/models/3a860994-c2e8-4fcb-aaa8-14e6da5f1825", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1/custom/models/8467850b-22cf-4470-bb3e-682068a02f92", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-f935f200370e294a9764a81822bcdd91-31804894e176fd45-00", - "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210331.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19042 )", - "x-ms-client-request-id": "cc38b9c72f8a793bab211d8cecffc1c6", + "traceparent": "00-da7fbdb4d0cbb34b91144d31b7385aaf-d3e4850809060f42-00", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.2.0-alpha.20210622.1 (.NET Framework 4.8.4300.0; Microsoft Windows 10.0.19043 )", + "x-ms-client-request-id": "4af7e79190864191af7564410cc4b25e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { - "apim-request-id": "4a9d94ce-9999-48cc-b178-a6e5858729a7", + "apim-request-id": "81df5d28-7eda-4f97-92ba-2bfa76eadbd0", "Content-Length": "0", - "Date": "Wed, 31 Mar 2021 17:57:58 GMT", + "Date": "Tue, 22 Jun 2021 21:49:40 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "x-content-type-options": "nosniff", - "x-envoy-upstream-service-time": "87" + "x-envoy-upstream-service-time": "42" }, "ResponseBody": [] } diff --git a/sdk/formrecognizer/ci.yml b/sdk/formrecognizer/ci.yml index a1fedfe52805..e806f5d7daa4 100644 --- a/sdk/formrecognizer/ci.yml +++ b/sdk/formrecognizer/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/graphrbac/ci.yml b/sdk/graphrbac/ci.yml index 43dd80733f6e..c0cb0f530d49 100644 --- a/sdk/graphrbac/ci.yml +++ b/sdk/graphrbac/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/hdinsight/ci.yml b/sdk/hdinsight/ci.yml index 8dd783dce136..e2de3154a02a 100644 --- a/sdk/hdinsight/ci.yml +++ b/sdk/hdinsight/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/identity/Azure.Identity/CHANGELOG.md b/sdk/identity/Azure.Identity/CHANGELOG.md index dc12f36281aa..87425fb25bdc 100644 --- a/sdk/identity/Azure.Identity/CHANGELOG.md +++ b/sdk/identity/Azure.Identity/CHANGELOG.md @@ -58,7 +58,7 @@ Thank you to our developer community members who helped to make Azure Identity b ### Breaking Changes -- Update the default value of `ExcludeSharedTokenCacheCredential` on `DefaultAzureCredentialsOptions` to true, to exclude the `SharedTokenCacheCredential` from the `DefaultAzureCredential` by default. See [BREAKING_CHANGES.md](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/BREAKING_CHANGES.md#140) +- Update the default value of `ExcludeSharedTokenCacheCredential` on `DefaultAzureCredentialsOptions` to true, to exclude the `SharedTokenCacheCredential` from the `DefaultAzureCredential` by default. See [BREAKING_CHANGES.md](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/BREAKING_CHANGES.md#140) ## 1.4.0-beta.3 (2021-02-09) @@ -390,4 +390,4 @@ information about preview releases of other Azure SDK libraries, please visit ht - Managed Identity Authentication - Added `ManagedIdentityCredential` class -See the [documentation](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md) for more details. User authentication will be added in an upcoming preview release. +See the [documentation](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md) for more details. User authentication will be added in an upcoming preview release. diff --git a/sdk/identity/Azure.Identity/README.md b/sdk/identity/Azure.Identity/README.md index 3c07db0747b9..8b5670684cf5 100644 --- a/sdk/identity/Azure.Identity/README.md +++ b/sdk/identity/Azure.Identity/README.md @@ -227,7 +227,7 @@ For more details on dealing with errors arising from failed requests to Azure Ac ### Logging -The Azure Identity library provides the same [logging capabilities](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md#logging) as the rest of the Azure SDK. +The Azure Identity library provides the same [logging capabilities](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md#logging) as the rest of the Azure SDK. The simplest way to see the logs to help debug authentication issues is to enable the console logging. @@ -270,26 +270,26 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con [azure_cli]: https://docs.microsoft.com/cli/azure [azure_powerShell]: https://docs.microsoft.com/powershell/azure [azure_sub]: https://azure.microsoft.com/free/ -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity/src +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity/src [package]: https://www.nuget.org/packages/Azure.Identity [aad_doc]: https://docs.microsoft.com/azure/active-directory/ [aad_err_doc]: https://docs.microsoft.com/azure/active-directory/develop/reference-aadsts-error-codes -[certificates_client_library]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/keyvault/Azure.Security.KeyVault.Certificates +[certificates_client_library]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/keyvault/Azure.Security.KeyVault.Certificates [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ [code_of_conduct_faq]: https://opensource.microsoft.com/codeofconduct/faq/ [nuget]: https://www.nuget.org/ -[keys_client_library]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/keyvault/Azure.Security.KeyVault.Keys -[secrets_client_library]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/keyvault/Azure.Security.KeyVault.Secrets -[blobs_client_library]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Azure.Storage.Blobs -[queues_client_library]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Azure.Storage.Queues -[eventhubs_client_library]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/eventhub/Azure.Messaging.EventHubs -[azure_core_library]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core +[keys_client_library]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/keyvault/Azure.Security.KeyVault.Keys +[secrets_client_library]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/keyvault/Azure.Security.KeyVault.Secrets +[blobs_client_library]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.Blobs +[queues_client_library]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.Queues +[eventhubs_client_library]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/eventhub/Azure.Messaging.EventHubs +[azure_core_library]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core [identity_api_docs]: https://docs.microsoft.com/dotnet/api/azure.identity?view=azure-dotnet -[vs_login_image]: https://raw.githubusercontent.com/Azure/azure-sdk-for-net/master/sdk/identity/Azure.Identity/images/VsLoginDialog.png -[vs_code_login_image]: https://raw.githubusercontent.com/Azure/azure-sdk-for-net/master/sdk/identity/Azure.Identity/images/VsCodeLoginCommand.png -[azure_cli_login_image]: https://raw.githubusercontent.com/Azure/azure-sdk-for-net/master/sdk/identity/Azure.Identity/images/AzureCliLogin.png -[azure_cli_login_device_code_image]: https://raw.githubusercontent.com/Azure/azure-sdk-for-net/master/sdk/identity/Azure.Identity/images/AzureCliLoginDeviceCode.png -[default_azure_credential_authflow_image]: https://raw.githubusercontent.com/Azure/azure-sdk-for-net/master/sdk/identity/Azure.Identity/images/DefaultAzureCredentialAuthenticationFlow.png +[vs_login_image]: https://raw.githubusercontent.com/Azure/azure-sdk-for-net/main/sdk/identity/Azure.Identity/images/VsLoginDialog.png +[vs_code_login_image]: https://raw.githubusercontent.com/Azure/azure-sdk-for-net/main/sdk/identity/Azure.Identity/images/VsCodeLoginCommand.png +[azure_cli_login_image]: https://raw.githubusercontent.com/Azure/azure-sdk-for-net/main/sdk/identity/Azure.Identity/images/AzureCliLogin.png +[azure_cli_login_device_code_image]: https://raw.githubusercontent.com/Azure/azure-sdk-for-net/main/sdk/identity/Azure.Identity/images/AzureCliLoginDeviceCode.png +[default_azure_credential_authflow_image]: https://raw.githubusercontent.com/Azure/azure-sdk-for-net/main/sdk/identity/Azure.Identity/images/DefaultAzureCredentialAuthenticationFlow.png [ref_DefaultAzureCredential]: https://docs.microsoft.com/dotnet/api/azure.identity.defaultazurecredential?view=azure-dotnet [ref_ChainedTokenCredential]: https://docs.microsoft.com/dotnet/api/azure.identity.chainedtokencredential?view=azure-dotnet [ref_EnvironmentCredential]: https://docs.microsoft.com/dotnet/api/azure.identity.environmentcredential?view=azure-dotnet @@ -301,7 +301,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con [ref_UsernamePasswordCredential]: https://docs.microsoft.com/dotnet/api/azure.identity.usernamepasswordcredential?view=azure-dotnet [ref_AuthorizationCodeCredential]: https://docs.microsoft.com/dotnet/api/azure.identity.authorizationcodecredential?view=azure-dotnet [ref_AzureCliCredential]: https://docs.microsoft.com/dotnet/api/azure.identity.azureclicredential?view=azure-dotnet -[ref_AzurePowerShellCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/src/AzurePowerShellCredential.cs +[ref_AzurePowerShellCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/src/AzurePowerShellCredential.cs [ref_VisualStudioCredential]: https://docs.microsoft.com/dotnet/api/azure.identity.visualstudiocredential?view=azure-dotnet [ref_VisualStudioCodeCredential]: https://docs.microsoft.com/dotnet/api/azure.identity.visualstudiocodecredential?view=azure-dotnet diff --git a/sdk/identity/ci.yml b/sdk/identity/ci.yml index a51ccc42ce6b..a15a57da549d 100644 --- a/sdk/identity/ci.yml +++ b/sdk/identity/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/insights/Azure.ResourceManager.Insights/README.md b/sdk/insights/Azure.ResourceManager.Insights/README.md index 93370190b286..a17cb23de317 100644 --- a/sdk/insights/Azure.ResourceManager.Insights/README.md +++ b/sdk/insights/Azure.ResourceManager.Insights/README.md @@ -18,7 +18,7 @@ Install-Package Azure.ResourceManager.Insights -Version 1.0.0-preview.1 ### Authenticate the Client -To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) ## Key concepts @@ -28,9 +28,9 @@ Key concepts of the Azure .NET SDK can be found [here](https://azure.github.io/a Documentation is available to help you learn how to use this package -- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) - [API References](https://docs.microsoft.com/dotnet/api/?view=azure-dotnet) -- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md) +- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md) ## Examples diff --git a/sdk/insights/ci.yml b/sdk/insights/ci.yml index 83c9eb1777af..335bd586ece3 100644 --- a/sdk/insights/ci.yml +++ b/sdk/insights/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/iot/Azure.IoT.Hub.Service/README.md b/sdk/iot/Azure.IoT.Hub.Service/README.md index ef652de7bc39..2840fd0e1681 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/README.md +++ b/sdk/iot/Azure.IoT.Hub.Service/README.md @@ -26,12 +26,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/API Design.md b/sdk/iot/Azure.IoT.Hub.Service/src/API Design.md index f96e796ab659..70116d12de73 100644 --- a/sdk/iot/Azure.IoT.Hub.Service/src/API Design.md +++ b/sdk/iot/Azure.IoT.Hub.Service/src/API Design.md @@ -1,4 +1,4 @@ -# Azure Iot Hub Service API Design Doc +# Azure Iot Hub Service API Design Doc This document outlines the APIs for the Azure Iot Hub Service SDK. @@ -177,12 +177,12 @@ APIs for getting statistics about devices and modules, as well as service statis #### Devices APIs for managing device identities, device twins, and querying devices. -This sub-client has been implemented. Refer to [DevicesClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/iot/Azure.IoT.Hub.Service/src/DevicesClient.cs). +This sub-client has been implemented. Refer to [DevicesClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/iot/Azure.IoT.Hub.Service/src/DevicesClient.cs). #### Modules APIs for managing module identities, module twins, and querying modules. -This sub-client has been implemented. Refer to [ModulesClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/iot/Azure.IoT.Hub.Service/src/ModulesClient.cs). +This sub-client has been implemented. Refer to [ModulesClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/iot/Azure.IoT.Hub.Service/src/ModulesClient.cs). #### Jobs APIs for using IotHub v2 jobs. diff --git a/sdk/iot/ci.yml b/sdk/iot/ci.yml index 872289cafec6..4fc2824f7194 100644 --- a/sdk/iot/ci.yml +++ b/sdk/iot/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main paths: include: @@ -12,7 +11,6 @@ trigger: pr: branches: include: - - master - main paths: include: diff --git a/sdk/iothub/Microsoft.Azure.Management.IotHub/tests/readme.md b/sdk/iothub/Microsoft.Azure.Management.IotHub/tests/readme.md index 44d4f20c6955..e44e050d0b54 100644 --- a/sdk/iothub/Microsoft.Azure.Management.IotHub/tests/readme.md +++ b/sdk/iothub/Microsoft.Azure.Management.IotHub/tests/readme.md @@ -1,4 +1,4 @@ -# Running tests +# Running tests To run or record tests, you must set some environment variables. -Instructions can be found at . \ No newline at end of file +Instructions can be found at . \ No newline at end of file diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/README.md b/sdk/keyvault/Azure.ResourceManager.KeyVault/README.md index 90d427801736..9c548c4333d3 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/README.md +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/README.md @@ -18,7 +18,7 @@ dotnet add package Azure.ResourceManager.KeyVault --version 1.0.0-preview.1 ### Authenticate the Client -To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) ## Key concepts @@ -28,9 +28,9 @@ Key concepts of the Azure .NET SDK can be found [here](https://azure.github.io/a Documentation is available to help you learn how to use this package -- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) - [API References](https://docs.microsoft.com/dotnet/api/?view=azure-dotnet) -- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md) +- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md) ## Examples diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md b/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md index a0a931fda9af..8184723e16c5 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md @@ -166,12 +166,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -182,25 +182,25 @@ The following section provides several code snippets using the `client` created ### Sync examples - Access control - - [Listing All Role Definitions](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldSync.md#listing-all-role-definitions) - - [Listing All Role Assignments](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldSync.md#listing-all-role-assignments) - - [Creating a Role Assignment](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldSync.md#creating-a-role-assignment) - - [Getting a Role Assignment](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldSync.md#getting-a-role-assignment) - - [Deleting a Role Assignment](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldSync.md#deleting-a-role-assignment) + - [Listing All Role Definitions](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldSync.md#listing-all-role-definitions) + - [Listing All Role Assignments](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldSync.md#listing-all-role-assignments) + - [Creating a Role Assignment](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldSync.md#creating-a-role-assignment) + - [Getting a Role Assignment](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldSync.md#getting-a-role-assignment) + - [Deleting a Role Assignment](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldSync.md#deleting-a-role-assignment) - Backup and restore - - [Performing a full key backup](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_BackupHelloWorldSync.md#performing-a-full-key-backup) - - [Performing a full key restore](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_BackupHelloWorldSync.md#performing-a-full-key-restore) + - [Performing a full key backup](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_BackupHelloWorldSync.md#performing-a-full-key-backup) + - [Performing a full key restore](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_BackupHelloWorldSync.md#performing-a-full-key-restore) ### Async examples - Access control - - [Listing All Role Definitions](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldAsync.md#listing-all-role-definitions) - - [Listing All Role Assignments](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldAsync.md#listing-all-role-assignments) - - [Creating a Role Assignment](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldAsync.md#creating-a-role-assignment) - - [Getting a Role Assignment](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldAsync.md#getting-a-role-assignment) - - [Deleting a Role Assignment](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldAsync.md#deleting-a-role-assignment) + - [Listing All Role Definitions](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldAsync.md#listing-all-role-definitions) + - [Listing All Role Assignments](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldAsync.md#listing-all-role-assignments) + - [Creating a Role Assignment](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldAsync.md#creating-a-role-assignment) + - [Getting a Role Assignment](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldAsync.md#getting-a-role-assignment) + - [Deleting a Role Assignment](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldAsync.md#deleting-a-role-assignment) - Backup and restore - - [Performing a full key backup](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_BackupHelloWorldAsync.md#performing-a-full-key-backup) - - [Performing a full key restore](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_BackupHelloWorldAsync.md#performing-a-full-key-restore) + - [Performing a full key backup](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_BackupHelloWorldAsync.md#performing-a-full-key-backup) + - [Performing a full key restore](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_BackupHelloWorldAsync.md#performing-a-full-key-restore) ## Troubleshooting @@ -263,23 +263,23 @@ additional questions or comments. [access_control]: https://docs.microsoft.com/azure/key-vault/managed-hsm/access-control [azure_cli]: https://docs.microsoft.com/cli/azure -[azure_identity]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity +[azure_identity]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity [azure_sub]: https://azure.microsoft.com/free/ [best_practices]: https://docs.microsoft.com/azure/key-vault/managed-hsm/best-practices [built_in_roles]: https://docs.microsoft.com/azure/key-vault/managed-hsm/built-in-roles [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ -[rbac_client]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/src/KeyVaultAccessControlClient.cs -[backup_client]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/src/KeyVaultBackupClient.cs +[rbac_client]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/src/KeyVaultAccessControlClient.cs +[backup_client]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/src/KeyVaultBackupClient.cs [keyvault_docs]: https://docs.microsoft.com/azure/key-vault/ [keyvault_rest]: https://docs.microsoft.com/rest/api/keyvault/ [admin_client_nuget_package]: https://www.nuget.org/packages?q=Azure.Security.KeyVault.Administration -[admin_client_samples]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples -[admin_client_src]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/keyvault/Azure.Security.KeyVault.Administration/src +[admin_client_samples]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/keyvault/Azure.Security.KeyVault.Administration/samples +[admin_client_src]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/keyvault/Azure.Security.KeyVault.Administration/src [JWK]: https://tools.ietf.org/html/rfc7517 [nuget]: https://www.nuget.org/ -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md#defaultazurecredential -[logging]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md -[contributing]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Microsoft.Azure.KeyVault/CONTRIBUTING.md +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md#defaultazurecredential +[logging]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md +[contributing]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Microsoft.Azure.KeyVault/CONTRIBUTING.md [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Ftables%2FAzure.Data.Tables%2FREADME.png) diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/README.md b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/README.md index a2940b34f1d0..08eb06502269 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/README.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/README.md @@ -11,8 +11,8 @@ description: Samples for the Azure.Security.KeyVault.Administration client libra # Azure.Security.KeyVault.Administration Samples -- Creating, getting, and deleting role assignments [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldSync.md) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldAsync.md) -- [Assigning roles for specific scopes](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample2_RbacScopeAssignment.md) -- Performing a full key backup and restore [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_BackupHelloWorldSync.md) and [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_BackupHelloWorldAsync.md) -- [Performing selective key restore](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample2_SelectiveRestore.md) -- [Checking the status of a previously started backup or restore](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md) \ No newline at end of file +- Creating, getting, and deleting role assignments [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldSync.md) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldAsync.md) +- [Assigning roles for specific scopes](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample2_RbacScopeAssignment.md) +- Performing a full key backup and restore [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_BackupHelloWorldSync.md) and [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_BackupHelloWorldAsync.md) +- [Performing selective key restore](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample2_SelectiveRestore.md) +- [Checking the status of a previously started backup or restore](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md) \ No newline at end of file diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_BackupHelloWorldAsync.md b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_BackupHelloWorldAsync.md index 376b8d53f483..149dfd2c85d7 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_BackupHelloWorldAsync.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_BackupHelloWorldAsync.md @@ -1,7 +1,7 @@ # Performing a full key backup and restore (Async) This sample demonstrates how to a perform full key backup and restore in Azure Key Vault. -To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions. +To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions. ## Creating a KeyVaultBackupClient @@ -17,11 +17,11 @@ KeyVaultBackupClient client = new KeyVaultBackupClient(new Uri(keyVaultUrl), new ## Performing a full key backup Using the `KeyVaultBackupClient`, you can back up your entire collection of keys. The backing store for full key backups is a blob storage container using Shared Access Signature authentication. -For more details on creating a SAS token using the `BlobServiceClient`, see the [Azure Storage Blobs client README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/README.md) and the [authentication samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/samples/Sample02_Auth.cs). +For more details on creating a SAS token using the `BlobServiceClient`, see the [Azure Storage Blobs client README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/README.md) and the [authentication samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/samples/Sample02_Auth.cs). Alternatively, it is possible to [generate a SAS token in Storage Explorer](https://docs.microsoft.com/azure/vs-azure-tools-storage-manage-with-storage-explorer?tabs=windows#generate-a-shared-access-signature-in-storage-explorer) To ensure you have some keys for backup, you may want to first create a key using the `KeyClient`. -To create a new `KeyClient` to create a key, see the [Creating a KeyClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample1_HelloWorld.md#creating-a-keyclientkeyvault) and [Creating a key](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample1_HelloWorld.md#creating-a-key) samples. +To create a new `KeyClient` to create a key, see the [Creating a KeyClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample1_HelloWorld.md#creating-a-keyclientkeyvault) and [Creating a key](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample1_HelloWorld.md#creating-a-key) samples. In the sample below, you can set `blobStorageUrl`, `blobContainerName`, and `sasToken` based on a environment variables, configuration settings, or any way that works for your application. @@ -45,7 +45,7 @@ Uri folderUri = backupResult.Value.FolderUri; ## Performing a full key restore Using the `KeyVaultBackupClient`, you can restore your entire collection of keys from backup. The data source for full key restore is a storage blob accessed using Shared Access Signature authentication. -For more details on creating a SAS token using the `BlobServiceClient`, see the [Azure Storage Blobs client README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/README.md) and the [authentication samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/samples/Sample02_Auth.cs). +For more details on creating a SAS token using the `BlobServiceClient`, see the [Azure Storage Blobs client README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/README.md) and the [authentication samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/samples/Sample02_Auth.cs). Alternatively, it is possible to [generate a SAS token in Storage Explorer](https://docs.microsoft.com/azure/vs-azure-tools-storage-manage-with-storage-explorer?tabs=windows#generate-a-shared-access-signature-in-storage-explorer) ```C# Snippet:HelloFullRestoreAsync @@ -57,4 +57,4 @@ Response restoreResult = await restoreOperation.WaitForCo ``` -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_BackupHelloWorldSync.md b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_BackupHelloWorldSync.md index 0bb68e984d46..4f5e46d9305b 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_BackupHelloWorldSync.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_BackupHelloWorldSync.md @@ -1,7 +1,7 @@ # Performing a full key backup and restore (Sync) This sample demonstrates how to perform a full key backup and restore in Azure Key Vault. -To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions. +To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions. ## Creating a KeyVaultBackupClient @@ -17,11 +17,11 @@ KeyVaultBackupClient client = new KeyVaultBackupClient(new Uri(keyVaultUrl), new ## Performing a full key backup Using the `KeyVaultBackupClient`, you can back up your entire collection of keys. The backing store for full key backups is a blob storage container using Shared Access Signature authentication. -For more details on creating a SAS token using the `BlobServiceClient`, see the [Azure Storage Blobs client README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/README.md) and the [authentication samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/samples/Sample02_Auth.cs). +For more details on creating a SAS token using the `BlobServiceClient`, see the [Azure Storage Blobs client README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/README.md) and the [authentication samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/samples/Sample02_Auth.cs). Alternatively, it is possible to [generate a SAS token in Storage Explorer](https://docs.microsoft.com/azure/vs-azure-tools-storage-manage-with-storage-explorer?tabs=windows#generate-a-shared-access-signature-in-storage-explorer) To ensure you have some keys for backup, you may want to first create a key using the `KeyClient`. -To create a new `KeyClient` to create a key, see the [Creating a KeyClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample1_HelloWorld.md#creating-a-keyclientkeyvault) and [Creating a key](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample1_HelloWorld.md#creating-a-key) samples. +To create a new `KeyClient` to create a key, see the [Creating a KeyClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample1_HelloWorld.md#creating-a-keyclientkeyvault) and [Creating a key](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample1_HelloWorld.md#creating-a-key) samples. In the sample below, you can set `blobStorageUrl`, `blobContainerName`, and `sasToken` based on a environment variables, configuration settings, or any way that works for your application. @@ -49,7 +49,7 @@ Uri folderUri = backupOperation.Value.FolderUri; ## Performing a full key restore Using the `KeyVaultBackupClient`, you can restore your entire collection of keys from backup. The data source for full key restore is a storage blob accessed using Shared Access Signature authentication. -For more details on creating a SAS token using the `BlobServiceClient`, see the [Azure Storage Blobs client README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/README.md) and the [authentication samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/samples/Sample02_Auth.cs). +For more details on creating a SAS token using the `BlobServiceClient`, see the [Azure Storage Blobs client README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/README.md) and the [authentication samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/samples/Sample02_Auth.cs). Alternatively, it is possible to [generate a SAS token in Storage Explorer](https://docs.microsoft.com/azure/vs-azure-tools-storage-manage-with-storage-explorer?tabs=windows#generate-a-shared-access-signature-in-storage-explorer) ```C# Snippet:HelloFullRestoreSync @@ -66,4 +66,4 @@ Uri restoreResult = backupOperation.Value.FolderUri; ``` -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldAsync.md b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldAsync.md index 043559b2c2ed..f3573ffad86e 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldAsync.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldAsync.md @@ -1,7 +1,7 @@ # Creating, getting, and deleting role assignments (Async) This sample demonstrates how to create, get, and delete role assignments in Azure Key Vault. -To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions. +To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions. ## Creating a KeyVaultAccessControlClient @@ -44,7 +44,7 @@ Now let's assign a role to a service principal. To do this we'll need a role def A role definition Id can be obtained from the `Id` property of one of the role definitions returned from `GetRoleAssignments`. -See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions on how to generate a new service principal and obtain it's object Id. +See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions on how to generate a new service principal and obtain it's object Id. You can also get the object Id for your currently signed in account by running the following [Azure CLI][azure_cli] command. ``` az ad signed-in-user show --query objectId @@ -74,4 +74,4 @@ await client.DeleteRoleAssignmentAsync(KeyVaultRoleScope.Global, createdAssignme [azure_cli]: https://docs.microsoft.com/cli/azure -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md#defaultazurecredential +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md#defaultazurecredential diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldSync.md b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldSync.md index 85dc4dffe678..4602380a4b70 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldSync.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldSync.md @@ -1,7 +1,7 @@ # Creating, getting, and deleting role assignments (Sync) This sample demonstrates how to create, get, and delete role assignments in Azure Key Vault. -To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions. +To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions. ## Creating a KeyVaultAccessControlClient @@ -36,7 +36,7 @@ Now let's assign a role to a service principal. To do this we'll need a role def A role definition Id can be obtained from the `Id` property of one of the role definitions returned from `GetRoleAssignments`. -See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions on how to generate a new service principal and obtain it's object Id. +See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions on how to generate a new service principal and obtain it's object Id. You can also get the object Id for your currently signed in account by running the following [Azure CLI][azure_cli] command. ``` az ad signed-in-user show --query objectId @@ -66,4 +66,4 @@ client.DeleteRoleAssignment(KeyVaultRoleScope.Global, createdAssignment.Name); [azure_cli]: https://docs.microsoft.com/cli/azure -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md#defaultazurecredential +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md#defaultazurecredential diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample2_RbacScopeAssignment.md b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample2_RbacScopeAssignment.md index cb9507ad6328..9b1486cb7410 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample2_RbacScopeAssignment.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample2_RbacScopeAssignment.md @@ -1,13 +1,13 @@ # Creating a Role Assignment for Specific Scopes By default role assignments apply to the global scope. It is also possible to be more specific by applying an assignment to the all keys scope or a specific `KeyVaultKey`. -For information about interacting with a `KeyVaultKey` with a `KeyClient`, see the [Key Client README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/README.md) for links and instructions. +For information about interacting with a `KeyVaultKey` with a `KeyClient`, see the [Key Client README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/README.md) for links and instructions. ## Assigning a Role to the All Keys Scope Let's assign a role to a service principal so that it applies to all keys. To do this we'll need a service principal object Id and a role definition Id. -See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions on how to generate a new service principal and obtain it's object Id. +See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions on how to generate a new service principal and obtain it's object Id. You can also get the object Id for your currently signed in account by running the following [Azure CLI][azure_cli] command. ``` az ad signed-in-user show --query objectId diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample2_SelectiveRestore.md b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample2_SelectiveRestore.md index 982184216396..757cfce41e54 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample2_SelectiveRestore.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample2_SelectiveRestore.md @@ -3,8 +3,8 @@ Using the `KeyVaultBackupClient`, you can restore a single key from backup by key name. The data source for a selective key restore is a storage blob accessed using Shared Access Signature authentication. For more details on creating a SAS token using the `BlobServiceClient`, see the -[Azure Storage Blobs client README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/README.md) -and the [authentication samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/samples/Sample02_Auth.cs). +[Azure Storage Blobs client README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/README.md) +and the [authentication samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/samples/Sample02_Auth.cs). Alternatively, it is possible to [generate a SAS token in Storage Explorer](https://docs.microsoft.com/azure/vs-azure-tools-storage-manage-with-storage-explorer?tabs=windows#generate-a-shared-access-signature-in-storage-explorer) ```C# Snippet:SelectiveRestoreAsync diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md index 4177485e9544..8499bfb5d79a 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md @@ -1,7 +1,7 @@ # Checking the status of a previously started full key backup and restore This sample demonstrates how to a check the status and get the result of previously started full key backup and restore operations in Azure Key Vault. -To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions. +To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions. ## Checking status of a full key backup operation diff --git a/sdk/keyvault/Azure.Security.KeyVault.Certificates/MigrationGuide.md b/sdk/keyvault/Azure.Security.KeyVault.Certificates/MigrationGuide.md index 95e379f4d37a..35399dfa29cd 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Certificates/MigrationGuide.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Certificates/MigrationGuide.md @@ -2,7 +2,7 @@ This guide is intended to assist in the migration to version 4 of the Key Vault client library [`Azure.Security.KeyVault.Certificates`](https://www.nuget.org/packages/Azure.Security.KeyVault.Certificates) from version 3 of [`Microsoft.Azure.KeyVault`](https://www.nuget.org/packages/Microsoft.Azure.KeyVault). It will focus on side-by-side comparisons for similar operations between the two packages. -Familiarity with the `Microsoft.Azure.KeyVault` library is assumed. For those new to the Key Vault client library for .NET, please refer to the [`Azure.Security.KeyVault.Certificates` README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Certificates/README.md) and [`Azure.Security.KeyVault.Certificates` samples](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples) for the `Azure.Security.KeyVault.Certificates` library rather than this guide. +Familiarity with the `Microsoft.Azure.KeyVault` library is assumed. For those new to the Key Vault client library for .NET, please refer to the [`Azure.Security.KeyVault.Certificates` README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Certificates/README.md) and [`Azure.Security.KeyVault.Certificates` samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples) for the `Azure.Security.KeyVault.Certificates` library rather than this guide. ## Table of contents @@ -68,7 +68,7 @@ CertificateClient client = new CertificateClient( new DefaultAzureCredential()); ``` -[`DefaultAzureCredential`](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md#defaultazurecredential) is optimized for both production and development environments without having to change your source code. +[`DefaultAzureCredential`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md#defaultazurecredential) is optimized for both production and development environments without having to change your source code. #### Sharing an HttpClient diff --git a/sdk/keyvault/Azure.Security.KeyVault.Certificates/README.md b/sdk/keyvault/Azure.Security.KeyVault.Certificates/README.md index 5ec741daafd5..a5f4ed4d625c 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Certificates/README.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Certificates/README.md @@ -97,12 +97,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -317,27 +317,27 @@ When you submit a pull request, a CLA-bot will automatically determine whether y This project has adopted the [Microsoft Open Source Code of Conduct][code_of_conduct]. For more information see the [Code of Conduct FAQ][coc_faq] or contact opencode@microsoft.com with any additional questions or comments. -[certificate_client_src]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/keyvault/Azure.Security.KeyVault.Certificates/src +[certificate_client_src]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/keyvault/Azure.Security.KeyVault.Certificates/src [certificate_client_nuget_package]: https://www.nuget.org/packages/Azure.Security.KeyVault.Certificates/ [API_reference]: https://docs.microsoft.com/dotnet/api/azure.security.keyvault.certificates [keyvault_docs]: https://docs.microsoft.com/azure/key-vault/ -[certificate_client_samples]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples +[certificate_client_samples]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples [nuget]: https://www.nuget.org/ [azure_sub]: https://azure.microsoft.com/free/ [azure_cli]: https://docs.microsoft.com/cli/azure -[certificate_client_class]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Certificates/src/CertificateClient.cs +[certificate_client_class]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Certificates/src/CertificateClient.cs [soft_delete]: https://docs.microsoft.com/azure/key-vault/key-vault-ovw-soft-delete -[azure_identity]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity#defaultazurecredential +[azure_identity]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity#defaultazurecredential [keyvault_rest]: https://docs.microsoft.com/rest/api/keyvault/ -[secrets_client_library]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/keyvault/Azure.Security.KeyVault.Secrets -[keys_client_library]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/keyvault/Azure.Security.KeyVault.Keys -[hello_world_sample]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/Sample1_HelloWorld.md -[get_cetificates_sample]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/Sample2_GetCertificates.md +[secrets_client_library]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/keyvault/Azure.Security.KeyVault.Secrets +[keys_client_library]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/keyvault/Azure.Security.KeyVault.Keys +[hello_world_sample]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/Sample1_HelloWorld.md +[get_cetificates_sample]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/Sample2_GetCertificates.md [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md#defaultazurecredential -[contributing]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/CONTRIBUTING.md +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md#defaultazurecredential +[contributing]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/CONTRIBUTING.md [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ -[migration_guide]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Certificates/MigrationGuide.md +[migration_guide]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Certificates/MigrationGuide.md [rbac_guide]: https://docs.microsoft.com/azure/key-vault/general/rbac-guide ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fkeyvault%2FAzure.Security.KeyVault.Certificates%2FREADME.png) diff --git a/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/README.md b/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/README.md index df132aca0142..7b5d622dff23 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/README.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/README.md @@ -11,6 +11,6 @@ description: Samples for the Azure.Security.KeyVault.Certificates client library # Azure.Security.KeyVault.Certificates Samples -- [Setting, getting, updating, and deleting certificates](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/Sample1_HelloWorld.md) -- [Listing certificates, certificate versions, and deleted certificates](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/Sample2_GetCertificates.md) -- [Importing PKCS#12 (PFX) and PEM-formatted certificates](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/Sample2_ImportCertificate.md) +- [Setting, getting, updating, and deleting certificates](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/Sample1_HelloWorld.md) +- [Listing certificates, certificate versions, and deleted certificates](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/Sample2_GetCertificates.md) +- [Importing PKCS#12 (PFX) and PEM-formatted certificates](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/Sample2_ImportCertificate.md) diff --git a/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/Sample1_HelloWorld.md b/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/Sample1_HelloWorld.md index f72b8bce4bad..d954f91004ac 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/Sample1_HelloWorld.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/Sample1_HelloWorld.md @@ -1,7 +1,7 @@ # Setting, getting, updating, and deleting certificates This sample demonstrates how to set, get, update, and delete a certificate. -To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Certificates/README.md) for links and instructions. +To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Certificates/README.md) for links and instructions. ## Creating a CertificateClient @@ -90,7 +90,7 @@ while (!operation.HasCompleted) To see the full example source, see: -* [Synchronous Sample1_HelloWorld.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Certificates/tests/samples/Sample1_HelloWorld.cs) -* [ASynchronous Sample1_HelloWorldAsync.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Certificates/tests/samples/Sample1_HelloWorldAsync.cs) +* [Synchronous Sample1_HelloWorld.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Certificates/tests/samples/Sample1_HelloWorld.cs) +* [ASynchronous Sample1_HelloWorldAsync.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Certificates/tests/samples/Sample1_HelloWorldAsync.cs) -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md diff --git a/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/Sample2_GetCertificates.md b/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/Sample2_GetCertificates.md index 037759c25c3f..ad2a9a3cedb8 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/Sample2_GetCertificates.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/Sample2_GetCertificates.md @@ -1,7 +1,7 @@ # Listing certificates, certificate versions, and deleted certificates This sample demonstrates how to list certificates, versions of given certificates, and list deleted certificates in a soft delete-enabled Azure Key Vault. -To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Certificates/README.md) for links and instructions. +To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Certificates/README.md) for links and instructions. ## Creating a CertificateClient @@ -112,7 +112,7 @@ foreach (DeletedCertificate deletedCert in client.GetDeletedCertificates()) To see the full example source, see: -* [Synchronous Sample2_GetCertificates.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Certificates/tests/samples/Sample2_GetCertificates.cs) -* [Asynchronous Sample2_GetCertificatesAsync.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Certificates/tests/samples/Sample2_GetCertificatesAsync.cs) +* [Synchronous Sample2_GetCertificates.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Certificates/tests/samples/Sample2_GetCertificates.cs) +* [Asynchronous Sample2_GetCertificatesAsync.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Certificates/tests/samples/Sample2_GetCertificatesAsync.cs) -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md diff --git a/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/Sample2_ImportCertificate.md b/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/Sample2_ImportCertificate.md index 1d3a88ecf14c..83ab42c8d8a6 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/Sample2_ImportCertificate.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Certificates/samples/Sample2_ImportCertificate.md @@ -1,7 +1,7 @@ # Importing PKCS#12 (PFX) and PEM-formatted certificates This sample demonstrates how to import both PKCS#12 (PFX) and PEM-formatted certificates into Azure Key Vault. -To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Certificates/README.md) for links and instructions. +To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Certificates/README.md) for links and instructions. ## Creating a CertificateClient @@ -66,7 +66,7 @@ client.ImportCertificate(importOptions); To see the full example source, see: -* [Synchronous Sample3_ImportCertificate.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Certificates/tests/samples/Sample3_ImportCertificate.cs) -* [Asynchronous Sample3_ImportCertificateAsync.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Certificates/tests/samples/Sample3_ImportCertificateAsync.cs) +* [Synchronous Sample3_ImportCertificate.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Certificates/tests/samples/Sample3_ImportCertificate.cs) +* [Asynchronous Sample3_ImportCertificateAsync.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Certificates/tests/samples/Sample3_ImportCertificateAsync.cs) -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md diff --git a/sdk/keyvault/Azure.Security.KeyVault.Keys/CHANGELOG.md b/sdk/keyvault/Azure.Security.KeyVault.Keys/CHANGELOG.md index 77e5ae28b691..1af9e1fd452d 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Keys/CHANGELOG.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Keys/CHANGELOG.md @@ -203,9 +203,9 @@ https://aka.ms/azure-sdk-preview1-net. This library is not a direct replacement for `Microsoft.Azure.KeyVault`. Applications using that library would require code changes to use `Azure.Security.KeyVault.Keys`. This package's -[documentation](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/README.md) +[documentation](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/README.md) and -[samples](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/keyvault/Azure.Security.KeyVault.Keys/samples) +[samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/keyvault/Azure.Security.KeyVault.Keys/samples) demonstrate the new API. ### Major changes from `Microsoft.Azure.KeyVault` @@ -218,9 +218,9 @@ only). - Asynchronous and synchronous APIs in the `Azure.Security.KeyVault.Keys` package. - Authentication using `Azure.Identity` credentials - see this package's - [documentation](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/README.md) + [documentation](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/README.md) , and the - [Azure Identity documentation](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity) + [Azure Identity documentation](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity) for more information ### `Microsoft.Azure.KeyVault` features not implemented in this release: diff --git a/sdk/keyvault/Azure.Security.KeyVault.Keys/MigrationGuide.md b/sdk/keyvault/Azure.Security.KeyVault.Keys/MigrationGuide.md index da435d37f873..4207659925ba 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Keys/MigrationGuide.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Keys/MigrationGuide.md @@ -2,7 +2,7 @@ This guide is intended to assist in the migration to version 4 of the Key Vault client library [`Azure.Security.KeyVault.Keys`](https://www.nuget.org/packages/Azure.Security.KeyVault.Keys) from version 3 of [`Microsoft.Azure.KeyVault`](https://www.nuget.org/packages/Microsoft.Azure.KeyVault). It will focus on side-by-side comparisons for similar operations between the two packages. -Familiarity with the `Microsoft.Azure.KeyVault` library is assumed. For those new to the Key Vault client library for .NET, please refer to the [`Azure.Security.KeyVault.Keys` README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/README.md) and [`Azure.Security.KeyVault.Keys` samples](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/keyvault/Azure.Security.KeyVault.Keys/samples) for the `Azure.Security.KeyVault.Keys` library rather than this guide. +Familiarity with the `Microsoft.Azure.KeyVault` library is assumed. For those new to the Key Vault client library for .NET, please refer to the [`Azure.Security.KeyVault.Keys` README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/README.md) and [`Azure.Security.KeyVault.Keys` samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/keyvault/Azure.Security.KeyVault.Keys/samples) for the `Azure.Security.KeyVault.Keys` library rather than this guide. ## Table of contents @@ -72,7 +72,7 @@ CryptographyClient cryptoClient = new CryptographyClient( new DefaultAzureCredential()); ``` -[`DefaultAzureCredential`](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md#defaultazurecredential) is optimized for both production and development environments without having to change your source code. +[`DefaultAzureCredential`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md#defaultazurecredential) is optimized for both production and development environments without having to change your source code. #### Sharing an HttpClient diff --git a/sdk/keyvault/Azure.Security.KeyVault.Keys/README.md b/sdk/keyvault/Azure.Security.KeyVault.Keys/README.md index 0b45b108a86f..b4f3e4f313c9 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Keys/README.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Keys/README.md @@ -163,12 +163,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -449,31 +449,31 @@ For more information see the [Code of Conduct FAQ][coc_faq] or contact opencode@ [API_reference]: https://docs.microsoft.com/dotnet/api/azure.security.keyvault.keys [azure_cli]: https://docs.microsoft.com/cli/azure -[azure_identity]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity +[azure_identity]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity [azure_sub]: https://azure.microsoft.com/free/ -[backup_and_restore_sample]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample2_BackupAndRestore.md -[certificates_client_library]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/keyvault/Azure.Security.KeyVault.Certificates +[backup_and_restore_sample]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample2_BackupAndRestore.md +[certificates_client_library]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/keyvault/Azure.Security.KeyVault.Certificates [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ -[get_keys_sample]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample3_GetKeys.md -[encrypt_decrypt_sample]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample4_EncryptDecrypt.md -[sign_verify_sample]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample5_SignVerify.md -[wrap_unwrap_sample]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample6_WrapUnwrap.md -[hello_world_sample]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample1_HelloWorld.md -[key_client_class]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/src/KeyClient.cs -[crypto_client_class]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/src/Cryptography/CryptographyClient.cs +[get_keys_sample]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample3_GetKeys.md +[encrypt_decrypt_sample]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample4_EncryptDecrypt.md +[sign_verify_sample]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample5_SignVerify.md +[wrap_unwrap_sample]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample6_WrapUnwrap.md +[hello_world_sample]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample1_HelloWorld.md +[key_client_class]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/src/KeyClient.cs +[crypto_client_class]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/src/Cryptography/CryptographyClient.cs [key_client_nuget_package]: https://www.nuget.org/packages/Azure.Security.KeyVault.Keys/ -[key_client_samples]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/keyvault/Azure.Security.KeyVault.Keys/samples -[key_client_src]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/keyvault/Azure.Security.KeyVault.Keys/src +[key_client_samples]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/keyvault/Azure.Security.KeyVault.Keys/samples +[key_client_src]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/keyvault/Azure.Security.KeyVault.Keys/src [keyvault_docs]: https://docs.microsoft.com/azure/key-vault/ [keyvault_rest]: https://docs.microsoft.com/rest/api/keyvault/ [JWK]: https://tools.ietf.org/html/rfc7517 [nuget]: https://www.nuget.org/ -[secrets_client_library]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/keyvault/Azure.Security.KeyVault.Secrets +[secrets_client_library]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/keyvault/Azure.Security.KeyVault.Secrets [soft_delete]: https://docs.microsoft.com/azure/key-vault/key-vault-ovw-soft-delete -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md#defaultazurecredential -[contributing]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/CONTRIBUTING.md +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md#defaultazurecredential +[contributing]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/CONTRIBUTING.md [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ -[migration_guide]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/MigrationGuide.md +[migration_guide]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/MigrationGuide.md [access_control]: https://docs.microsoft.com/azure/key-vault/managed-hsm/access-control [rbac_guide]: https://docs.microsoft.com/azure/key-vault/general/rbac-guide diff --git a/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/README.md b/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/README.md index 901548de1eb1..907fe79c9398 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/README.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/README.md @@ -11,9 +11,9 @@ description: Samples for the Azure.Security.KeyVault.Keys client library. # Azure.Security.KeyVault.Keys Samples -- [Creating, getting, updating, and deleting keys](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample1_HelloWorld.md) -- [Back up and restore a key](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample2_BackupAndRestore.md) -- [Listing keys, key versions, and deleted keys](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample3_GetKeys.md) -- [Encrypting and decrypt keys](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample4_EncryptDecrypt.md) -- [Signing and verifying keys](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample5_SignVerify.md) -- [Wrapping and unwrap a key](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample6_WrapUnwrap.md) +- [Creating, getting, updating, and deleting keys](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample1_HelloWorld.md) +- [Back up and restore a key](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample2_BackupAndRestore.md) +- [Listing keys, key versions, and deleted keys](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample3_GetKeys.md) +- [Encrypting and decrypt keys](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample4_EncryptDecrypt.md) +- [Signing and verifying keys](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample5_SignVerify.md) +- [Wrapping and unwrap a key](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample6_WrapUnwrap.md) diff --git a/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample1_HelloWorld.md b/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample1_HelloWorld.md index 8efe836d80dd..f4bf074289d1 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample1_HelloWorld.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample1_HelloWorld.md @@ -1,7 +1,7 @@ # Creating, getting, updating, and deleting keys This sample demonstrates how to create, get, update, and delete a key in Azure Key Vault. -To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/README.md) for links and instructions. +To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/README.md) for links and instructions. ## Creating a KeyClient @@ -104,7 +104,7 @@ await client.PurgeDeletedKeyAsync(rsaKeyName); ## Source -* [Synchronous Sample1_HelloWorld.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/tests/samples/Sample1_HelloWorld.cs) -* [Asynchronous Sample1_HelloWorldAsync.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/tests/samples/Sample1_HelloWorldAsync.cs) +* [Synchronous Sample1_HelloWorld.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/tests/samples/Sample1_HelloWorld.cs) +* [Asynchronous Sample1_HelloWorldAsync.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/tests/samples/Sample1_HelloWorldAsync.cs) -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md diff --git a/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample2_BackupAndRestore.md b/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample2_BackupAndRestore.md index bf0087178641..c7fcfb03a1da 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample2_BackupAndRestore.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample2_BackupAndRestore.md @@ -1,7 +1,7 @@ # Back up and restore a key This sample demonstrates how to back up and restore a Key from Azure Key Vault. -To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/README.md) for links and instructions. +To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/README.md) for links and instructions. ## Creating a KeyClient @@ -52,7 +52,7 @@ KeyVaultKey restoredKey = client.RestoreKeyBackup(memoryStream.ToArray()); To see the full example source, see: -* [Synchronous Sample2_BackupAndRestore.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/tests/samples/Sample2_BackupAndRestore.cs) -* [Asynchronous Sample2_BackupAndRestore.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/tests/samples/Sample2_BackupAndRestoreAsync.cs) +* [Synchronous Sample2_BackupAndRestore.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/tests/samples/Sample2_BackupAndRestore.cs) +* [Asynchronous Sample2_BackupAndRestore.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/tests/samples/Sample2_BackupAndRestoreAsync.cs) -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md diff --git a/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample3_GetKeys.md b/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample3_GetKeys.md index 5ab4dd486c01..f55fc62d2f27 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample3_GetKeys.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample3_GetKeys.md @@ -1,7 +1,7 @@ # Listing keys, key versions, and deleted keys This sample demonstrates how to list keys and versions of a given key, and list deleted keys in a soft delete-enabled Key Vault. -To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/README.md) for links and instructions. +To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/README.md) for links and instructions. ## Creating a KeyClient @@ -116,7 +116,7 @@ foreach (DeletedKey key in keysDeleted) To see the full example source, see: -* [Synchronous Sample3_GetKeys.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/tests/samples/Sample3_GetKeys.cs) -* [ASynchronous Sample3_GetKeysAsync.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/tests/samples/Sample3_GetKeysAsync.cs) +* [Synchronous Sample3_GetKeys.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/tests/samples/Sample3_GetKeys.cs) +* [ASynchronous Sample3_GetKeysAsync.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/tests/samples/Sample3_GetKeysAsync.cs) -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md diff --git a/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample4_EncryptDecrypt.md b/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample4_EncryptDecrypt.md index df65759761ac..4cec0974a96d 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample4_EncryptDecrypt.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample4_EncryptDecrypt.md @@ -1,7 +1,7 @@ # Encrypting and decrypt keys This sample demonstrates how to encrypt and decrypt a single block of plain text with an RSA key. -To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/README.md) for links and instructions. +To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/README.md) for links and instructions. ## Creating a KeyClient @@ -105,7 +105,7 @@ DecryptResult decryptResult = cryptoClient.Decrypt(decryptParams); To see the full example source, see: -* [Synchronous Sample4_EncryptDecrypt.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/tests/samples/Sample4_EncryptDecrypt.cs) -* [ASynchronous Sample4_EncryptDecryptAsync.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/tests/samples/Sample4_EncryptDecryptAsync.cs) +* [Synchronous Sample4_EncryptDecrypt.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/tests/samples/Sample4_EncryptDecrypt.cs) +* [ASynchronous Sample4_EncryptDecryptAsync.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/tests/samples/Sample4_EncryptDecryptAsync.cs) -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md diff --git a/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample5_SignVerify.md b/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample5_SignVerify.md index 1c0876efb550..f8be11420770 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample5_SignVerify.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample5_SignVerify.md @@ -1,7 +1,7 @@ # Signing and verifying keys This sample demonstrates how to sign data with both a RSA key and an EC key. -To get started, you'll need a URI to an Azure Key Vault or Managed HSM. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/README.md) for links and instructions. +To get started, you'll need a URI to an Azure Key Vault or Managed HSM. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/README.md) for links and instructions. ## Creating a KeyClient @@ -110,7 +110,7 @@ Debug.WriteLine($"Verified the signature using the algorithm {ecVerifyDataResult To see the full example source, see: -* [Synchronous Sample5_SignVerify.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/tests/samples/Sample5_SignVerify.cs) -* [Asynchronous Sample5_SignVerifyAsync.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/tests/samples/Sample5_SignVerifyAsync.cs) +* [Synchronous Sample5_SignVerify.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/tests/samples/Sample5_SignVerify.cs) +* [Asynchronous Sample5_SignVerifyAsync.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/tests/samples/Sample5_SignVerifyAsync.cs) -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md diff --git a/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample6_WrapUnwrap.md b/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample6_WrapUnwrap.md index b539232ca5a4..9d956613b1bd 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample6_WrapUnwrap.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Keys/samples/Sample6_WrapUnwrap.md @@ -1,7 +1,7 @@ # Wrapping and unwrap a key This sample demonstrates how to wrap and unwrap a symmetric key with an RSA key. -To get started, you'll need a URI to an Azure Key Vault or Managed HSM. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/README.md) for links and instructions. +To get started, you'll need a URI to an Azure Key Vault or Managed HSM. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/README.md) for links and instructions. ## Creating a KeyClient @@ -68,7 +68,7 @@ Debug.WriteLine($"Decrypted data using the algorithm {unwrapResult.Algorithm}, w To see the full example source, see: -* [Synchronous Sample6_WrapUnwrap.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/tests/samples/Sample6_WrapUnwrap.cs) -* [Asynchronous Sample6_WrapUnwrapAsync.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Keys/tests/samples/Sample6_WrapUnwrapAsync.cs) +* [Synchronous Sample6_WrapUnwrap.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/tests/samples/Sample6_WrapUnwrap.cs) +* [Asynchronous Sample6_WrapUnwrapAsync.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Keys/tests/samples/Sample6_WrapUnwrapAsync.cs) -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md diff --git a/sdk/keyvault/Azure.Security.KeyVault.Secrets/CHANGELOG.md b/sdk/keyvault/Azure.Security.KeyVault.Secrets/CHANGELOG.md index c51715cd763f..83b38c0c6132 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Secrets/CHANGELOG.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Secrets/CHANGELOG.md @@ -130,9 +130,9 @@ https://aka.ms/azure-sdk-preview1-net. This library is not a direct replacement for `Microsoft.Azure.KeyVault`. Applications using that library would require code changes to use `Azure.Security.KeyVault.Secrets`. This package's -[documentation](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/README.md) +[documentation](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/README.md) and -[samples](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples) +[samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples) demonstrate the new API. ### Major changes from `Microsoft.Azure.KeyVault` @@ -144,9 +144,9 @@ only). - Asynchronous and synchronous APIs in the `Azure.Security.KeyVault.Secrets` package. - Authentication using `Azure.Identity` credentials - see this package's - [documentation](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/README.md) + [documentation](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/README.md) , and the - [Azure Identity documentation](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity) + [Azure Identity documentation](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity) for more information ### `Microsoft.Azure.KeyVault` features not implemented in this release: diff --git a/sdk/keyvault/Azure.Security.KeyVault.Secrets/MigrationGuide.md b/sdk/keyvault/Azure.Security.KeyVault.Secrets/MigrationGuide.md index 8aff95291922..7472b52d1ffe 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Secrets/MigrationGuide.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Secrets/MigrationGuide.md @@ -2,7 +2,7 @@ This guide is intended to assist in the migration to version 4 of the Key Vault client library [`Azure.Security.KeyVault.Secrets`](https://www.nuget.org/packages/Azure.Security.KeyVault.Secrets) from version 3 of [`Microsoft.Azure.KeyVault`](https://www.nuget.org/packages/Microsoft.Azure.KeyVault). It will focus on side-by-side comparisons for similar operations between the two packages. -Familiarity with the `Microsoft.Azure.KeyVault` library is assumed. For those new to the Key Vault client library for .NET, please refer to the [`Azure.Security.KeyVault.Secrets` README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/README.md) and [`Azure.Security.KeyVault.Secrets` samples](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples) for the `Azure.Security.KeyVault.Secrets` library rather than this guide. +Familiarity with the `Microsoft.Azure.KeyVault` library is assumed. For those new to the Key Vault client library for .NET, please refer to the [`Azure.Security.KeyVault.Secrets` README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/README.md) and [`Azure.Security.KeyVault.Secrets` samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples) for the `Azure.Security.KeyVault.Secrets` library rather than this guide. ## Table of contents @@ -68,7 +68,7 @@ SecretClient client = new SecretClient( new DefaultAzureCredential()); ``` -[`DefaultAzureCredential`](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md#defaultazurecredential) is optimized for both production and development environments without having to change your source code. +[`DefaultAzureCredential`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md#defaultazurecredential) is optimized for both production and development environments without having to change your source code. #### Sharing an HttpClient diff --git a/sdk/keyvault/Azure.Security.KeyVault.Secrets/README.md b/sdk/keyvault/Azure.Security.KeyVault.Secrets/README.md index a1fbd0eec756..7adea46e0c9d 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Secrets/README.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Secrets/README.md @@ -101,12 +101,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -333,26 +333,26 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con [API_reference]: https://docs.microsoft.com/dotnet/api/azure.security.keyvault.secrets [azure_cli]: https://docs.microsoft.com/cli/azure -[azure_identity]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity +[azure_identity]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity [azure_sub]: https://azure.microsoft.com/free/ -[backup_and_restore_sample]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample2_BackupAndRestore.md -[certificates_client_library]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/keyvault/Azure.Security.KeyVault.Certificates +[backup_and_restore_sample]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample2_BackupAndRestore.md +[certificates_client_library]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/keyvault/Azure.Security.KeyVault.Certificates [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ -[get_secrets_sample]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample3_GetSecrets.md -[hello_world_sample]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample1_HelloWorld.md -[keys_client_library]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/keyvault/Azure.Security.KeyVault.Keys +[get_secrets_sample]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample3_GetSecrets.md +[hello_world_sample]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample1_HelloWorld.md +[keys_client_library]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/keyvault/Azure.Security.KeyVault.Keys [keyvault_docs]: https://docs.microsoft.com/azure/key-vault/ [keyvault_rest]: https://docs.microsoft.com/rest/api/keyvault/ [nuget]: https://www.nuget.org/ -[secret_client_class]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/src/SecretClient.cs +[secret_client_class]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/src/SecretClient.cs [secret_client_nuget_package]: https://www.nuget.org/packages/Azure.Security.KeyVault.Secrets/ -[secret_client_samples]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples -[secret_client_src]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/src +[secret_client_samples]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples +[secret_client_src]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/src [soft_delete]: https://docs.microsoft.com/azure/key-vault/key-vault-ovw-soft-delete -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md#defaultazurecredential -[contributing]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/CONTRIBUTING.md +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md#defaultazurecredential +[contributing]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/CONTRIBUTING.md [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ -[migration_guide]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/MigrationGuide.md +[migration_guide]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/MigrationGuide.md [rbac_guide]: https://docs.microsoft.com/azure/key-vault/general/rbac-guide ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fkeyvault%2FAzure.Security.KeyVault.Secrets%2FREADME.png) diff --git a/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/README.md b/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/README.md index 99eeb1dfe39c..4d5d10a72a8d 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/README.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/README.md @@ -11,6 +11,6 @@ description: Samples for the Azure.Security.KeyVault.Secrets client library. # Azure.Security.KeyVault.Secrets Samples -- [Creating, getting, updating, and deleting secrets](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample1_HelloWorld.md) -- [Back up and restore a secret](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample2_BackupAndRestore.md) -- [Listing secrets, secret versions, and deleted secrets](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample3_GetSecrets.md) +- [Creating, getting, updating, and deleting secrets](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample1_HelloWorld.md) +- [Back up and restore a secret](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample2_BackupAndRestore.md) +- [Listing secrets, secret versions, and deleted secrets](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample3_GetSecrets.md) diff --git a/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample1_HelloWorld.md b/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample1_HelloWorld.md index 0d07506031b8..b0cd197da260 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample1_HelloWorld.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample1_HelloWorld.md @@ -1,7 +1,7 @@ # Creating, getting, updating, and deleting secrets This sample demonstrates how to create, get, update, and delete a secret in Azure Key Vault. -To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/README.md) for links and instructions. +To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/README.md) for links and instructions. ## Creating a SecretClient @@ -101,7 +101,7 @@ await client.PurgeDeletedSecretAsync(secretName); To see the full example source, see: -* [Synchronous Sample1_HelloWorld.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/tests/samples/Sample1_HelloWorld.cs) -* [Asynchronous Sample1_HelloWorld.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/tests/samples/Sample1_HelloWorldAsync.cs) +* [Synchronous Sample1_HelloWorld.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/tests/samples/Sample1_HelloWorld.cs) +* [Asynchronous Sample1_HelloWorld.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/tests/samples/Sample1_HelloWorldAsync.cs) -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md diff --git a/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample2_BackupAndRestore.md b/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample2_BackupAndRestore.md index 02d19a1cf044..892e698f4d89 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample2_BackupAndRestore.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample2_BackupAndRestore.md @@ -1,7 +1,7 @@ # Back up and restore a secret This sample demonstrates how to back up and restore a secret from Azure Key Vault. -To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/README.md) for links and instructions. +To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/README.md) for links and instructions. ## Creating a SecretClient @@ -53,7 +53,7 @@ SecretProperties restoreSecret = client.RestoreSecretBackup(secretBackupToRestor To see the full example source, see: -* [Synchronous Sample2_BackupAndRestore.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/tests/samples/Sample2_BackupAndRestore.cs) -* [Asynchronous Sample2_BackupAndRestore.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/tests/samples/Sample2_BackupAndRestoreAsync.cs) +* [Synchronous Sample2_BackupAndRestore.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/tests/samples/Sample2_BackupAndRestore.cs) +* [Asynchronous Sample2_BackupAndRestore.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/tests/samples/Sample2_BackupAndRestoreAsync.cs) -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md diff --git a/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample3_GetSecrets.md b/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample3_GetSecrets.md index 5b2842d40f74..1623e7406c50 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample3_GetSecrets.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Secrets/samples/Sample3_GetSecrets.md @@ -1,7 +1,7 @@ # Listing secrets, secret versions, and deleted secrets This sample demonstrates how to list secrets, versions of a secret, and listing deleted secrets in a soft delete-enabled Azure Key Vault. -To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/README.md) for links and instructions. +To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/README.md) for links and instructions. ## Creating a SecretClient @@ -127,7 +127,7 @@ foreach (DeletedSecret secret in secretsDeleted) To see the full example source, see: -* [Synchronous Sample3_GetSecrets.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/tests/samples/Sample3_GetSecrets.cs) -* [Asynchronous Sample3_GetSecrets.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Secrets/tests/samples/Sample3_GetSecretsAsync.cs) +* [Synchronous Sample3_GetSecrets.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/tests/samples/Sample3_GetSecrets.cs) +* [Asynchronous Sample3_GetSecrets.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/Azure.Security.KeyVault.Secrets/tests/samples/Sample3_GetSecretsAsync.cs) -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md diff --git a/sdk/keyvault/CONTRIBUTING.md b/sdk/keyvault/CONTRIBUTING.md index e4e099aad829..aef4e868c590 100644 --- a/sdk/keyvault/CONTRIBUTING.md +++ b/sdk/keyvault/CONTRIBUTING.md @@ -73,11 +73,11 @@ Our samples are structured as unit tests so we can easily verify they're up to d [code_of_conduct_faq]: https://opensource.microsoft.com/codeofconduct/faq/ [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ -[core_tests]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core.TestFramework -[live_tests]: https://github.com/Azure/azure-sdk-for-net/blob/master/eng/common/TestResources/README.md +[core_tests]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core.TestFramework +[live_tests]: https://github.com/Azure/azure-sdk-for-net/blob/main/eng/common/TestResources/README.md [nunit]: https://github.com/nunit/docs/wiki [open_issues]: https://github.com/Azure/azure-sdk-for-net/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+label%3AClient+label%3AKeyVault [sdk_design_guidelines_dotnet]: https://azure.github.io/azure-sdk/dotnet_introduction.html [sdk_design_guidelines]: https://azure.github.io/azure-sdk/general_introduction.html [sdk_readme]: https://github.com/Azure/azure-sdk -[sdk_dotnet_code_readme]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md \ No newline at end of file +[sdk_dotnet_code_readme]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md \ No newline at end of file diff --git a/sdk/keyvault/Microsoft.Azure.KeyVault.sln b/sdk/keyvault/Microsoft.Azure.KeyVault.sln deleted file mode 100644 index 86360ca17cb2..000000000000 --- a/sdk/keyvault/Microsoft.Azure.KeyVault.sln +++ /dev/null @@ -1,76 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.26430.16 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.KeyVault", "Microsoft.Azure.KeyVault\src\Microsoft.Azure.KeyVault.csproj", "{F0FBD614-4B4B-445B-B562-235CDB3844B7}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.KeyVault.Tests", "Microsoft.Azure.KeyVault\tests\Microsoft.Azure.KeyVault.Tests.csproj", "{6F5823CD-D1D7-4DF4-BE61-F07FD8134400}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.KeyVault.Core", "Microsoft.Azure.KeyVault.Core\src\Microsoft.Azure.KeyVault.Core.csproj", "{BE53CF33-9A3D-4101-9DFD-62AC09CADADA}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.KeyVault.Cryptography", "Microsoft.Azure.KeyVault.Cryptography\src\Microsoft.Azure.KeyVault.Cryptography.csproj", "{9021F320-DE06-433B-ADBC-25A5BC0AA43B}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.KeyVault.Cryptography.Tests", "Microsoft.Azure.KeyVault.Cryptography\tests\Microsoft.Azure.KeyVault.Cryptography.Tests.csproj", "{E01674C0-B8D7-4598-971C-48B0180E273F}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.KeyVault.Extensions", "Microsoft.Azure.KeyVault.Extensions\src\Microsoft.Azure.KeyVault.Extensions.csproj", "{9021F320-DE06-433B-ADBC-25A5BC0AA43C}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.KeyVault.Extensions.Tests", "Microsoft.Azure.KeyVault.Extensions\tests\Microsoft.Azure.KeyVault.Extensions.Tests.csproj", "{E01674C0-B8D7-4598-971C-48B0180E274A}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.KeyVault.TestFramework", "Microsoft.Azure.KeyVault\tests\TestFramework\Microsoft.Azure.KeyVault.TestFramework.csproj", "{6F5823CD-D1D7-4DF4-BE61-F07FD8134433}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.KeyVault.WebKey", "Microsoft.Azure.KeyVault.WebKey\src\Microsoft.Azure.KeyVault.WebKey.csproj", "{643372AD-2DBC-4395-95B9-61183D3F2904}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.KeyVault.WebKey.Tests", "Microsoft.Azure.KeyVault.WebKey\tests\Microsoft.Azure.KeyVault.WebKey.Tests.csproj", "{6F5823CD-D1D7-4DF4-BE61-F07FD813440A}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {F0FBD614-4B4B-445B-B562-235CDB3844B7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F0FBD614-4B4B-445B-B562-235CDB3844B7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F0FBD614-4B4B-445B-B562-235CDB3844B7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F0FBD614-4B4B-445B-B562-235CDB3844B7}.Release|Any CPU.Build.0 = Release|Any CPU - {6F5823CD-D1D7-4DF4-BE61-F07FD8134400}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6F5823CD-D1D7-4DF4-BE61-F07FD8134400}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6F5823CD-D1D7-4DF4-BE61-F07FD8134400}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6F5823CD-D1D7-4DF4-BE61-F07FD8134400}.Release|Any CPU.Build.0 = Release|Any CPU - {BE53CF33-9A3D-4101-9DFD-62AC09CADADA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BE53CF33-9A3D-4101-9DFD-62AC09CADADA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BE53CF33-9A3D-4101-9DFD-62AC09CADADA}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BE53CF33-9A3D-4101-9DFD-62AC09CADADA}.Release|Any CPU.Build.0 = Release|Any CPU - {9021F320-DE06-433B-ADBC-25A5BC0AA43B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {9021F320-DE06-433B-ADBC-25A5BC0AA43B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {9021F320-DE06-433B-ADBC-25A5BC0AA43B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {9021F320-DE06-433B-ADBC-25A5BC0AA43B}.Release|Any CPU.Build.0 = Release|Any CPU - {E01674C0-B8D7-4598-971C-48B0180E273F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E01674C0-B8D7-4598-971C-48B0180E273F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E01674C0-B8D7-4598-971C-48B0180E273F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E01674C0-B8D7-4598-971C-48B0180E273F}.Release|Any CPU.Build.0 = Release|Any CPU - {9021F320-DE06-433B-ADBC-25A5BC0AA43C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {9021F320-DE06-433B-ADBC-25A5BC0AA43C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {9021F320-DE06-433B-ADBC-25A5BC0AA43C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {9021F320-DE06-433B-ADBC-25A5BC0AA43C}.Release|Any CPU.Build.0 = Release|Any CPU - {E01674C0-B8D7-4598-971C-48B0180E274A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E01674C0-B8D7-4598-971C-48B0180E274A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E01674C0-B8D7-4598-971C-48B0180E274A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E01674C0-B8D7-4598-971C-48B0180E274A}.Release|Any CPU.Build.0 = Release|Any CPU - {6F5823CD-D1D7-4DF4-BE61-F07FD8134433}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6F5823CD-D1D7-4DF4-BE61-F07FD8134433}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6F5823CD-D1D7-4DF4-BE61-F07FD8134433}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6F5823CD-D1D7-4DF4-BE61-F07FD8134433}.Release|Any CPU.Build.0 = Release|Any CPU - {643372AD-2DBC-4395-95B9-61183D3F2904}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {643372AD-2DBC-4395-95B9-61183D3F2904}.Debug|Any CPU.Build.0 = Debug|Any CPU - {643372AD-2DBC-4395-95B9-61183D3F2904}.Release|Any CPU.ActiveCfg = Release|Any CPU - {643372AD-2DBC-4395-95B9-61183D3F2904}.Release|Any CPU.Build.0 = Release|Any CPU - {6F5823CD-D1D7-4DF4-BE61-F07FD813440A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6F5823CD-D1D7-4DF4-BE61-F07FD813440A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6F5823CD-D1D7-4DF4-BE61-F07FD813440A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6F5823CD-D1D7-4DF4-BE61-F07FD813440A}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/sdk/keyvault/Microsoft.Azure.KeyVault/README.md b/sdk/keyvault/Microsoft.Azure.KeyVault/README.md index 39b154bfb832..2eb6aa306f27 100644 --- a/sdk/keyvault/Microsoft.Azure.KeyVault/README.md +++ b/sdk/keyvault/Microsoft.Azure.KeyVault/README.md @@ -6,9 +6,9 @@ This library has been replaced by the following new Azure SDKs. You can read abo The latest libraries to interact with the Azure Key Vault service are: -* [Azure.Security.KeyVault.Certificates](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/keyvault/Azure.Security.KeyVault.Certificates) -* [Azure.Security.KeyVault.Keys](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/keyvault/Azure.Security.KeyVault.Keys) -* [Azure.Security.KeyVault.Secrets](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/keyvault/Azure.Security.KeyVault.Secrets) +* [Azure.Security.KeyVault.Certificates](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/keyvault/Azure.Security.KeyVault.Certificates) +* [Azure.Security.KeyVault.Keys](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/keyvault/Azure.Security.KeyVault.Keys) +* [Azure.Security.KeyVault.Secrets](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/keyvault/Azure.Security.KeyVault.Secrets) It is **recommended** that you move to one or more of the new packages. diff --git a/sdk/keyvault/ci.yml b/sdk/keyvault/ci.yml index b01c1d64662c..d76afc77ffb1 100644 --- a/sdk/keyvault/ci.yml +++ b/sdk/keyvault/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/keyvault/samples/keyvaultproxy/README.md b/sdk/keyvault/samples/keyvaultproxy/README.md index 7fa503de3c54..d20e1696e637 100644 --- a/sdk/keyvault/samples/keyvaultproxy/README.md +++ b/sdk/keyvault/samples/keyvaultproxy/README.md @@ -1 +1 @@ -See the [src/README.md](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/samples/keyvaultproxy/src/README.md) for more information about this sample. +See the [src/README.md](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/keyvault/samples/keyvaultproxy/src/README.md) for more information about this sample. diff --git a/sdk/keyvault/samples/keyvaultproxy/src/README.md b/sdk/keyvault/samples/keyvaultproxy/src/README.md index 57b25258f6c0..41f2fe4a93e0 100644 --- a/sdk/keyvault/samples/keyvaultproxy/src/README.md +++ b/sdk/keyvault/samples/keyvaultproxy/src/README.md @@ -11,7 +11,7 @@ description: Shows how to implement a pipeline policy to cache certain responses # Azure Key Vault Proxy -This is a sample showing how to use an `HttpPipelinePolicy` to cache and proxy secrets, keys, and certificates from Azure Key Vault. The [Azure.Core](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md) packages provides a number of useful HTTP pipeline policies like configurable retries, logging, and more; and, you can add your own policies. +This is a sample showing how to use an `HttpPipelinePolicy` to cache and proxy secrets, keys, and certificates from Azure Key Vault. The [Azure.Core](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md) packages provides a number of useful HTTP pipeline policies like configurable retries, logging, and more; and, you can add your own policies. ## Getting started @@ -57,4 +57,4 @@ When the resource has expired, the next request will go to the server and a succ ## License -This project is licensed under the [MIT license](https://github.com/Azure/azure-sdk-for-net/blob/master/LICENSE.txt). +This project is licensed under the [MIT license](https://github.com/Azure/azure-sdk-for-net/blob/main/LICENSE.txt). diff --git a/sdk/keyvault/test-resources.json b/sdk/keyvault/test-resources.json index 8b0fd1f4b320..f4f7299cbdf4 100644 --- a/sdk/keyvault/test-resources.json +++ b/sdk/keyvault/test-resources.json @@ -60,13 +60,6 @@ "description": "Whether to enable deployment of Managed HSM. The default is false." } }, - "enableSoftDelete": { - "type": "bool", - "defaultValue": true, - "metadata": { - "description": "Whether to enable soft delete for the Key Vault. The default is true." - } - }, "keyVaultSku": { "type": "string", "defaultValue": "premium", @@ -78,7 +71,7 @@ "variables": { "kvApiVersion": "2019-09-01", "kvName": "[parameters('baseName')]", - "hsmApiVersion": "2020-04-01-preview", + "hsmApiVersion": "2021-04-01-preview", "hsmName": "[concat(parameters('baseName'), 'hsm')]", "mgmtApiVersion": "2019-04-01", "blobContainerName": "backup", @@ -93,10 +86,8 @@ }, "networkAcls": { "bypass": "AzureServices", - "virtualNetworkRules": [ - ], - "ipRules": [ - ], + "virtualNetworkRules": [], + "ipRules": [], "defaultAction": "Allow" } }, @@ -169,7 +160,7 @@ "enabledForDeployment": false, "enabledForDiskEncryption": false, "enabledForTemplateDeployment": false, - "enableSoftDelete": "[parameters('enableSoftDelete')]" + "enableSoftDelete": true } }, { @@ -188,7 +179,9 @@ "[parameters('testApplicationOid')]" ], "enablePurgeProtection": false, - "enableSoftDelete": "[parameters('enableSoftDelete')]" + "enableSoftDelete": true, + "publicNetworkAccess": "Enabled", + "networkAcls": "[variables('networkAcls')]" } }, { diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearningServices/README.md b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearningServices/README.md index d7d8f2af6163..739ef2bec406 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearningServices/README.md +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearningServices/README.md @@ -18,7 +18,7 @@ Install-Package Azure.ResourceManager.MachineLearningServices -Version 1.0.0-pre ### Authenticate the Client -To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) ## Key concepts @@ -28,9 +28,9 @@ Key concepts of the Azure .NET SDK can be found [here](https://azure.github.io/a Documentation is available to help you learn how to use this package -- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) - [API References](https://docs.microsoft.com/dotnet/api/?view=azure-dotnet) -- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md) +- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md) ## Examples diff --git a/sdk/machinelearningservices/ci.yml b/sdk/machinelearningservices/ci.yml index 95d55a8264c2..b8a293293484 100644 --- a/sdk/machinelearningservices/ci.yml +++ b/sdk/machinelearningservices/ci.yml @@ -2,7 +2,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -13,7 +12,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/CHANGELOG.md b/sdk/mediaservices/Microsoft.Azure.Management.Media/CHANGELOG.md index ccf7af01b487..258d9565fe15 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/CHANGELOG.md +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/CHANGELOG.md @@ -1,4 +1,4 @@ -# Microsoft.Azure.Management.Media release notes +# Microsoft.Azure.Management.Media release notes ## Changes in 4.0.0 diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/CHANGELOG.md b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/CHANGELOG.md index 0e258c5c5de4..0412b0167cdd 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/CHANGELOG.md +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/CHANGELOG.md @@ -4,16 +4,21 @@ ### Breaking Changes - The whole `DatasourceCredential` API has been renamed to `DataSourceCredential`. This includes renames in types, methods, and properties. +- Split the method `GetAnomalies` into two different methods: `GetAnomaliesForAlert` and `GetAnomaliesForDetectionConfiguration`. +- Split the method `GetIncidents` into two different methods: `GetIncidentsForAlert` and `GetIncidentsForDetectionConfiguration`. - `DataFeedIngestionSettings` constructor now takes the required `ingestionStartTime` parameter. For this reason, the property `IngestionStartTime` is not nullable anymore. - `DataFeedMissingDataPointFillSettings` constructor now takes the required `fillType` parameter. For this reason, the property `FillType` is not nullable anymore. - `EmailNotificationHook` constructor now takes the required `name` parameter. - `WebNotificationHook` constructor now takes the required `name` and `endpoint` parameters. +- In `MetricSeriesData`, removed the `Definition` property. Now, properties `MetricId` and `SeriesKey` can be accessed directly from `MetricSeriesData`. - In `DataPointAnomaly`, renamed property `AnomalyDetectionConfigurationId` to `DetectionConfigurationId`. - In `DataFeedMetric`, renamed constructor parameter `metricName` to `name` only. - In `DataFeedDimension`, renamed constructor parameter `dimensionName` to `name` only. - Moved `GetAlertConfigurationsOptions`, `GetDatasourceCredentialsOptions`, and `GetDetectionConfigurationsOptions` to the `Azure.AI.MetricsAdvisor.Administration` namespace. - Moved `DatasourceCredential`, `DataFeedSource`, `NotificationHook`, and all of their concrete child types to the `Azure.AI.MetricsAdvisor.Administration` namespace. - Moved `MetricFeedback` and all of its concrete child types to the `Azure.AI.MetricsAdvisor` namespace. +- Changed order of parameters of `MetricsAdvisorClient.GetMetricEnrichedSeriesData`. Now, `detectionConfigurationId` appears first. +- In `MetricsAdvisorKeyCredential`, merged `UpdateSubscriptionKey` and `UpdateApiKey` into a single method, `Update`, to make it an atomic operation. ## 1.0.0-beta.4 (2021-06-07) @@ -157,5 +162,5 @@ This is the first beta of the `Azure.AI.MetricsAdvisor` client library. This package's [documentation][readme] and [samples][samples] demonstrate the new API. -[readme]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/README.md -[samples]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/samples/README.md +[readme]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/README.md +[samples]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/samples/README.md diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/README.md b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/README.md index a2a57636fabd..cbf263869a55 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/README.md +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/README.md @@ -172,11 +172,11 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -397,7 +397,7 @@ var options = new GetAnomaliesForAlertOptions() { MaxPageSize = 3 }; int anomalyCount = 0; -await foreach (DataPointAnomaly anomaly in client.GetAnomaliesAsync(alertConfigurationId, alertId, options)) +await foreach (DataPointAnomaly anomaly in client.GetAnomaliesForAlertAsync(alertConfigurationId, alertId, options)) { Console.WriteLine($"Anomaly detection configuration ID: {anomaly.DetectionConfigurationId}"); Console.WriteLine($"Data feed ID: {anomaly.DataFeedId}"); @@ -510,36 +510,36 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fmetricsadvisor%2FAzure.AI.MetricsAdvisor%2FREADME.png) -[metricsadv_client_src]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src +[metricsadv_client_src]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src [metricsadv_docs]: https://docs.microsoft.com/azure/cognitive-services/metrics-advisor [metricsadv_nuget_package]: https://www.nuget.org/packages/Azure.AI.MetricsAdvisor [metricsadv_refdocs]: https://aka.ms/azsdk/net/docs/ref/metricsadvisor [metricsadv_rest_api]: https://westus2.dev.cognitive.microsoft.com/docs/services/MetricsAdvisor -[metricsadv_samples]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/samples/README.md +[metricsadv_samples]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/samples/README.md [metricsadv_web_portal]: https://metricsadvisor.azurewebsites.net -[metrics_advisor_admin_client_class]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorAdministrationClient.cs -[metrics_advisor_client_class]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorClient.cs +[metrics_advisor_admin_client_class]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorAdministrationClient.cs +[metrics_advisor_client_class]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorClient.cs -[metricsadv-sample1]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample01_DataFeedCrudOperations.cs -[metricsadv-sample2]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample02_DataFeedIngestionOperations.cs -[metricsadv-sample3]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample03_DetectionConfigurationCrudOperations.cs -[metricsadv-sample4]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample04_HookCrudOperations.cs -[metricsadv-sample5]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample05_AlertConfigurationCrudOperations.cs -[metricsadv-sample6]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample06_QueryTriggeredAlerts.cs -[metricsadv-sample7]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample07_QueryDetectedAnomalies.cs -[metricsadv-sample8]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample08_QueryIncidentsAndRootCauses.cs -[metricsadv-sample9]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample09_QueryTimeSeriesInformation.cs -[metricsadv-sample10]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample10_FeedbackCrudOperations.cs +[metricsadv-sample1]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample01_DataFeedCrudOperations.cs +[metricsadv-sample2]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample02_DataFeedIngestionOperations.cs +[metricsadv-sample3]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample03_DetectionConfigurationCrudOperations.cs +[metricsadv-sample4]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample04_HookCrudOperations.cs +[metricsadv-sample5]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample05_AlertConfigurationCrudOperations.cs +[metricsadv-sample6]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample06_QueryTriggeredAlerts.cs +[metricsadv-sample7]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample07_QueryDetectedAnomalies.cs +[metricsadv-sample8]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample08_QueryIncidentsAndRootCauses.cs +[metricsadv-sample9]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample09_QueryTimeSeriesInformation.cs +[metricsadv-sample10]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample10_FeedbackCrudOperations.cs [aad_grant_access]: https://docs.microsoft.com/azure/cognitive-services/authentication#assign-a-role-to-a-service-principal -[azure_identity]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md +[azure_identity]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md [cognitive_resource_cli]: https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account-cli [cognitive_resource_portal]: https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md#defaultazurecredential +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md#defaultazurecredential [register_aad_app]: https://docs.microsoft.com/azure/cognitive-services/authentication#assign-a-role-to-a-service-principal -[logging]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core/samples/Diagnostics.md +[logging]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core/samples/Diagnostics.md [azure_cli]: https://docs.microsoft.com/cli/azure [azure_portal]: https://portal.azure.com diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/api/Azure.AI.MetricsAdvisor.netstandard2.0.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/api/Azure.AI.MetricsAdvisor.netstandard2.0.cs index 80cf98d8eb26..3a8d3bb928b5 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/api/Azure.AI.MetricsAdvisor.netstandard2.0.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/api/Azure.AI.MetricsAdvisor.netstandard2.0.cs @@ -185,10 +185,10 @@ public MetricsAdvisorClient(System.Uri endpoint, Azure.Core.TokenCredential cred public virtual Azure.AsyncPageable GetAlertsAsync(string alertConfigurationId, Azure.AI.MetricsAdvisor.GetAlertsOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetAllFeedback(string metricId, Azure.AI.MetricsAdvisor.GetAllFeedbackOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetAllFeedbackAsync(string metricId, Azure.AI.MetricsAdvisor.GetAllFeedbackOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAnomalies(string detectionConfigurationId, Azure.AI.MetricsAdvisor.GetAnomaliesForDetectionConfigurationOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAnomalies(string alertConfigurationId, string alertId, Azure.AI.MetricsAdvisor.GetAnomaliesForAlertOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAnomaliesAsync(string detectionConfigurationId, Azure.AI.MetricsAdvisor.GetAnomaliesForDetectionConfigurationOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAnomaliesAsync(string alertConfigurationId, string alertId, Azure.AI.MetricsAdvisor.GetAnomaliesForAlertOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAnomaliesForAlert(string alertConfigurationId, string alertId, Azure.AI.MetricsAdvisor.GetAnomaliesForAlertOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAnomaliesForAlertAsync(string alertConfigurationId, string alertId, Azure.AI.MetricsAdvisor.GetAnomaliesForAlertOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAnomaliesForDetectionConfiguration(string detectionConfigurationId, Azure.AI.MetricsAdvisor.GetAnomaliesForDetectionConfigurationOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAnomaliesForDetectionConfigurationAsync(string detectionConfigurationId, Azure.AI.MetricsAdvisor.GetAnomaliesForDetectionConfigurationOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetAnomalyDimensionValues(string detectionConfigurationId, string dimensionName, Azure.AI.MetricsAdvisor.GetAnomalyDimensionValuesOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetAnomalyDimensionValuesAsync(string detectionConfigurationId, string dimensionName, Azure.AI.MetricsAdvisor.GetAnomalyDimensionValuesOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetFeedback(string feedbackId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -197,14 +197,14 @@ public MetricsAdvisorClient(System.Uri endpoint, Azure.Core.TokenCredential cred public virtual Azure.Pageable GetIncidentRootCauses(string detectionConfigurationId, string incidentId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetIncidentRootCausesAsync(Azure.AI.MetricsAdvisor.Models.AnomalyIncident incident, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetIncidentRootCausesAsync(string detectionConfigurationId, string incidentId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetIncidents(string detectionConfigurationId, Azure.AI.MetricsAdvisor.GetIncidentsForDetectionConfigurationOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetIncidents(string alertConfigurationId, string alertId, Azure.AI.MetricsAdvisor.GetIncidentsForAlertOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetIncidentsAsync(string detectionConfigurationId, Azure.AI.MetricsAdvisor.GetIncidentsForDetectionConfigurationOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetIncidentsAsync(string alertConfigurationId, string alertId, Azure.AI.MetricsAdvisor.GetIncidentsForAlertOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetIncidentsForAlert(string alertConfigurationId, string alertId, Azure.AI.MetricsAdvisor.GetIncidentsForAlertOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetIncidentsForAlertAsync(string alertConfigurationId, string alertId, Azure.AI.MetricsAdvisor.GetIncidentsForAlertOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetIncidentsForDetectionConfiguration(string detectionConfigurationId, Azure.AI.MetricsAdvisor.GetIncidentsForDetectionConfigurationOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetIncidentsForDetectionConfigurationAsync(string detectionConfigurationId, Azure.AI.MetricsAdvisor.GetIncidentsForDetectionConfigurationOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetMetricDimensionValues(string metricId, string dimensionName, Azure.AI.MetricsAdvisor.GetMetricDimensionValuesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetMetricDimensionValuesAsync(string metricId, string dimensionName, Azure.AI.MetricsAdvisor.GetMetricDimensionValuesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetMetricEnrichedSeriesData(System.Collections.Generic.IEnumerable seriesKeys, string detectionConfigurationId, System.DateTimeOffset startTime, System.DateTimeOffset endTime, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetMetricEnrichedSeriesDataAsync(System.Collections.Generic.IEnumerable seriesKeys, string detectionConfigurationId, System.DateTimeOffset startTime, System.DateTimeOffset endTime, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetMetricEnrichedSeriesData(string detectionConfigurationId, System.Collections.Generic.IEnumerable seriesKeys, System.DateTimeOffset startTime, System.DateTimeOffset endTime, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetMetricEnrichedSeriesDataAsync(string detectionConfigurationId, System.Collections.Generic.IEnumerable seriesKeys, System.DateTimeOffset startTime, System.DateTimeOffset endTime, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetMetricEnrichmentStatuses(string metricId, Azure.AI.MetricsAdvisor.GetMetricEnrichmentStatusesOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetMetricEnrichmentStatusesAsync(string metricId, Azure.AI.MetricsAdvisor.GetMetricEnrichmentStatusesOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetMetricSeriesData(string metricId, Azure.AI.MetricsAdvisor.GetMetricSeriesDataOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -224,8 +224,7 @@ public enum ServiceVersion public partial class MetricsAdvisorKeyCredential { public MetricsAdvisorKeyCredential(string subscriptionKey, string apiKey) { } - public void UpdateApiKey(string apiKey) { } - public void UpdateSubscriptionKey(string subscriptionKey) { } + public void Update(string subscriptionKey, string apiKey) { } } } namespace Azure.AI.MetricsAdvisor.Administration @@ -1169,8 +1168,9 @@ internal MetricEnrichedSeriesData() { } public partial class MetricSeriesData { internal MetricSeriesData() { } - public Azure.AI.MetricsAdvisor.Models.MetricSeriesDefinition Definition { get { throw null; } } + public string MetricId { get { throw null; } } public System.Collections.Generic.IReadOnlyList MetricValues { get { throw null; } } + public Azure.AI.MetricsAdvisor.Models.DimensionKey SeriesKey { get { throw null; } } public System.Collections.Generic.IReadOnlyList Timestamps { get { throw null; } } } public partial class MetricSeriesDefinition diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/perf/Azure.AI.MetricsAdvisor.Perf/Scenarios/GetAnomaliesForAlert.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/perf/Azure.AI.MetricsAdvisor.Perf/Scenarios/GetAnomaliesForAlert.cs index ca2063fac1be..94a51406748a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/perf/Azure.AI.MetricsAdvisor.Perf/Scenarios/GetAnomaliesForAlert.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/perf/Azure.AI.MetricsAdvisor.Perf/Scenarios/GetAnomaliesForAlert.cs @@ -15,14 +15,14 @@ public GetAnomaliesForAlert(PerfOptions options) : base(options) public override void Run(CancellationToken cancellationToken) { - foreach (var _ in Client.GetAnomalies(TestEnvironment.AlertConfigurationId, TestEnvironment.AlertId, cancellationToken: cancellationToken)) + foreach (var _ in Client.GetAnomaliesForAlert(TestEnvironment.AlertConfigurationId, TestEnvironment.AlertId, cancellationToken: cancellationToken)) { } } public override async Task RunAsync(CancellationToken cancellationToken) { - await foreach (var _ in Client.GetAnomaliesAsync(TestEnvironment.AlertConfigurationId, TestEnvironment.AlertId, cancellationToken: cancellationToken)) + await foreach (var _ in Client.GetAnomaliesForAlertAsync(TestEnvironment.AlertConfigurationId, TestEnvironment.AlertId, cancellationToken: cancellationToken)) { } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/perf/Azure.AI.MetricsAdvisor.Perf/Scenarios/GetIncidentsForAlert.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/perf/Azure.AI.MetricsAdvisor.Perf/Scenarios/GetIncidentsForAlert.cs index 3c26ef8baaaa..27f4e606e387 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/perf/Azure.AI.MetricsAdvisor.Perf/Scenarios/GetIncidentsForAlert.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/perf/Azure.AI.MetricsAdvisor.Perf/Scenarios/GetIncidentsForAlert.cs @@ -15,14 +15,14 @@ public GetIncidentsForAlert(PerfOptions options) : base(options) public override void Run(CancellationToken cancellationToken) { - foreach (var _ in Client.GetIncidents(TestEnvironment.AlertConfigurationId, TestEnvironment.AlertId, cancellationToken: cancellationToken)) + foreach (var _ in Client.GetIncidentsForAlert(TestEnvironment.AlertConfigurationId, TestEnvironment.AlertId, cancellationToken: cancellationToken)) { } } public override async Task RunAsync(CancellationToken cancellationToken) { - await foreach (var _ in Client.GetIncidentsAsync(TestEnvironment.AlertConfigurationId, TestEnvironment.AlertId, cancellationToken: cancellationToken)) + await foreach (var _ in Client.GetIncidentsForAlertAsync(TestEnvironment.AlertConfigurationId, TestEnvironment.AlertId, cancellationToken: cancellationToken)) { } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/samples/README.md b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/samples/README.md index 7691ff508bb5..bb3c1f948952 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/samples/README.md +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/samples/README.md @@ -35,13 +35,13 @@ Azure Cognitive Services Metrics Advisor is a cloud service that uses machine le |[Feedback CRUD operations][metricsadv-sample10]|Create, get, and list feedback| -[metricsadv-sample1]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample01_DataFeedCrudOperations.cs -[metricsadv-sample2]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample02_DataFeedIngestionOperations.cs -[metricsadv-sample3]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample03_DetectionConfigurationCrudOperations.cs -[metricsadv-sample4]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample04_HookCrudOperations.cs -[metricsadv-sample5]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample05_AlertConfigurationCrudOperations.cs -[metricsadv-sample6]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample06_QueryTriggeredAlerts.cs -[metricsadv-sample7]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample07_QueryDetectedAnomalies.cs -[metricsadv-sample8]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample08_QueryIncidentsAndRootCauses.cs -[metricsadv-sample9]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample09_QueryTimeSeriesInformation.cs -[metricsadv-sample10]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample10_FeedbackCrudOperations.cs \ No newline at end of file +[metricsadv-sample1]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample01_DataFeedCrudOperations.cs +[metricsadv-sample2]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample02_DataFeedIngestionOperations.cs +[metricsadv-sample3]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample03_DetectionConfigurationCrudOperations.cs +[metricsadv-sample4]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample04_HookCrudOperations.cs +[metricsadv-sample5]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample05_AlertConfigurationCrudOperations.cs +[metricsadv-sample6]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample06_QueryTriggeredAlerts.cs +[metricsadv-sample7]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample07_QueryDetectedAnomalies.cs +[metricsadv-sample8]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample08_QueryIncidentsAndRootCauses.cs +[metricsadv-sample9]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample09_QueryTimeSeriesInformation.cs +[metricsadv-sample10]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample10_FeedbackCrudOperations.cs \ No newline at end of file diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/GetAnomaliesForAlertOptions.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/GetAnomaliesForAlertOptions.cs index b59741d20d47..ece2973c6b34 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/GetAnomaliesForAlertOptions.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/GetAnomaliesForAlertOptions.cs @@ -6,8 +6,8 @@ namespace Azure.AI.MetricsAdvisor { /// - /// The set of options that can be specified when calling - /// or to configure the behavior of the request. + /// The set of options that can be specified when calling + /// or to configure the behavior of the request. /// public class GetAnomaliesForAlertOptions { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/GetAnomaliesForDetectionConfigurationFilter.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/GetAnomaliesForDetectionConfigurationFilter.cs index 6f04d30cc1ac..ceba1674d2ae 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/GetAnomaliesForDetectionConfigurationFilter.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/GetAnomaliesForDetectionConfigurationFilter.cs @@ -9,8 +9,8 @@ namespace Azure.AI.MetricsAdvisor { /// - /// Filters the result of the and - /// operations. + /// Filters the result of the and + /// operations. /// public class GetAnomaliesForDetectionConfigurationFilter { diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/GetAnomaliesForDetectionConfigurationOptions.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/GetAnomaliesForDetectionConfigurationOptions.cs index 22b4f2bbbda9..36784e929d1f 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/GetAnomaliesForDetectionConfigurationOptions.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/GetAnomaliesForDetectionConfigurationOptions.cs @@ -7,8 +7,8 @@ namespace Azure.AI.MetricsAdvisor { /// - /// The set of options that can be specified when calling - /// or + /// The set of options that can be specified when calling + /// or /// to configure the behavior of the request. /// public class GetAnomaliesForDetectionConfigurationOptions diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/GetIncidentsForAlertOptions.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/GetIncidentsForAlertOptions.cs index 3d4e36a2c005..6e5712e5f301 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/GetIncidentsForAlertOptions.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/GetIncidentsForAlertOptions.cs @@ -6,8 +6,8 @@ namespace Azure.AI.MetricsAdvisor { /// - /// The set of options that can be specified when calling - /// or + /// The set of options that can be specified when calling + /// or /// to configure the behavior of the request. /// public class GetIncidentsForAlertOptions diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/GetIncidentsForDetectionConfigurationOptions.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/GetIncidentsForDetectionConfigurationOptions.cs index 8857d4796229..be6386dac0ac 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/GetIncidentsForDetectionConfigurationOptions.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/GetIncidentsForDetectionConfigurationOptions.cs @@ -10,8 +10,8 @@ namespace Azure.AI.MetricsAdvisor { /// - /// The set of options that can be specified when calling - /// or + /// The set of options that can be specified when calling + /// or /// to configure the behavior of the request. /// public class GetIncidentsForDetectionConfigurationOptions diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorClient.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorClient.cs index 7f70792cfb54..a5ad801b9994 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorClient.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorClient.cs @@ -813,7 +813,7 @@ public virtual Response GetFeedback(string feedbackId, Cancellat /// An containing the collection of instances. /// or is null. /// is empty or not a valid GUID. - public virtual AsyncPageable GetAnomaliesAsync(string detectionConfigurationId, GetAnomaliesForDetectionConfigurationOptions options, CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAnomaliesForDetectionConfigurationAsync(string detectionConfigurationId, GetAnomaliesForDetectionConfigurationOptions options, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(detectionConfigurationId, nameof(detectionConfigurationId)); Argument.AssertNotNull(options, nameof(options)); @@ -828,7 +828,7 @@ public virtual AsyncPageable GetAnomaliesAsync(string detectio async Task> FirstPageFunc(int? pageSizeHint) { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetAnomalies)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetAnomaliesForDetectionConfiguration)}"); scope.Start(); try @@ -845,7 +845,7 @@ async Task> FirstPageFunc(int? pageSizeHint) async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetAnomalies)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetAnomaliesForDetectionConfiguration)}"); scope.Start(); try @@ -872,7 +872,7 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHi /// A containing the collection of instances. /// or is null. /// is empty or not a valid GUID. - public virtual Pageable GetAnomalies(string detectionConfigurationId, GetAnomaliesForDetectionConfigurationOptions options, CancellationToken cancellationToken = default) + public virtual Pageable GetAnomaliesForDetectionConfiguration(string detectionConfigurationId, GetAnomaliesForDetectionConfigurationOptions options, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(detectionConfigurationId, nameof(detectionConfigurationId)); Argument.AssertNotNull(options, nameof(options)); @@ -887,7 +887,7 @@ public virtual Pageable GetAnomalies(string detectionConfigura Page FirstPageFunc(int? pageSizeHint) { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetAnomalies)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetAnomaliesForDetectionConfiguration)}"); scope.Start(); try @@ -904,7 +904,7 @@ Page FirstPageFunc(int? pageSizeHint) Page NextPageFunc(string nextLink, int? pageSizeHint) { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetAnomalies)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetAnomaliesForDetectionConfiguration)}"); scope.Start(); try @@ -931,7 +931,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) /// An containing the collection of instances. /// or is null. /// is empty or not a valid GUID. - public virtual AsyncPageable GetIncidentsAsync(string detectionConfigurationId, GetIncidentsForDetectionConfigurationOptions options, CancellationToken cancellationToken = default) + public virtual AsyncPageable GetIncidentsForDetectionConfigurationAsync(string detectionConfigurationId, GetIncidentsForDetectionConfigurationOptions options, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(detectionConfigurationId, nameof(detectionConfigurationId)); Argument.AssertNotNull(options, nameof(options)); @@ -945,7 +945,7 @@ public virtual AsyncPageable GetIncidentsAsync(string detection async Task> FirstPageFunc(int? pageSizeHint) { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetIncidents)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetIncidentsForDetectionConfiguration)}"); scope.Start(); try @@ -963,7 +963,7 @@ async Task> FirstPageFunc(int? pageSizeHint) async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetIncidents)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetIncidentsForDetectionConfiguration)}"); scope.Start(); try @@ -991,7 +991,7 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHin /// A containing the collection of instances. /// or is null. /// is empty or not a valid GUID. - public virtual Pageable GetIncidents(string detectionConfigurationId, GetIncidentsForDetectionConfigurationOptions options, CancellationToken cancellationToken = default) + public virtual Pageable GetIncidentsForDetectionConfiguration(string detectionConfigurationId, GetIncidentsForDetectionConfigurationOptions options, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(detectionConfigurationId, nameof(detectionConfigurationId)); Argument.AssertNotNull(options, nameof(options)); @@ -1005,7 +1005,7 @@ public virtual Pageable GetIncidents(string detectionConfigurat Page FirstPageFunc(int? pageSizeHint) { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetIncidents)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetIncidentsForDetectionConfiguration)}"); scope.Start(); try @@ -1023,7 +1023,7 @@ Page FirstPageFunc(int? pageSizeHint) Page NextPageFunc(string nextLink, int? pageSizeHint) { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetIncidents)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetIncidentsForDetectionConfiguration)}"); scope.Start(); try @@ -1309,18 +1309,18 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) /// /// Query series enriched by anomaly detection. /// - /// The detection series keys. /// The unique identifier of the . + /// The detection series keys. /// Filters the result. Only data points after this point in time, in UTC, will be returned. /// Filters the result. Only data points after this point in time, in UTC, will be returned. /// A controlling the request lifetime. /// An containing the collection of s. - /// or is null. - /// or is empty; or is not a valid GUID. - public virtual AsyncPageable GetMetricEnrichedSeriesDataAsync(IEnumerable seriesKeys, string detectionConfigurationId, DateTimeOffset startTime, DateTimeOffset endTime, CancellationToken cancellationToken = default) + /// or is null. + /// or is empty; or is not a valid GUID. + public virtual AsyncPageable GetMetricEnrichedSeriesDataAsync(string detectionConfigurationId, IEnumerable seriesKeys, DateTimeOffset startTime, DateTimeOffset endTime, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(seriesKeys, nameof(seriesKeys)); // TODO: add validation for seriesKeys.Dimension? Argument.AssertNotNullOrEmpty(detectionConfigurationId, nameof(detectionConfigurationId)); + Argument.AssertNotNullOrEmpty(seriesKeys, nameof(seriesKeys)); // TODO: add validation for seriesKeys.Dimension? Guid detectionConfigurationGuid = ClientCommon.ValidateGuid(detectionConfigurationId, nameof(detectionConfigurationId)); IEnumerable seriesIdentities = seriesKeys.Select(key => key.ConvertToSeriesIdentity()); @@ -1349,18 +1349,18 @@ async Task> FirstPageFunc(int? pageSizeHint) /// /// Query series enriched by anomaly detection. /// - /// The detection series keys. /// The unique identifier of the . + /// The detection series keys. /// Filters the result. Only data points after this point in time, in UTC, will be returned. /// Filters the result. Only data points after this point in time, in UTC, will be returned. /// A controlling the request lifetime. - /// A containing the collection of s. - /// or is null. - /// or is empty; or is not a valid GUID. - public virtual Pageable GetMetricEnrichedSeriesData(IEnumerable seriesKeys, string detectionConfigurationId, DateTimeOffset startTime, DateTimeOffset endTime, CancellationToken cancellationToken = default) + /// An containing the collection of s. + /// or is null. + /// or is empty; or is not a valid GUID. + public virtual Pageable GetMetricEnrichedSeriesData(string detectionConfigurationId, IEnumerable seriesKeys, DateTimeOffset startTime, DateTimeOffset endTime, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(seriesKeys, nameof(seriesKeys)); // TODO: add validation for seriesKeys.Dimension? Argument.AssertNotNullOrEmpty(detectionConfigurationId, nameof(detectionConfigurationId)); + Argument.AssertNotNullOrEmpty(seriesKeys, nameof(seriesKeys)); // TODO: add validation for seriesKeys.Dimension? Guid detectionConfigurationGuid = ClientCommon.ValidateGuid(detectionConfigurationId, nameof(detectionConfigurationId)); IEnumerable seriesIdentities = seriesKeys.Select(key => key.ConvertToSeriesIdentity()); @@ -1521,7 +1521,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) /// An containing the collection of instances. /// or is null. /// or is empty; or is not a valid GUID. - public virtual AsyncPageable GetAnomaliesAsync(string alertConfigurationId, string alertId, GetAnomaliesForAlertOptions options = default, CancellationToken cancellationToken = default) + public virtual AsyncPageable GetAnomaliesForAlertAsync(string alertConfigurationId, string alertId, GetAnomaliesForAlertOptions options = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(alertConfigurationId, nameof(alertConfigurationId)); Argument.AssertNotNullOrEmpty(alertId, nameof(alertId)); @@ -1532,7 +1532,7 @@ public virtual AsyncPageable GetAnomaliesAsync(string alertCon async Task> FirstPageFunc(int? pageSizeHint) { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetAnomalies)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetAnomaliesForAlert)}"); scope.Start(); try @@ -1549,7 +1549,7 @@ async Task> FirstPageFunc(int? pageSizeHint) async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetAnomalies)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetAnomaliesForAlert)}"); scope.Start(); try @@ -1578,7 +1578,7 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHi /// A containing the collection of instances. /// or is null. /// or is empty; or is not a valid GUID. - public virtual Pageable GetAnomalies(string alertConfigurationId, string alertId, GetAnomaliesForAlertOptions options = default, CancellationToken cancellationToken = default) + public virtual Pageable GetAnomaliesForAlert(string alertConfigurationId, string alertId, GetAnomaliesForAlertOptions options = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(alertConfigurationId, nameof(alertConfigurationId)); Argument.AssertNotNullOrEmpty(alertId, nameof(alertId)); @@ -1589,7 +1589,7 @@ public virtual Pageable GetAnomalies(string alertConfiguration Page FirstPageFunc(int? pageSizeHint) { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetAnomalies)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetAnomaliesForAlert)}"); scope.Start(); try @@ -1606,7 +1606,7 @@ Page FirstPageFunc(int? pageSizeHint) Page NextPageFunc(string nextLink, int? pageSizeHint) { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetAnomalies)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetAnomaliesForAlert)}"); scope.Start(); try @@ -1635,7 +1635,7 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) /// An containing the collection of s. /// or is null. /// or is empty; or is not a valid GUID. - public virtual AsyncPageable GetIncidentsAsync(string alertConfigurationId, string alertId, GetIncidentsForAlertOptions options = default, CancellationToken cancellationToken = default) + public virtual AsyncPageable GetIncidentsForAlertAsync(string alertConfigurationId, string alertId, GetIncidentsForAlertOptions options = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(alertConfigurationId, nameof(alertConfigurationId)); Argument.AssertNotNullOrEmpty(alertId, nameof(alertId)); @@ -1646,7 +1646,7 @@ public virtual AsyncPageable GetIncidentsAsync(string alertConf async Task> FirstPageFunc(int? pageSizeHint) { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetIncidents)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetIncidentsForAlert)}"); scope.Start(); try @@ -1663,7 +1663,7 @@ async Task> FirstPageFunc(int? pageSizeHint) async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetIncidents)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetIncidentsForAlert)}"); scope.Start(); try @@ -1692,7 +1692,7 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHin /// A containing the collection of s. /// or is null. /// or is empty; or is not a valid GUID. - public virtual Pageable GetIncidents(string alertConfigurationId, string alertId, GetIncidentsForAlertOptions options = default, CancellationToken cancellationToken = default) + public virtual Pageable GetIncidentsForAlert(string alertConfigurationId, string alertId, GetIncidentsForAlertOptions options = default, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(alertConfigurationId, nameof(alertConfigurationId)); Argument.AssertNotNullOrEmpty(alertId, nameof(alertId)); @@ -1703,7 +1703,7 @@ public virtual Pageable GetIncidents(string alertConfigurationI Page FirstPageFunc(int? pageSizeHint) { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetIncidents)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetIncidentsForAlert)}"); scope.Start(); try @@ -1720,7 +1720,7 @@ Page FirstPageFunc(int? pageSizeHint) Page NextPageFunc(string nextLink, int? pageSizeHint) { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetIncidents)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(MetricsAdvisorClient)}.{nameof(GetIncidentsForAlert)}"); scope.Start(); try diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorKeyCredential.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorKeyCredential.cs index a8139bb1b394..611548600cba 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorKeyCredential.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorKeyCredential.cs @@ -13,59 +13,40 @@ namespace Azure.AI.MetricsAdvisor /// public class MetricsAdvisorKeyCredential { - private string _subscriptionKey; - - private string _apiKey; + private Tuple _keyPair; /// /// Initializes a new instance of the class. /// /// The subscription key to use to authenticate with the Azure service. - /// The API key to use to authenticate the user with the Metrics Advisor service. Used to identify administrators. + /// The API key to use to authenticate the user with the Metrics Advisor service. Used to differentiate administrators and viewers. /// or is null. /// or is empty. public MetricsAdvisorKeyCredential(string subscriptionKey, string apiKey) { - UpdateSubscriptionKey(subscriptionKey); - UpdateApiKey(apiKey); - } - - internal string SubscriptionKey - { - get => Volatile.Read(ref _subscriptionKey); - private set => Volatile.Write(ref _subscriptionKey, value); + Update(subscriptionKey, apiKey); } - internal string ApiKey + internal Tuple KeyPair { - get => Volatile.Read(ref _apiKey); - private set => Volatile.Write(ref _apiKey, value); + get => Volatile.Read(ref _keyPair); + private set => Volatile.Write(ref _keyPair, value); } /// - /// Updates the subscription key. This is intended to be used when you've regenerated - /// your subscription key and want to update long lived clients. + /// Updates the subscription and API keys. This is intended to be used when you've regenerated + /// your keys and want to update long lived clients. /// /// The subscription key to authenticate the service against. - /// is null. - /// is empty. - public void UpdateSubscriptionKey(string subscriptionKey) + /// The API key to use to authenticate the user with the Metrics Advisor service. Used to differentiate administrators and viewers. + /// or is null. + /// or is empty. + public void Update(string subscriptionKey, string apiKey) { Argument.AssertNotNullOrEmpty(subscriptionKey, nameof(subscriptionKey)); - SubscriptionKey = subscriptionKey; - } - - /// - /// Updates the API key. This is intended to be used when you've regenerated your - /// API key and want to update long lived clients. - /// - /// The API key to use to authenticate the user with the Metrics Advisor service. Used to identify administrators. - /// is null. - /// is empty. - public void UpdateApiKey(string apiKey) - { Argument.AssertNotNullOrEmpty(apiKey, nameof(apiKey)); - ApiKey = apiKey; + + KeyPair = Tuple.Create(subscriptionKey, apiKey); } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorKeyCredentialPolicy.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorKeyCredentialPolicy.cs index 0a2bea706b7e..d0f3b0bc2ec1 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorKeyCredentialPolicy.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/MetricsAdvisorKeyCredentialPolicy.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System; using Azure.Core; using Azure.Core.Pipeline; @@ -20,8 +21,10 @@ public override void OnSendingRequest(HttpMessage message) { base.OnSendingRequest(message); - message.Request.Headers.SetValue(Constants.SubscriptionAuthorizationHeader, _credential.SubscriptionKey); - message.Request.Headers.SetValue(Constants.ApiAuthorizationHeader, _credential.ApiKey); + Tuple keyPair = _credential.KeyPair; + + message.Request.Headers.SetValue(Constants.SubscriptionAuthorizationHeader, keyPair.Item1); + message.Request.Headers.SetValue(Constants.ApiAuthorizationHeader, keyPair.Item2); } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/AnomalyDetection/AnomalyIncident.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/AnomalyDetection/AnomalyIncident.cs index 019e2035d9ac..b533b66e0b8b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/AnomalyDetection/AnomalyIncident.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/AnomalyDetection/AnomalyIncident.cs @@ -41,8 +41,8 @@ internal AnomalyIncident(string dataFeedId, string metricId, string detectionCon /// /// The unique identifier of the in which this incident was detected. This /// property is only populated when calling - /// or - /// . + /// or + /// . /// For other overloads, this property will be null. /// public string DataFeedId { get; } @@ -57,8 +57,8 @@ internal AnomalyIncident(string dataFeedId, string metricId, string detectionCon /// /// The unique identifier of the of the time series in which this /// has been detected. This property is only populated when calling - /// or - /// . + /// or + /// . /// For other overloads, this property will be null. /// public string MetricId { get; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/AnomalyDetection/DataPointAnomaly.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/AnomalyDetection/DataPointAnomaly.cs index ba0693cfd61d..202f4debd7ab 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/AnomalyDetection/DataPointAnomaly.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/AnomalyDetection/DataPointAnomaly.cs @@ -36,16 +36,16 @@ internal DataPointAnomaly(string dataFeedId, string metricId, string anomalyDete /// /// The unique identifier of the in which this anomaly was detected. This property /// is only populated when calling - /// or - /// . + /// or + /// . /// For other overloads, this property will be null. /// public string DataFeedId { get; } /// /// The unique identifier of the that detected - /// this anomaly. This property is only populated when calling - /// or . + /// this anomaly. This property is only populated when calling + /// or . /// For other overloads, this property will be null. /// [CodeGenMember("AnomalyDetectionConfigurationId")] @@ -54,8 +54,8 @@ internal DataPointAnomaly(string dataFeedId, string metricId, string anomalyDete /// /// The unique identifier of the of the time series in which this /// anomaly has been detected. This property is only populated when calling - /// or - /// . + /// or + /// . /// For other overloads, this property will be null. /// public string MetricId { get; } @@ -74,8 +74,8 @@ internal DataPointAnomaly(string dataFeedId, string metricId, string anomalyDete /// /// The status of the issue that caused this . This property is only populated - /// when calling or - /// . + /// when calling or + /// . /// For other overloads, this property will be null. /// [CodeGenMember("AnomalyStatus")] @@ -89,16 +89,16 @@ internal DataPointAnomaly(string dataFeedId, string metricId, string anomalyDete /// /// The date and time, in UTC, in which this anomaly entry has been created. This property is only - /// populated when calling or - /// . + /// populated when calling or + /// . /// For other overloads, this property will be null. /// public DateTimeOffset? CreatedTime { get; } /// /// The date and time, in UTC, in which this anomaly entry has been modified for the last time. This - /// property is only populated when calling - /// or . + /// property is only populated when calling + /// or . /// For other overloads, this property will be null. /// public DateTimeOffset? ModifiedTime { get; } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/TimeSeries/MetricSeriesData.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/TimeSeries/MetricSeriesData.cs index efe0d5c682bf..4b830c7947a3 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/TimeSeries/MetricSeriesData.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Models/TimeSeries/MetricSeriesData.cs @@ -16,10 +16,16 @@ namespace Azure.AI.MetricsAdvisor.Models public partial class MetricSeriesData { /// - /// Uniquely defines a time series within a . + /// The unique identifier of the associated with this + /// time series. /// - [CodeGenMember("Id")] - public MetricSeriesDefinition Definition { get; } + public string MetricId => Definition.MetricId; + + /// + /// The key that, within a metric, uniquely identifies a time series. Every dimension + /// contained in the associated has been assigned a value. + /// + public DimensionKey SeriesKey => Definition.SeriesKey; /// /// The timestamps, in UTC, of the data points present in this time series. @@ -32,5 +38,11 @@ public partial class MetricSeriesData /// [CodeGenMember("ValueList")] public IReadOnlyList MetricValues { get; } + + /// + /// Uniquely defines a time series within a . + /// + [CodeGenMember("Id")] + internal MetricSeriesDefinition Definition { get; } } } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/NotificationHookLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/NotificationHookLiveTests.cs index bdf4e3d7172d..f9ab53d22263 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/NotificationHookLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorAdministrationClient/NotificationHookLiveTests.cs @@ -6,7 +6,6 @@ using System.Linq; using System.Threading.Tasks; using Azure.AI.MetricsAdvisor.Administration; -using Azure.AI.MetricsAdvisor.Models; using Azure.Core.TestFramework; using NUnit.Framework; diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/AlertTriggeringLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/AlertTriggeringLiveTests.cs index 86b436da3e7f..4a49edeeb08a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/AlertTriggeringLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/AlertTriggeringLiveTests.cs @@ -92,13 +92,13 @@ public async Task GetAlertsWithTokenCredential() [RecordedTest] [TestCase(true)] [TestCase(false)] - public async Task GetAnomalies(bool useTokenCredential) + public async Task GetAnomaliesForAlert(bool useTokenCredential) { MetricsAdvisorClient client = GetMetricsAdvisorClient(useTokenCredential); var anomalyCount = 0; - await foreach (DataPointAnomaly anomaly in client.GetAnomaliesAsync(AlertConfigurationId, AlertId)) + await foreach (DataPointAnomaly anomaly in client.GetAnomaliesForAlertAsync(AlertConfigurationId, AlertId)) { Assert.That(anomaly, Is.Not.Null); Assert.That(anomaly.DataFeedId, Is.Not.Null.And.Not.Empty); @@ -124,13 +124,13 @@ public async Task GetAnomalies(bool useTokenCredential) [RecordedTest] [TestCase(true)] [TestCase(false)] - public async Task GetIncidents(bool useTokenCredential) + public async Task GetIncidentsForAlert(bool useTokenCredential) { MetricsAdvisorClient client = GetMetricsAdvisorClient(useTokenCredential); var incidentCount = 0; - await foreach (AnomalyIncident incident in client.GetIncidentsAsync(AlertConfigurationId, AlertId)) + await foreach (AnomalyIncident incident in client.GetIncidentsForAlertAsync(AlertConfigurationId, AlertId)) { Assert.That(incident, Is.Not.Null); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/AlertTriggeringMockTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/AlertTriggeringMockTests.cs index 1bb557e1332f..b8abb6c27407 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/AlertTriggeringMockTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/AlertTriggeringMockTests.cs @@ -16,7 +16,7 @@ public AlertTriggeringMockTests(bool isAsync) : base(isAsync) } [Test] - public async Task GetAnomaliesSetsValue() + public async Task GetAnomaliesForAlertSetsValue() { double originalValue = 3.14; @@ -25,28 +25,28 @@ public async Task GetAnomaliesSetsValue() MetricsAdvisorClient client = CreateInstrumentedClient(mockResponse); - await foreach (DataPointAnomaly anomaly in client.GetAnomaliesAsync(FakeGuid, "alertId")) + await foreach (DataPointAnomaly anomaly in client.GetAnomaliesForAlertAsync(FakeGuid, "alertId")) { Assert.That(anomaly.Value, Is.EqualTo(originalValue)); } } [Test] - public async Task GetAnomaliesSetsNullExpectedValue() + public async Task GetAnomaliesForAlertSetsNullExpectedValue() { using Stream responseBody = CreateAnomalyJsonStream(expectedValue: null); MockResponse mockResponse = new MockResponse(200) { ContentStream = responseBody }; MetricsAdvisorClient client = CreateInstrumentedClient(mockResponse); - await foreach (DataPointAnomaly anomaly in client.GetAnomaliesAsync(FakeGuid, "alertId")) + await foreach (DataPointAnomaly anomaly in client.GetAnomaliesForAlertAsync(FakeGuid, "alertId")) { Assert.That(anomaly.ExpectedValue, Is.Null); } } [Test] - public async Task GetAnomaliesSetsExpectedValue() + public async Task GetAnomaliesForAlertSetsExpectedValue() { double originalExpectedValue = 1.62; @@ -55,14 +55,14 @@ public async Task GetAnomaliesSetsExpectedValue() MetricsAdvisorClient client = CreateInstrumentedClient(mockResponse); - await foreach (DataPointAnomaly anomaly in client.GetAnomaliesAsync(FakeGuid, "alertId")) + await foreach (DataPointAnomaly anomaly in client.GetAnomaliesForAlertAsync(FakeGuid, "alertId")) { Assert.That(anomaly.ExpectedValue, Is.EqualTo(originalExpectedValue)); } } [Test] - public async Task GetIncidentsSetsValueOfRootNode() + public async Task GetIncidentsForAlertSetsValueOfRootNode() { double originalValue = 3.14; @@ -71,28 +71,28 @@ public async Task GetIncidentsSetsValueOfRootNode() MetricsAdvisorClient client = CreateInstrumentedClient(mockResponse); - await foreach (AnomalyIncident incident in client.GetIncidentsAsync(FakeGuid, "alertId")) + await foreach (AnomalyIncident incident in client.GetIncidentsForAlertAsync(FakeGuid, "alertId")) { Assert.That(incident.ValueOfRootNode, Is.EqualTo(originalValue)); } } [Test] - public async Task GetIncidentsSetsNullExpectedValueOfRootNode() + public async Task GetIncidentsForAlertSetsNullExpectedValueOfRootNode() { using Stream responseBody = CreateIncidentJsonStream(expectedValueOfRootNode: null); MockResponse mockResponse = new MockResponse(200) { ContentStream = responseBody }; MetricsAdvisorClient client = CreateInstrumentedClient(mockResponse); - await foreach (AnomalyIncident incident in client.GetIncidentsAsync(FakeGuid, "alertId")) + await foreach (AnomalyIncident incident in client.GetIncidentsForAlertAsync(FakeGuid, "alertId")) { Assert.That(incident.ExpectedValueOfRootNode, Is.Null); } } [Test] - public async Task GetIncidentsSetsExpectedValueOfRootNode() + public async Task GetIncidentsForAlertSetsExpectedValueOfRootNode() { double originalValue = 1.62; @@ -101,7 +101,7 @@ public async Task GetIncidentsSetsExpectedValueOfRootNode() MetricsAdvisorClient client = CreateInstrumentedClient(mockResponse); - await foreach (AnomalyIncident incident in client.GetIncidentsAsync(FakeGuid, "alertId")) + await foreach (AnomalyIncident incident in client.GetIncidentsForAlertAsync(FakeGuid, "alertId")) { Assert.That(incident.ExpectedValueOfRootNode, Is.EqualTo(originalValue)); } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/AlertTriggeringTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/AlertTriggeringTests.cs index 8c5dad2a46b9..b4fa8f023d84 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/AlertTriggeringTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/AlertTriggeringTests.cs @@ -54,68 +54,68 @@ public void GetAlertsRespectsTheCancellationToken() } [Test] - public void GetAnomaliesValidatesArguments() + public void GetAnomaliesForAlertValidatesArguments() { MetricsAdvisorClient client = GetMetricsAdvisorClient(); - Assert.That(() => client.GetAnomaliesAsync(null, "alertId"), Throws.InstanceOf()); - Assert.That(() => client.GetAnomaliesAsync("", "alertId"), Throws.InstanceOf()); - Assert.That(() => client.GetAnomaliesAsync("configId", "alertId"), Throws.InstanceOf().With.InnerException.TypeOf(typeof(FormatException))); - Assert.That(() => client.GetAnomaliesAsync(FakeGuid, alertId: null), Throws.InstanceOf()); - Assert.That(() => client.GetAnomaliesAsync(FakeGuid, ""), Throws.InstanceOf()); - - Assert.That(() => client.GetAnomalies(null, "alertId"), Throws.InstanceOf()); - Assert.That(() => client.GetAnomalies("", "alertId"), Throws.InstanceOf()); - Assert.That(() => client.GetAnomalies("configId", "alertId"), Throws.InstanceOf().With.InnerException.TypeOf(typeof(FormatException))); - Assert.That(() => client.GetAnomalies(FakeGuid, alertId: null), Throws.InstanceOf()); - Assert.That(() => client.GetAnomalies(FakeGuid, ""), Throws.InstanceOf()); + Assert.That(() => client.GetAnomaliesForAlertAsync(null, "alertId"), Throws.InstanceOf()); + Assert.That(() => client.GetAnomaliesForAlertAsync("", "alertId"), Throws.InstanceOf()); + Assert.That(() => client.GetAnomaliesForAlertAsync("configId", "alertId"), Throws.InstanceOf().With.InnerException.TypeOf(typeof(FormatException))); + Assert.That(() => client.GetAnomaliesForAlertAsync(FakeGuid, alertId: null), Throws.InstanceOf()); + Assert.That(() => client.GetAnomaliesForAlertAsync(FakeGuid, ""), Throws.InstanceOf()); + + Assert.That(() => client.GetAnomaliesForAlert(null, "alertId"), Throws.InstanceOf()); + Assert.That(() => client.GetAnomaliesForAlert("", "alertId"), Throws.InstanceOf()); + Assert.That(() => client.GetAnomaliesForAlert("configId", "alertId"), Throws.InstanceOf().With.InnerException.TypeOf(typeof(FormatException))); + Assert.That(() => client.GetAnomaliesForAlert(FakeGuid, alertId: null), Throws.InstanceOf()); + Assert.That(() => client.GetAnomaliesForAlert(FakeGuid, ""), Throws.InstanceOf()); } [Test] - public void GetAnomaliesRespectsTheCancellationToken() + public void GetAnomaliesForAlertRespectsTheCancellationToken() { MetricsAdvisorClient client = GetMetricsAdvisorClient(); using var cancellationSource = new CancellationTokenSource(); cancellationSource.Cancel(); - IAsyncEnumerator asyncEnumerator = client.GetAnomaliesAsync(FakeGuid, "alertId", cancellationToken: cancellationSource.Token).GetAsyncEnumerator(); + IAsyncEnumerator asyncEnumerator = client.GetAnomaliesForAlertAsync(FakeGuid, "alertId", cancellationToken: cancellationSource.Token).GetAsyncEnumerator(); Assert.That(async () => await asyncEnumerator.MoveNextAsync(), Throws.InstanceOf()); - IEnumerator enumerator = client.GetAnomalies(FakeGuid, "alertId", cancellationToken: cancellationSource.Token).GetEnumerator(); + IEnumerator enumerator = client.GetAnomaliesForAlert(FakeGuid, "alertId", cancellationToken: cancellationSource.Token).GetEnumerator(); Assert.That(() => enumerator.MoveNext(), Throws.InstanceOf()); } [Test] - public void GetIncidentsValidatesArguments() + public void GetIncidentsForAlertValidatesArguments() { MetricsAdvisorClient client = GetMetricsAdvisorClient(); - Assert.That(() => client.GetIncidentsAsync(null, "alertId"), Throws.InstanceOf()); - Assert.That(() => client.GetIncidentsAsync("", "alertId"), Throws.InstanceOf()); - Assert.That(() => client.GetIncidentsAsync("configId", "alertId"), Throws.InstanceOf().With.InnerException.TypeOf(typeof(FormatException))); - Assert.That(() => client.GetIncidentsAsync(FakeGuid, alertId: null), Throws.InstanceOf()); - Assert.That(() => client.GetIncidentsAsync(FakeGuid, ""), Throws.InstanceOf()); - - Assert.That(() => client.GetIncidents(null, "alertId"), Throws.InstanceOf()); - Assert.That(() => client.GetIncidents("", "alertId"), Throws.InstanceOf()); - Assert.That(() => client.GetIncidents("configId", "alertId"), Throws.InstanceOf().With.InnerException.TypeOf(typeof(FormatException))); - Assert.That(() => client.GetIncidents(FakeGuid, alertId: null), Throws.InstanceOf()); - Assert.That(() => client.GetIncidents(FakeGuid, ""), Throws.InstanceOf()); + Assert.That(() => client.GetIncidentsForAlertAsync(null, "alertId"), Throws.InstanceOf()); + Assert.That(() => client.GetIncidentsForAlertAsync("", "alertId"), Throws.InstanceOf()); + Assert.That(() => client.GetIncidentsForAlertAsync("configId", "alertId"), Throws.InstanceOf().With.InnerException.TypeOf(typeof(FormatException))); + Assert.That(() => client.GetIncidentsForAlertAsync(FakeGuid, alertId: null), Throws.InstanceOf()); + Assert.That(() => client.GetIncidentsForAlertAsync(FakeGuid, ""), Throws.InstanceOf()); + + Assert.That(() => client.GetIncidentsForAlert(null, "alertId"), Throws.InstanceOf()); + Assert.That(() => client.GetIncidentsForAlert("", "alertId"), Throws.InstanceOf()); + Assert.That(() => client.GetIncidentsForAlert("configId", "alertId"), Throws.InstanceOf().With.InnerException.TypeOf(typeof(FormatException))); + Assert.That(() => client.GetIncidentsForAlert(FakeGuid, alertId: null), Throws.InstanceOf()); + Assert.That(() => client.GetIncidentsForAlert(FakeGuid, ""), Throws.InstanceOf()); } [Test] - public void GetIncidentsRespectsTheCancellationToken() + public void GetIncidentsForAlertRespectsTheCancellationToken() { MetricsAdvisorClient client = GetMetricsAdvisorClient(); using var cancellationSource = new CancellationTokenSource(); cancellationSource.Cancel(); - IAsyncEnumerator asyncEnumerator = client.GetIncidentsAsync(FakeGuid, "alertId", cancellationToken: cancellationSource.Token).GetAsyncEnumerator(); + IAsyncEnumerator asyncEnumerator = client.GetIncidentsForAlertAsync(FakeGuid, "alertId", cancellationToken: cancellationSource.Token).GetAsyncEnumerator(); Assert.That(async () => await asyncEnumerator.MoveNextAsync(), Throws.InstanceOf()); - IEnumerator enumerator = client.GetIncidents(FakeGuid, "alertId", cancellationToken: cancellationSource.Token).GetEnumerator(); + IEnumerator enumerator = client.GetIncidentsForAlert(FakeGuid, "alertId", cancellationToken: cancellationSource.Token).GetEnumerator(); Assert.That(() => enumerator.MoveNext(), Throws.InstanceOf()); } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/AnomalyDetectionLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/AnomalyDetectionLiveTests.cs index b7f0f1f7ef9b..13cc7417c5ea 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/AnomalyDetectionLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/AnomalyDetectionLiveTests.cs @@ -20,7 +20,7 @@ public AnomalyDetectionLiveTests(bool isAsync) : base(isAsync) [RecordedTest] [TestCase(true)] [TestCase(false)] - public async Task GetAnomaliesWithMinimumSetup(bool useTokenCredential) + public async Task GetAnomaliesForDetectionConfigurationWithMinimumSetup(bool useTokenCredential) { MetricsAdvisorClient client = GetMetricsAdvisorClient(useTokenCredential); @@ -28,7 +28,7 @@ public async Task GetAnomaliesWithMinimumSetup(bool useTokenCredential) var anomalyCount = 0; - await foreach (DataPointAnomaly anomaly in client.GetAnomaliesAsync(DetectionConfigurationId, options)) + await foreach (DataPointAnomaly anomaly in client.GetAnomaliesForDetectionConfigurationAsync(DetectionConfigurationId, options)) { Assert.That(anomaly, Is.Not.Null); Assert.That(anomaly.DataFeedId, Is.Null); @@ -53,7 +53,7 @@ public async Task GetAnomaliesWithMinimumSetup(bool useTokenCredential) } [RecordedTest] - public async Task GetAnomaliesWithOptionalFilter() + public async Task GetAnomaliesForDetectionConfigurationWithOptionalFilter() { MetricsAdvisorClient client = GetMetricsAdvisorClient(); @@ -74,7 +74,7 @@ public async Task GetAnomaliesWithOptionalFilter() var anomalyCount = 0; - await foreach (DataPointAnomaly anomaly in client.GetAnomaliesAsync(DetectionConfigurationId, options)) + await foreach (DataPointAnomaly anomaly in client.GetAnomaliesForDetectionConfigurationAsync(DetectionConfigurationId, options)) { Assert.That(anomaly, Is.Not.Null); Assert.That(anomaly.DataFeedId, Is.Null); @@ -108,7 +108,7 @@ public async Task GetAnomaliesWithOptionalFilter() [RecordedTest] [TestCase(true)] [TestCase(false)] - public async Task GetIncidentsWithMinimumSetup(bool useTokenCredential) + public async Task GetIncidentsForDetectionConfigurationWithMinimumSetup(bool useTokenCredential) { MetricsAdvisorClient client = GetMetricsAdvisorClient(useTokenCredential); @@ -116,7 +116,7 @@ public async Task GetIncidentsWithMinimumSetup(bool useTokenCredential) var incidentCount = 0; - await foreach (AnomalyIncident incident in client.GetIncidentsAsync(DetectionConfigurationId, options)) + await foreach (AnomalyIncident incident in client.GetIncidentsForDetectionConfigurationAsync(DetectionConfigurationId, options)) { Assert.That(incident, Is.Not.Null); Assert.That(incident.DataFeedId, Is.Null); @@ -141,7 +141,7 @@ public async Task GetIncidentsWithMinimumSetup(bool useTokenCredential) } [RecordedTest] - public async Task GetIncidentsWithOptionalDimensionFilter() + public async Task GetIncidentsForDetectionConfigurationWithOptionalDimensionFilter() { MetricsAdvisorClient client = GetMetricsAdvisorClient(); @@ -159,7 +159,7 @@ public async Task GetIncidentsWithOptionalDimensionFilter() var incidentCount = 0; - await foreach (AnomalyIncident incident in client.GetIncidentsAsync(DetectionConfigurationId, options)) + await foreach (AnomalyIncident incident in client.GetIncidentsForDetectionConfigurationAsync(DetectionConfigurationId, options)) { Assert.That(incident, Is.Not.Null); Assert.That(incident.DataFeedId, Is.Null); @@ -229,7 +229,7 @@ public async Task GetIncidentRootCausesForIncidentFromDetectionConfiguration() options.DimensionsToFilter.Add(groupKey); - await foreach (AnomalyIncident currentIncident in client.GetIncidentsAsync(DetectionConfigurationId, options)) + await foreach (AnomalyIncident currentIncident in client.GetIncidentsForDetectionConfigurationAsync(DetectionConfigurationId, options)) { if (currentIncident.Id == IncidentId) { @@ -264,7 +264,7 @@ public async Task GetIncidentRootCausesForIncidentFromAlert() AnomalyIncident incident = null; - await foreach (AnomalyIncident currentIncident in client.GetIncidentsAsync(AlertConfigurationId, AlertId)) + await foreach (AnomalyIncident currentIncident in client.GetIncidentsForAlertAsync(AlertConfigurationId, AlertId)) { if (currentIncident.Id == incidentId) { @@ -365,7 +365,7 @@ public async Task GetMetricEnrichedSeriesData(bool useTokenCredential) var seriesKeys = new List() { seriesKey1, seriesKey2 }; var returnedKeys = new List(); - await foreach (MetricEnrichedSeriesData seriesData in client.GetMetricEnrichedSeriesDataAsync(seriesKeys, DetectionConfigurationId, SamplingStartTime, SamplingEndTime)) + await foreach (MetricEnrichedSeriesData seriesData in client.GetMetricEnrichedSeriesDataAsync(DetectionConfigurationId, seriesKeys, SamplingStartTime, SamplingEndTime)) { Assert.That(seriesData, Is.Not.Null); Assert.That(seriesData.SeriesKey, Is.Not.Null); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/AnomalyDetectionMockTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/AnomalyDetectionMockTests.cs index 8b049f822f32..0592eade76f3 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/AnomalyDetectionMockTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/AnomalyDetectionMockTests.cs @@ -16,7 +16,7 @@ public AnomalyDetectionMockTests(bool isAsync) : base(isAsync) } [Test] - public async Task GetAnomaliesSetsValue() + public async Task GetAnomaliesForDetectionConfigurationSetsValue() { double originalValue = 3.14; @@ -27,14 +27,14 @@ public async Task GetAnomaliesSetsValue() var options = new GetAnomaliesForDetectionConfigurationOptions(default, default); - await foreach (DataPointAnomaly anomaly in client.GetAnomaliesAsync(FakeGuid, options)) + await foreach (DataPointAnomaly anomaly in client.GetAnomaliesForDetectionConfigurationAsync(FakeGuid, options)) { Assert.That(anomaly.Value, Is.EqualTo(originalValue)); } } [Test] - public async Task GetAnomaliesSetsNullExpectedValue() + public async Task GetAnomaliesForDetectionConfigurationSetsNullExpectedValue() { using Stream responseBody = CreateAnomalyJsonStream(expectedValue: null); MockResponse mockResponse = new MockResponse(200) { ContentStream = responseBody }; @@ -43,14 +43,14 @@ public async Task GetAnomaliesSetsNullExpectedValue() var options = new GetAnomaliesForDetectionConfigurationOptions(default, default); - await foreach (DataPointAnomaly anomaly in client.GetAnomaliesAsync(FakeGuid, options)) + await foreach (DataPointAnomaly anomaly in client.GetAnomaliesForDetectionConfigurationAsync(FakeGuid, options)) { Assert.That(anomaly.ExpectedValue, Is.Null); } } [Test] - public async Task GetAnomaliesSetsExpectedValue() + public async Task GetAnomaliesForDetectionConfigurationSetsExpectedValue() { double originalExpectedValue = 1.62; @@ -61,14 +61,14 @@ public async Task GetAnomaliesSetsExpectedValue() var options = new GetAnomaliesForDetectionConfigurationOptions(default, default); - await foreach (DataPointAnomaly anomaly in client.GetAnomaliesAsync(FakeGuid, options)) + await foreach (DataPointAnomaly anomaly in client.GetAnomaliesForDetectionConfigurationAsync(FakeGuid, options)) { Assert.That(anomaly.ExpectedValue, Is.EqualTo(originalExpectedValue)); } } [Test] - public async Task GetIncidentsSetsValueOfRootNode() + public async Task GetIncidentsForDetectionConfigurationSetsValueOfRootNode() { double originalValue = 3.14; @@ -79,14 +79,14 @@ public async Task GetIncidentsSetsValueOfRootNode() var options = new GetIncidentsForDetectionConfigurationOptions(default, default); - await foreach (AnomalyIncident incident in client.GetIncidentsAsync(FakeGuid, options)) + await foreach (AnomalyIncident incident in client.GetIncidentsForDetectionConfigurationAsync(FakeGuid, options)) { Assert.That(incident.ValueOfRootNode, Is.EqualTo(originalValue)); } } [Test] - public async Task GetIncidentsSetsNullExpectedValueOfRootNode() + public async Task GetIncidentsForDetectionConfigurationSetsNullExpectedValueOfRootNode() { using Stream responseBody = CreateIncidentJsonStream(expectedValueOfRootNode: null); MockResponse mockResponse = new MockResponse(200) { ContentStream = responseBody }; @@ -95,14 +95,14 @@ public async Task GetIncidentsSetsNullExpectedValueOfRootNode() var options = new GetIncidentsForDetectionConfigurationOptions(default, default); - await foreach (AnomalyIncident incident in client.GetIncidentsAsync(FakeGuid, options)) + await foreach (AnomalyIncident incident in client.GetIncidentsForDetectionConfigurationAsync(FakeGuid, options)) { Assert.That(incident.ExpectedValueOfRootNode, Is.Null); } } [Test] - public async Task GetIncidentsSetsExpectedValueOfRootNode() + public async Task GetIncidentsForDetectionConfigurationSetsExpectedValueOfRootNode() { double originalValue = 1.62; @@ -113,7 +113,7 @@ public async Task GetIncidentsSetsExpectedValueOfRootNode() var options = new GetIncidentsForDetectionConfigurationOptions(default, default); - await foreach (AnomalyIncident incident in client.GetIncidentsAsync(FakeGuid, options)) + await foreach (AnomalyIncident incident in client.GetIncidentsForDetectionConfigurationAsync(FakeGuid, options)) { Assert.That(incident.ExpectedValueOfRootNode, Is.EqualTo(originalValue)); } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/AnomalyDetectionTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/AnomalyDetectionTests.cs index 88471504ad8c..6a55622b8b2a 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/AnomalyDetectionTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/AnomalyDetectionTests.cs @@ -19,25 +19,25 @@ public AnomalyDetectionTests(bool isAsync) : base(isAsync) private string FakeGuid => "00000000-0000-0000-0000-000000000000"; [Test] - public void GetAnomaliesValidatesArguments() + public void GetAnomaliesForDetectionConfigurationValidatesArguments() { MetricsAdvisorClient client = GetMetricsAdvisorClient(); var options = new GetAnomaliesForDetectionConfigurationOptions(default, default); - Assert.That(() => client.GetAnomaliesAsync(null, options), Throws.InstanceOf()); - Assert.That(() => client.GetAnomaliesAsync("", options), Throws.InstanceOf()); - Assert.That(() => client.GetAnomaliesAsync("configId", options), Throws.InstanceOf().With.InnerException.TypeOf(typeof(FormatException))); - Assert.That(() => client.GetAnomaliesAsync(FakeGuid, options: null), Throws.InstanceOf()); + Assert.That(() => client.GetAnomaliesForDetectionConfigurationAsync(null, options), Throws.InstanceOf()); + Assert.That(() => client.GetAnomaliesForDetectionConfigurationAsync("", options), Throws.InstanceOf()); + Assert.That(() => client.GetAnomaliesForDetectionConfigurationAsync("configId", options), Throws.InstanceOf().With.InnerException.TypeOf(typeof(FormatException))); + Assert.That(() => client.GetAnomaliesForDetectionConfigurationAsync(FakeGuid, options: null), Throws.InstanceOf()); - Assert.That(() => client.GetAnomalies(null, options), Throws.InstanceOf()); - Assert.That(() => client.GetAnomalies("", options), Throws.InstanceOf()); - Assert.That(() => client.GetAnomalies("configId", options), Throws.InstanceOf().With.InnerException.TypeOf(typeof(FormatException))); - Assert.That(() => client.GetAnomalies(FakeGuid, options: null), Throws.InstanceOf()); + Assert.That(() => client.GetAnomaliesForDetectionConfiguration(null, options), Throws.InstanceOf()); + Assert.That(() => client.GetAnomaliesForDetectionConfiguration("", options), Throws.InstanceOf()); + Assert.That(() => client.GetAnomaliesForDetectionConfiguration("configId", options), Throws.InstanceOf().With.InnerException.TypeOf(typeof(FormatException))); + Assert.That(() => client.GetAnomaliesForDetectionConfiguration(FakeGuid, options: null), Throws.InstanceOf()); } [Test] - public void GetAnomaliesRespectsTheCancellationToken() + public void GetAnomaliesForDetectionConfigurationRespectsTheCancellationToken() { MetricsAdvisorClient client = GetMetricsAdvisorClient(); @@ -46,33 +46,33 @@ public void GetAnomaliesRespectsTheCancellationToken() using var cancellationSource = new CancellationTokenSource(); cancellationSource.Cancel(); - IAsyncEnumerator asyncEnumerator = client.GetAnomaliesAsync(FakeGuid, options, cancellationSource.Token).GetAsyncEnumerator(); + IAsyncEnumerator asyncEnumerator = client.GetAnomaliesForDetectionConfigurationAsync(FakeGuid, options, cancellationSource.Token).GetAsyncEnumerator(); Assert.That(async () => await asyncEnumerator.MoveNextAsync(), Throws.InstanceOf()); - IEnumerator enumerator = client.GetAnomalies(FakeGuid, options, cancellationSource.Token).GetEnumerator(); + IEnumerator enumerator = client.GetAnomaliesForDetectionConfiguration(FakeGuid, options, cancellationSource.Token).GetEnumerator(); Assert.That(() => enumerator.MoveNext(), Throws.InstanceOf()); } [Test] - public void GetIncidentsValidatesArguments() + public void GetIncidentsForDetectionConfigurationValidatesArguments() { MetricsAdvisorClient client = GetMetricsAdvisorClient(); var options = new GetIncidentsForDetectionConfigurationOptions(default, default); - Assert.That(() => client.GetIncidentsAsync(null, options), Throws.InstanceOf()); - Assert.That(() => client.GetIncidentsAsync("", options), Throws.InstanceOf()); - Assert.That(() => client.GetIncidentsAsync("configId", options), Throws.InstanceOf().With.InnerException.TypeOf(typeof(FormatException))); - Assert.That(() => client.GetIncidentsAsync(FakeGuid, options: null), Throws.InstanceOf()); + Assert.That(() => client.GetIncidentsForDetectionConfigurationAsync(null, options), Throws.InstanceOf()); + Assert.That(() => client.GetIncidentsForDetectionConfigurationAsync("", options), Throws.InstanceOf()); + Assert.That(() => client.GetIncidentsForDetectionConfigurationAsync("configId", options), Throws.InstanceOf().With.InnerException.TypeOf(typeof(FormatException))); + Assert.That(() => client.GetIncidentsForDetectionConfigurationAsync(FakeGuid, options: null), Throws.InstanceOf()); - Assert.That(() => client.GetIncidents(null, options), Throws.InstanceOf()); - Assert.That(() => client.GetIncidents("", options), Throws.InstanceOf()); - Assert.That(() => client.GetIncidents("configId", options), Throws.InstanceOf().With.InnerException.TypeOf(typeof(FormatException))); - Assert.That(() => client.GetIncidents(FakeGuid, options: null), Throws.InstanceOf()); + Assert.That(() => client.GetIncidentsForDetectionConfiguration(null, options), Throws.InstanceOf()); + Assert.That(() => client.GetIncidentsForDetectionConfiguration("", options), Throws.InstanceOf()); + Assert.That(() => client.GetIncidentsForDetectionConfiguration("configId", options), Throws.InstanceOf().With.InnerException.TypeOf(typeof(FormatException))); + Assert.That(() => client.GetIncidentsForDetectionConfiguration(FakeGuid, options: null), Throws.InstanceOf()); } [Test] - public void GetIncidentsRespectsTheCancellationToken() + public void GetIncidentsForDetectionConfigurationRespectsTheCancellationToken() { MetricsAdvisorClient client = GetMetricsAdvisorClient(); @@ -81,10 +81,10 @@ public void GetIncidentsRespectsTheCancellationToken() using var cancellationSource = new CancellationTokenSource(); cancellationSource.Cancel(); - IAsyncEnumerator asyncEnumerator = client.GetIncidentsAsync(FakeGuid, options, cancellationSource.Token).GetAsyncEnumerator(); + IAsyncEnumerator asyncEnumerator = client.GetIncidentsForDetectionConfigurationAsync(FakeGuid, options, cancellationSource.Token).GetAsyncEnumerator(); Assert.That(async () => await asyncEnumerator.MoveNextAsync(), Throws.InstanceOf()); - IEnumerator enumerator = client.GetIncidents(FakeGuid, options, cancellationSource.Token).GetEnumerator(); + IEnumerator enumerator = client.GetIncidentsForDetectionConfiguration(FakeGuid, options, cancellationSource.Token).GetEnumerator(); Assert.That(() => enumerator.MoveNext(), Throws.InstanceOf()); } @@ -200,17 +200,17 @@ public void GetMetricEnrichedSeriesDataValidatesArguments() var emptyList = new List(); var seriesKeys = new List() { new DimensionKey() }; - Assert.That(() => client.GetMetricEnrichedSeriesDataAsync(null, FakeGuid, default, default), Throws.InstanceOf()); - Assert.That(() => client.GetMetricEnrichedSeriesDataAsync(emptyList, FakeGuid, default, default), Throws.InstanceOf()); - Assert.That(() => client.GetMetricEnrichedSeriesDataAsync(seriesKeys, null, default, default), Throws.InstanceOf()); - Assert.That(() => client.GetMetricEnrichedSeriesDataAsync(seriesKeys, "", default, default), Throws.InstanceOf()); - Assert.That(() => client.GetMetricEnrichedSeriesDataAsync(seriesKeys, "configId", default, default), Throws.InstanceOf().With.InnerException.TypeOf(typeof(FormatException))); - - Assert.That(() => client.GetMetricEnrichedSeriesData(null, FakeGuid, default, default), Throws.InstanceOf()); - Assert.That(() => client.GetMetricEnrichedSeriesData(emptyList, FakeGuid, default, default), Throws.InstanceOf()); - Assert.That(() => client.GetMetricEnrichedSeriesData(seriesKeys, null, default, default), Throws.InstanceOf()); - Assert.That(() => client.GetMetricEnrichedSeriesData(seriesKeys, "", default, default), Throws.InstanceOf()); - Assert.That(() => client.GetMetricEnrichedSeriesData(seriesKeys, "configId", default, default), Throws.InstanceOf().With.InnerException.TypeOf(typeof(FormatException))); + Assert.That(() => client.GetMetricEnrichedSeriesDataAsync(FakeGuid, null, default, default), Throws.InstanceOf()); + Assert.That(() => client.GetMetricEnrichedSeriesDataAsync(FakeGuid, emptyList, default, default), Throws.InstanceOf()); + Assert.That(() => client.GetMetricEnrichedSeriesDataAsync(null, seriesKeys, default, default), Throws.InstanceOf()); + Assert.That(() => client.GetMetricEnrichedSeriesDataAsync("", seriesKeys, default, default), Throws.InstanceOf()); + Assert.That(() => client.GetMetricEnrichedSeriesDataAsync("configId", seriesKeys, default, default), Throws.InstanceOf().With.InnerException.TypeOf(typeof(FormatException))); + + Assert.That(() => client.GetMetricEnrichedSeriesData(FakeGuid, null, default, default), Throws.InstanceOf()); + Assert.That(() => client.GetMetricEnrichedSeriesData(FakeGuid, emptyList, default, default), Throws.InstanceOf()); + Assert.That(() => client.GetMetricEnrichedSeriesData(null, seriesKeys, default, default), Throws.InstanceOf()); + Assert.That(() => client.GetMetricEnrichedSeriesData("", seriesKeys, default, default), Throws.InstanceOf()); + Assert.That(() => client.GetMetricEnrichedSeriesData("configId", seriesKeys, default, default), Throws.InstanceOf().With.InnerException.TypeOf(typeof(FormatException))); } [Test] @@ -224,10 +224,10 @@ public void GetMetricEnrichedSeriesDataRespectsTheCancellationToken() using var cancellationSource = new CancellationTokenSource(); cancellationSource.Cancel(); - IAsyncEnumerator asyncEnumerator = client.GetMetricEnrichedSeriesDataAsync(seriesKeys, FakeGuid, default, default, cancellationSource.Token).GetAsyncEnumerator(); + IAsyncEnumerator asyncEnumerator = client.GetMetricEnrichedSeriesDataAsync(FakeGuid, seriesKeys, default, default, cancellationSource.Token).GetAsyncEnumerator(); Assert.That(async () => await asyncEnumerator.MoveNextAsync(), Throws.InstanceOf()); - IEnumerator enumerator = client.GetMetricEnrichedSeriesData(seriesKeys, FakeGuid, default, default, cancellationSource.Token).GetEnumerator(); + IEnumerator enumerator = client.GetMetricEnrichedSeriesData(FakeGuid, seriesKeys, default, default, cancellationSource.Token).GetEnumerator(); Assert.That(() => enumerator.MoveNext(), Throws.InstanceOf()); } diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/TimeSeriesLiveTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/TimeSeriesLiveTests.cs index 42c64b588d12..5066072921cf 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/TimeSeriesLiveTests.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MetricsAdvisorClient/TimeSeriesLiveTests.cs @@ -160,12 +160,11 @@ public async Task GetMetricSeriesData(bool useTokenCredential) await foreach (MetricSeriesData seriesData in client.GetMetricSeriesDataAsync(MetricId, options)) { Assert.That(seriesData, Is.Not.Null); - Assert.That(seriesData.Definition, Is.Not.Null); - Assert.That(seriesData.Definition.SeriesKey, Is.Not.Null); + Assert.That(seriesData.SeriesKey, Is.Not.Null); Assert.That(seriesData.Timestamps, Is.Not.Null); Assert.That(seriesData.MetricValues, Is.Not.Null); - Assert.That(seriesData.Definition.MetricId, Is.EqualTo(MetricId)); + Assert.That(seriesData.MetricId, Is.EqualTo(MetricId)); Assert.That(seriesData.Timestamps.Count, Is.EqualTo(seriesData.MetricValues.Count)); @@ -174,7 +173,7 @@ public async Task GetMetricSeriesData(bool useTokenCredential) Assert.That(timestamp, Is.InRange(SamplingStartTime, SamplingEndTime)); } - returnedKeys.Add(seriesData.Definition.SeriesKey); + returnedKeys.Add(seriesData.SeriesKey); } Assert.That(returnedKeys.Count, Is.EqualTo(2)); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MockClientTestBase.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MockClientTestBase.cs index 7d6ae1f3c697..f2e76a366257 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MockClientTestBase.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/MockClientTestBase.cs @@ -18,11 +18,14 @@ public MockClientTestBase(bool isAsync) : base(isAsync) public string FakeGuid => "00000000-0000-0000-0000-000000000000"; - public MetricsAdvisorClient CreateInstrumentedClient(MockResponse response) + public MetricsAdvisorClient CreateInstrumentedClient(MockResponse response) => + CreateInstrumentedClient(new MockTransport(response)); + + public MetricsAdvisorClient CreateInstrumentedClient(MockTransport transport, MetricsAdvisorKeyCredential credential = null) { var fakeEndpoint = new Uri("http://notreal.azure.com"); - var fakeCredential = new MetricsAdvisorKeyCredential("fakeSubscriptionKey", "fakeApiKey"); - var options = new MetricsAdvisorClientsOptions() { Transport = new MockTransport(response) }; + var fakeCredential = credential ?? new MetricsAdvisorKeyCredential("fakeSubscriptionKey", "fakeApiKey"); + var options = new MetricsAdvisorClientsOptions() { Transport = transport }; return InstrumentClient(new MetricsAdvisorClient(fakeEndpoint, fakeCredential, options)); } @@ -30,10 +33,10 @@ public MetricsAdvisorClient CreateInstrumentedClient(MockResponse response) public MetricsAdvisorAdministrationClient CreateInstrumentedAdministrationClient(MockResponse response) => CreateInstrumentedAdministrationClient(new MockTransport(response)); - public MetricsAdvisorAdministrationClient CreateInstrumentedAdministrationClient(MockTransport transport) + public MetricsAdvisorAdministrationClient CreateInstrumentedAdministrationClient(MockTransport transport, MetricsAdvisorKeyCredential credential = null) { var fakeEndpoint = new Uri("http://notreal.azure.com"); - var fakeCredential = new MetricsAdvisorKeyCredential("fakeSubscriptionKey", "fakeApiKey"); + var fakeCredential = credential ?? new MetricsAdvisorKeyCredential("fakeSubscriptionKey", "fakeApiKey"); var options = new MetricsAdvisorClientsOptions() { Transport = transport }; return InstrumentClient(new MetricsAdvisorAdministrationClient(fakeEndpoint, fakeCredential, options)); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Models/MetricsAdvisorKeyCredentialTests.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Models/MetricsAdvisorKeyCredentialTests.cs new file mode 100644 index 000000000000..b56424ca928c --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Models/MetricsAdvisorKeyCredentialTests.cs @@ -0,0 +1,93 @@ +// 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.AI.MetricsAdvisor.Administration; +using Azure.Core.TestFramework; +using NUnit.Framework; + +namespace Azure.AI.MetricsAdvisor.Tests +{ + public class MetricsAdvisorKeyCredentialTests : MockClientTestBase + { + public MetricsAdvisorKeyCredentialTests(bool isAsync) : base(isAsync) + { + } + + [Test] + public async Task MetricsAdvisorKeyCredentialSendsSecretInMetricsAdvisorClient() + { + MockResponse response = new MockResponse(200); + response.SetContent("{}"); + + MockTransport mockTransport = new MockTransport(response); + + string expectedSubscriptionKey = "fakeSubscriptionKey"; + string expectedApiKey = "fakeApiKey"; + MetricsAdvisorKeyCredential credential = new MetricsAdvisorKeyCredential(expectedSubscriptionKey, expectedApiKey); + + MetricsAdvisorClient client = CreateInstrumentedClient(mockTransport, credential); + + IAsyncEnumerator asyncEnumerator = client.GetAllFeedbackAsync(FakeGuid).GetAsyncEnumerator(); + await asyncEnumerator.MoveNextAsync(); + + MockRequest request = mockTransport.Requests.First(); + + Assert.That(request.Headers.TryGetValue(Constants.SubscriptionAuthorizationHeader, out string subscriptionKey)); + Assert.That(request.Headers.TryGetValue(Constants.ApiAuthorizationHeader, out string apiKey)); + + Assert.That(subscriptionKey, Is.EqualTo(expectedSubscriptionKey)); + Assert.That(apiKey, Is.EqualTo(expectedApiKey)); + } + + [Test] + public async Task MetricsAdvisorKeyCredentialSendsSecretInMetricsAdvisorAdministrationClient() + { + MockResponse response = new MockResponse(204); + MockTransport mockTransport = new MockTransport(response); + + string expectedSubscriptionKey = "fakeSubscriptionKey"; + string expectedApiKey = "fakeApiKey"; + MetricsAdvisorKeyCredential credential = new MetricsAdvisorKeyCredential(expectedSubscriptionKey, expectedApiKey); + + MetricsAdvisorAdministrationClient adminClient = CreateInstrumentedAdministrationClient(mockTransport, credential); + + await adminClient.DeleteAlertConfigurationAsync(FakeGuid); + + MockRequest request = mockTransport.Requests.First(); + + Assert.That(request.Headers.TryGetValue(Constants.SubscriptionAuthorizationHeader, out string subscriptionKey)); + Assert.That(request.Headers.TryGetValue(Constants.ApiAuthorizationHeader, out string apiKey)); + + Assert.That(subscriptionKey, Is.EqualTo(expectedSubscriptionKey)); + Assert.That(apiKey, Is.EqualTo(expectedApiKey)); + } + + [Test] + public async Task MetricsAdvisorKeyCredentialUpdatesSecret() + { + MockResponse response = new MockResponse(204); + MockTransport mockTransport = new MockTransport(response); + MetricsAdvisorKeyCredential credential = new MetricsAdvisorKeyCredential("fakeSubscriptionKey", "fakeApiKey"); + + string expectedSubscriptionKey = "newFakeSubscriptionKey"; + string expectedApiKey = "newFakeApiKey"; + + MetricsAdvisorAdministrationClient adminClient = CreateInstrumentedAdministrationClient(mockTransport, credential); + + credential.Update(expectedSubscriptionKey, expectedApiKey); + + await adminClient.DeleteAlertConfigurationAsync(FakeGuid); + + MockRequest request = mockTransport.Requests.First(); + + Assert.That(request.Headers.TryGetValue(Constants.SubscriptionAuthorizationHeader, out string subscriptionKey)); + Assert.That(request.Headers.TryGetValue(Constants.ApiAuthorizationHeader, out string apiKey)); + + Assert.That(subscriptionKey, Is.EqualTo(expectedSubscriptionKey)); + Assert.That(apiKey, Is.EqualTo(expectedApiKey)); + } + } +} diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample07_QueryDetectedAnomalies.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample07_QueryDetectedAnomalies.cs index 60d1908e3636..faea8ee84b39 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample07_QueryDetectedAnomalies.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample07_QueryDetectedAnomalies.cs @@ -33,7 +33,7 @@ public async Task GetAnomaliesForDetectionConfigurationAsync() int anomalyCount = 0; - await foreach (DataPointAnomaly anomaly in client.GetAnomaliesAsync(detectionConfigurationId, options)) + await foreach (DataPointAnomaly anomaly in client.GetAnomaliesForDetectionConfigurationAsync(detectionConfigurationId, options)) { Console.WriteLine($"Anomaly value: {anomaly.Value}"); @@ -84,7 +84,7 @@ public async Task GetAnomaliesForAlertAsync() int anomalyCount = 0; - await foreach (DataPointAnomaly anomaly in client.GetAnomaliesAsync(alertConfigurationId, alertId, options)) + await foreach (DataPointAnomaly anomaly in client.GetAnomaliesForAlertAsync(alertConfigurationId, alertId, options)) { Console.WriteLine($"Anomaly detection configuration ID: {anomaly.DetectionConfigurationId}"); Console.WriteLine($"Data feed ID: {anomaly.DataFeedId}"); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample08_QueryIncidentsAndRootCauses.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample08_QueryIncidentsAndRootCauses.cs index de74c87bc302..cbcc16d9af38 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample08_QueryIncidentsAndRootCauses.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample08_QueryIncidentsAndRootCauses.cs @@ -43,7 +43,7 @@ public async Task GetIncidentsForDetectionConfigurationAsync() int incidentCount = 0; - await foreach (AnomalyIncident incident in client.GetIncidentsAsync(detectionConfigurationId, options)) + await foreach (AnomalyIncident incident in client.GetIncidentsForDetectionConfigurationAsync(detectionConfigurationId, options)) { Console.WriteLine($"Incident ID: {incident.Id}"); Console.WriteLine($"First associated anomaly occurred at: {incident.StartTime}"); @@ -91,7 +91,7 @@ public async Task GetIncidentsForAlertAsync() int incidentCount = 0; - await foreach (AnomalyIncident incident in client.GetIncidentsAsync(alertConfigurationId, alertId, options)) + await foreach (AnomalyIncident incident in client.GetIncidentsForAlertAsync(alertConfigurationId, alertId, options)) { Console.WriteLine($"Incident ID: {incident.Id}"); Console.WriteLine($"Data feed ID: {incident.DataFeedId}"); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample09_QueryTimeSeriesInformation.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample09_QueryTimeSeriesInformation.cs index 8500a9c956be..edc5e81e1561 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample09_QueryTimeSeriesInformation.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/Samples/Sample09_QueryTimeSeriesInformation.cs @@ -180,10 +180,10 @@ public async Task GetMetricSeriesDataAsync() await foreach (MetricSeriesData seriesData in client.GetMetricSeriesDataAsync(metricId, options)) { - Console.WriteLine($"Time series metric ID: {seriesData.Definition.MetricId}"); + Console.WriteLine($"Time series metric ID: {seriesData.MetricId}"); Console.WriteLine("Time series key:"); - foreach (KeyValuePair keyValuePair in seriesData.Definition.SeriesKey.AsDictionary()) + foreach (KeyValuePair keyValuePair in seriesData.SeriesKey.AsDictionary()) { Console.WriteLine($" Dimension '{keyValuePair.Key}': {keyValuePair.Value}"); } @@ -229,7 +229,7 @@ public async Task GetMetricEnrichedSeriesDataAsync() var startTime = DateTimeOffset.Parse("2020-01-01T00:00:00Z"); var endTime = DateTimeOffset.UtcNow; - await foreach (MetricEnrichedSeriesData seriesData in client.GetMetricEnrichedSeriesDataAsync(seriesKeys, detectionConfigurationId, startTime, endTime)) + await foreach (MetricEnrichedSeriesData seriesData in client.GetMetricEnrichedSeriesDataAsync(detectionConfigurationId, seriesKeys, startTime, endTime)) { Console.WriteLine("Time series key:"); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetAnomalies(False).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetAnomaliesForAlert(False).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetAnomalies(False).json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetAnomaliesForAlert(False).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetAnomalies(False)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetAnomaliesForAlert(False)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetAnomalies(False)Async.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetAnomaliesForAlert(False)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetAnomalies(True).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetAnomaliesForAlert(True).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetAnomalies(True).json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetAnomaliesForAlert(True).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetAnomalies(True)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetAnomaliesForAlert(True)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetAnomalies(True)Async.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetAnomaliesForAlert(True)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetIncidents(False).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetIncidentsForAlert(False).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetIncidents(False).json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetIncidentsForAlert(False).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetIncidents(False)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetIncidentsForAlert(False)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetIncidents(False)Async.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetIncidentsForAlert(False)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetIncidents(True).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetIncidentsForAlert(True).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetIncidents(True).json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetIncidentsForAlert(True).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetIncidents(True)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetIncidentsForAlert(True)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetIncidents(True)Async.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AlertTriggeringLiveTests/GetIncidentsForAlert(True)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithMinimumSetup(False).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesForDetectionConfigurationWithMinimumSetup(False).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithMinimumSetup(False).json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesForDetectionConfigurationWithMinimumSetup(False).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithMinimumSetup(False)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesForDetectionConfigurationWithMinimumSetup(False)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithMinimumSetup(False)Async.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesForDetectionConfigurationWithMinimumSetup(False)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithMinimumSetup(True).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesForDetectionConfigurationWithMinimumSetup(True).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithMinimumSetup(True).json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesForDetectionConfigurationWithMinimumSetup(True).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithMinimumSetup(True)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesForDetectionConfigurationWithMinimumSetup(True)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithMinimumSetup(True)Async.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesForDetectionConfigurationWithMinimumSetup(True)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithOptionalFilter.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesForDetectionConfigurationWithOptionalFilter.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithOptionalFilter.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesForDetectionConfigurationWithOptionalFilter.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithOptionalFilterAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesForDetectionConfigurationWithOptionalFilterAsync.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesWithOptionalFilterAsync.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetAnomaliesForDetectionConfigurationWithOptionalFilterAsync.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetIncidentsWithMinimumSetup(False).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetIncidentsForDetectionConfigurationWithMinimumSetup(False).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetIncidentsWithMinimumSetup(False).json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetIncidentsForDetectionConfigurationWithMinimumSetup(False).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetIncidentsWithMinimumSetup(False)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetIncidentsForDetectionConfigurationWithMinimumSetup(False)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetIncidentsWithMinimumSetup(False)Async.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetIncidentsForDetectionConfigurationWithMinimumSetup(False)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetIncidentsWithMinimumSetup(True).json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetIncidentsForDetectionConfigurationWithMinimumSetup(True).json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetIncidentsWithMinimumSetup(True).json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetIncidentsForDetectionConfigurationWithMinimumSetup(True).json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetIncidentsWithMinimumSetup(True)Async.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetIncidentsForDetectionConfigurationWithMinimumSetup(True)Async.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetIncidentsWithMinimumSetup(True)Async.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetIncidentsForDetectionConfigurationWithMinimumSetup(True)Async.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetIncidentsWithOptionalDimensionFilter.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetIncidentsForDetectionConfigurationWithOptionalDimensionFilter.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetIncidentsWithOptionalDimensionFilter.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetIncidentsForDetectionConfigurationWithOptionalDimensionFilter.json diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetIncidentsWithOptionalDimensionFilterAsync.json b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetIncidentsForDetectionConfigurationWithOptionalDimensionFilterAsync.json similarity index 100% rename from sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetIncidentsWithOptionalDimensionFilterAsync.json rename to sdk/metricsadvisor/Azure.AI.MetricsAdvisor/tests/SessionRecords/AnomalyDetectionLiveTests/GetIncidentsForDetectionConfigurationWithOptionalDimensionFilterAsync.json diff --git a/sdk/metricsadvisor/ci.yml b/sdk/metricsadvisor/ci.yml index 6296a0cbb6aa..fb0b34d20945 100644 --- a/sdk/metricsadvisor/ci.yml +++ b/sdk/metricsadvisor/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/mgmtcommon/ClientRuntime.Log4Net/Microsoft.Rest.ClientRuntime.Log4Net.csproj b/sdk/mgmtcommon/ClientRuntime.Log4Net/Microsoft.Rest.ClientRuntime.Log4Net.csproj index 6495c6e7d0f1..4a41648d4270 100644 --- a/sdk/mgmtcommon/ClientRuntime.Log4Net/Microsoft.Rest.ClientRuntime.Log4Net.csproj +++ b/sdk/mgmtcommon/ClientRuntime.Log4Net/Microsoft.Rest.ClientRuntime.Log4Net.csproj @@ -16,7 +16,7 @@ - + diff --git a/sdk/mixedreality/Azure.MixedReality.Authentication/README.md b/sdk/mixedreality/Azure.MixedReality.Authentication/README.md index 12b8a16d38f9..7f9bdeb5e2ac 100644 --- a/sdk/mixedreality/Azure.MixedReality.Authentication/README.md +++ b/sdk/mixedreality/Azure.MixedReality.Authentication/README.md @@ -4,7 +4,7 @@ Mixed Reality services, like Azure Spatial Anchors, Azure Remote Rendering, and token service (STS) for authentication. This package supports exchanging Mixed Reality account credentials for an access token from the STS that can be used to access Mixed Reality services. -[Source code](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/mixedreality/Azure.MixedReality.Authentication/src) | [Package (NuGet)](https://www.nuget.org/packages/Azure.MixedReality.Authentication) +[Source code](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/mixedreality/Azure.MixedReality.Authentication/src) | [Package (NuGet)](https://www.nuget.org/packages/Azure.MixedReality.Authentication) ![Mixed Reality service authentication diagram](https://docs.microsoft.com/azure/spatial-anchors/concepts/media/spatial-anchors-authentication-overview.png) @@ -60,7 +60,7 @@ Add a package reference: - You must have an account with an [Azure Mixed Reality service](https://azure.microsoft.com/topic/mixed-reality/): - [Azure Remote Rendering](https://docs.microsoft.com/azure/remote-rendering/) - [Azure Spatial Anchors](https://docs.microsoft.com/azure/spatial-anchors/) -- Familiarity with the authentication and credential concepts from [Azure.Identity](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md). +- Familiarity with the authentication and credential concepts from [Azure.Identity](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md). ### Authenticate the client @@ -82,7 +82,7 @@ See [here](https://docs.microsoft.com/azure/spatial-anchors/concepts/authenticat #### Authentication examples Below are some examples of some common authentication scenarios, but more examples and information can be found at -[Azure.Identity](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md). +[Azure.Identity](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md). ##### Authenticating with account key authentication @@ -156,12 +156,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -198,8 +198,8 @@ documentation for the client library you're using to determine if and how this m ## Troubleshooting -- [Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) -- [Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) +- [Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) +- [Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) ## Next steps diff --git a/sdk/mixedreality/ci.yml b/sdk/mixedreality/ci.yml index 312433a52424..33f66aa4834f 100644 --- a/sdk/mixedreality/ci.yml +++ b/sdk/mixedreality/ci.yml @@ -2,7 +2,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -13,7 +12,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/modelsrepository/Azure.IoT.ModelsRepository/README.md b/sdk/modelsrepository/Azure.IoT.ModelsRepository/README.md index dfbe161dc7b0..aadfe826665a 100644 --- a/sdk/modelsrepository/Azure.IoT.ModelsRepository/README.md +++ b/sdk/modelsrepository/Azure.IoT.ModelsRepository/README.md @@ -43,12 +43,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -80,14 +80,14 @@ For more information see the [Code of Conduct FAQ][code_of_conduct_faq] or conta [microsoft_sdk_download]: https://azure.microsoft.com/downloads/?sdk=net [azure_sdk_target_frameworks]: https://github.com/azure/azure-sdk-for-net#target-frameworks -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/modelsrepository/Azure.IoT.ModelsRepository/src +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/modelsrepository/Azure.IoT.ModelsRepository/src [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ [code_of_conduct_faq]: https://opensource.microsoft.com/codeofconduct/faq/ [nuget]: https://www.nuget.org/ -[azure_core_library]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core +[azure_core_library]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core [modelsrepository_conventions]: https://github.com/Azure/iot-plugandplay-models-tools/wiki [modelsrepository_iot_endpoint]: https://devicemodels.azure.com/ -[modelsrepository_samples]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/modelsrepository/Azure.IoT.ModelsRepository/samples +[modelsrepository_samples]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/modelsrepository/Azure.IoT.ModelsRepository/samples [thread_safety_guideline]: https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-service-methods-thread-safety [json_ld_reference]: https://json-ld.org [dtdlv2_reference]: https://github.com/Azure/opendigitaltwins-dtdl/blob/master/DTDL/v2/dtdlv2.md diff --git a/sdk/modelsrepository/Azure.IoT.ModelsRepository/samples/readme.md b/sdk/modelsrepository/Azure.IoT.ModelsRepository/samples/readme.md index 0394a80c5b2a..69e9374cd1c7 100644 --- a/sdk/modelsrepository/Azure.IoT.ModelsRepository/samples/readme.md +++ b/sdk/modelsrepository/Azure.IoT.ModelsRepository/samples/readme.md @@ -39,7 +39,7 @@ It provides an opportunity to override default behavior including: - Overriding [transport][azure_core_transport] - Enabling [diagnostics][azure_core_diagnostics] -- Controlling [retry strategy](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Configuration.md) +- Controlling [retry strategy](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Configuration.md) ## Publish Models @@ -171,13 +171,13 @@ Console.WriteLine(fullyQualifiedModelPath); [modelsrepository_github_repo]: https://github.com/Azure/iot-plugandplay-models -[modelsrepository_sample_extension]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/modelsrepository/Azure.IoT.ModelsRepository/samples/ModelsRepositoryClientSamples/ModelsRepositoryClientExtensions.cs -[modelsrepository_clientoptions]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/modelsrepository/Azure.IoT.ModelsRepository/src/ModelsRepositoryClientOptions.cs +[modelsrepository_sample_extension]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/modelsrepository/Azure.IoT.ModelsRepository/samples/ModelsRepositoryClientSamples/ModelsRepositoryClientExtensions.cs +[modelsrepository_clientoptions]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/modelsrepository/Azure.IoT.ModelsRepository/src/ModelsRepositoryClientOptions.cs [modelsrepository_msdocs]: https://docs.microsoft.com/azure/iot-pnp/concepts-model-repository [modelsrepository_publish_msdocs]: https://docs.microsoft.com/azure/iot-pnp/concepts-model-repository#publish-a-model [modelsrepository_iot_endpoint]: https://devicemodels.azure.com/ [json_ld_reference]: https://json-ld.org [dtdlv2_reference]: https://github.com/Azure/opendigitaltwins-dtdl/blob/master/DTDL/v2/dtdlv2.md -[azure_core_transport]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Pipeline.md -[azure_core_diagnostics]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md -[azure_core_configuration]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Configuration.md +[azure_core_transport]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Pipeline.md +[azure_core_diagnostics]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md +[azure_core_configuration]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Configuration.md diff --git a/sdk/modelsrepository/ci.yml b/sdk/modelsrepository/ci.yml index 9449d401ab48..3475d229bf2f 100644 --- a/sdk/modelsrepository/ci.yml +++ b/sdk/modelsrepository/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/README.md b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/README.md index e74daa1e521d..6fe1ffb894af 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/README.md +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/README.md @@ -35,7 +35,7 @@ This exporter sends traces to the configured Azure Monitor Resource using HTTPS. ## Examples -Refer to [`DemoTrace.cs`](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Demo.Tracing/DemoTrace.cs) for a complete demo. +Refer to [`DemoTrace.cs`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Demo.Tracing/DemoTrace.cs) for a complete demo. ```csharp using Azure.Monitor.OpenTelemetry.Exporter; @@ -59,7 +59,7 @@ For more information on Azure SDK, please refer to [this website](https://azure. ## Contributing -See [CONTRIBUTING.md](https://github.com/Azure/azure-sdk-for-net/blob/master/CONTRIBUTING.md) for details on contribution process. +See [CONTRIBUTING.md](https://github.com/Azure/azure-sdk-for-net/blob/main/CONTRIBUTING.md) for details on contribution process. ## Release Schedule diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/TelemetryPartA.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/TelemetryPartA.cs index 755ea04dd591..39b2e405a046 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/TelemetryPartA.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/src/TelemetryPartA.cs @@ -18,6 +18,7 @@ namespace Azure.Monitor.OpenTelemetry.Exporter /// internal class TelemetryPartA { + private const string DateTimeFormat = "yyyy-MM-ddTHH:mm:ss.fffffffZ"; private static readonly IReadOnlyDictionary PartA_Name_Mapping = new Dictionary { [TelemetryType.Request] = "Request", @@ -32,7 +33,7 @@ internal class TelemetryPartA internal static TelemetryItem GetTelemetryItem(Activity activity, Resource resource, string instrumentationKey) { - TelemetryItem telemetryItem = new TelemetryItem(PartA_Name_Mapping[activity.GetTelemetryType()], activity.StartTimeUtc.ToString(CultureInfo.InvariantCulture)) + TelemetryItem telemetryItem = new TelemetryItem(PartA_Name_Mapping[activity.GetTelemetryType()], FormatUtcTimestamp(activity.StartTimeUtc)) { InstrumentationKey = instrumentationKey }; @@ -55,7 +56,7 @@ internal static TelemetryItem GetTelemetryItem(Activity activity, Resource resou internal static TelemetryItem GetTelemetryItem(LogRecord logRecord, string instrumentationKey) { var name = PartA_Name_Mapping[TelemetryType.Message]; - var time = logRecord.Timestamp.ToString(CultureInfo.InvariantCulture); + var time = FormatUtcTimestamp(logRecord.Timestamp); TelemetryItem telemetryItem = new TelemetryItem(name, time) { @@ -122,5 +123,10 @@ internal static void InitRoleInfo(Resource resource) RoleName = serviceName; } } + + internal static string FormatUtcTimestamp(System.DateTime utcTimestamp) + { + return utcTimestamp.ToString(DateTimeFormat, CultureInfo.InvariantCulture); + } } } diff --git a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/TelemetryPartATests.cs b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/TelemetryPartATests.cs index c35cbd499fc8..ebdd4d607efc 100644 --- a/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/TelemetryPartATests.cs +++ b/sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter/tests/Azure.Monitor.OpenTelemetry.Exporter.Tests/TelemetryPartATests.cs @@ -17,6 +17,8 @@ namespace Azure.Monitor.OpenTelemetry.Exporter.Demo.Tracing public class TelemetryPartATests { private const string ResourcePropertyName = "OTel.Resource"; + private const string ActivitySourceName = "TelemetryPartATests"; + private const string ActivityName = "TestActivity"; static TelemetryPartATests() { @@ -110,13 +112,19 @@ public void InitRoleInfo_ServiceNameAndInstanceAndNamespace() [Fact] public void GeneratePartAEnvelope_DefaultActivity_DefaultResource() { - var activity = CreateTestActivity(); + using ActivitySource activitySource = new ActivitySource(ActivitySourceName); + using var activity = activitySource.StartActivity( + ActivityName, + ActivityKind.Client, + parentContext: default, + startTime: DateTime.UtcNow); + var resource = CreateTestResource(); var telemetryItem = TelemetryPartA.GetTelemetryItem(activity, resource, null); Assert.Equal("RemoteDependency", telemetryItem.Name); - Assert.Equal(activity.StartTimeUtc.ToString(CultureInfo.InvariantCulture), telemetryItem.Time); + Assert.Equal(TelemetryPartA.FormatUtcTimestamp(activity.StartTimeUtc), telemetryItem.Time); Assert.StartsWith("unknown_service", telemetryItem.Tags[ContextTagKeys.AiCloudRole.ToString()]); Assert.Null(telemetryItem.Tags[ContextTagKeys.AiCloudRoleInstance.ToString()]); Assert.NotNull(telemetryItem.Tags[ContextTagKeys.AiOperationId.ToString()]); @@ -127,13 +135,19 @@ public void GeneratePartAEnvelope_DefaultActivity_DefaultResource() [Fact] public void GeneratePartAEnvelope_Activity_WithResource() { - var activity = CreateTestActivity(); + using ActivitySource activitySource = new ActivitySource(ActivitySourceName); + using var activity = activitySource.StartActivity( + ActivityName, + ActivityKind.Client, + parentContext: default, + startTime: DateTime.UtcNow); + var resource = CreateTestResource(serviceName: "my-service", serviceInstance: "my-instance"); var telemetryItem = TelemetryPartA.GetTelemetryItem(activity, resource, null); Assert.Equal("RemoteDependency", telemetryItem.Name); - Assert.Equal(activity.StartTimeUtc.ToString(CultureInfo.InvariantCulture), telemetryItem.Time); + Assert.Equal(TelemetryPartA.FormatUtcTimestamp(activity.StartTimeUtc), telemetryItem.Time); Assert.Equal("my-service", telemetryItem.Tags[ContextTagKeys.AiCloudRole.ToString()]); Assert.Equal("my-instance", telemetryItem.Tags[ContextTagKeys.AiCloudRoleInstance.ToString()]); Assert.Equal(activity.TraceId.ToHexString(), telemetryItem.Tags[ContextTagKeys.AiOperationId.ToString()]); @@ -166,103 +180,5 @@ private static Resource CreateTestResource(string serviceName = null, string ser return ResourceBuilder.CreateDefault().AddAttributes(testAttributes).Build(); } - - private static Activity CreateTestActivity( - bool setAttributes = true, - Dictionary additionalAttributes = null, - bool addEvents = true, - bool addLinks = true, - Resource resource = null, - ActivityKind kind = ActivityKind.Client) - { - var startTimestamp = DateTime.UtcNow; - var endTimestamp = startTimestamp.AddSeconds(60); - var eventTimestamp = DateTime.UtcNow; - var traceId = ActivityTraceId.CreateRandom(); - - var parentSpanId = ActivitySpanId.CreateRandom(); - - var attributes = new Dictionary - { - { "stringKey", "value" }, - { "longKey", 1L }, - { "longKey2", 1 }, - { "doubleKey", 1D }, - { "doubleKey2", 1F }, - { "boolKey", true }, - { "int_array", new int[] { 1, 2 } }, - { "bool_array", new bool[] { true, false } }, - { "double_array", new double[] { 1.0, 1.1 } }, - { "string_array", new string[] { "a", "b" } }, - }; - if (additionalAttributes != null) - { - foreach (var attribute in additionalAttributes) - { - attributes.Add(attribute.Key, attribute.Value); - } - } - - var events = new List - { - new ActivityEvent( - "Event1", - eventTimestamp, - new ActivityTagsCollection(new Dictionary - { - { "key", "value" }, - })), - new ActivityEvent( - "Event2", - eventTimestamp, - new ActivityTagsCollection(new Dictionary - { - { "key", "value" }, - })), - }; - - var linkedSpanId = ActivitySpanId.CreateRandom(); - - var activitySource = new ActivitySource(nameof(CreateTestActivity)); - - var tags = setAttributes ? - attributes - : null; - var links = addLinks ? - new[] - { - new ActivityLink(new ActivityContext( - traceId, - linkedSpanId, - ActivityTraceFlags.Recorded)), - } - : null; - - var activity = activitySource.StartActivity( - "Name", - kind, - parentContext: new ActivityContext(traceId, parentSpanId, ActivityTraceFlags.Recorded), - tags, - links, - startTime: startTimestamp); - - if (addEvents) - { - foreach (var evnt in events) - { - activity.AddEvent(evnt); - } - } - - if (resource != null) - { - activity.SetCustomProperty(ResourcePropertyName, resource); - } - - activity.SetEndTime(endTimestamp); - activity.Stop(); - - return activity; - } } } diff --git a/sdk/monitor/Azure.Monitor.Query/README.md b/sdk/monitor/Azure.Monitor.Query/README.md index df661d66af7f..9ddf42f4e5fa 100644 --- a/sdk/monitor/Azure.Monitor.Query/README.md +++ b/sdk/monitor/Azure.Monitor.Query/README.md @@ -40,12 +40,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -308,7 +308,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc_faq] or contact [opencode@microsoft.com][coc_contact] with any additional questions or comments. -[query_client_src]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/monitor/Azure.Monitor.Query/src +[query_client_src]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/monitor/Azure.Monitor.Query/src [query_client_nuget_package]: https://www.nuget.org/packages?q=Azure.Monitor.Query [monitor_rest_api]: https://docs.microsoft.com/rest/api/monitor/ [azure_cli]: https://docs.microsoft.com/cli/azure diff --git a/sdk/monitor/Azure.Monitor.Query/src/Azure.Monitor.Query.csproj b/sdk/monitor/Azure.Monitor.Query/src/Azure.Monitor.Query.csproj index 856c49c228c4..5925eea8a79b 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Azure.Monitor.Query.csproj +++ b/sdk/monitor/Azure.Monitor.Query/src/Azure.Monitor.Query.csproj @@ -1,6 +1,6 @@ - This library allows querying logs and metrics from the Azure Motnitor service. + This library allows querying logs and metrics from the Azure Monitor service. Azure Monitor Query client library 1.0.0-beta.2 Azure Monitor Query diff --git a/sdk/monitor/ci.yml b/sdk/monitor/ci.yml index 6900017f8fd0..aa62137a43a2 100644 --- a/sdk/monitor/ci.yml +++ b/sdk/monitor/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/network/Azure.ResourceManager.Network/README.md b/sdk/network/Azure.ResourceManager.Network/README.md index f58913ce6544..7d46a838a4a8 100644 --- a/sdk/network/Azure.ResourceManager.Network/README.md +++ b/sdk/network/Azure.ResourceManager.Network/README.md @@ -18,7 +18,7 @@ Install-Package Azure.ResourceManager.Network -Version 1.0.0-preview.2 ### Authenticate the Client -To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) ## Key concepts @@ -28,9 +28,9 @@ Key concepts of the Azure .NET SDK can be found [here](https://azure.github.io/a Documentation is available to help you learn how to use this package -- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) - [API References](https://docs.microsoft.com/dotnet/api/?view=azure-dotnet) -- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md) +- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md) ## Examples diff --git a/sdk/network/ci.yml b/sdk/network/ci.yml index 430bde0c834b..e6518749d655 100644 --- a/sdk/network/ci.yml +++ b/sdk/network/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/README.md b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/README.md index bb5c869d3dce..a584c5ebac63 100644 --- a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/README.md +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/README.md @@ -2,7 +2,7 @@ Azure Object Anchors enables an application to detect an object in the physical world using a 3D model and estimate its 6-DoF pose. This package supports the conversion of an existing 3D asset into a form that can be used by the Object Anchors runtime to detect physical objects. -[Source code](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src) | [Package (NuGet)](https://www.nuget.org/packages/Azure.MixedReality.ObjectAnchors.Conversion/) +[Source code](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src) | [Package (NuGet)](https://www.nuget.org/packages/Azure.MixedReality.ObjectAnchors.Conversion/) - [Azure Object Anchors client library for .NET](#azure-object-anchors-client-library-for-net) - [Getting started](#getting-started) @@ -130,8 +130,8 @@ using (FileStream file = File.OpenWrite(localFileDownloadPath)) ## Troubleshooting -- See [Error Handling](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md#error-handling) for Azure.Identity. -- See [Logging](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md#logging) for Azure.Identity. +- See [Error Handling](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md#error-handling) for Azure.Identity. +- See [Logging](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md#logging) for Azure.Identity. ## Next steps diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/api/Azure.MixedReality.ObjectAnchors.Conversion.netstandard2.0.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/api/Azure.MixedReality.ObjectAnchors.Conversion.netstandard2.0.cs index 739559fdb121..f2e216bd70c2 100644 --- a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/api/Azure.MixedReality.ObjectAnchors.Conversion.netstandard2.0.cs +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/api/Azure.MixedReality.ObjectAnchors.Conversion.netstandard2.0.cs @@ -1,10 +1,5 @@ namespace Azure.MixedReality.ObjectAnchors.Conversion { - public static partial class AOAFrontEndAPIsModelFactory - { - public static Azure.MixedReality.ObjectAnchors.Conversion.AssetConversionProperties AssetConversionProperties(string clientErrorDetails = null, string serverErrorDetails = null, Azure.MixedReality.ObjectAnchors.Conversion.Models.ConversionErrorCode errorCode = default(Azure.MixedReality.ObjectAnchors.Conversion.Models.ConversionErrorCode), System.Guid? jobIdInternal = default(System.Guid?), string outputModelUriString = null, Azure.MixedReality.ObjectAnchors.Conversion.AssetConversionStatus? conversionStatus = default(Azure.MixedReality.ObjectAnchors.Conversion.AssetConversionStatus?), string assetFileTypeString = null, string inputAssetUriString = null, System.Guid? accountIdInternal = default(System.Guid?), Azure.MixedReality.ObjectAnchors.Conversion.AssetConversionConfiguration conversionConfiguration = null) { throw null; } - public static Azure.MixedReality.ObjectAnchors.Conversion.AssetUploadUriResult AssetUploadUriResult(string uploadUriString = null) { throw null; } - } public partial class AssetConversionConfiguration { internal AssetConversionConfiguration() { } @@ -50,7 +45,7 @@ internal AssetConversionProperties() { } public string ClientErrorDetails { get { throw null; } } public Azure.MixedReality.ObjectAnchors.Conversion.AssetConversionConfiguration ConversionConfiguration { get { throw null; } } public Azure.MixedReality.ObjectAnchors.Conversion.AssetConversionStatus? ConversionStatus { get { throw null; } } - public Azure.MixedReality.ObjectAnchors.Conversion.Models.ConversionErrorCode ErrorCode { get { throw null; } } + public Azure.MixedReality.ObjectAnchors.Conversion.ConversionErrorCode ErrorCode { get { throw null; } } public Azure.MixedReality.ObjectAnchors.Conversion.AssetFileType InputAssetFileType { get { throw null; } } public System.Uri InputAssetUri { get { throw null; } } public System.Guid JobId { get { throw null; } set { } } @@ -86,6 +81,16 @@ public enum AssetConversionStatus public static bool operator !=(Azure.MixedReality.ObjectAnchors.Conversion.AssetFileType left, Azure.MixedReality.ObjectAnchors.Conversion.AssetFileType right) { throw null; } public override string ToString() { throw null; } } + public partial class AssetFileTypeNotSupportedException : System.Exception, System.Runtime.Serialization.ISerializable + { + public AssetFileTypeNotSupportedException() { } + protected AssetFileTypeNotSupportedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + public AssetFileTypeNotSupportedException(string message) { } + public AssetFileTypeNotSupportedException(string message, System.Exception inner) { } + public Azure.MixedReality.ObjectAnchors.Conversion.AssetFileType AttemptedFileType { get { throw null; } } + public System.Collections.Generic.IReadOnlyList SupportedAssetFileTypes { get { throw null; } } + public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + } public enum AssetLengthUnit { Meters = 0, @@ -102,6 +107,36 @@ public partial class AssetUploadUriResult internal AssetUploadUriResult() { } public System.Uri UploadUri { get { throw null; } } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ConversionErrorCode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ConversionErrorCode(string value) { throw null; } + public static Azure.MixedReality.ObjectAnchors.Conversion.ConversionErrorCode AssetCannotBeConverted { get { throw null; } } + public static Azure.MixedReality.ObjectAnchors.Conversion.ConversionErrorCode AssetDimensionsOutOfBounds { get { throw null; } } + public static Azure.MixedReality.ObjectAnchors.Conversion.ConversionErrorCode AssetSizeTooLarge { get { throw null; } } + public static Azure.MixedReality.ObjectAnchors.Conversion.ConversionErrorCode InvalidAssetUri { get { throw null; } } + public static Azure.MixedReality.ObjectAnchors.Conversion.ConversionErrorCode InvalidFaceVertices { get { throw null; } } + public static Azure.MixedReality.ObjectAnchors.Conversion.ConversionErrorCode InvalidGravity { get { throw null; } } + public static Azure.MixedReality.ObjectAnchors.Conversion.ConversionErrorCode InvalidJobId { get { throw null; } } + public static Azure.MixedReality.ObjectAnchors.Conversion.ConversionErrorCode InvalidScale { get { throw null; } } + public static Azure.MixedReality.ObjectAnchors.Conversion.ConversionErrorCode NoError { get { throw null; } } + public static Azure.MixedReality.ObjectAnchors.Conversion.ConversionErrorCode ServiceError { get { throw null; } } + public static Azure.MixedReality.ObjectAnchors.Conversion.ConversionErrorCode TooManyRigPoses { get { throw null; } } + public static Azure.MixedReality.ObjectAnchors.Conversion.ConversionErrorCode Unknown { get { throw null; } } + public static Azure.MixedReality.ObjectAnchors.Conversion.ConversionErrorCode ZeroFaces { get { throw null; } } + public static Azure.MixedReality.ObjectAnchors.Conversion.ConversionErrorCode ZeroTrajectoriesGenerated { get { throw null; } } + public bool Equals(Azure.MixedReality.ObjectAnchors.Conversion.ConversionErrorCode 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.MixedReality.ObjectAnchors.Conversion.ConversionErrorCode left, Azure.MixedReality.ObjectAnchors.Conversion.ConversionErrorCode right) { throw null; } + public static implicit operator Azure.MixedReality.ObjectAnchors.Conversion.ConversionErrorCode (string value) { throw null; } + public static bool operator !=(Azure.MixedReality.ObjectAnchors.Conversion.ConversionErrorCode left, Azure.MixedReality.ObjectAnchors.Conversion.ConversionErrorCode right) { throw null; } + public override string ToString() { throw null; } + } public partial class ObjectAnchorsConversionClient { protected ObjectAnchorsConversionClient() { } @@ -111,6 +146,7 @@ public ObjectAnchorsConversionClient(System.Guid accountId, string accountDomain public ObjectAnchorsConversionClient(System.Guid accountId, string accountDomain, Azure.Core.TokenCredential credential, Azure.MixedReality.ObjectAnchors.Conversion.ObjectAnchorsConversionClientOptions options = null) { } public string AccountDomain { get { throw null; } } public System.Guid AccountId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList SupportedAssetFileTypes { get { throw null; } } public virtual Azure.Response GetAssetUploadUri(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAssetUploadUriAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.MixedReality.ObjectAnchors.Conversion.AssetConversionOperation StartAssetConversion(Azure.MixedReality.ObjectAnchors.Conversion.AssetConversionOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -130,7 +166,7 @@ public enum ServiceVersion public static partial class ObjectAnchorsConversionModelFactory { public static Azure.MixedReality.ObjectAnchors.Conversion.AssetConversionConfiguration AssetConversionConfiguration(System.Numerics.Vector3 assetDimensions, System.Numerics.Vector3 boundingBoxCenter, System.Numerics.Vector3 gravity, System.Collections.Generic.IReadOnlyList keyFrameIndexes, System.Collections.Generic.IReadOnlyList groundTruthTrajectoryCameraPoses, System.Numerics.Quaternion principalAxis, float scale, System.Numerics.Vector4 supportingPlane, System.Collections.Generic.IReadOnlyList testTrajectoryCameraPoses) { throw null; } - public static Azure.MixedReality.ObjectAnchors.Conversion.AssetConversionProperties AssetConversionProperties(string clientErrorDetails, string serverErrorDetails, Azure.MixedReality.ObjectAnchors.Conversion.Models.ConversionErrorCode conversionErrorCode, System.Guid? jobId, System.Uri outputModelUri, Azure.MixedReality.ObjectAnchors.Conversion.AssetConversionStatus? assetConversionStatus, Azure.MixedReality.ObjectAnchors.Conversion.AssetFileType assetFileType, System.Uri uploadedInputAssetUri, System.Guid? accountId, Azure.MixedReality.ObjectAnchors.Conversion.AssetConversionConfiguration assetConversionConfiguration) { throw null; } + public static Azure.MixedReality.ObjectAnchors.Conversion.AssetConversionProperties AssetConversionProperties(string clientErrorDetails, string serverErrorDetails, Azure.MixedReality.ObjectAnchors.Conversion.ConversionErrorCode conversionErrorCode, System.Guid? jobId, System.Uri outputModelUri, Azure.MixedReality.ObjectAnchors.Conversion.AssetConversionStatus? assetConversionStatus, Azure.MixedReality.ObjectAnchors.Conversion.AssetFileType assetFileType, System.Uri uploadedInputAssetUri, System.Guid? accountId, Azure.MixedReality.ObjectAnchors.Conversion.AssetConversionConfiguration assetConversionConfiguration) { throw null; } public static Azure.MixedReality.ObjectAnchors.Conversion.AssetUploadUriResult GetAssetUploadUriResult(System.Uri uploadedInputAssetUri) { throw null; } public static Azure.MixedReality.ObjectAnchors.Conversion.TrajectoryPose TrajectoryPose(System.Numerics.Quaternion rotation, System.Numerics.Vector3 translation) { throw null; } } @@ -148,36 +184,3 @@ public static partial class ObjectAnchorsConversionModelFactory public override int GetHashCode() { throw null; } } } -namespace Azure.MixedReality.ObjectAnchors.Conversion.Models -{ - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ConversionErrorCode : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public ConversionErrorCode(string value) { throw null; } - public static Azure.MixedReality.ObjectAnchors.Conversion.Models.ConversionErrorCode AssetCannotBeConverted { get { throw null; } } - public static Azure.MixedReality.ObjectAnchors.Conversion.Models.ConversionErrorCode AssetDimensionsOutOfBounds { get { throw null; } } - public static Azure.MixedReality.ObjectAnchors.Conversion.Models.ConversionErrorCode AssetSizeTooLarge { get { throw null; } } - public static Azure.MixedReality.ObjectAnchors.Conversion.Models.ConversionErrorCode InvalidAssetUri { get { throw null; } } - public static Azure.MixedReality.ObjectAnchors.Conversion.Models.ConversionErrorCode InvalidFaceVertices { get { throw null; } } - public static Azure.MixedReality.ObjectAnchors.Conversion.Models.ConversionErrorCode InvalidGravity { get { throw null; } } - public static Azure.MixedReality.ObjectAnchors.Conversion.Models.ConversionErrorCode InvalidJobId { get { throw null; } } - public static Azure.MixedReality.ObjectAnchors.Conversion.Models.ConversionErrorCode InvalidScale { get { throw null; } } - public static Azure.MixedReality.ObjectAnchors.Conversion.Models.ConversionErrorCode NoError { get { throw null; } } - public static Azure.MixedReality.ObjectAnchors.Conversion.Models.ConversionErrorCode ServiceError { get { throw null; } } - public static Azure.MixedReality.ObjectAnchors.Conversion.Models.ConversionErrorCode TooManyRigPoses { get { throw null; } } - public static Azure.MixedReality.ObjectAnchors.Conversion.Models.ConversionErrorCode Unknown { get { throw null; } } - public static Azure.MixedReality.ObjectAnchors.Conversion.Models.ConversionErrorCode ZeroFaces { get { throw null; } } - public static Azure.MixedReality.ObjectAnchors.Conversion.Models.ConversionErrorCode ZeroTrajectoriesGenerated { get { throw null; } } - public bool Equals(Azure.MixedReality.ObjectAnchors.Conversion.Models.ConversionErrorCode 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.MixedReality.ObjectAnchors.Conversion.Models.ConversionErrorCode left, Azure.MixedReality.ObjectAnchors.Conversion.Models.ConversionErrorCode right) { throw null; } - public static implicit operator Azure.MixedReality.ObjectAnchors.Conversion.Models.ConversionErrorCode (string value) { throw null; } - public static bool operator !=(Azure.MixedReality.ObjectAnchors.Conversion.Models.ConversionErrorCode left, Azure.MixedReality.ObjectAnchors.Conversion.Models.ConversionErrorCode right) { throw null; } - public override string ToString() { throw null; } - } -} diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/AssetFileTypeNotSupportedException.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/AssetFileTypeNotSupportedException.cs new file mode 100644 index 000000000000..b441b7baa6c3 --- /dev/null +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/AssetFileTypeNotSupportedException.cs @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.Runtime.Serialization; +using Azure.Core; + +namespace Azure.MixedReality.ObjectAnchors.Conversion +{ + /// + /// An Exception thrown during an attempt to provide an unsupported asset file type in an asset conversion operation + /// + public class AssetFileTypeNotSupportedException : Exception, ISerializable + { + /// + /// Creates an instance of the + /// + public AssetFileTypeNotSupportedException() + : base($"The provided asset file type is unsupported by Azure Object Anchors for conversion.") + { + } + + /// + /// Creates an instance of the + /// + /// The message corresponding to the exception + public AssetFileTypeNotSupportedException(string message) + : base(message) + { + } + + /// + /// Creates an Exception thrown during an attempt to provide an unsupported asset file type in an asset conversion operation + /// + /// The message corresponding to the exception + /// The inner exception + public AssetFileTypeNotSupportedException(string message, Exception inner) + : base(message, inner) + { + } + + /// + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + Argument.AssertNotNull(info, nameof(info)); + + info.AddValue(nameof(AttemptedFileType), AttemptedFileType); + info.AddValue(nameof(SupportedAssetFileTypes), SupportedAssetFileTypes); + + base.GetObjectData(info, context); + } + + internal AssetFileTypeNotSupportedException(AssetFileType assetFileType, IReadOnlyList supportedAssetFileTypes) + : base($"The provided asset file type of \"{assetFileType}\" is unsupported by Azure Object Anchors for conversion. Supported file types: {string.Join(", ", supportedAssetFileTypes)}") + { + AttemptedFileType = assetFileType; + SupportedAssetFileTypes = supportedAssetFileTypes; + } + + /// + /// An Exception thrown during an attempt to provide an unsupported asset file type in an asset conversion operation + /// + /// The SerializationInfo + /// The StreamingContext + protected AssetFileTypeNotSupportedException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + AttemptedFileType = (AssetFileType) info.GetValue(nameof(AttemptedFileType), typeof(AssetFileType)); + SupportedAssetFileTypes = (IReadOnlyList) info.GetValue(nameof(SupportedAssetFileTypes), typeof(IReadOnlyList)); + } + + /// + /// The unsupported filetype provided for asset conversion + /// + public AssetFileType AttemptedFileType { get; } + + /// + /// The list of file types supported by Azure Object Anchors Conversion + /// + public IReadOnlyList SupportedAssetFileTypes { get; } + } +} diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Customizations/Models/AOAFrontEndAPIsModelFactory.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Customizations/Models/AOAFrontEndAPIsModelFactory.cs new file mode 100644 index 000000000000..1ddb96e3fb54 --- /dev/null +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Customizations/Models/AOAFrontEndAPIsModelFactory.cs @@ -0,0 +1,13 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using Azure.MixedReality.ObjectAnchors.Conversion.Models; + +namespace Azure.MixedReality.ObjectAnchors.Conversion +{ + /// Model factory for read-only models. + internal static partial class AOAFrontEndAPIsModelFactory + { + } +} diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Customizations/Models/ConversionErrorCode.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Customizations/Models/ConversionErrorCode.cs new file mode 100644 index 000000000000..130061ac374f --- /dev/null +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Customizations/Models/ConversionErrorCode.cs @@ -0,0 +1,13 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; + +namespace Azure.MixedReality.ObjectAnchors.Conversion +{ + /// The ConversionErrorCode. + [CodeGenModel("ConversionErrorCode")] + public readonly partial struct ConversionErrorCode + { + } +} diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/AOAFrontEndAPIsModelFactory.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/AOAFrontEndAPIsModelFactory.cs index 1045dff23f35..01f544ba9138 100644 --- a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/AOAFrontEndAPIsModelFactory.cs +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/AOAFrontEndAPIsModelFactory.cs @@ -6,12 +6,11 @@ #nullable disable using System; -using Azure.MixedReality.ObjectAnchors.Conversion.Models; namespace Azure.MixedReality.ObjectAnchors.Conversion { /// Model factory for read-only models. - public static partial class AOAFrontEndAPIsModelFactory + internal static partial class AOAFrontEndAPIsModelFactory { /// Initializes new instance of AssetConversionProperties class. /// Information about the cause of a ClientError JobStatus. diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetConversionProperties.Serialization.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetConversionProperties.Serialization.cs index 53b8f42f5944..2574cb7678ea 100644 --- a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetConversionProperties.Serialization.cs +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetConversionProperties.Serialization.cs @@ -8,7 +8,6 @@ using System; using System.Text.Json; using Azure.Core; -using Azure.MixedReality.ObjectAnchors.Conversion.Models; namespace Azure.MixedReality.ObjectAnchors.Conversion { diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetConversionProperties.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetConversionProperties.cs index 8829019a5796..02e8f25b5da3 100644 --- a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetConversionProperties.cs +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/AssetConversionProperties.cs @@ -6,7 +6,6 @@ #nullable disable using System; -using Azure.MixedReality.ObjectAnchors.Conversion.Models; namespace Azure.MixedReality.ObjectAnchors.Conversion { diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/ConversionErrorCode.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/ConversionErrorCode.cs index 4cb718632714..c935bb4ec279 100644 --- a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/ConversionErrorCode.cs +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/Models/ConversionErrorCode.cs @@ -8,7 +8,7 @@ using System; using System.ComponentModel; -namespace Azure.MixedReality.ObjectAnchors.Conversion.Models +namespace Azure.MixedReality.ObjectAnchors.Conversion { /// The ConversionErrorCode. public readonly partial struct ConversionErrorCode : IEquatable diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/ObjectAnchorsConversionClient.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/ObjectAnchorsConversionClient.cs index 157596f1b7b8..b48c603a3460 100644 --- a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/ObjectAnchorsConversionClient.cs +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/ObjectAnchorsConversionClient.cs @@ -7,6 +7,8 @@ using Azure.Core.Pipeline; using Azure.MixedReality.Authentication; using System.Threading.Tasks; +using System.Collections.Generic; +using System.Linq; namespace Azure.MixedReality.ObjectAnchors.Conversion { @@ -15,11 +17,31 @@ namespace Azure.MixedReality.ObjectAnchors.Conversion /// public class ObjectAnchorsConversionClient { + private HashSet _supportedAssetFileTypesSet; + /// /// The Account ID to be used by the Client /// public Guid AccountId { get; } + /// + /// The list of supported asset file types + /// + public IReadOnlyList SupportedAssetFileTypes { get; private set; } + + internal HashSet SupportedAssetFileTypesSet + { + get + { + return _supportedAssetFileTypesSet; + } + set + { + _supportedAssetFileTypesSet = value; + SupportedAssetFileTypes = value.ToList(); + } + } + /// /// The Account Domain to be used by the Client /// @@ -81,6 +103,7 @@ public ObjectAnchorsConversionClient(Guid accountId, string accountDomain, Token Uri serviceEndpoint = options.ServiceEndpoint ?? ConstructObjectAnchorsEndpointUrl(accountDomain); AccountId = accountId; + SupportedAssetFileTypesSet = options.SupportedAssetFileTypes; _clientDiagnostics = new ClientDiagnostics(options); _pipeline = HttpPipelineBuilder.Build(options, new BearerTokenAuthenticationPolicy(mrTokenCredential, GetDefaultScope(serviceEndpoint))); _getBlobUploadEndpointRestClient = new BlobUploadEndpointRestClient(_clientDiagnostics, _pipeline, serviceEndpoint, options.Version); @@ -109,6 +132,11 @@ public virtual AssetConversionOperation StartAssetConversion(AssetConversionOpti scope.Start(); try { + if (!SupportedAssetFileTypes.Contains(options.InputAssetFileType)) + { + throw new AssetFileTypeNotSupportedException(options.InputAssetFileType, SupportedAssetFileTypes); + } + AssetConversionProperties properties = new AssetConversionProperties { InputAssetFileType = options.InputAssetFileType, @@ -138,6 +166,11 @@ public virtual async Task StartAssetConversionAsync(As scope.Start(); try { + if (!SupportedAssetFileTypes.Contains(options.InputAssetFileType)) + { + throw new AssetFileTypeNotSupportedException(options.InputAssetFileType, SupportedAssetFileTypes); + } + AssetConversionProperties properties = new AssetConversionProperties { InputAssetFileType = options.InputAssetFileType, diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/ObjectAnchorsConversionClientOptions.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/ObjectAnchorsConversionClientOptions.cs index f93c4d3b0545..4c181b70ebcf 100644 --- a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/ObjectAnchorsConversionClientOptions.cs +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/ObjectAnchorsConversionClientOptions.cs @@ -2,6 +2,8 @@ // Licensed under the MIT License. using System; +using System.Collections; +using System.Collections.Generic; using Azure.Core; using Azure.MixedReality.Authentication; @@ -16,6 +18,11 @@ public class ObjectAnchorsConversionClientOptions : ClientOptions { internal string Version { get; } + /// + /// Gets the list of supported asset file types + /// + internal HashSet SupportedAssetFileTypes { get; } + /// /// Gets the authentication endpoint. /// @@ -42,6 +49,19 @@ public ObjectAnchorsConversionClientOptions(ServiceVersion version = ServiceVers ServiceVersion.V0_2_preview_0 => "0.2-preview.0", _ => throw new ArgumentException($"The service version {version} is not supported by this library.", nameof(version)) }; + + SupportedAssetFileTypes = version switch + { + ServiceVersion.V0_2_preview_0 => new HashSet + { + AssetFileType.Fbx, + AssetFileType.Glb, + AssetFileType.Gltf, + AssetFileType.Obj, + AssetFileType.Ply + }, + _ => throw new InvalidOperationException() + }; } /// diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/tests/ObjectAnchorsConversionClientTests.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/tests/ObjectAnchorsConversionClientTests.cs index 64512531b789..3ebc25ad98aa 100644 --- a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/tests/ObjectAnchorsConversionClientTests.cs +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/tests/ObjectAnchorsConversionClientTests.cs @@ -16,6 +16,8 @@ namespace Azure.MixedReality.ObjectAnchors.Conversion.Tests [TestFixture(false)] public class ObjectAnchorsConversionClientTests : ClientTestBase { + private static string anyWorkingUriString = "https://sampleazurestorageurl.com"; + public ObjectAnchorsConversionClientTests(bool isAsync) : base(isAsync) { } @@ -35,6 +37,21 @@ public ObjectAnchorsConversionClientTests(bool isAsync) : base(isAsync) } }; + public static IEnumerable BadFileTypeTestData => + new List + { + new object[] + { + AssetFileType.Obj, + true + }, + new object[] + { + new AssetFileType(".exe"), + false + }, + }; + [Test] [TestCaseSource(nameof(BadClientArgumentsTestData))] public void BadClientArguments(Guid accountId, string accountDomain, AccessToken credential, bool shouldSucceed) @@ -51,5 +68,27 @@ public void BadClientArguments(Guid accountId, string accountDomain, AccessToken Assert.AreNotEqual(shouldSucceed, excepted); } + + [Test] + [TestCaseSource(nameof(BadFileTypeTestData))] + public async Task BadFileType(AssetFileType ft, bool passes) + { + bool exceptedWithUnsupportedFileType = !passes; + try + { + ObjectAnchorsConversionClient client = new ObjectAnchorsConversionClient(Guid.NewGuid(), "eastus2.azure.com", new AccessToken("dummykey", new DateTimeOffset(new DateTime(3000, 1, 1)))); + await client.StartAssetConversionAsync(new AssetConversionOptions(new Uri(anyWorkingUriString), new AssetFileType(".exe"), new AssetConversionConfiguration(new System.Numerics.Vector3(0, 0, 1), 1))); + } + catch (AssetFileTypeNotSupportedException) + { + exceptedWithUnsupportedFileType = true; + } + catch (Exception) + { + // This is fine + } + + Assert.True(exceptedWithUnsupportedFileType); + } } } diff --git a/sdk/objectanchors/ci.yml b/sdk/objectanchors/ci.yml index 213c9df3fbc5..9631b890d0a8 100644 --- a/sdk/objectanchors/ci.yml +++ b/sdk/objectanchors/ci.yml @@ -2,7 +2,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -13,7 +12,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/operationalinsights/ci.yml b/sdk/operationalinsights/ci.yml index 100c2cdb5c00..4e09370dc6ff 100644 --- a/sdk/operationalinsights/ci.yml +++ b/sdk/operationalinsights/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/README.md b/sdk/purview/Azure.Analytics.Purview.Catalog/README.md index 7eb38be04762..f0e439120c9d 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/README.md +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/README.md @@ -49,12 +49,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -101,15 +101,15 @@ When you submit a pull request, a CLA-bot will automatically determine whether y This project has adopted the [Microsoft Open Source Code of Conduct][code_of_conduct]. For more information see the [Code of Conduct FAQ][coc_faq] or contact [opencode@microsoft.com][coc_contact] with any additional questions or comments. -[source_code]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/purview/Azure.Analytics.Purview.Catalog/src +[source_code]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/purview/Azure.Analytics.Purview.Catalog/src [client_nuget_package]: https://www.nuget.org/packages?q=Azure.Analytics.Purview.Catalog [catalog_product_documentation]: https://azure.microsoft.com/services/purview/ -[azure_identity]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity +[azure_identity]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity [protocol_client_quickstart]: https://aka.ms/azsdk/net/protocol/quickstart [default_cred_ref]: https://docs.microsoft.com/dotnet/api/azure.identity.defaultazurecredential?view=azure-dotnet [azure_subscription]: https://azure.microsoft.com/free/ [purview_resource]: https://docs.microsoft.com/azure/purview/create-catalog-portal -[azure_core_diagnostics]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md +[azure_core_diagnostics]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md [cla]: https://cla.microsoft.com [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/api/Azure.Analytics.Purview.Catalog.netstandard2.0.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/api/Azure.Analytics.Purview.Catalog.netstandard2.0.cs index e606205b3df4..50fc8141d249 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/api/Azure.Analytics.Purview.Catalog.netstandard2.0.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/api/Azure.Analytics.Purview.Catalog.netstandard2.0.cs @@ -9,16 +9,16 @@ public PurviewCatalogClient(System.Uri endpoint, Azure.Core.TokenCredential cred public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } public Azure.Analytics.Purview.Catalog.PurviewRelationships Relationships { get { throw null; } } public Azure.Analytics.Purview.Catalog.PurviewTypes Types { get { throw null; } } - public virtual Azure.Response AutoComplete(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task AutoCompleteAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetLineageGraph(string guid, string direction, int? depth = default(int?), int? width = default(int?), bool? includeParent = default(bool?), bool? getDerivedLineage = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetLineageGraphAsync(string guid, string direction, int? depth = default(int?), int? width = default(int?), bool? includeParent = default(bool?), bool? getDerivedLineage = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response NextPageLineage(string guid, string direction, bool? getDerivedLineage = default(bool?), int? offset = default(int?), int? limit = default(int?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task NextPageLineageAsync(string guid, string direction, bool? getDerivedLineage = default(bool?), int? offset = default(int?), int? limit = default(int?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Search(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task SearchAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Suggest(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task SuggestAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response AutoComplete(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task AutoCompleteAsync(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetLineageGraph(string guid, string direction, int? depth = default(int?), int? width = default(int?), bool? includeParent = default(bool?), bool? getDerivedLineage = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetLineageGraphAsync(string guid, string direction, int? depth = default(int?), int? width = default(int?), bool? includeParent = default(bool?), bool? getDerivedLineage = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response NextPageLineage(string guid, string direction, bool? getDerivedLineage = default(bool?), int? offset = default(int?), int? limit = default(int?), Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task NextPageLineageAsync(string guid, string direction, bool? getDerivedLineage = default(bool?), int? offset = default(int?), int? limit = default(int?), Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Search(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task SearchAsync(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Suggest(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task SuggestAsync(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } } public partial class PurviewCatalogClientOptions : Azure.Core.ClientOptions { @@ -32,182 +32,182 @@ public partial class PurviewEntities { protected PurviewEntities() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response AddClassification(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task AddClassificationAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response AddClassifications(string guid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task AddClassificationsAsync(string guid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response AddClassificationsByUniqueAttribute(string typeName, Azure.Core.RequestContent requestBody, string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task AddClassificationsByUniqueAttributeAsync(string typeName, Azure.Core.RequestContent requestBody, string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response CreateOrUpdate(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response CreateOrUpdateEntities(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateEntitiesAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response DeleteByGuid(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteByGuidAsync(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response DeleteByGuids(System.Collections.Generic.IEnumerable guids, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteByGuidsAsync(System.Collections.Generic.IEnumerable guids, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response DeleteByUniqueAttribute(string typeName, string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteByUniqueAttributeAsync(string typeName, string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response DeleteClassification(string guid, string classificationName, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteClassificationAsync(string guid, string classificationName, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response DeleteClassificationByUniqueAttribute(string typeName, string classificationName, string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteClassificationByUniqueAttributeAsync(string typeName, string classificationName, string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetByGuid(string guid, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetByGuidAsync(string guid, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetByGuids(System.Collections.Generic.IEnumerable guids, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), System.Collections.Generic.IEnumerable excludeRelationshipTypes = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetByGuidsAsync(System.Collections.Generic.IEnumerable guids, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), System.Collections.Generic.IEnumerable excludeRelationshipTypes = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetByUniqueAttributes(string typeName, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetByUniqueAttributesAsync(string typeName, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetClassification(string guid, string classificationName, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetClassificationAsync(string guid, string classificationName, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetClassifications(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetClassificationsAsync(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetEntitiesByUniqueAttributes(string typeName, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), string attrNQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetEntitiesByUniqueAttributesAsync(string typeName, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), string attrNQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetHeader(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetHeaderAsync(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response PartialUpdateEntityAttributeByGuid(string guid, string name, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task PartialUpdateEntityAttributeByGuidAsync(string guid, string name, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response PartialUpdateEntityByUniqueAttributes(string typeName, Azure.Core.RequestContent requestBody, string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task PartialUpdateEntityByUniqueAttributesAsync(string typeName, Azure.Core.RequestContent requestBody, string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response SetClassifications(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task SetClassificationsAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response UpdateClassifications(string guid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task UpdateClassificationsAsync(string guid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response UpdateClassificationsByUniqueAttribute(string typeName, Azure.Core.RequestContent requestBody, string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task UpdateClassificationsByUniqueAttributeAsync(string typeName, Azure.Core.RequestContent requestBody, string attrQualifiedName = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response AddClassification(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task AddClassificationAsync(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response AddClassifications(string guid, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task AddClassificationsAsync(string guid, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response AddClassificationsByUniqueAttribute(string typeName, Azure.Core.RequestContent content, string attrQualifiedName = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task AddClassificationsByUniqueAttributeAsync(string typeName, Azure.Core.RequestContent content, string attrQualifiedName = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response CreateOrUpdate(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response CreateOrUpdateEntities(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateEntitiesAsync(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response DeleteByGuid(string guid, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteByGuidAsync(string guid, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response DeleteByGuids(System.Collections.Generic.IEnumerable guids, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteByGuidsAsync(System.Collections.Generic.IEnumerable guids, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response DeleteByUniqueAttribute(string typeName, string attrQualifiedName = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteByUniqueAttributeAsync(string typeName, string attrQualifiedName = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response DeleteClassification(string guid, string classificationName, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteClassificationAsync(string guid, string classificationName, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response DeleteClassificationByUniqueAttribute(string typeName, string classificationName, string attrQualifiedName = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteClassificationByUniqueAttributeAsync(string typeName, string classificationName, string attrQualifiedName = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetByGuid(string guid, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetByGuidAsync(string guid, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetByGuids(System.Collections.Generic.IEnumerable guids, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), System.Collections.Generic.IEnumerable excludeRelationshipTypes = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetByGuidsAsync(System.Collections.Generic.IEnumerable guids, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), System.Collections.Generic.IEnumerable excludeRelationshipTypes = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetByUniqueAttributes(string typeName, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), string attrQualifiedName = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetByUniqueAttributesAsync(string typeName, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), string attrQualifiedName = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetClassification(string guid, string classificationName, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetClassificationAsync(string guid, string classificationName, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetClassifications(string guid, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetClassificationsAsync(string guid, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetEntitiesByUniqueAttributes(string typeName, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), string attrNQualifiedName = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetEntitiesByUniqueAttributesAsync(string typeName, bool? minExtInfo = default(bool?), bool? ignoreRelationships = default(bool?), string attrNQualifiedName = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetHeader(string guid, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetHeaderAsync(string guid, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response PartialUpdateEntityAttributeByGuid(string guid, string name, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task PartialUpdateEntityAttributeByGuidAsync(string guid, string name, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response PartialUpdateEntityByUniqueAttributes(string typeName, Azure.Core.RequestContent content, string attrQualifiedName = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task PartialUpdateEntityByUniqueAttributesAsync(string typeName, Azure.Core.RequestContent content, string attrQualifiedName = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response SetClassifications(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task SetClassificationsAsync(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response UpdateClassifications(string guid, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task UpdateClassificationsAsync(string guid, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response UpdateClassificationsByUniqueAttribute(string typeName, Azure.Core.RequestContent content, string attrQualifiedName = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task UpdateClassificationsByUniqueAttributeAsync(string typeName, Azure.Core.RequestContent content, string attrQualifiedName = null, Azure.RequestOptions options = null) { throw null; } } public partial class PurviewGlossaries { protected PurviewGlossaries() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response AssignTermToEntities(string termGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task AssignTermToEntitiesAsync(string termGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response CreateGlossary(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateGlossaryAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response CreateGlossaryCategories(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateGlossaryCategoriesAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response CreateGlossaryCategory(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateGlossaryCategoryAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response CreateGlossaryTerm(Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateGlossaryTermAsync(Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response CreateGlossaryTerms(Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateGlossaryTermsAsync(Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response DeleteGlossary(string glossaryGuid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteGlossaryAsync(string glossaryGuid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response DeleteGlossaryCategory(string categoryGuid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteGlossaryCategoryAsync(string categoryGuid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response DeleteGlossaryTerm(string termGuid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteGlossaryTermAsync(string termGuid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response DeleteTermAssignmentFromEntities(string termGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteTermAssignmentFromEntitiesAsync(string termGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response ExportGlossaryTermsAsCsv(string glossaryGuid, Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ExportGlossaryTermsAsCsvAsync(string glossaryGuid, Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetCategoryTerms(string categoryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetCategoryTermsAsync(string categoryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetDetailedGlossary(string glossaryGuid, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetDetailedGlossaryAsync(string glossaryGuid, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetEntitiesAssignedWithTerm(string termGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetEntitiesAssignedWithTermAsync(string termGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetGlossaries(int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetGlossariesAsync(int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetGlossary(string glossaryGuid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetGlossaryAsync(string glossaryGuid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetGlossaryCategories(string glossaryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetGlossaryCategoriesAsync(string glossaryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetGlossaryCategoriesHeaders(string glossaryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetGlossaryCategoriesHeadersAsync(string glossaryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetGlossaryCategory(string categoryGuid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetGlossaryCategoryAsync(string categoryGuid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetGlossaryTerm(string termGuid, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetGlossaryTermAsync(string termGuid, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetGlossaryTermHeaders(string glossaryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetGlossaryTermHeadersAsync(string glossaryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetGlossaryTerms(string glossaryGuid, bool? includeTermHierarchy = default(bool?), int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetGlossaryTermsAsync(string glossaryGuid, bool? includeTermHierarchy = default(bool?), int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetImportCsvOperationStatus(string operationGuid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetImportCsvOperationStatusAsync(string operationGuid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetRelatedCategories(string categoryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetRelatedCategoriesAsync(string categoryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetRelatedTerms(string termGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetRelatedTermsAsync(string termGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetTermsByGlossaryName(string glossaryName, int? limit = default(int?), int? offset = default(int?), bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetTermsByGlossaryNameAsync(string glossaryName, int? limit = default(int?), int? offset = default(int?), bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response ImportGlossaryTermsViaCsv(string glossaryGuid, Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ImportGlossaryTermsViaCsvAsync(string glossaryGuid, Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response ImportGlossaryTermsViaCsvByGlossaryName(string glossaryName, Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task ImportGlossaryTermsViaCsvByGlossaryNameAsync(string glossaryName, Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response PartialUpdateGlossary(string glossaryGuid, Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task PartialUpdateGlossaryAsync(string glossaryGuid, Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response PartialUpdateGlossaryCategory(string categoryGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task PartialUpdateGlossaryCategoryAsync(string categoryGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response PartialUpdateGlossaryTerm(string termGuid, Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task PartialUpdateGlossaryTermAsync(string termGuid, Azure.Core.RequestContent requestBody, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response RemoveTermAssignmentFromEntities(string termGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task RemoveTermAssignmentFromEntitiesAsync(string termGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response UpdateGlossary(string glossaryGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task UpdateGlossaryAsync(string glossaryGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response UpdateGlossaryCategory(string categoryGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task UpdateGlossaryCategoryAsync(string categoryGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response UpdateGlossaryTerm(string termGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task UpdateGlossaryTermAsync(string termGuid, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response AssignTermToEntities(string termGuid, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task AssignTermToEntitiesAsync(string termGuid, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response CreateGlossary(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateGlossaryAsync(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response CreateGlossaryCategories(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateGlossaryCategoriesAsync(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response CreateGlossaryCategory(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateGlossaryCategoryAsync(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response CreateGlossaryTerm(Azure.Core.RequestContent content, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateGlossaryTermAsync(Azure.Core.RequestContent content, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response CreateGlossaryTerms(Azure.Core.RequestContent content, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateGlossaryTermsAsync(Azure.Core.RequestContent content, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response DeleteGlossary(string glossaryGuid, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteGlossaryAsync(string glossaryGuid, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response DeleteGlossaryCategory(string categoryGuid, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteGlossaryCategoryAsync(string categoryGuid, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response DeleteGlossaryTerm(string termGuid, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteGlossaryTermAsync(string termGuid, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response DeleteTermAssignmentFromEntities(string termGuid, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteTermAssignmentFromEntitiesAsync(string termGuid, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response ExportGlossaryTermsAsCsv(string glossaryGuid, Azure.Core.RequestContent content, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ExportGlossaryTermsAsCsvAsync(string glossaryGuid, Azure.Core.RequestContent content, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetCategoryTerms(string categoryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetCategoryTermsAsync(string categoryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetDetailedGlossary(string glossaryGuid, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetDetailedGlossaryAsync(string glossaryGuid, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetEntitiesAssignedWithTerm(string termGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetEntitiesAssignedWithTermAsync(string termGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetGlossaries(int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetGlossariesAsync(int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetGlossary(string glossaryGuid, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetGlossaryAsync(string glossaryGuid, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetGlossaryCategories(string glossaryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetGlossaryCategoriesAsync(string glossaryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetGlossaryCategoriesHeaders(string glossaryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetGlossaryCategoriesHeadersAsync(string glossaryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetGlossaryCategory(string categoryGuid, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetGlossaryCategoryAsync(string categoryGuid, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetGlossaryTerm(string termGuid, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetGlossaryTermAsync(string termGuid, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetGlossaryTermHeaders(string glossaryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetGlossaryTermHeadersAsync(string glossaryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetGlossaryTerms(string glossaryGuid, bool? includeTermHierarchy = default(bool?), int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetGlossaryTermsAsync(string glossaryGuid, bool? includeTermHierarchy = default(bool?), int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetImportCsvOperationStatus(string operationGuid, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetImportCsvOperationStatusAsync(string operationGuid, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetRelatedCategories(string categoryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetRelatedCategoriesAsync(string categoryGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetRelatedTerms(string termGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetRelatedTermsAsync(string termGuid, int? limit = default(int?), int? offset = default(int?), string sort = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetTermsByGlossaryName(string glossaryName, int? limit = default(int?), int? offset = default(int?), bool? includeTermHierarchy = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetTermsByGlossaryNameAsync(string glossaryName, int? limit = default(int?), int? offset = default(int?), bool? includeTermHierarchy = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response ImportGlossaryTermsViaCsv(string glossaryGuid, Azure.Core.RequestContent content, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ImportGlossaryTermsViaCsvAsync(string glossaryGuid, Azure.Core.RequestContent content, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response ImportGlossaryTermsViaCsvByGlossaryName(string glossaryName, Azure.Core.RequestContent content, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task ImportGlossaryTermsViaCsvByGlossaryNameAsync(string glossaryName, Azure.Core.RequestContent content, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response PartialUpdateGlossary(string glossaryGuid, Azure.Core.RequestContent content, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task PartialUpdateGlossaryAsync(string glossaryGuid, Azure.Core.RequestContent content, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response PartialUpdateGlossaryCategory(string categoryGuid, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task PartialUpdateGlossaryCategoryAsync(string categoryGuid, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response PartialUpdateGlossaryTerm(string termGuid, Azure.Core.RequestContent content, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task PartialUpdateGlossaryTermAsync(string termGuid, Azure.Core.RequestContent content, bool? includeTermHierarchy = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response RemoveTermAssignmentFromEntities(string termGuid, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task RemoveTermAssignmentFromEntitiesAsync(string termGuid, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response UpdateGlossary(string glossaryGuid, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task UpdateGlossaryAsync(string glossaryGuid, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response UpdateGlossaryCategory(string categoryGuid, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task UpdateGlossaryCategoryAsync(string categoryGuid, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response UpdateGlossaryTerm(string termGuid, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task UpdateGlossaryTermAsync(string termGuid, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } } public partial class PurviewRelationships { protected PurviewRelationships() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response Create(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Delete(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Get(string guid, bool? extendedInfo = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAsync(string guid, bool? extendedInfo = default(bool?), Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Update(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task UpdateAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response Create(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateAsync(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Delete(string guid, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string guid, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Get(string guid, bool? extendedInfo = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetAsync(string guid, bool? extendedInfo = default(bool?), Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Update(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task UpdateAsync(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } } public partial class PurviewTypes { protected PurviewTypes() { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateTypeDefinitions(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateTypeDefinitionsAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response DeleteTypeByName(string name, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteTypeByNameAsync(string name, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response DeleteTypeDefinitions(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteTypeDefinitionsAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetAllTypeDefinitions(bool? includeTermTemplate = default(bool?), string type = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetAllTypeDefinitionsAsync(bool? includeTermTemplate = default(bool?), string type = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetClassificationDefByGuid(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetClassificationDefByGuidAsync(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetClassificationDefByName(string name, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetClassificationDefByNameAsync(string name, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetEntityDefinitionByGuid(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetEntityDefinitionByGuidAsync(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetEntityDefinitionByName(string name, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetEntityDefinitionByNameAsync(string name, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetEnumDefByGuid(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetEnumDefByGuidAsync(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetEnumDefByName(string name, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetEnumDefByNameAsync(string name, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetRelationshipDefByGuid(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetRelationshipDefByGuidAsync(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetRelationshipDefByName(string name, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetRelationshipDefByNameAsync(string name, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetStructDefByGuid(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetStructDefByGuidAsync(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetStructDefByName(string name, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetStructDefByNameAsync(string name, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetTermTemplateDefByGuid(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetTermTemplateDefByGuidAsync(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetTermTemplateDefByName(string name, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetTermTemplateDefByNameAsync(string name, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetTypeDefinitionByGuid(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetTypeDefinitionByGuidAsync(string guid, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetTypeDefinitionByName(string name, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetTypeDefinitionByNameAsync(string name, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetTypeDefinitionHeaders(bool? includeTermTemplate = default(bool?), string type = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetTypeDefinitionHeadersAsync(bool? includeTermTemplate = default(bool?), string type = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response UpdateAtlasTypeDefinitions(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task UpdateAtlasTypeDefinitionsAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateTypeDefinitions(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateTypeDefinitionsAsync(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response DeleteTypeByName(string name, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteTypeByNameAsync(string name, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response DeleteTypeDefinitions(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteTypeDefinitionsAsync(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetAllTypeDefinitions(bool? includeTermTemplate = default(bool?), string type = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetAllTypeDefinitionsAsync(bool? includeTermTemplate = default(bool?), string type = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetClassificationDefByGuid(string guid, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetClassificationDefByGuidAsync(string guid, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetClassificationDefByName(string name, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetClassificationDefByNameAsync(string name, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetEntityDefinitionByGuid(string guid, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetEntityDefinitionByGuidAsync(string guid, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetEntityDefinitionByName(string name, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetEntityDefinitionByNameAsync(string name, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetEnumDefByGuid(string guid, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetEnumDefByGuidAsync(string guid, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetEnumDefByName(string name, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetEnumDefByNameAsync(string name, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetRelationshipDefByGuid(string guid, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetRelationshipDefByGuidAsync(string guid, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetRelationshipDefByName(string name, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetRelationshipDefByNameAsync(string name, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetStructDefByGuid(string guid, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetStructDefByGuidAsync(string guid, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetStructDefByName(string name, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetStructDefByNameAsync(string name, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetTermTemplateDefByGuid(string guid, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetTermTemplateDefByGuidAsync(string guid, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetTermTemplateDefByName(string name, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetTermTemplateDefByNameAsync(string name, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetTypeDefinitionByGuid(string guid, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetTypeDefinitionByGuidAsync(string guid, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetTypeDefinitionByName(string name, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetTypeDefinitionByNameAsync(string name, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetTypeDefinitionHeaders(bool? includeTermTemplate = default(bool?), string type = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetTypeDefinitionHeadersAsync(bool? includeTermTemplate = default(bool?), string type = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response UpdateAtlasTypeDefinitions(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task UpdateAtlasTypeDefinitionsAsync(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } } } diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewCatalogClient.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewCatalogClient.cs index 890b07c145d8..893ad7a49e8e 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewCatalogClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewCatalogClient.cs @@ -57,12 +57,12 @@ public PurviewCatalogClient(Uri endpoint, TokenCredential credential, PurviewCat /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// keywords /// string @@ -102,12 +102,12 @@ public PurviewCatalogClient(Uri endpoint, TokenCredential credential, PurviewCat /// /// Schema for SearchRequestTaxonomySetting: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// assetTypes /// string[] @@ -123,12 +123,12 @@ public PurviewCatalogClient(Uri endpoint, TokenCredential credential, PurviewCat /// /// Schema for SearchFacetItem: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// count /// number @@ -149,24 +149,24 @@ public PurviewCatalogClient(Uri endpoint, TokenCredential credential, PurviewCat /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task SearchAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task SearchAsync(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateSearchRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateSearchRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewCatalogClient.Search"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -192,12 +192,12 @@ public virtual async Task SearchAsync(RequestContent requestBody, Requ /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// keywords /// string @@ -237,12 +237,12 @@ public virtual async Task SearchAsync(RequestContent requestBody, Requ /// /// Schema for SearchRequestTaxonomySetting: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// assetTypes /// string[] @@ -258,12 +258,12 @@ public virtual async Task SearchAsync(RequestContent requestBody, Requ /// /// Schema for SearchFacetItem: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// count /// number @@ -284,24 +284,24 @@ public virtual async Task SearchAsync(RequestContent requestBody, Requ /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Search(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response Search(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateSearchRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateSearchRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewCatalogClient.Search"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -324,9 +324,9 @@ public virtual Response Search(RequestContent requestBody, RequestOptions reques } /// Create Request for and operations. - /// The request body. - /// The request options. - private HttpMessage CreateSearchRequest(RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateSearchRequest(RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -339,7 +339,7 @@ private HttpMessage CreateSearchRequest(RequestContent requestBody, RequestOptio request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -347,12 +347,12 @@ private HttpMessage CreateSearchRequest(RequestContent requestBody, RequestOptio /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// keywords /// string @@ -373,24 +373,24 @@ private HttpMessage CreateSearchRequest(RequestContent requestBody, RequestOptio /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task SuggestAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task SuggestAsync(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateSuggestRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateSuggestRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewCatalogClient.Suggest"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -416,12 +416,12 @@ public virtual async Task SuggestAsync(RequestContent requestBody, Req /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// keywords /// string @@ -442,24 +442,24 @@ public virtual async Task SuggestAsync(RequestContent requestBody, Req /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Suggest(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response Suggest(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateSuggestRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateSuggestRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewCatalogClient.Suggest"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -482,9 +482,9 @@ public virtual Response Suggest(RequestContent requestBody, RequestOptions reque } /// Create Request for and operations. - /// The request body. - /// The request options. - private HttpMessage CreateSuggestRequest(RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateSuggestRequest(RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -497,7 +497,7 @@ private HttpMessage CreateSuggestRequest(RequestContent requestBody, RequestOpti request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -505,12 +505,12 @@ private HttpMessage CreateSuggestRequest(RequestContent requestBody, RequestOpti /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// keywords /// string @@ -531,24 +531,24 @@ private HttpMessage CreateSuggestRequest(RequestContent requestBody, RequestOpti /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task AutoCompleteAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task AutoCompleteAsync(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateAutoCompleteRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateAutoCompleteRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewCatalogClient.AutoComplete"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -574,12 +574,12 @@ public virtual async Task AutoCompleteAsync(RequestContent requestBody /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// keywords /// string @@ -600,24 +600,24 @@ public virtual async Task AutoCompleteAsync(RequestContent requestBody /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response AutoComplete(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response AutoComplete(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateAutoCompleteRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateAutoCompleteRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewCatalogClient.AutoComplete"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -640,9 +640,9 @@ public virtual Response AutoComplete(RequestContent requestBody, RequestOptions } /// Create Request for and operations. - /// The request body. - /// The request options. - private HttpMessage CreateAutoCompleteRequest(RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateAutoCompleteRequest(RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -655,7 +655,7 @@ private HttpMessage CreateAutoCompleteRequest(RequestContent requestBody, Reques request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -666,23 +666,23 @@ private HttpMessage CreateAutoCompleteRequest(RequestContent requestBody, Reques /// The number of max expanding width in lineage. /// True to include the parent chain in the response. /// True to include derived lineage in the response. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetLineageGraphAsync(string guid, string direction, int? depth = null, int? width = null, bool? includeParent = null, bool? getDerivedLineage = null, RequestOptions requestOptions = null) + public virtual async Task GetLineageGraphAsync(string guid, string direction, int? depth = null, int? width = null, bool? includeParent = null, bool? getDerivedLineage = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetLineageGraphRequest(guid, direction, depth, width, includeParent, getDerivedLineage, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetLineageGraphRequest(guid, direction, depth, width, includeParent, getDerivedLineage, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewCatalogClient.GetLineageGraph"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -711,23 +711,23 @@ public virtual async Task GetLineageGraphAsync(string guid, string dir /// The number of max expanding width in lineage. /// True to include the parent chain in the response. /// True to include derived lineage in the response. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetLineageGraph(string guid, string direction, int? depth = null, int? width = null, bool? includeParent = null, bool? getDerivedLineage = null, RequestOptions requestOptions = null) + public virtual Response GetLineageGraph(string guid, string direction, int? depth = null, int? width = null, bool? includeParent = null, bool? getDerivedLineage = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetLineageGraphRequest(guid, direction, depth, width, includeParent, getDerivedLineage, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetLineageGraphRequest(guid, direction, depth, width, includeParent, getDerivedLineage, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewCatalogClient.GetLineageGraph"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -756,8 +756,8 @@ public virtual Response GetLineageGraph(string guid, string direction, int? dept /// The number of max expanding width in lineage. /// True to include the parent chain in the response. /// True to include derived lineage in the response. - /// The request options. - private HttpMessage CreateGetLineageGraphRequest(string guid, string direction, int? depth = null, int? width = null, bool? includeParent = null, bool? getDerivedLineage = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetLineageGraphRequest(string guid, string direction, int? depth = null, int? width = null, bool? includeParent = null, bool? getDerivedLineage = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -795,23 +795,23 @@ private HttpMessage CreateGetLineageGraphRequest(string guid, string direction, /// True to include derived lineage in the response. /// The offset for pagination purpose. /// The page size - by default there is no paging. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task NextPageLineageAsync(string guid, string direction, bool? getDerivedLineage = null, int? offset = null, int? limit = null, RequestOptions requestOptions = null) + public virtual async Task NextPageLineageAsync(string guid, string direction, bool? getDerivedLineage = null, int? offset = null, int? limit = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateNextPageLineageRequest(guid, direction, getDerivedLineage, offset, limit, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateNextPageLineageRequest(guid, direction, getDerivedLineage, offset, limit, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewCatalogClient.NextPageLineage"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -839,23 +839,23 @@ public virtual async Task NextPageLineageAsync(string guid, string dir /// True to include derived lineage in the response. /// The offset for pagination purpose. /// The page size - by default there is no paging. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response NextPageLineage(string guid, string direction, bool? getDerivedLineage = null, int? offset = null, int? limit = null, RequestOptions requestOptions = null) + public virtual Response NextPageLineage(string guid, string direction, bool? getDerivedLineage = null, int? offset = null, int? limit = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateNextPageLineageRequest(guid, direction, getDerivedLineage, offset, limit, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateNextPageLineageRequest(guid, direction, getDerivedLineage, offset, limit, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewCatalogClient.NextPageLineage"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -883,8 +883,8 @@ public virtual Response NextPageLineage(string guid, string direction, bool? get /// True to include derived lineage in the response. /// The offset for pagination purpose. /// The page size - by default there is no paging. - /// The request options. - private HttpMessage CreateNextPageLineageRequest(string guid, string direction, bool? getDerivedLineage = null, int? offset = null, int? limit = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateNextPageLineageRequest(string guid, string direction, bool? getDerivedLineage = null, int? offset = null, int? limit = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewEntities.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewEntities.cs index 47a89306cb0c..134055d8b0c0 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewEntities.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewEntities.cs @@ -38,12 +38,12 @@ protected PurviewEntities() /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// referredEntities /// Dictionary<string, AtlasEntity> @@ -59,12 +59,12 @@ protected PurviewEntities() /// /// Schema for AtlasEntity: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -182,12 +182,12 @@ protected PurviewEntities() /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -245,12 +245,12 @@ protected PurviewEntities() /// /// Schema for AtlasTermAssignmentHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// confidence /// number @@ -314,12 +314,12 @@ protected PurviewEntities() /// /// Schema for ContactBasic: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -335,12 +335,12 @@ protected PurviewEntities() /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -361,24 +361,24 @@ protected PurviewEntities() /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateOrUpdateAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateOrUpdateAsync(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.CreateOrUpdate"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -408,12 +408,12 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// referredEntities /// Dictionary<string, AtlasEntity> @@ -429,12 +429,12 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo /// /// Schema for AtlasEntity: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -552,12 +552,12 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -615,12 +615,12 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo /// /// Schema for AtlasTermAssignmentHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// confidence /// number @@ -684,12 +684,12 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo /// /// Schema for ContactBasic: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -705,12 +705,12 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -731,24 +731,24 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateOrUpdate(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateOrUpdate(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.CreateOrUpdate"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -771,9 +771,9 @@ public virtual Response CreateOrUpdate(RequestContent requestBody, RequestOption } /// Create Request for and operations. - /// The request body. - /// The request options. - private HttpMessage CreateCreateOrUpdateRequest(RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateOrUpdateRequest(RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -785,7 +785,7 @@ private HttpMessage CreateCreateOrUpdateRequest(RequestContent requestBody, Requ request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -794,23 +794,23 @@ private HttpMessage CreateCreateOrUpdateRequest(RequestContent requestBody, Requ /// Whether to return minimal information for referred entities. /// Whether to ignore relationship attributes. /// An array of the relationship types need to be excluded from the response. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetByGuidsAsync(IEnumerable guids, bool? minExtInfo = null, bool? ignoreRelationships = null, IEnumerable excludeRelationshipTypes = null, RequestOptions requestOptions = null) + public virtual async Task GetByGuidsAsync(IEnumerable guids, bool? minExtInfo = null, bool? ignoreRelationships = null, IEnumerable excludeRelationshipTypes = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetByGuidsRequest(guids, minExtInfo, ignoreRelationships, excludeRelationshipTypes, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetByGuidsRequest(guids, minExtInfo, ignoreRelationships, excludeRelationshipTypes, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetByGuids"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -837,23 +837,23 @@ public virtual async Task GetByGuidsAsync(IEnumerable guids, b /// Whether to return minimal information for referred entities. /// Whether to ignore relationship attributes. /// An array of the relationship types need to be excluded from the response. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetByGuids(IEnumerable guids, bool? minExtInfo = null, bool? ignoreRelationships = null, IEnumerable excludeRelationshipTypes = null, RequestOptions requestOptions = null) + public virtual Response GetByGuids(IEnumerable guids, bool? minExtInfo = null, bool? ignoreRelationships = null, IEnumerable excludeRelationshipTypes = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetByGuidsRequest(guids, minExtInfo, ignoreRelationships, excludeRelationshipTypes, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetByGuidsRequest(guids, minExtInfo, ignoreRelationships, excludeRelationshipTypes, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetByGuids"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -880,8 +880,8 @@ public virtual Response GetByGuids(IEnumerable guids, bool? minExtInfo = /// Whether to return minimal information for referred entities. /// Whether to ignore relationship attributes. /// An array of the relationship types need to be excluded from the response. - /// The request options. - private HttpMessage CreateGetByGuidsRequest(IEnumerable guids, bool? minExtInfo = null, bool? ignoreRelationships = null, IEnumerable excludeRelationshipTypes = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetByGuidsRequest(IEnumerable guids, bool? minExtInfo = null, bool? ignoreRelationships = null, IEnumerable excludeRelationshipTypes = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -916,12 +916,12 @@ private HttpMessage CreateGetByGuidsRequest(IEnumerable guids, bool? min /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// referredEntities /// Dictionary<string, AtlasEntity> @@ -937,12 +937,12 @@ private HttpMessage CreateGetByGuidsRequest(IEnumerable guids, bool? min /// /// Schema for AtlasEntity: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -1060,12 +1060,12 @@ private HttpMessage CreateGetByGuidsRequest(IEnumerable guids, bool? min /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -1123,12 +1123,12 @@ private HttpMessage CreateGetByGuidsRequest(IEnumerable guids, bool? min /// /// Schema for AtlasTermAssignmentHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// confidence /// number @@ -1192,12 +1192,12 @@ private HttpMessage CreateGetByGuidsRequest(IEnumerable guids, bool? min /// /// Schema for ContactBasic: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -1213,12 +1213,12 @@ private HttpMessage CreateGetByGuidsRequest(IEnumerable guids, bool? min /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -1239,24 +1239,24 @@ private HttpMessage CreateGetByGuidsRequest(IEnumerable guids, bool? min /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateOrUpdateEntitiesAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateOrUpdateEntitiesAsync(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateEntitiesRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateEntitiesRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.CreateOrUpdateEntities"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1286,12 +1286,12 @@ public virtual async Task CreateOrUpdateEntitiesAsync(RequestContent r /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// referredEntities /// Dictionary<string, AtlasEntity> @@ -1307,12 +1307,12 @@ public virtual async Task CreateOrUpdateEntitiesAsync(RequestContent r /// /// Schema for AtlasEntity: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -1430,12 +1430,12 @@ public virtual async Task CreateOrUpdateEntitiesAsync(RequestContent r /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -1493,12 +1493,12 @@ public virtual async Task CreateOrUpdateEntitiesAsync(RequestContent r /// /// Schema for AtlasTermAssignmentHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// confidence /// number @@ -1562,12 +1562,12 @@ public virtual async Task CreateOrUpdateEntitiesAsync(RequestContent r /// /// Schema for ContactBasic: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -1583,12 +1583,12 @@ public virtual async Task CreateOrUpdateEntitiesAsync(RequestContent r /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -1609,24 +1609,24 @@ public virtual async Task CreateOrUpdateEntitiesAsync(RequestContent r /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateOrUpdateEntities(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateOrUpdateEntities(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateEntitiesRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateEntitiesRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.CreateOrUpdateEntities"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1649,9 +1649,9 @@ public virtual Response CreateOrUpdateEntities(RequestContent requestBody, Reque } /// Create Request for and operations. - /// The request body. - /// The request options. - private HttpMessage CreateCreateOrUpdateEntitiesRequest(RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateOrUpdateEntitiesRequest(RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1663,29 +1663,29 @@ private HttpMessage CreateCreateOrUpdateEntitiesRequest(RequestContent requestBo request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } /// Delete a list of entities in bulk identified by their GUIDs or unique attributes. /// An array of GUIDs of entities to delete. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteByGuidsAsync(IEnumerable guids, RequestOptions requestOptions = null) + public virtual async Task DeleteByGuidsAsync(IEnumerable guids, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteByGuidsRequest(guids, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteByGuidsRequest(guids, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.DeleteByGuids"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1709,23 +1709,23 @@ public virtual async Task DeleteByGuidsAsync(IEnumerable guids /// Delete a list of entities in bulk identified by their GUIDs or unique attributes. /// An array of GUIDs of entities to delete. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response DeleteByGuids(IEnumerable guids, RequestOptions requestOptions = null) + public virtual Response DeleteByGuids(IEnumerable guids, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteByGuidsRequest(guids, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteByGuidsRequest(guids, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.DeleteByGuids"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1749,8 +1749,8 @@ public virtual Response DeleteByGuids(IEnumerable guids, RequestOptions /// Create Request for and operations. /// An array of GUIDs of entities to delete. - /// The request options. - private HttpMessage CreateDeleteByGuidsRequest(IEnumerable guids, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteByGuidsRequest(IEnumerable guids, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1769,12 +1769,12 @@ private HttpMessage CreateDeleteByGuidsRequest(IEnumerable guids, Reques /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// classification /// AtlasClassification @@ -1790,12 +1790,12 @@ private HttpMessage CreateDeleteByGuidsRequest(IEnumerable guids, Reques /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -1853,12 +1853,12 @@ private HttpMessage CreateDeleteByGuidsRequest(IEnumerable guids, Reques /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -1879,24 +1879,24 @@ private HttpMessage CreateDeleteByGuidsRequest(IEnumerable guids, Reques /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task AddClassificationAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task AddClassificationAsync(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateAddClassificationRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateAddClassificationRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.AddClassification"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1922,12 +1922,12 @@ public virtual async Task AddClassificationAsync(RequestContent reques /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// classification /// AtlasClassification @@ -1943,12 +1943,12 @@ public virtual async Task AddClassificationAsync(RequestContent reques /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -2006,12 +2006,12 @@ public virtual async Task AddClassificationAsync(RequestContent reques /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -2032,24 +2032,24 @@ public virtual async Task AddClassificationAsync(RequestContent reques /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response AddClassification(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response AddClassification(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateAddClassificationRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateAddClassificationRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.AddClassification"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2072,9 +2072,9 @@ public virtual Response AddClassification(RequestContent requestBody, RequestOpt } /// Create Request for and operations. - /// The request body. - /// The request options. - private HttpMessage CreateAddClassificationRequest(RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateAddClassificationRequest(RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -2085,7 +2085,7 @@ private HttpMessage CreateAddClassificationRequest(RequestContent requestBody, R uri.AppendPath("/atlas/v2/entity/bulk/classification", false); request.Uri = uri; request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -2093,23 +2093,23 @@ private HttpMessage CreateAddClassificationRequest(RequestContent requestBody, R /// The globally unique identifier of the entity. /// Whether to return minimal information for referred entities. /// Whether to ignore relationship attributes. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetByGuidAsync(string guid, bool? minExtInfo = null, bool? ignoreRelationships = null, RequestOptions requestOptions = null) + public virtual async Task GetByGuidAsync(string guid, bool? minExtInfo = null, bool? ignoreRelationships = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetByGuidRequest(guid, minExtInfo, ignoreRelationships, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetByGuidRequest(guid, minExtInfo, ignoreRelationships, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetByGuid"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2135,23 +2135,23 @@ public virtual async Task GetByGuidAsync(string guid, bool? minExtInfo /// The globally unique identifier of the entity. /// Whether to return minimal information for referred entities. /// Whether to ignore relationship attributes. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetByGuid(string guid, bool? minExtInfo = null, bool? ignoreRelationships = null, RequestOptions requestOptions = null) + public virtual Response GetByGuid(string guid, bool? minExtInfo = null, bool? ignoreRelationships = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetByGuidRequest(guid, minExtInfo, ignoreRelationships, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetByGuidRequest(guid, minExtInfo, ignoreRelationships, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetByGuid"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2177,8 +2177,8 @@ public virtual Response GetByGuid(string guid, bool? minExtInfo = null, bool? ig /// The globally unique identifier of the entity. /// Whether to return minimal information for referred entities. /// Whether to ignore relationship attributes. - /// The request options. - private HttpMessage CreateGetByGuidRequest(string guid, bool? minExtInfo = null, bool? ignoreRelationships = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetByGuidRequest(string guid, bool? minExtInfo = null, bool? ignoreRelationships = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -2209,24 +2209,24 @@ private HttpMessage CreateGetByGuidRequest(string guid, bool? minExtInfo = null, /// /// The globally unique identifier of the entity. /// The name of the attribute. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task PartialUpdateEntityAttributeByGuidAsync(string guid, string name, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task PartialUpdateEntityAttributeByGuidAsync(string guid, string name, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreatePartialUpdateEntityAttributeByGuidRequest(guid, name, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreatePartialUpdateEntityAttributeByGuidRequest(guid, name, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.PartialUpdateEntityAttributeByGuid"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2256,24 +2256,24 @@ public virtual async Task PartialUpdateEntityAttributeByGuidAsync(stri /// /// The globally unique identifier of the entity. /// The name of the attribute. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response PartialUpdateEntityAttributeByGuid(string guid, string name, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response PartialUpdateEntityAttributeByGuid(string guid, string name, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreatePartialUpdateEntityAttributeByGuidRequest(guid, name, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreatePartialUpdateEntityAttributeByGuidRequest(guid, name, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.PartialUpdateEntityAttributeByGuid"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2298,9 +2298,9 @@ public virtual Response PartialUpdateEntityAttributeByGuid(string guid, string n /// Create Request for and operations. /// The globally unique identifier of the entity. /// The name of the attribute. - /// The request body. - /// The request options. - private HttpMessage CreatePartialUpdateEntityAttributeByGuidRequest(string guid, string name, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreatePartialUpdateEntityAttributeByGuidRequest(string guid, string name, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -2314,29 +2314,29 @@ private HttpMessage CreatePartialUpdateEntityAttributeByGuidRequest(string guid, request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } /// Delete an entity identified by its GUID. /// The globally unique identifier of the entity. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteByGuidAsync(string guid, RequestOptions requestOptions = null) + public virtual async Task DeleteByGuidAsync(string guid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteByGuidRequest(guid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteByGuidRequest(guid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.DeleteByGuid"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2360,23 +2360,23 @@ public virtual async Task DeleteByGuidAsync(string guid, RequestOption /// Delete an entity identified by its GUID. /// The globally unique identifier of the entity. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response DeleteByGuid(string guid, RequestOptions requestOptions = null) + public virtual Response DeleteByGuid(string guid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteByGuidRequest(guid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteByGuidRequest(guid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.DeleteByGuid"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2400,8 +2400,8 @@ public virtual Response DeleteByGuid(string guid, RequestOptions requestOptions /// Create Request for and operations. /// The globally unique identifier of the entity. - /// The request options. - private HttpMessage CreateDeleteByGuidRequest(string guid, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteByGuidRequest(string guid, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -2419,23 +2419,23 @@ private HttpMessage CreateDeleteByGuidRequest(string guid, RequestOptions reques /// List classifications for a given entity represented by a GUID. /// The globally unique identifier of the entity. /// The name of the classification. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetClassificationAsync(string guid, string classificationName, RequestOptions requestOptions = null) + public virtual async Task GetClassificationAsync(string guid, string classificationName, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetClassificationRequest(guid, classificationName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetClassificationRequest(guid, classificationName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetClassification"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2460,23 +2460,23 @@ public virtual async Task GetClassificationAsync(string guid, string c /// List classifications for a given entity represented by a GUID. /// The globally unique identifier of the entity. /// The name of the classification. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetClassification(string guid, string classificationName, RequestOptions requestOptions = null) + public virtual Response GetClassification(string guid, string classificationName, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetClassificationRequest(guid, classificationName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetClassificationRequest(guid, classificationName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetClassification"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2501,8 +2501,8 @@ public virtual Response GetClassification(string guid, string classificationName /// Create Request for and operations. /// The globally unique identifier of the entity. /// The name of the classification. - /// The request options. - private HttpMessage CreateGetClassificationRequest(string guid, string classificationName, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetClassificationRequest(string guid, string classificationName, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -2522,23 +2522,23 @@ private HttpMessage CreateGetClassificationRequest(string guid, string classific /// Delete a given classification from an existing entity represented by a GUID. /// The globally unique identifier of the entity. /// The name of the classification. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteClassificationAsync(string guid, string classificationName, RequestOptions requestOptions = null) + public virtual async Task DeleteClassificationAsync(string guid, string classificationName, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteClassificationRequest(guid, classificationName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteClassificationRequest(guid, classificationName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.DeleteClassification"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2563,23 +2563,23 @@ public virtual async Task DeleteClassificationAsync(string guid, strin /// Delete a given classification from an existing entity represented by a GUID. /// The globally unique identifier of the entity. /// The name of the classification. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response DeleteClassification(string guid, string classificationName, RequestOptions requestOptions = null) + public virtual Response DeleteClassification(string guid, string classificationName, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteClassificationRequest(guid, classificationName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteClassificationRequest(guid, classificationName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.DeleteClassification"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2604,8 +2604,8 @@ public virtual Response DeleteClassification(string guid, string classificationN /// Create Request for and operations. /// The globally unique identifier of the entity. /// The name of the classification. - /// The request options. - private HttpMessage CreateDeleteClassificationRequest(string guid, string classificationName, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteClassificationRequest(string guid, string classificationName, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -2623,23 +2623,23 @@ private HttpMessage CreateDeleteClassificationRequest(string guid, string classi /// List classifications for a given entity represented by a GUID. /// The globally unique identifier of the entity. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetClassificationsAsync(string guid, RequestOptions requestOptions = null) + public virtual async Task GetClassificationsAsync(string guid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetClassificationsRequest(guid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetClassificationsRequest(guid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetClassifications"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2663,23 +2663,23 @@ public virtual async Task GetClassificationsAsync(string guid, Request /// List classifications for a given entity represented by a GUID. /// The globally unique identifier of the entity. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetClassifications(string guid, RequestOptions requestOptions = null) + public virtual Response GetClassifications(string guid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetClassificationsRequest(guid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetClassificationsRequest(guid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetClassifications"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2703,8 +2703,8 @@ public virtual Response GetClassifications(string guid, RequestOptions requestOp /// Create Request for and operations. /// The globally unique identifier of the entity. - /// The request options. - private HttpMessage CreateGetClassificationsRequest(string guid, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetClassificationsRequest(string guid, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -2724,12 +2724,12 @@ private HttpMessage CreateGetClassificationsRequest(string guid, RequestOptions /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -2787,12 +2787,12 @@ private HttpMessage CreateGetClassificationsRequest(string guid, RequestOptions /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -2814,24 +2814,24 @@ private HttpMessage CreateGetClassificationsRequest(string guid, RequestOptions /// /// /// The globally unique identifier of the entity. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task AddClassificationsAsync(string guid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task AddClassificationsAsync(string guid, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateAddClassificationsRequest(guid, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateAddClassificationsRequest(guid, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.AddClassifications"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2857,12 +2857,12 @@ public virtual async Task AddClassificationsAsync(string guid, Request /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -2920,12 +2920,12 @@ public virtual async Task AddClassificationsAsync(string guid, Request /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -2947,24 +2947,24 @@ public virtual async Task AddClassificationsAsync(string guid, Request /// /// /// The globally unique identifier of the entity. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response AddClassifications(string guid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response AddClassifications(string guid, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateAddClassificationsRequest(guid, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateAddClassificationsRequest(guid, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.AddClassifications"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2988,9 +2988,9 @@ public virtual Response AddClassifications(string guid, RequestContent requestBo /// Create Request for and operations. /// The globally unique identifier of the entity. - /// The request body. - /// The request options. - private HttpMessage CreateAddClassificationsRequest(string guid, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateAddClassificationsRequest(string guid, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -3003,7 +3003,7 @@ private HttpMessage CreateAddClassificationsRequest(string guid, RequestContent uri.AppendPath("/classifications", false); request.Uri = uri; request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -3011,12 +3011,12 @@ private HttpMessage CreateAddClassificationsRequest(string guid, RequestContent /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -3074,12 +3074,12 @@ private HttpMessage CreateAddClassificationsRequest(string guid, RequestContent /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -3101,24 +3101,24 @@ private HttpMessage CreateAddClassificationsRequest(string guid, RequestContent /// /// /// The globally unique identifier of the entity. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task UpdateClassificationsAsync(string guid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task UpdateClassificationsAsync(string guid, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateUpdateClassificationsRequest(guid, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateUpdateClassificationsRequest(guid, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.UpdateClassifications"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -3144,12 +3144,12 @@ public virtual async Task UpdateClassificationsAsync(string guid, Requ /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -3207,12 +3207,12 @@ public virtual async Task UpdateClassificationsAsync(string guid, Requ /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -3234,24 +3234,24 @@ public virtual async Task UpdateClassificationsAsync(string guid, Requ /// /// /// The globally unique identifier of the entity. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response UpdateClassifications(string guid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response UpdateClassifications(string guid, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateUpdateClassificationsRequest(guid, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateUpdateClassificationsRequest(guid, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.UpdateClassifications"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -3275,9 +3275,9 @@ public virtual Response UpdateClassifications(string guid, RequestContent reques /// Create Request for and operations. /// The globally unique identifier of the entity. - /// The request body. - /// The request options. - private HttpMessage CreateUpdateClassificationsRequest(string guid, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateUpdateClassificationsRequest(string guid, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -3290,7 +3290,7 @@ private HttpMessage CreateUpdateClassificationsRequest(string guid, RequestConte uri.AppendPath("/classifications", false); request.Uri = uri; request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -3306,23 +3306,23 @@ private HttpMessage CreateUpdateClassificationsRequest(string guid, RequestConte /// Whether to return minimal information for referred entities. /// Whether to ignore relationship attributes. /// The qualified name of the entity. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetByUniqueAttributesAsync(string typeName, bool? minExtInfo = null, bool? ignoreRelationships = null, string attrQualifiedName = null, RequestOptions requestOptions = null) + public virtual async Task GetByUniqueAttributesAsync(string typeName, bool? minExtInfo = null, bool? ignoreRelationships = null, string attrQualifiedName = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetByUniqueAttributesRequest(typeName, minExtInfo, ignoreRelationships, attrQualifiedName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetByUniqueAttributesRequest(typeName, minExtInfo, ignoreRelationships, attrQualifiedName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetByUniqueAttributes"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -3356,23 +3356,23 @@ public virtual async Task GetByUniqueAttributesAsync(string typeName, /// Whether to return minimal information for referred entities. /// Whether to ignore relationship attributes. /// The qualified name of the entity. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetByUniqueAttributes(string typeName, bool? minExtInfo = null, bool? ignoreRelationships = null, string attrQualifiedName = null, RequestOptions requestOptions = null) + public virtual Response GetByUniqueAttributes(string typeName, bool? minExtInfo = null, bool? ignoreRelationships = null, string attrQualifiedName = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetByUniqueAttributesRequest(typeName, minExtInfo, ignoreRelationships, attrQualifiedName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetByUniqueAttributesRequest(typeName, minExtInfo, ignoreRelationships, attrQualifiedName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetByUniqueAttributes"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -3399,8 +3399,8 @@ public virtual Response GetByUniqueAttributes(string typeName, bool? minExtInfo /// Whether to return minimal information for referred entities. /// Whether to ignore relationship attributes. /// The qualified name of the entity. - /// The request options. - private HttpMessage CreateGetByUniqueAttributesRequest(string typeName, bool? minExtInfo = null, bool? ignoreRelationships = null, string attrQualifiedName = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetByUniqueAttributesRequest(string typeName, bool? minExtInfo = null, bool? ignoreRelationships = null, string attrQualifiedName = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -3440,12 +3440,12 @@ private HttpMessage CreateGetByUniqueAttributesRequest(string typeName, bool? mi /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// referredEntities /// Dictionary<string, AtlasEntity> @@ -3461,12 +3461,12 @@ private HttpMessage CreateGetByUniqueAttributesRequest(string typeName, bool? mi /// /// Schema for AtlasEntity: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -3584,12 +3584,12 @@ private HttpMessage CreateGetByUniqueAttributesRequest(string typeName, bool? mi /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -3647,12 +3647,12 @@ private HttpMessage CreateGetByUniqueAttributesRequest(string typeName, bool? mi /// /// Schema for AtlasTermAssignmentHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// confidence /// number @@ -3716,12 +3716,12 @@ private HttpMessage CreateGetByUniqueAttributesRequest(string typeName, bool? mi /// /// Schema for ContactBasic: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -3737,12 +3737,12 @@ private HttpMessage CreateGetByUniqueAttributesRequest(string typeName, bool? mi /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -3764,25 +3764,25 @@ private HttpMessage CreateGetByUniqueAttributesRequest(string typeName, bool? mi /// /// /// The name of the type. - /// The request body. + /// The content to send as the body of the request. /// The qualified name of the entity. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task PartialUpdateEntityByUniqueAttributesAsync(string typeName, RequestContent requestBody, string attrQualifiedName = null, RequestOptions requestOptions = null) + public virtual async Task PartialUpdateEntityByUniqueAttributesAsync(string typeName, RequestContent content, string attrQualifiedName = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreatePartialUpdateEntityByUniqueAttributesRequest(typeName, requestBody, attrQualifiedName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreatePartialUpdateEntityByUniqueAttributesRequest(typeName, content, attrQualifiedName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.PartialUpdateEntityByUniqueAttributes"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -3817,12 +3817,12 @@ public virtual async Task PartialUpdateEntityByUniqueAttributesAsync(s /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// referredEntities /// Dictionary<string, AtlasEntity> @@ -3838,12 +3838,12 @@ public virtual async Task PartialUpdateEntityByUniqueAttributesAsync(s /// /// Schema for AtlasEntity: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -3961,12 +3961,12 @@ public virtual async Task PartialUpdateEntityByUniqueAttributesAsync(s /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -4024,12 +4024,12 @@ public virtual async Task PartialUpdateEntityByUniqueAttributesAsync(s /// /// Schema for AtlasTermAssignmentHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// confidence /// number @@ -4093,12 +4093,12 @@ public virtual async Task PartialUpdateEntityByUniqueAttributesAsync(s /// /// Schema for ContactBasic: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -4114,12 +4114,12 @@ public virtual async Task PartialUpdateEntityByUniqueAttributesAsync(s /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -4141,25 +4141,25 @@ public virtual async Task PartialUpdateEntityByUniqueAttributesAsync(s /// /// /// The name of the type. - /// The request body. + /// The content to send as the body of the request. /// The qualified name of the entity. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response PartialUpdateEntityByUniqueAttributes(string typeName, RequestContent requestBody, string attrQualifiedName = null, RequestOptions requestOptions = null) + public virtual Response PartialUpdateEntityByUniqueAttributes(string typeName, RequestContent content, string attrQualifiedName = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreatePartialUpdateEntityByUniqueAttributesRequest(typeName, requestBody, attrQualifiedName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreatePartialUpdateEntityByUniqueAttributesRequest(typeName, content, attrQualifiedName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.PartialUpdateEntityByUniqueAttributes"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -4183,10 +4183,10 @@ public virtual Response PartialUpdateEntityByUniqueAttributes(string typeName, R /// Create Request for and operations. /// The name of the type. - /// The request body. + /// The content to send as the body of the request. /// The qualified name of the entity. - /// The request options. - private HttpMessage CreatePartialUpdateEntityByUniqueAttributesRequest(string typeName, RequestContent requestBody, string attrQualifiedName = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreatePartialUpdateEntityByUniqueAttributesRequest(string typeName, RequestContent content, string attrQualifiedName = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -4203,7 +4203,7 @@ private HttpMessage CreatePartialUpdateEntityByUniqueAttributesRequest(string ty request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -4217,23 +4217,23 @@ private HttpMessage CreatePartialUpdateEntityByUniqueAttributesRequest(string ty /// /// The name of the type. /// The qualified name of the entity. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteByUniqueAttributeAsync(string typeName, string attrQualifiedName = null, RequestOptions requestOptions = null) + public virtual async Task DeleteByUniqueAttributeAsync(string typeName, string attrQualifiedName = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteByUniqueAttributeRequest(typeName, attrQualifiedName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteByUniqueAttributeRequest(typeName, attrQualifiedName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.DeleteByUniqueAttribute"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -4265,23 +4265,23 @@ public virtual async Task DeleteByUniqueAttributeAsync(string typeName /// /// The name of the type. /// The qualified name of the entity. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response DeleteByUniqueAttribute(string typeName, string attrQualifiedName = null, RequestOptions requestOptions = null) + public virtual Response DeleteByUniqueAttribute(string typeName, string attrQualifiedName = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteByUniqueAttributeRequest(typeName, attrQualifiedName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteByUniqueAttributeRequest(typeName, attrQualifiedName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.DeleteByUniqueAttribute"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -4306,8 +4306,8 @@ public virtual Response DeleteByUniqueAttribute(string typeName, string attrQual /// Create Request for and operations. /// The name of the type. /// The qualified name of the entity. - /// The request options. - private HttpMessage CreateDeleteByUniqueAttributeRequest(string typeName, string attrQualifiedName = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteByUniqueAttributeRequest(string typeName, string attrQualifiedName = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -4330,23 +4330,23 @@ private HttpMessage CreateDeleteByUniqueAttributeRequest(string typeName, string /// The name of the type. /// The name of the classification. /// The qualified name of the entity. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteClassificationByUniqueAttributeAsync(string typeName, string classificationName, string attrQualifiedName = null, RequestOptions requestOptions = null) + public virtual async Task DeleteClassificationByUniqueAttributeAsync(string typeName, string classificationName, string attrQualifiedName = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteClassificationByUniqueAttributeRequest(typeName, classificationName, attrQualifiedName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteClassificationByUniqueAttributeRequest(typeName, classificationName, attrQualifiedName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.DeleteClassificationByUniqueAttribute"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -4372,23 +4372,23 @@ public virtual async Task DeleteClassificationByUniqueAttributeAsync(s /// The name of the type. /// The name of the classification. /// The qualified name of the entity. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response DeleteClassificationByUniqueAttribute(string typeName, string classificationName, string attrQualifiedName = null, RequestOptions requestOptions = null) + public virtual Response DeleteClassificationByUniqueAttribute(string typeName, string classificationName, string attrQualifiedName = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteClassificationByUniqueAttributeRequest(typeName, classificationName, attrQualifiedName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteClassificationByUniqueAttributeRequest(typeName, classificationName, attrQualifiedName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.DeleteClassificationByUniqueAttribute"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -4414,8 +4414,8 @@ public virtual Response DeleteClassificationByUniqueAttribute(string typeName, s /// The name of the type. /// The name of the classification. /// The qualified name of the entity. - /// The request options. - private HttpMessage CreateDeleteClassificationByUniqueAttributeRequest(string typeName, string classificationName, string attrQualifiedName = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteClassificationByUniqueAttributeRequest(string typeName, string classificationName, string attrQualifiedName = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -4439,12 +4439,12 @@ private HttpMessage CreateDeleteClassificationByUniqueAttributeRequest(string ty /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -4502,12 +4502,12 @@ private HttpMessage CreateDeleteClassificationByUniqueAttributeRequest(string ty /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -4529,25 +4529,25 @@ private HttpMessage CreateDeleteClassificationByUniqueAttributeRequest(string ty /// /// /// The name of the type. - /// The request body. + /// The content to send as the body of the request. /// The qualified name of the entity. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task AddClassificationsByUniqueAttributeAsync(string typeName, RequestContent requestBody, string attrQualifiedName = null, RequestOptions requestOptions = null) + public virtual async Task AddClassificationsByUniqueAttributeAsync(string typeName, RequestContent content, string attrQualifiedName = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateAddClassificationsByUniqueAttributeRequest(typeName, requestBody, attrQualifiedName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateAddClassificationsByUniqueAttributeRequest(typeName, content, attrQualifiedName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.AddClassificationsByUniqueAttribute"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -4573,12 +4573,12 @@ public virtual async Task AddClassificationsByUniqueAttributeAsync(str /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -4636,12 +4636,12 @@ public virtual async Task AddClassificationsByUniqueAttributeAsync(str /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -4663,25 +4663,25 @@ public virtual async Task AddClassificationsByUniqueAttributeAsync(str /// /// /// The name of the type. - /// The request body. + /// The content to send as the body of the request. /// The qualified name of the entity. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response AddClassificationsByUniqueAttribute(string typeName, RequestContent requestBody, string attrQualifiedName = null, RequestOptions requestOptions = null) + public virtual Response AddClassificationsByUniqueAttribute(string typeName, RequestContent content, string attrQualifiedName = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateAddClassificationsByUniqueAttributeRequest(typeName, requestBody, attrQualifiedName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateAddClassificationsByUniqueAttributeRequest(typeName, content, attrQualifiedName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.AddClassificationsByUniqueAttribute"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -4705,10 +4705,10 @@ public virtual Response AddClassificationsByUniqueAttribute(string typeName, Req /// Create Request for and operations. /// The name of the type. - /// The request body. + /// The content to send as the body of the request. /// The qualified name of the entity. - /// The request options. - private HttpMessage CreateAddClassificationsByUniqueAttributeRequest(string typeName, RequestContent requestBody, string attrQualifiedName = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateAddClassificationsByUniqueAttributeRequest(string typeName, RequestContent content, string attrQualifiedName = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -4725,7 +4725,7 @@ private HttpMessage CreateAddClassificationsByUniqueAttributeRequest(string type } request.Uri = uri; request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -4733,12 +4733,12 @@ private HttpMessage CreateAddClassificationsByUniqueAttributeRequest(string type /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -4796,12 +4796,12 @@ private HttpMessage CreateAddClassificationsByUniqueAttributeRequest(string type /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -4823,25 +4823,25 @@ private HttpMessage CreateAddClassificationsByUniqueAttributeRequest(string type /// /// /// The name of the type. - /// The request body. + /// The content to send as the body of the request. /// The qualified name of the entity. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task UpdateClassificationsByUniqueAttributeAsync(string typeName, RequestContent requestBody, string attrQualifiedName = null, RequestOptions requestOptions = null) + public virtual async Task UpdateClassificationsByUniqueAttributeAsync(string typeName, RequestContent content, string attrQualifiedName = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateUpdateClassificationsByUniqueAttributeRequest(typeName, requestBody, attrQualifiedName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateUpdateClassificationsByUniqueAttributeRequest(typeName, content, attrQualifiedName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.UpdateClassificationsByUniqueAttribute"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -4867,12 +4867,12 @@ public virtual async Task UpdateClassificationsByUniqueAttributeAsync( /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -4930,12 +4930,12 @@ public virtual async Task UpdateClassificationsByUniqueAttributeAsync( /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -4957,25 +4957,25 @@ public virtual async Task UpdateClassificationsByUniqueAttributeAsync( /// /// /// The name of the type. - /// The request body. + /// The content to send as the body of the request. /// The qualified name of the entity. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response UpdateClassificationsByUniqueAttribute(string typeName, RequestContent requestBody, string attrQualifiedName = null, RequestOptions requestOptions = null) + public virtual Response UpdateClassificationsByUniqueAttribute(string typeName, RequestContent content, string attrQualifiedName = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateUpdateClassificationsByUniqueAttributeRequest(typeName, requestBody, attrQualifiedName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateUpdateClassificationsByUniqueAttributeRequest(typeName, content, attrQualifiedName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.UpdateClassificationsByUniqueAttribute"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -4999,10 +4999,10 @@ public virtual Response UpdateClassificationsByUniqueAttribute(string typeName, /// Create Request for and operations. /// The name of the type. - /// The request body. + /// The content to send as the body of the request. /// The qualified name of the entity. - /// The request options. - private HttpMessage CreateUpdateClassificationsByUniqueAttributeRequest(string typeName, RequestContent requestBody, string attrQualifiedName = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateUpdateClassificationsByUniqueAttributeRequest(string typeName, RequestContent content, string attrQualifiedName = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -5019,7 +5019,7 @@ private HttpMessage CreateUpdateClassificationsByUniqueAttributeRequest(string t } request.Uri = uri; request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -5027,12 +5027,12 @@ private HttpMessage CreateUpdateClassificationsByUniqueAttributeRequest(string t /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// guidHeaderMap /// Dictionary<string, AtlasEntityHeader> @@ -5042,12 +5042,12 @@ private HttpMessage CreateUpdateClassificationsByUniqueAttributeRequest(string t /// /// Schema for AtlasEntityHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -5111,12 +5111,12 @@ private HttpMessage CreateUpdateClassificationsByUniqueAttributeRequest(string t /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -5174,12 +5174,12 @@ private HttpMessage CreateUpdateClassificationsByUniqueAttributeRequest(string t /// /// Schema for AtlasTermAssignmentHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// confidence /// number @@ -5243,12 +5243,12 @@ private HttpMessage CreateUpdateClassificationsByUniqueAttributeRequest(string t /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -5269,24 +5269,24 @@ private HttpMessage CreateUpdateClassificationsByUniqueAttributeRequest(string t /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task SetClassificationsAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task SetClassificationsAsync(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateSetClassificationsRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateSetClassificationsRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.SetClassifications"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -5312,12 +5312,12 @@ public virtual async Task SetClassificationsAsync(RequestContent reque /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// guidHeaderMap /// Dictionary<string, AtlasEntityHeader> @@ -5327,12 +5327,12 @@ public virtual async Task SetClassificationsAsync(RequestContent reque /// /// Schema for AtlasEntityHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -5396,12 +5396,12 @@ public virtual async Task SetClassificationsAsync(RequestContent reque /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -5459,12 +5459,12 @@ public virtual async Task SetClassificationsAsync(RequestContent reque /// /// Schema for AtlasTermAssignmentHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// confidence /// number @@ -5528,12 +5528,12 @@ public virtual async Task SetClassificationsAsync(RequestContent reque /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -5554,24 +5554,24 @@ public virtual async Task SetClassificationsAsync(RequestContent reque /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response SetClassifications(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response SetClassifications(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateSetClassificationsRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateSetClassificationsRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.SetClassifications"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -5594,9 +5594,9 @@ public virtual Response SetClassifications(RequestContent requestBody, RequestOp } /// Create Request for and operations. - /// The request body. - /// The request options. - private HttpMessage CreateSetClassificationsRequest(RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateSetClassificationsRequest(RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -5608,7 +5608,7 @@ private HttpMessage CreateSetClassificationsRequest(RequestContent requestBody, request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -5629,23 +5629,23 @@ private HttpMessage CreateSetClassificationsRequest(RequestContent requestBody, /// Whether to return minimal information for referred entities. /// Whether to ignore relationship attributes. /// Qualified name of an entity. E.g. to find 2 entities you can set attrs_0:qualifiedName=db1@cl1&attrs_2:qualifiedName=db2@cl1. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetEntitiesByUniqueAttributesAsync(string typeName, bool? minExtInfo = null, bool? ignoreRelationships = null, string attrNQualifiedName = null, RequestOptions requestOptions = null) + public virtual async Task GetEntitiesByUniqueAttributesAsync(string typeName, bool? minExtInfo = null, bool? ignoreRelationships = null, string attrNQualifiedName = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetEntitiesByUniqueAttributesRequest(typeName, minExtInfo, ignoreRelationships, attrNQualifiedName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetEntitiesByUniqueAttributesRequest(typeName, minExtInfo, ignoreRelationships, attrNQualifiedName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetEntitiesByUniqueAttributes"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -5684,23 +5684,23 @@ public virtual async Task GetEntitiesByUniqueAttributesAsync(string ty /// Whether to return minimal information for referred entities. /// Whether to ignore relationship attributes. /// Qualified name of an entity. E.g. to find 2 entities you can set attrs_0:qualifiedName=db1@cl1&attrs_2:qualifiedName=db2@cl1. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetEntitiesByUniqueAttributes(string typeName, bool? minExtInfo = null, bool? ignoreRelationships = null, string attrNQualifiedName = null, RequestOptions requestOptions = null) + public virtual Response GetEntitiesByUniqueAttributes(string typeName, bool? minExtInfo = null, bool? ignoreRelationships = null, string attrNQualifiedName = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetEntitiesByUniqueAttributesRequest(typeName, minExtInfo, ignoreRelationships, attrNQualifiedName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetEntitiesByUniqueAttributesRequest(typeName, minExtInfo, ignoreRelationships, attrNQualifiedName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetEntitiesByUniqueAttributes"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -5727,8 +5727,8 @@ public virtual Response GetEntitiesByUniqueAttributes(string typeName, bool? min /// Whether to return minimal information for referred entities. /// Whether to ignore relationship attributes. /// Qualified name of an entity. E.g. to find 2 entities you can set attrs_0:qualifiedName=db1@cl1&attrs_2:qualifiedName=db2@cl1. - /// The request options. - private HttpMessage CreateGetEntitiesByUniqueAttributesRequest(string typeName, bool? minExtInfo = null, bool? ignoreRelationships = null, string attrNQualifiedName = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetEntitiesByUniqueAttributesRequest(string typeName, bool? minExtInfo = null, bool? ignoreRelationships = null, string attrNQualifiedName = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -5757,23 +5757,23 @@ private HttpMessage CreateGetEntitiesByUniqueAttributesRequest(string typeName, /// Get entity header given its GUID. /// The globally unique identifier of the entity. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetHeaderAsync(string guid, RequestOptions requestOptions = null) + public virtual async Task GetHeaderAsync(string guid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetHeaderRequest(guid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetHeaderRequest(guid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetHeader"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -5797,23 +5797,23 @@ public virtual async Task GetHeaderAsync(string guid, RequestOptions r /// Get entity header given its GUID. /// The globally unique identifier of the entity. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetHeader(string guid, RequestOptions requestOptions = null) + public virtual Response GetHeader(string guid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetHeaderRequest(guid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetHeaderRequest(guid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewEntities.GetHeader"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -5837,8 +5837,8 @@ public virtual Response GetHeader(string guid, RequestOptions requestOptions = n /// Create Request for and operations. /// The globally unique identifier of the entity. - /// The request options. - private HttpMessage CreateGetHeaderRequest(string guid, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetHeaderRequest(string guid, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewGlossaries.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewGlossaries.cs index 4e593e7dbfb8..731f8ce6ea61 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewGlossaries.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewGlossaries.cs @@ -33,23 +33,23 @@ protected PurviewGlossaries() /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetGlossariesAsync(int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + public virtual async Task GetGlossariesAsync(int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetGlossariesRequest(limit, offset, sort, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetGlossariesRequest(limit, offset, sort, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaries"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -75,23 +75,23 @@ public virtual async Task GetGlossariesAsync(int? limit = null, int? o /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetGlossaries(int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + public virtual Response GetGlossaries(int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetGlossariesRequest(limit, offset, sort, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetGlossariesRequest(limit, offset, sort, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaries"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -117,8 +117,8 @@ public virtual Response GetGlossaries(int? limit = null, int? offset = null, str /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. - private HttpMessage CreateGetGlossariesRequest(int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetGlossariesRequest(int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -148,12 +148,12 @@ private HttpMessage CreateGetGlossariesRequest(int? limit = null, int? offset = /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// classifications /// AtlasClassification[] @@ -223,12 +223,12 @@ private HttpMessage CreateGetGlossariesRequest(int? limit = null, int? offset = /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -286,12 +286,12 @@ private HttpMessage CreateGetGlossariesRequest(int? limit = null, int? offset = /// /// Schema for AtlasRelatedCategoryHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// categoryGuid /// string @@ -325,12 +325,12 @@ private HttpMessage CreateGetGlossariesRequest(int? limit = null, int? offset = /// /// Schema for AtlasRelatedTermHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// description /// string @@ -382,12 +382,12 @@ private HttpMessage CreateGetGlossariesRequest(int? limit = null, int? offset = /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -408,24 +408,24 @@ private HttpMessage CreateGetGlossariesRequest(int? limit = null, int? offset = /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateGlossaryAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateGlossaryAsync(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateGlossaryRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateGlossaryRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.CreateGlossary"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -451,12 +451,12 @@ public virtual async Task CreateGlossaryAsync(RequestContent requestBo /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// classifications /// AtlasClassification[] @@ -526,12 +526,12 @@ public virtual async Task CreateGlossaryAsync(RequestContent requestBo /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -589,12 +589,12 @@ public virtual async Task CreateGlossaryAsync(RequestContent requestBo /// /// Schema for AtlasRelatedCategoryHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// categoryGuid /// string @@ -628,12 +628,12 @@ public virtual async Task CreateGlossaryAsync(RequestContent requestBo /// /// Schema for AtlasRelatedTermHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// description /// string @@ -685,12 +685,12 @@ public virtual async Task CreateGlossaryAsync(RequestContent requestBo /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -711,24 +711,24 @@ public virtual async Task CreateGlossaryAsync(RequestContent requestBo /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateGlossary(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateGlossary(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateGlossaryRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateGlossaryRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.CreateGlossary"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -751,9 +751,9 @@ public virtual Response CreateGlossary(RequestContent requestBody, RequestOption } /// Create Request for and operations. - /// The request body. - /// The request options. - private HttpMessage CreateCreateGlossaryRequest(RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateGlossaryRequest(RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -765,7 +765,7 @@ private HttpMessage CreateCreateGlossaryRequest(RequestContent requestBody, Requ request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -773,12 +773,12 @@ private HttpMessage CreateCreateGlossaryRequest(RequestContent requestBody, Requ /// /// Schema for AtlasGlossaryCategory: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// classifications /// AtlasClassification[] @@ -848,12 +848,12 @@ private HttpMessage CreateCreateGlossaryRequest(RequestContent requestBody, Requ /// /// Schema for AtlasGlossaryHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// displayText /// string @@ -875,12 +875,12 @@ private HttpMessage CreateCreateGlossaryRequest(RequestContent requestBody, Requ /// /// Schema for AtlasRelatedCategoryHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// categoryGuid /// string @@ -914,12 +914,12 @@ private HttpMessage CreateCreateGlossaryRequest(RequestContent requestBody, Requ /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -977,12 +977,12 @@ private HttpMessage CreateCreateGlossaryRequest(RequestContent requestBody, Requ /// /// Schema for AtlasRelatedTermHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// description /// string @@ -1034,12 +1034,12 @@ private HttpMessage CreateCreateGlossaryRequest(RequestContent requestBody, Requ /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -1060,24 +1060,24 @@ private HttpMessage CreateCreateGlossaryRequest(RequestContent requestBody, Requ /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateGlossaryCategoriesAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateGlossaryCategoriesAsync(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateGlossaryCategoriesRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateGlossaryCategoriesRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.CreateGlossaryCategories"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1103,12 +1103,12 @@ public virtual async Task CreateGlossaryCategoriesAsync(RequestContent /// /// Schema for AtlasGlossaryCategory: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// classifications /// AtlasClassification[] @@ -1178,12 +1178,12 @@ public virtual async Task CreateGlossaryCategoriesAsync(RequestContent /// /// Schema for AtlasGlossaryHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// displayText /// string @@ -1205,12 +1205,12 @@ public virtual async Task CreateGlossaryCategoriesAsync(RequestContent /// /// Schema for AtlasRelatedCategoryHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// categoryGuid /// string @@ -1244,12 +1244,12 @@ public virtual async Task CreateGlossaryCategoriesAsync(RequestContent /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -1307,12 +1307,12 @@ public virtual async Task CreateGlossaryCategoriesAsync(RequestContent /// /// Schema for AtlasRelatedTermHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// description /// string @@ -1364,12 +1364,12 @@ public virtual async Task CreateGlossaryCategoriesAsync(RequestContent /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -1390,24 +1390,24 @@ public virtual async Task CreateGlossaryCategoriesAsync(RequestContent /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateGlossaryCategories(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateGlossaryCategories(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateGlossaryCategoriesRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateGlossaryCategoriesRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.CreateGlossaryCategories"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1430,9 +1430,9 @@ public virtual Response CreateGlossaryCategories(RequestContent requestBody, Req } /// Create Request for and operations. - /// The request body. - /// The request options. - private HttpMessage CreateCreateGlossaryCategoriesRequest(RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateGlossaryCategoriesRequest(RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1444,7 +1444,7 @@ private HttpMessage CreateCreateGlossaryCategoriesRequest(RequestContent request request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -1452,12 +1452,12 @@ private HttpMessage CreateCreateGlossaryCategoriesRequest(RequestContent request /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// classifications /// AtlasClassification[] @@ -1527,12 +1527,12 @@ private HttpMessage CreateCreateGlossaryCategoriesRequest(RequestContent request /// /// Schema for AtlasGlossaryHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// displayText /// string @@ -1554,12 +1554,12 @@ private HttpMessage CreateCreateGlossaryCategoriesRequest(RequestContent request /// /// Schema for AtlasRelatedCategoryHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// categoryGuid /// string @@ -1593,12 +1593,12 @@ private HttpMessage CreateCreateGlossaryCategoriesRequest(RequestContent request /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -1656,12 +1656,12 @@ private HttpMessage CreateCreateGlossaryCategoriesRequest(RequestContent request /// /// Schema for AtlasRelatedTermHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// description /// string @@ -1713,12 +1713,12 @@ private HttpMessage CreateCreateGlossaryCategoriesRequest(RequestContent request /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -1739,24 +1739,24 @@ private HttpMessage CreateCreateGlossaryCategoriesRequest(RequestContent request /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateGlossaryCategoryAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateGlossaryCategoryAsync(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateGlossaryCategoryRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateGlossaryCategoryRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.CreateGlossaryCategory"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1782,12 +1782,12 @@ public virtual async Task CreateGlossaryCategoryAsync(RequestContent r /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// classifications /// AtlasClassification[] @@ -1857,12 +1857,12 @@ public virtual async Task CreateGlossaryCategoryAsync(RequestContent r /// /// Schema for AtlasGlossaryHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// displayText /// string @@ -1884,12 +1884,12 @@ public virtual async Task CreateGlossaryCategoryAsync(RequestContent r /// /// Schema for AtlasRelatedCategoryHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// categoryGuid /// string @@ -1923,12 +1923,12 @@ public virtual async Task CreateGlossaryCategoryAsync(RequestContent r /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -1986,12 +1986,12 @@ public virtual async Task CreateGlossaryCategoryAsync(RequestContent r /// /// Schema for AtlasRelatedTermHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// description /// string @@ -2043,12 +2043,12 @@ public virtual async Task CreateGlossaryCategoryAsync(RequestContent r /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -2069,24 +2069,24 @@ public virtual async Task CreateGlossaryCategoryAsync(RequestContent r /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateGlossaryCategory(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateGlossaryCategory(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateGlossaryCategoryRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateGlossaryCategoryRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.CreateGlossaryCategory"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2109,9 +2109,9 @@ public virtual Response CreateGlossaryCategory(RequestContent requestBody, Reque } /// Create Request for and operations. - /// The request body. - /// The request options. - private HttpMessage CreateCreateGlossaryCategoryRequest(RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateGlossaryCategoryRequest(RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -2123,29 +2123,29 @@ private HttpMessage CreateCreateGlossaryCategoryRequest(RequestContent requestBo request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } /// Get specific glossary category by its GUID. /// The globally unique identifier of the category. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetGlossaryCategoryAsync(string categoryGuid, RequestOptions requestOptions = null) + public virtual async Task GetGlossaryCategoryAsync(string categoryGuid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetGlossaryCategoryRequest(categoryGuid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetGlossaryCategoryRequest(categoryGuid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaryCategory"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2169,23 +2169,23 @@ public virtual async Task GetGlossaryCategoryAsync(string categoryGuid /// Get specific glossary category by its GUID. /// The globally unique identifier of the category. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetGlossaryCategory(string categoryGuid, RequestOptions requestOptions = null) + public virtual Response GetGlossaryCategory(string categoryGuid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetGlossaryCategoryRequest(categoryGuid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetGlossaryCategoryRequest(categoryGuid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaryCategory"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2209,8 +2209,8 @@ public virtual Response GetGlossaryCategory(string categoryGuid, RequestOptions /// Create Request for and operations. /// The globally unique identifier of the category. - /// The request options. - private HttpMessage CreateGetGlossaryCategoryRequest(string categoryGuid, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetGlossaryCategoryRequest(string categoryGuid, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -2229,12 +2229,12 @@ private HttpMessage CreateGetGlossaryCategoryRequest(string categoryGuid, Reques /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// classifications /// AtlasClassification[] @@ -2304,12 +2304,12 @@ private HttpMessage CreateGetGlossaryCategoryRequest(string categoryGuid, Reques /// /// Schema for AtlasGlossaryHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// displayText /// string @@ -2331,12 +2331,12 @@ private HttpMessage CreateGetGlossaryCategoryRequest(string categoryGuid, Reques /// /// Schema for AtlasRelatedCategoryHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// categoryGuid /// string @@ -2370,12 +2370,12 @@ private HttpMessage CreateGetGlossaryCategoryRequest(string categoryGuid, Reques /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -2433,12 +2433,12 @@ private HttpMessage CreateGetGlossaryCategoryRequest(string categoryGuid, Reques /// /// Schema for AtlasRelatedTermHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// description /// string @@ -2490,12 +2490,12 @@ private HttpMessage CreateGetGlossaryCategoryRequest(string categoryGuid, Reques /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -2517,24 +2517,24 @@ private HttpMessage CreateGetGlossaryCategoryRequest(string categoryGuid, Reques /// /// /// The globally unique identifier of the category. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task UpdateGlossaryCategoryAsync(string categoryGuid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task UpdateGlossaryCategoryAsync(string categoryGuid, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateUpdateGlossaryCategoryRequest(categoryGuid, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateUpdateGlossaryCategoryRequest(categoryGuid, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.UpdateGlossaryCategory"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2560,12 +2560,12 @@ public virtual async Task UpdateGlossaryCategoryAsync(string categoryG /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// classifications /// AtlasClassification[] @@ -2635,12 +2635,12 @@ public virtual async Task UpdateGlossaryCategoryAsync(string categoryG /// /// Schema for AtlasGlossaryHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// displayText /// string @@ -2662,12 +2662,12 @@ public virtual async Task UpdateGlossaryCategoryAsync(string categoryG /// /// Schema for AtlasRelatedCategoryHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// categoryGuid /// string @@ -2701,12 +2701,12 @@ public virtual async Task UpdateGlossaryCategoryAsync(string categoryG /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -2764,12 +2764,12 @@ public virtual async Task UpdateGlossaryCategoryAsync(string categoryG /// /// Schema for AtlasRelatedTermHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// description /// string @@ -2821,12 +2821,12 @@ public virtual async Task UpdateGlossaryCategoryAsync(string categoryG /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -2848,24 +2848,24 @@ public virtual async Task UpdateGlossaryCategoryAsync(string categoryG /// /// /// The globally unique identifier of the category. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response UpdateGlossaryCategory(string categoryGuid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response UpdateGlossaryCategory(string categoryGuid, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateUpdateGlossaryCategoryRequest(categoryGuid, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateUpdateGlossaryCategoryRequest(categoryGuid, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.UpdateGlossaryCategory"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2889,9 +2889,9 @@ public virtual Response UpdateGlossaryCategory(string categoryGuid, RequestConte /// Create Request for and operations. /// The globally unique identifier of the category. - /// The request body. - /// The request options. - private HttpMessage CreateUpdateGlossaryCategoryRequest(string categoryGuid, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateUpdateGlossaryCategoryRequest(string categoryGuid, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -2904,29 +2904,29 @@ private HttpMessage CreateUpdateGlossaryCategoryRequest(string categoryGuid, Req request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } /// Delete a glossary category. /// The globally unique identifier of the category. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteGlossaryCategoryAsync(string categoryGuid, RequestOptions requestOptions = null) + public virtual async Task DeleteGlossaryCategoryAsync(string categoryGuid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteGlossaryCategoryRequest(categoryGuid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteGlossaryCategoryRequest(categoryGuid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.DeleteGlossaryCategory"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2950,23 +2950,23 @@ public virtual async Task DeleteGlossaryCategoryAsync(string categoryG /// Delete a glossary category. /// The globally unique identifier of the category. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response DeleteGlossaryCategory(string categoryGuid, RequestOptions requestOptions = null) + public virtual Response DeleteGlossaryCategory(string categoryGuid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteGlossaryCategoryRequest(categoryGuid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteGlossaryCategoryRequest(categoryGuid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.DeleteGlossaryCategory"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2990,8 +2990,8 @@ public virtual Response DeleteGlossaryCategory(string categoryGuid, RequestOptio /// Create Request for and operations. /// The globally unique identifier of the category. - /// The request options. - private HttpMessage CreateDeleteGlossaryCategoryRequest(string categoryGuid, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteGlossaryCategoryRequest(string categoryGuid, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -3007,24 +3007,24 @@ private HttpMessage CreateDeleteGlossaryCategoryRequest(string categoryGuid, Req /// Update the glossary category partially. /// The globally unique identifier of the category. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task PartialUpdateGlossaryCategoryAsync(string categoryGuid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task PartialUpdateGlossaryCategoryAsync(string categoryGuid, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreatePartialUpdateGlossaryCategoryRequest(categoryGuid, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreatePartialUpdateGlossaryCategoryRequest(categoryGuid, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.PartialUpdateGlossaryCategory"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -3048,24 +3048,24 @@ public virtual async Task PartialUpdateGlossaryCategoryAsync(string ca /// Update the glossary category partially. /// The globally unique identifier of the category. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response PartialUpdateGlossaryCategory(string categoryGuid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response PartialUpdateGlossaryCategory(string categoryGuid, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreatePartialUpdateGlossaryCategoryRequest(categoryGuid, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreatePartialUpdateGlossaryCategoryRequest(categoryGuid, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.PartialUpdateGlossaryCategory"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -3089,9 +3089,9 @@ public virtual Response PartialUpdateGlossaryCategory(string categoryGuid, Reque /// Create Request for and operations. /// The globally unique identifier of the category. - /// The request body. - /// The request options. - private HttpMessage CreatePartialUpdateGlossaryCategoryRequest(string categoryGuid, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreatePartialUpdateGlossaryCategoryRequest(string categoryGuid, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -3105,7 +3105,7 @@ private HttpMessage CreatePartialUpdateGlossaryCategoryRequest(string categoryGu request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -3114,23 +3114,23 @@ private HttpMessage CreatePartialUpdateGlossaryCategoryRequest(string categoryGu /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetRelatedCategoriesAsync(string categoryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + public virtual async Task GetRelatedCategoriesAsync(string categoryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRelatedCategoriesRequest(categoryGuid, limit, offset, sort, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRelatedCategoriesRequest(categoryGuid, limit, offset, sort, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetRelatedCategories"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -3157,23 +3157,23 @@ public virtual async Task GetRelatedCategoriesAsync(string categoryGui /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetRelatedCategories(string categoryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + public virtual Response GetRelatedCategories(string categoryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRelatedCategoriesRequest(categoryGuid, limit, offset, sort, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRelatedCategoriesRequest(categoryGuid, limit, offset, sort, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetRelatedCategories"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -3200,8 +3200,8 @@ public virtual Response GetRelatedCategories(string categoryGuid, int? limit = n /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. - private HttpMessage CreateGetRelatedCategoriesRequest(string categoryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetRelatedCategoriesRequest(string categoryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -3234,23 +3234,23 @@ private HttpMessage CreateGetRelatedCategoriesRequest(string categoryGuid, int? /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetCategoryTermsAsync(string categoryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + public virtual async Task GetCategoryTermsAsync(string categoryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetCategoryTermsRequest(categoryGuid, limit, offset, sort, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetCategoryTermsRequest(categoryGuid, limit, offset, sort, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetCategoryTerms"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -3277,23 +3277,23 @@ public virtual async Task GetCategoryTermsAsync(string categoryGuid, i /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetCategoryTerms(string categoryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + public virtual Response GetCategoryTerms(string categoryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetCategoryTermsRequest(categoryGuid, limit, offset, sort, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetCategoryTermsRequest(categoryGuid, limit, offset, sort, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetCategoryTerms"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -3320,8 +3320,8 @@ public virtual Response GetCategoryTerms(string categoryGuid, int? limit = null, /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. - private HttpMessage CreateGetCategoryTermsRequest(string categoryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetCategoryTermsRequest(string categoryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -3353,12 +3353,12 @@ private HttpMessage CreateGetCategoryTermsRequest(string categoryGuid, int? limi /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// classifications /// AtlasClassification[] @@ -3575,12 +3575,12 @@ private HttpMessage CreateGetCategoryTermsRequest(string categoryGuid, int? limi /// /// Schema for AtlasGlossaryHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// displayText /// string @@ -3602,12 +3602,12 @@ private HttpMessage CreateGetCategoryTermsRequest(string categoryGuid, int? limi /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -3665,12 +3665,12 @@ private HttpMessage CreateGetCategoryTermsRequest(string categoryGuid, int? limi /// /// Schema for AtlasRelatedTermHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// description /// string @@ -3722,12 +3722,12 @@ private HttpMessage CreateGetCategoryTermsRequest(string categoryGuid, int? limi /// /// Schema for ResourceLink: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// displayName /// string @@ -3743,12 +3743,12 @@ private HttpMessage CreateGetCategoryTermsRequest(string categoryGuid, int? limi /// /// Schema for AtlasRelatedObjectId: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// guid /// string @@ -3806,12 +3806,12 @@ private HttpMessage CreateGetCategoryTermsRequest(string categoryGuid, int? limi /// /// Schema for AtlasTermCategorizationHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// categoryGuid /// string @@ -3845,12 +3845,12 @@ private HttpMessage CreateGetCategoryTermsRequest(string categoryGuid, int? limi /// /// Schema for ContactBasic: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -3866,12 +3866,12 @@ private HttpMessage CreateGetCategoryTermsRequest(string categoryGuid, int? limi /// /// Schema for AtlasStruct: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -3893,12 +3893,12 @@ private HttpMessage CreateGetCategoryTermsRequest(string categoryGuid, int? limi /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -3919,25 +3919,25 @@ private HttpMessage CreateGetCategoryTermsRequest(string categoryGuid, int? limi /// /// /// - /// The request body. + /// The content to send as the body of the request. /// Whether include term hierarchy. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateGlossaryTermAsync(RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + public virtual async Task CreateGlossaryTermAsync(RequestContent content, bool? includeTermHierarchy = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateGlossaryTermRequest(requestBody, includeTermHierarchy, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateGlossaryTermRequest(content, includeTermHierarchy, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.CreateGlossaryTerm"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -3963,12 +3963,12 @@ public virtual async Task CreateGlossaryTermAsync(RequestContent reque /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// classifications /// AtlasClassification[] @@ -4185,12 +4185,12 @@ public virtual async Task CreateGlossaryTermAsync(RequestContent reque /// /// Schema for AtlasGlossaryHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// displayText /// string @@ -4212,12 +4212,12 @@ public virtual async Task CreateGlossaryTermAsync(RequestContent reque /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -4275,12 +4275,12 @@ public virtual async Task CreateGlossaryTermAsync(RequestContent reque /// /// Schema for AtlasRelatedTermHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// description /// string @@ -4332,12 +4332,12 @@ public virtual async Task CreateGlossaryTermAsync(RequestContent reque /// /// Schema for ResourceLink: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// displayName /// string @@ -4353,12 +4353,12 @@ public virtual async Task CreateGlossaryTermAsync(RequestContent reque /// /// Schema for AtlasRelatedObjectId: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// guid /// string @@ -4416,12 +4416,12 @@ public virtual async Task CreateGlossaryTermAsync(RequestContent reque /// /// Schema for AtlasTermCategorizationHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// categoryGuid /// string @@ -4455,12 +4455,12 @@ public virtual async Task CreateGlossaryTermAsync(RequestContent reque /// /// Schema for ContactBasic: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -4476,12 +4476,12 @@ public virtual async Task CreateGlossaryTermAsync(RequestContent reque /// /// Schema for AtlasStruct: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -4503,12 +4503,12 @@ public virtual async Task CreateGlossaryTermAsync(RequestContent reque /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -4529,25 +4529,25 @@ public virtual async Task CreateGlossaryTermAsync(RequestContent reque /// /// /// - /// The request body. + /// The content to send as the body of the request. /// Whether include term hierarchy. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateGlossaryTerm(RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + public virtual Response CreateGlossaryTerm(RequestContent content, bool? includeTermHierarchy = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateGlossaryTermRequest(requestBody, includeTermHierarchy, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateGlossaryTermRequest(content, includeTermHierarchy, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.CreateGlossaryTerm"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -4570,10 +4570,10 @@ public virtual Response CreateGlossaryTerm(RequestContent requestBody, bool? inc } /// Create Request for and operations. - /// The request body. + /// The content to send as the body of the request. /// Whether include term hierarchy. - /// The request options. - private HttpMessage CreateCreateGlossaryTermRequest(RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateCreateGlossaryTermRequest(RequestContent content, bool? includeTermHierarchy = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -4589,30 +4589,30 @@ private HttpMessage CreateCreateGlossaryTermRequest(RequestContent requestBody, request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } /// Get a specific glossary term by its GUID. /// The globally unique identifier for glossary term. /// Whether include term hierarchy. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetGlossaryTermAsync(string termGuid, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + public virtual async Task GetGlossaryTermAsync(string termGuid, bool? includeTermHierarchy = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetGlossaryTermRequest(termGuid, includeTermHierarchy, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetGlossaryTermRequest(termGuid, includeTermHierarchy, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaryTerm"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -4637,23 +4637,23 @@ public virtual async Task GetGlossaryTermAsync(string termGuid, bool? /// Get a specific glossary term by its GUID. /// The globally unique identifier for glossary term. /// Whether include term hierarchy. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetGlossaryTerm(string termGuid, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + public virtual Response GetGlossaryTerm(string termGuid, bool? includeTermHierarchy = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetGlossaryTermRequest(termGuid, includeTermHierarchy, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetGlossaryTermRequest(termGuid, includeTermHierarchy, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaryTerm"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -4678,8 +4678,8 @@ public virtual Response GetGlossaryTerm(string termGuid, bool? includeTermHierar /// Create Request for and operations. /// The globally unique identifier for glossary term. /// Whether include term hierarchy. - /// The request options. - private HttpMessage CreateGetGlossaryTermRequest(string termGuid, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetGlossaryTermRequest(string termGuid, bool? includeTermHierarchy = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -4702,12 +4702,12 @@ private HttpMessage CreateGetGlossaryTermRequest(string termGuid, bool? includeT /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// classifications /// AtlasClassification[] @@ -4924,12 +4924,12 @@ private HttpMessage CreateGetGlossaryTermRequest(string termGuid, bool? includeT /// /// Schema for AtlasGlossaryHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// displayText /// string @@ -4951,12 +4951,12 @@ private HttpMessage CreateGetGlossaryTermRequest(string termGuid, bool? includeT /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -5014,12 +5014,12 @@ private HttpMessage CreateGetGlossaryTermRequest(string termGuid, bool? includeT /// /// Schema for AtlasRelatedTermHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// description /// string @@ -5071,12 +5071,12 @@ private HttpMessage CreateGetGlossaryTermRequest(string termGuid, bool? includeT /// /// Schema for ResourceLink: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// displayName /// string @@ -5092,12 +5092,12 @@ private HttpMessage CreateGetGlossaryTermRequest(string termGuid, bool? includeT /// /// Schema for AtlasRelatedObjectId: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// guid /// string @@ -5155,12 +5155,12 @@ private HttpMessage CreateGetGlossaryTermRequest(string termGuid, bool? includeT /// /// Schema for AtlasTermCategorizationHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// categoryGuid /// string @@ -5194,12 +5194,12 @@ private HttpMessage CreateGetGlossaryTermRequest(string termGuid, bool? includeT /// /// Schema for ContactBasic: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -5215,12 +5215,12 @@ private HttpMessage CreateGetGlossaryTermRequest(string termGuid, bool? includeT /// /// Schema for AtlasStruct: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -5242,12 +5242,12 @@ private HttpMessage CreateGetGlossaryTermRequest(string termGuid, bool? includeT /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -5269,24 +5269,24 @@ private HttpMessage CreateGetGlossaryTermRequest(string termGuid, bool? includeT /// /// /// The globally unique identifier for glossary term. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task UpdateGlossaryTermAsync(string termGuid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task UpdateGlossaryTermAsync(string termGuid, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateUpdateGlossaryTermRequest(termGuid, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateUpdateGlossaryTermRequest(termGuid, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.UpdateGlossaryTerm"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -5312,12 +5312,12 @@ public virtual async Task UpdateGlossaryTermAsync(string termGuid, Req /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// classifications /// AtlasClassification[] @@ -5534,12 +5534,12 @@ public virtual async Task UpdateGlossaryTermAsync(string termGuid, Req /// /// Schema for AtlasGlossaryHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// displayText /// string @@ -5561,12 +5561,12 @@ public virtual async Task UpdateGlossaryTermAsync(string termGuid, Req /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -5624,12 +5624,12 @@ public virtual async Task UpdateGlossaryTermAsync(string termGuid, Req /// /// Schema for AtlasRelatedTermHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// description /// string @@ -5681,12 +5681,12 @@ public virtual async Task UpdateGlossaryTermAsync(string termGuid, Req /// /// Schema for ResourceLink: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// displayName /// string @@ -5702,12 +5702,12 @@ public virtual async Task UpdateGlossaryTermAsync(string termGuid, Req /// /// Schema for AtlasRelatedObjectId: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// guid /// string @@ -5765,12 +5765,12 @@ public virtual async Task UpdateGlossaryTermAsync(string termGuid, Req /// /// Schema for AtlasTermCategorizationHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// categoryGuid /// string @@ -5804,12 +5804,12 @@ public virtual async Task UpdateGlossaryTermAsync(string termGuid, Req /// /// Schema for ContactBasic: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -5825,12 +5825,12 @@ public virtual async Task UpdateGlossaryTermAsync(string termGuid, Req /// /// Schema for AtlasStruct: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -5852,12 +5852,12 @@ public virtual async Task UpdateGlossaryTermAsync(string termGuid, Req /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -5879,24 +5879,24 @@ public virtual async Task UpdateGlossaryTermAsync(string termGuid, Req /// /// /// The globally unique identifier for glossary term. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response UpdateGlossaryTerm(string termGuid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response UpdateGlossaryTerm(string termGuid, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateUpdateGlossaryTermRequest(termGuid, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateUpdateGlossaryTermRequest(termGuid, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.UpdateGlossaryTerm"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -5920,9 +5920,9 @@ public virtual Response UpdateGlossaryTerm(string termGuid, RequestContent reque /// Create Request for and operations. /// The globally unique identifier for glossary term. - /// The request body. - /// The request options. - private HttpMessage CreateUpdateGlossaryTermRequest(string termGuid, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateUpdateGlossaryTermRequest(string termGuid, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -5935,29 +5935,29 @@ private HttpMessage CreateUpdateGlossaryTermRequest(string termGuid, RequestCont request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } /// Delete a glossary term. /// The globally unique identifier for glossary term. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteGlossaryTermAsync(string termGuid, RequestOptions requestOptions = null) + public virtual async Task DeleteGlossaryTermAsync(string termGuid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteGlossaryTermRequest(termGuid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteGlossaryTermRequest(termGuid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.DeleteGlossaryTerm"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -5981,23 +5981,23 @@ public virtual async Task DeleteGlossaryTermAsync(string termGuid, Req /// Delete a glossary term. /// The globally unique identifier for glossary term. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response DeleteGlossaryTerm(string termGuid, RequestOptions requestOptions = null) + public virtual Response DeleteGlossaryTerm(string termGuid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteGlossaryTermRequest(termGuid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteGlossaryTermRequest(termGuid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.DeleteGlossaryTerm"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -6021,8 +6021,8 @@ public virtual Response DeleteGlossaryTerm(string termGuid, RequestOptions reque /// Create Request for and operations. /// The globally unique identifier for glossary term. - /// The request options. - private HttpMessage CreateDeleteGlossaryTermRequest(string termGuid, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteGlossaryTermRequest(string termGuid, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -6038,25 +6038,25 @@ private HttpMessage CreateDeleteGlossaryTermRequest(string termGuid, RequestOpti /// Update the glossary term partially. /// The globally unique identifier for glossary term. - /// The request body. + /// The content to send as the body of the request. /// Whether include term hierarchy. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task PartialUpdateGlossaryTermAsync(string termGuid, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + public virtual async Task PartialUpdateGlossaryTermAsync(string termGuid, RequestContent content, bool? includeTermHierarchy = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreatePartialUpdateGlossaryTermRequest(termGuid, requestBody, includeTermHierarchy, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreatePartialUpdateGlossaryTermRequest(termGuid, content, includeTermHierarchy, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.PartialUpdateGlossaryTerm"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -6080,25 +6080,25 @@ public virtual async Task PartialUpdateGlossaryTermAsync(string termGu /// Update the glossary term partially. /// The globally unique identifier for glossary term. - /// The request body. + /// The content to send as the body of the request. /// Whether include term hierarchy. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response PartialUpdateGlossaryTerm(string termGuid, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + public virtual Response PartialUpdateGlossaryTerm(string termGuid, RequestContent content, bool? includeTermHierarchy = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreatePartialUpdateGlossaryTermRequest(termGuid, requestBody, includeTermHierarchy, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreatePartialUpdateGlossaryTermRequest(termGuid, content, includeTermHierarchy, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.PartialUpdateGlossaryTerm"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -6122,10 +6122,10 @@ public virtual Response PartialUpdateGlossaryTerm(string termGuid, RequestConten /// Create Request for and operations. /// The globally unique identifier for glossary term. - /// The request body. + /// The content to send as the body of the request. /// Whether include term hierarchy. - /// The request options. - private HttpMessage CreatePartialUpdateGlossaryTermRequest(string termGuid, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreatePartialUpdateGlossaryTermRequest(string termGuid, RequestContent content, bool? includeTermHierarchy = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -6143,7 +6143,7 @@ private HttpMessage CreatePartialUpdateGlossaryTermRequest(string termGuid, Requ request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -6151,12 +6151,12 @@ private HttpMessage CreatePartialUpdateGlossaryTermRequest(string termGuid, Requ /// /// Schema for AtlasGlossaryTerm: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// classifications /// AtlasClassification[] @@ -6373,12 +6373,12 @@ private HttpMessage CreatePartialUpdateGlossaryTermRequest(string termGuid, Requ /// /// Schema for AtlasGlossaryHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// displayText /// string @@ -6400,12 +6400,12 @@ private HttpMessage CreatePartialUpdateGlossaryTermRequest(string termGuid, Requ /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -6463,12 +6463,12 @@ private HttpMessage CreatePartialUpdateGlossaryTermRequest(string termGuid, Requ /// /// Schema for AtlasRelatedTermHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// description /// string @@ -6520,12 +6520,12 @@ private HttpMessage CreatePartialUpdateGlossaryTermRequest(string termGuid, Requ /// /// Schema for ResourceLink: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// displayName /// string @@ -6541,12 +6541,12 @@ private HttpMessage CreatePartialUpdateGlossaryTermRequest(string termGuid, Requ /// /// Schema for AtlasRelatedObjectId: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// guid /// string @@ -6604,12 +6604,12 @@ private HttpMessage CreatePartialUpdateGlossaryTermRequest(string termGuid, Requ /// /// Schema for AtlasTermCategorizationHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// categoryGuid /// string @@ -6643,12 +6643,12 @@ private HttpMessage CreatePartialUpdateGlossaryTermRequest(string termGuid, Requ /// /// Schema for ContactBasic: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -6664,12 +6664,12 @@ private HttpMessage CreatePartialUpdateGlossaryTermRequest(string termGuid, Requ /// /// Schema for AtlasStruct: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -6691,12 +6691,12 @@ private HttpMessage CreatePartialUpdateGlossaryTermRequest(string termGuid, Requ /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -6717,25 +6717,25 @@ private HttpMessage CreatePartialUpdateGlossaryTermRequest(string termGuid, Requ /// /// /// - /// The request body. + /// The content to send as the body of the request. /// Whether include term hierarchy. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateGlossaryTermsAsync(RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + public virtual async Task CreateGlossaryTermsAsync(RequestContent content, bool? includeTermHierarchy = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateGlossaryTermsRequest(requestBody, includeTermHierarchy, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateGlossaryTermsRequest(content, includeTermHierarchy, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.CreateGlossaryTerms"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -6761,12 +6761,12 @@ public virtual async Task CreateGlossaryTermsAsync(RequestContent requ /// /// Schema for AtlasGlossaryTerm: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// classifications /// AtlasClassification[] @@ -6983,12 +6983,12 @@ public virtual async Task CreateGlossaryTermsAsync(RequestContent requ /// /// Schema for AtlasGlossaryHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// displayText /// string @@ -7010,12 +7010,12 @@ public virtual async Task CreateGlossaryTermsAsync(RequestContent requ /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -7073,12 +7073,12 @@ public virtual async Task CreateGlossaryTermsAsync(RequestContent requ /// /// Schema for AtlasRelatedTermHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// description /// string @@ -7130,12 +7130,12 @@ public virtual async Task CreateGlossaryTermsAsync(RequestContent requ /// /// Schema for ResourceLink: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// displayName /// string @@ -7151,12 +7151,12 @@ public virtual async Task CreateGlossaryTermsAsync(RequestContent requ /// /// Schema for AtlasRelatedObjectId: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// guid /// string @@ -7214,12 +7214,12 @@ public virtual async Task CreateGlossaryTermsAsync(RequestContent requ /// /// Schema for AtlasTermCategorizationHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// categoryGuid /// string @@ -7253,12 +7253,12 @@ public virtual async Task CreateGlossaryTermsAsync(RequestContent requ /// /// Schema for ContactBasic: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -7274,12 +7274,12 @@ public virtual async Task CreateGlossaryTermsAsync(RequestContent requ /// /// Schema for AtlasStruct: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -7301,12 +7301,12 @@ public virtual async Task CreateGlossaryTermsAsync(RequestContent requ /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -7327,25 +7327,25 @@ public virtual async Task CreateGlossaryTermsAsync(RequestContent requ /// /// /// - /// The request body. + /// The content to send as the body of the request. /// Whether include term hierarchy. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateGlossaryTerms(RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + public virtual Response CreateGlossaryTerms(RequestContent content, bool? includeTermHierarchy = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateGlossaryTermsRequest(requestBody, includeTermHierarchy, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateGlossaryTermsRequest(content, includeTermHierarchy, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.CreateGlossaryTerms"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -7368,10 +7368,10 @@ public virtual Response CreateGlossaryTerms(RequestContent requestBody, bool? in } /// Create Request for and operations. - /// The request body. + /// The content to send as the body of the request. /// Whether include term hierarchy. - /// The request options. - private HttpMessage CreateCreateGlossaryTermsRequest(RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateCreateGlossaryTermsRequest(RequestContent content, bool? includeTermHierarchy = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -7387,7 +7387,7 @@ private HttpMessage CreateCreateGlossaryTermsRequest(RequestContent requestBody, request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -7396,23 +7396,23 @@ private HttpMessage CreateCreateGlossaryTermsRequest(RequestContent requestBody, /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetEntitiesAssignedWithTermAsync(string termGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + public virtual async Task GetEntitiesAssignedWithTermAsync(string termGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetEntitiesAssignedWithTermRequest(termGuid, limit, offset, sort, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetEntitiesAssignedWithTermRequest(termGuid, limit, offset, sort, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetEntitiesAssignedWithTerm"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -7439,23 +7439,23 @@ public virtual async Task GetEntitiesAssignedWithTermAsync(string term /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetEntitiesAssignedWithTerm(string termGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + public virtual Response GetEntitiesAssignedWithTerm(string termGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetEntitiesAssignedWithTermRequest(termGuid, limit, offset, sort, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetEntitiesAssignedWithTermRequest(termGuid, limit, offset, sort, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetEntitiesAssignedWithTerm"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -7482,8 +7482,8 @@ public virtual Response GetEntitiesAssignedWithTerm(string termGuid, int? limit /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. - private HttpMessage CreateGetEntitiesAssignedWithTermRequest(string termGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetEntitiesAssignedWithTermRequest(string termGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -7515,12 +7515,12 @@ private HttpMessage CreateGetEntitiesAssignedWithTermRequest(string termGuid, in /// /// Schema for AtlasRelatedObjectId: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// guid /// string @@ -7578,12 +7578,12 @@ private HttpMessage CreateGetEntitiesAssignedWithTermRequest(string termGuid, in /// /// Schema for AtlasStruct: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -7605,24 +7605,24 @@ private HttpMessage CreateGetEntitiesAssignedWithTermRequest(string termGuid, in /// /// /// The globally unique identifier for glossary term. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task AssignTermToEntitiesAsync(string termGuid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task AssignTermToEntitiesAsync(string termGuid, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateAssignTermToEntitiesRequest(termGuid, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateAssignTermToEntitiesRequest(termGuid, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.AssignTermToEntities"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -7648,12 +7648,12 @@ public virtual async Task AssignTermToEntitiesAsync(string termGuid, R /// /// Schema for AtlasRelatedObjectId: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// guid /// string @@ -7711,12 +7711,12 @@ public virtual async Task AssignTermToEntitiesAsync(string termGuid, R /// /// Schema for AtlasStruct: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -7738,24 +7738,24 @@ public virtual async Task AssignTermToEntitiesAsync(string termGuid, R /// /// /// The globally unique identifier for glossary term. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response AssignTermToEntities(string termGuid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response AssignTermToEntities(string termGuid, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateAssignTermToEntitiesRequest(termGuid, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateAssignTermToEntitiesRequest(termGuid, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.AssignTermToEntities"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -7779,9 +7779,9 @@ public virtual Response AssignTermToEntities(string termGuid, RequestContent req /// Create Request for and operations. /// The globally unique identifier for glossary term. - /// The request body. - /// The request options. - private HttpMessage CreateAssignTermToEntitiesRequest(string termGuid, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateAssignTermToEntitiesRequest(string termGuid, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -7794,7 +7794,7 @@ private HttpMessage CreateAssignTermToEntitiesRequest(string termGuid, RequestCo uri.AppendPath("/assignedEntities", false); request.Uri = uri; request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -7802,12 +7802,12 @@ private HttpMessage CreateAssignTermToEntitiesRequest(string termGuid, RequestCo /// /// Schema for AtlasRelatedObjectId: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// guid /// string @@ -7865,12 +7865,12 @@ private HttpMessage CreateAssignTermToEntitiesRequest(string termGuid, RequestCo /// /// Schema for AtlasStruct: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -7892,24 +7892,24 @@ private HttpMessage CreateAssignTermToEntitiesRequest(string termGuid, RequestCo /// /// /// The globally unique identifier for glossary term. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task RemoveTermAssignmentFromEntitiesAsync(string termGuid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task RemoveTermAssignmentFromEntitiesAsync(string termGuid, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateRemoveTermAssignmentFromEntitiesRequest(termGuid, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateRemoveTermAssignmentFromEntitiesRequest(termGuid, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.RemoveTermAssignmentFromEntities"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -7935,12 +7935,12 @@ public virtual async Task RemoveTermAssignmentFromEntitiesAsync(string /// /// Schema for AtlasRelatedObjectId: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// guid /// string @@ -7998,12 +7998,12 @@ public virtual async Task RemoveTermAssignmentFromEntitiesAsync(string /// /// Schema for AtlasStruct: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -8025,24 +8025,24 @@ public virtual async Task RemoveTermAssignmentFromEntitiesAsync(string /// /// /// The globally unique identifier for glossary term. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response RemoveTermAssignmentFromEntities(string termGuid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response RemoveTermAssignmentFromEntities(string termGuid, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateRemoveTermAssignmentFromEntitiesRequest(termGuid, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateRemoveTermAssignmentFromEntitiesRequest(termGuid, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.RemoveTermAssignmentFromEntities"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -8066,9 +8066,9 @@ public virtual Response RemoveTermAssignmentFromEntities(string termGuid, Reques /// Create Request for and operations. /// The globally unique identifier for glossary term. - /// The request body. - /// The request options. - private HttpMessage CreateRemoveTermAssignmentFromEntitiesRequest(string termGuid, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateRemoveTermAssignmentFromEntitiesRequest(string termGuid, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -8081,7 +8081,7 @@ private HttpMessage CreateRemoveTermAssignmentFromEntitiesRequest(string termGui uri.AppendPath("/assignedEntities", false); request.Uri = uri; request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -8089,12 +8089,12 @@ private HttpMessage CreateRemoveTermAssignmentFromEntitiesRequest(string termGui /// /// Schema for AtlasRelatedObjectId: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// guid /// string @@ -8152,12 +8152,12 @@ private HttpMessage CreateRemoveTermAssignmentFromEntitiesRequest(string termGui /// /// Schema for AtlasStruct: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -8179,24 +8179,24 @@ private HttpMessage CreateRemoveTermAssignmentFromEntitiesRequest(string termGui /// /// /// The globally unique identifier for glossary term. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteTermAssignmentFromEntitiesAsync(string termGuid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task DeleteTermAssignmentFromEntitiesAsync(string termGuid, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteTermAssignmentFromEntitiesRequest(termGuid, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteTermAssignmentFromEntitiesRequest(termGuid, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.DeleteTermAssignmentFromEntities"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -8222,12 +8222,12 @@ public virtual async Task DeleteTermAssignmentFromEntitiesAsync(string /// /// Schema for AtlasRelatedObjectId: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// guid /// string @@ -8285,12 +8285,12 @@ public virtual async Task DeleteTermAssignmentFromEntitiesAsync(string /// /// Schema for AtlasStruct: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -8312,24 +8312,24 @@ public virtual async Task DeleteTermAssignmentFromEntitiesAsync(string /// /// /// The globally unique identifier for glossary term. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response DeleteTermAssignmentFromEntities(string termGuid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response DeleteTermAssignmentFromEntities(string termGuid, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteTermAssignmentFromEntitiesRequest(termGuid, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteTermAssignmentFromEntitiesRequest(termGuid, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.DeleteTermAssignmentFromEntities"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -8353,9 +8353,9 @@ public virtual Response DeleteTermAssignmentFromEntities(string termGuid, Reques /// Create Request for and operations. /// The globally unique identifier for glossary term. - /// The request body. - /// The request options. - private HttpMessage CreateDeleteTermAssignmentFromEntitiesRequest(string termGuid, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateDeleteTermAssignmentFromEntitiesRequest(string termGuid, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -8368,7 +8368,7 @@ private HttpMessage CreateDeleteTermAssignmentFromEntitiesRequest(string termGui uri.AppendPath("/assignedEntities", false); request.Uri = uri; request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -8377,23 +8377,23 @@ private HttpMessage CreateDeleteTermAssignmentFromEntitiesRequest(string termGui /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetRelatedTermsAsync(string termGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + public virtual async Task GetRelatedTermsAsync(string termGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRelatedTermsRequest(termGuid, limit, offset, sort, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRelatedTermsRequest(termGuid, limit, offset, sort, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetRelatedTerms"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -8420,23 +8420,23 @@ public virtual async Task GetRelatedTermsAsync(string termGuid, int? l /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetRelatedTerms(string termGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + public virtual Response GetRelatedTerms(string termGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRelatedTermsRequest(termGuid, limit, offset, sort, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRelatedTermsRequest(termGuid, limit, offset, sort, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetRelatedTerms"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -8463,8 +8463,8 @@ public virtual Response GetRelatedTerms(string termGuid, int? limit = null, int? /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. - private HttpMessage CreateGetRelatedTermsRequest(string termGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetRelatedTermsRequest(string termGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -8494,23 +8494,23 @@ private HttpMessage CreateGetRelatedTermsRequest(string termGuid, int? limit = n /// Get a specific Glossary by its GUID. /// The globally unique identifier for glossary. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetGlossaryAsync(string glossaryGuid, RequestOptions requestOptions = null) + public virtual async Task GetGlossaryAsync(string glossaryGuid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetGlossaryRequest(glossaryGuid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetGlossaryRequest(glossaryGuid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossary"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -8534,23 +8534,23 @@ public virtual async Task GetGlossaryAsync(string glossaryGuid, Reques /// Get a specific Glossary by its GUID. /// The globally unique identifier for glossary. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetGlossary(string glossaryGuid, RequestOptions requestOptions = null) + public virtual Response GetGlossary(string glossaryGuid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetGlossaryRequest(glossaryGuid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetGlossaryRequest(glossaryGuid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossary"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -8574,8 +8574,8 @@ public virtual Response GetGlossary(string glossaryGuid, RequestOptions requestO /// Create Request for and operations. /// The globally unique identifier for glossary. - /// The request options. - private HttpMessage CreateGetGlossaryRequest(string glossaryGuid, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetGlossaryRequest(string glossaryGuid, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -8594,12 +8594,12 @@ private HttpMessage CreateGetGlossaryRequest(string glossaryGuid, RequestOptions /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// classifications /// AtlasClassification[] @@ -8669,12 +8669,12 @@ private HttpMessage CreateGetGlossaryRequest(string glossaryGuid, RequestOptions /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -8732,12 +8732,12 @@ private HttpMessage CreateGetGlossaryRequest(string glossaryGuid, RequestOptions /// /// Schema for AtlasRelatedCategoryHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// categoryGuid /// string @@ -8771,12 +8771,12 @@ private HttpMessage CreateGetGlossaryRequest(string glossaryGuid, RequestOptions /// /// Schema for AtlasRelatedTermHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// description /// string @@ -8828,12 +8828,12 @@ private HttpMessage CreateGetGlossaryRequest(string glossaryGuid, RequestOptions /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -8855,24 +8855,24 @@ private HttpMessage CreateGetGlossaryRequest(string glossaryGuid, RequestOptions /// /// /// The globally unique identifier for glossary. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task UpdateGlossaryAsync(string glossaryGuid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task UpdateGlossaryAsync(string glossaryGuid, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateUpdateGlossaryRequest(glossaryGuid, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateUpdateGlossaryRequest(glossaryGuid, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.UpdateGlossary"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -8898,12 +8898,12 @@ public virtual async Task UpdateGlossaryAsync(string glossaryGuid, Req /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// classifications /// AtlasClassification[] @@ -8973,12 +8973,12 @@ public virtual async Task UpdateGlossaryAsync(string glossaryGuid, Req /// /// Schema for AtlasClassification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -9036,12 +9036,12 @@ public virtual async Task UpdateGlossaryAsync(string glossaryGuid, Req /// /// Schema for AtlasRelatedCategoryHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// categoryGuid /// string @@ -9075,12 +9075,12 @@ public virtual async Task UpdateGlossaryAsync(string glossaryGuid, Req /// /// Schema for AtlasRelatedTermHeader: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// description /// string @@ -9132,12 +9132,12 @@ public virtual async Task UpdateGlossaryAsync(string glossaryGuid, Req /// /// Schema for TimeBoundary: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// endTime /// string @@ -9159,24 +9159,24 @@ public virtual async Task UpdateGlossaryAsync(string glossaryGuid, Req /// /// /// The globally unique identifier for glossary. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response UpdateGlossary(string glossaryGuid, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response UpdateGlossary(string glossaryGuid, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateUpdateGlossaryRequest(glossaryGuid, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateUpdateGlossaryRequest(glossaryGuid, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.UpdateGlossary"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -9200,9 +9200,9 @@ public virtual Response UpdateGlossary(string glossaryGuid, RequestContent reque /// Create Request for and operations. /// The globally unique identifier for glossary. - /// The request body. - /// The request options. - private HttpMessage CreateUpdateGlossaryRequest(string glossaryGuid, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateUpdateGlossaryRequest(string glossaryGuid, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -9215,29 +9215,29 @@ private HttpMessage CreateUpdateGlossaryRequest(string glossaryGuid, RequestCont request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } /// Delete a glossary. /// The globally unique identifier for glossary. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteGlossaryAsync(string glossaryGuid, RequestOptions requestOptions = null) + public virtual async Task DeleteGlossaryAsync(string glossaryGuid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteGlossaryRequest(glossaryGuid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteGlossaryRequest(glossaryGuid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.DeleteGlossary"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -9261,23 +9261,23 @@ public virtual async Task DeleteGlossaryAsync(string glossaryGuid, Req /// Delete a glossary. /// The globally unique identifier for glossary. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response DeleteGlossary(string glossaryGuid, RequestOptions requestOptions = null) + public virtual Response DeleteGlossary(string glossaryGuid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteGlossaryRequest(glossaryGuid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteGlossaryRequest(glossaryGuid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.DeleteGlossary"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -9301,8 +9301,8 @@ public virtual Response DeleteGlossary(string glossaryGuid, RequestOptions reque /// Create Request for and operations. /// The globally unique identifier for glossary. - /// The request options. - private HttpMessage CreateDeleteGlossaryRequest(string glossaryGuid, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteGlossaryRequest(string glossaryGuid, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -9321,23 +9321,23 @@ private HttpMessage CreateDeleteGlossaryRequest(string glossaryGuid, RequestOpti /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetGlossaryCategoriesAsync(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + public virtual async Task GetGlossaryCategoriesAsync(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetGlossaryCategoriesRequest(glossaryGuid, limit, offset, sort, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetGlossaryCategoriesRequest(glossaryGuid, limit, offset, sort, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaryCategories"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -9364,23 +9364,23 @@ public virtual async Task GetGlossaryCategoriesAsync(string glossaryGu /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetGlossaryCategories(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + public virtual Response GetGlossaryCategories(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetGlossaryCategoriesRequest(glossaryGuid, limit, offset, sort, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetGlossaryCategoriesRequest(glossaryGuid, limit, offset, sort, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaryCategories"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -9407,8 +9407,8 @@ public virtual Response GetGlossaryCategories(string glossaryGuid, int? limit = /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. - private HttpMessage CreateGetGlossaryCategoriesRequest(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetGlossaryCategoriesRequest(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -9441,23 +9441,23 @@ private HttpMessage CreateGetGlossaryCategoriesRequest(string glossaryGuid, int? /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetGlossaryCategoriesHeadersAsync(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + public virtual async Task GetGlossaryCategoriesHeadersAsync(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetGlossaryCategoriesHeadersRequest(glossaryGuid, limit, offset, sort, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetGlossaryCategoriesHeadersRequest(glossaryGuid, limit, offset, sort, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaryCategoriesHeaders"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -9484,23 +9484,23 @@ public virtual async Task GetGlossaryCategoriesHeadersAsync(string glo /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetGlossaryCategoriesHeaders(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + public virtual Response GetGlossaryCategoriesHeaders(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetGlossaryCategoriesHeadersRequest(glossaryGuid, limit, offset, sort, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetGlossaryCategoriesHeadersRequest(glossaryGuid, limit, offset, sort, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaryCategoriesHeaders"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -9527,8 +9527,8 @@ public virtual Response GetGlossaryCategoriesHeaders(string glossaryGuid, int? l /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. - private HttpMessage CreateGetGlossaryCategoriesHeadersRequest(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetGlossaryCategoriesHeadersRequest(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -9559,23 +9559,23 @@ private HttpMessage CreateGetGlossaryCategoriesHeadersRequest(string glossaryGui /// Get a specific glossary with detailed information. /// The globally unique identifier for glossary. /// Whether include term hierarchy. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetDetailedGlossaryAsync(string glossaryGuid, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + public virtual async Task GetDetailedGlossaryAsync(string glossaryGuid, bool? includeTermHierarchy = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetDetailedGlossaryRequest(glossaryGuid, includeTermHierarchy, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetDetailedGlossaryRequest(glossaryGuid, includeTermHierarchy, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetDetailedGlossary"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -9600,23 +9600,23 @@ public virtual async Task GetDetailedGlossaryAsync(string glossaryGuid /// Get a specific glossary with detailed information. /// The globally unique identifier for glossary. /// Whether include term hierarchy. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetDetailedGlossary(string glossaryGuid, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + public virtual Response GetDetailedGlossary(string glossaryGuid, bool? includeTermHierarchy = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetDetailedGlossaryRequest(glossaryGuid, includeTermHierarchy, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetDetailedGlossaryRequest(glossaryGuid, includeTermHierarchy, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetDetailedGlossary"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -9641,8 +9641,8 @@ public virtual Response GetDetailedGlossary(string glossaryGuid, bool? includeTe /// Create Request for and operations. /// The globally unique identifier for glossary. /// Whether include term hierarchy. - /// The request options. - private HttpMessage CreateGetDetailedGlossaryRequest(string glossaryGuid, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetDetailedGlossaryRequest(string glossaryGuid, bool? includeTermHierarchy = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -9664,25 +9664,25 @@ private HttpMessage CreateGetDetailedGlossaryRequest(string glossaryGuid, bool? /// Update the glossary partially. Some properties such as qualifiedName are not allowed to be updated. /// The globally unique identifier for glossary. - /// The request body. + /// The content to send as the body of the request. /// Whether include term hierarchy. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task PartialUpdateGlossaryAsync(string glossaryGuid, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + public virtual async Task PartialUpdateGlossaryAsync(string glossaryGuid, RequestContent content, bool? includeTermHierarchy = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreatePartialUpdateGlossaryRequest(glossaryGuid, requestBody, includeTermHierarchy, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreatePartialUpdateGlossaryRequest(glossaryGuid, content, includeTermHierarchy, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.PartialUpdateGlossary"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -9706,25 +9706,25 @@ public virtual async Task PartialUpdateGlossaryAsync(string glossaryGu /// Update the glossary partially. Some properties such as qualifiedName are not allowed to be updated. /// The globally unique identifier for glossary. - /// The request body. + /// The content to send as the body of the request. /// Whether include term hierarchy. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response PartialUpdateGlossary(string glossaryGuid, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + public virtual Response PartialUpdateGlossary(string glossaryGuid, RequestContent content, bool? includeTermHierarchy = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreatePartialUpdateGlossaryRequest(glossaryGuid, requestBody, includeTermHierarchy, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreatePartialUpdateGlossaryRequest(glossaryGuid, content, includeTermHierarchy, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.PartialUpdateGlossary"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -9748,10 +9748,10 @@ public virtual Response PartialUpdateGlossary(string glossaryGuid, RequestConten /// Create Request for and operations. /// The globally unique identifier for glossary. - /// The request body. + /// The content to send as the body of the request. /// Whether include term hierarchy. - /// The request options. - private HttpMessage CreatePartialUpdateGlossaryRequest(string glossaryGuid, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreatePartialUpdateGlossaryRequest(string glossaryGuid, RequestContent content, bool? includeTermHierarchy = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -9769,7 +9769,7 @@ private HttpMessage CreatePartialUpdateGlossaryRequest(string glossaryGuid, Requ request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -9779,23 +9779,23 @@ private HttpMessage CreatePartialUpdateGlossaryRequest(string glossaryGuid, Requ /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetGlossaryTermsAsync(string glossaryGuid, bool? includeTermHierarchy = null, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + public virtual async Task GetGlossaryTermsAsync(string glossaryGuid, bool? includeTermHierarchy = null, int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetGlossaryTermsRequest(glossaryGuid, includeTermHierarchy, limit, offset, sort, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetGlossaryTermsRequest(glossaryGuid, includeTermHierarchy, limit, offset, sort, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaryTerms"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -9823,23 +9823,23 @@ public virtual async Task GetGlossaryTermsAsync(string glossaryGuid, b /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetGlossaryTerms(string glossaryGuid, bool? includeTermHierarchy = null, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + public virtual Response GetGlossaryTerms(string glossaryGuid, bool? includeTermHierarchy = null, int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetGlossaryTermsRequest(glossaryGuid, includeTermHierarchy, limit, offset, sort, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetGlossaryTermsRequest(glossaryGuid, includeTermHierarchy, limit, offset, sort, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaryTerms"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -9867,8 +9867,8 @@ public virtual Response GetGlossaryTerms(string glossaryGuid, bool? includeTermH /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. - private HttpMessage CreateGetGlossaryTermsRequest(string glossaryGuid, bool? includeTermHierarchy = null, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetGlossaryTermsRequest(string glossaryGuid, bool? includeTermHierarchy = null, int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -9905,23 +9905,23 @@ private HttpMessage CreateGetGlossaryTermsRequest(string glossaryGuid, bool? inc /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetGlossaryTermHeadersAsync(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + public virtual async Task GetGlossaryTermHeadersAsync(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetGlossaryTermHeadersRequest(glossaryGuid, limit, offset, sort, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetGlossaryTermHeadersRequest(glossaryGuid, limit, offset, sort, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaryTermHeaders"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -9948,23 +9948,23 @@ public virtual async Task GetGlossaryTermHeadersAsync(string glossaryG /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetGlossaryTermHeaders(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + public virtual Response GetGlossaryTermHeaders(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetGlossaryTermHeadersRequest(glossaryGuid, limit, offset, sort, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetGlossaryTermHeadersRequest(glossaryGuid, limit, offset, sort, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetGlossaryTermHeaders"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -9991,8 +9991,8 @@ public virtual Response GetGlossaryTermHeaders(string glossaryGuid, int? limit = /// The page size - by default there is no paging. /// The offset for pagination purpose. /// The sort order, ASC (default) or DESC. - /// The request options. - private HttpMessage CreateGetGlossaryTermHeadersRequest(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetGlossaryTermHeadersRequest(string glossaryGuid, int? limit = null, int? offset = null, string sort = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -10022,25 +10022,25 @@ private HttpMessage CreateGetGlossaryTermHeadersRequest(string glossaryGuid, int /// Import Glossary Terms from local csv file. /// The globally unique identifier for glossary. - /// The request body. + /// The content to send as the body of the request. /// Whether include term hierarchy. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ImportGlossaryTermsViaCsvAsync(string glossaryGuid, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + public virtual async Task ImportGlossaryTermsViaCsvAsync(string glossaryGuid, RequestContent content, bool? includeTermHierarchy = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateImportGlossaryTermsViaCsvRequest(glossaryGuid, requestBody, includeTermHierarchy, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateImportGlossaryTermsViaCsvRequest(glossaryGuid, content, includeTermHierarchy, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.ImportGlossaryTermsViaCsv"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -10064,25 +10064,25 @@ public virtual async Task ImportGlossaryTermsViaCsvAsync(string glossa /// Import Glossary Terms from local csv file. /// The globally unique identifier for glossary. - /// The request body. + /// The content to send as the body of the request. /// Whether include term hierarchy. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response ImportGlossaryTermsViaCsv(string glossaryGuid, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + public virtual Response ImportGlossaryTermsViaCsv(string glossaryGuid, RequestContent content, bool? includeTermHierarchy = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateImportGlossaryTermsViaCsvRequest(glossaryGuid, requestBody, includeTermHierarchy, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateImportGlossaryTermsViaCsvRequest(glossaryGuid, content, includeTermHierarchy, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.ImportGlossaryTermsViaCsv"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -10106,10 +10106,10 @@ public virtual Response ImportGlossaryTermsViaCsv(string glossaryGuid, RequestCo /// Create Request for and operations. /// The globally unique identifier for glossary. - /// The request body. + /// The content to send as the body of the request. /// Whether include term hierarchy. - /// The request options. - private HttpMessage CreateImportGlossaryTermsViaCsvRequest(string glossaryGuid, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateImportGlossaryTermsViaCsvRequest(string glossaryGuid, RequestContent content, bool? includeTermHierarchy = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -10128,31 +10128,31 @@ private HttpMessage CreateImportGlossaryTermsViaCsvRequest(string glossaryGuid, request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "multipart/form-data"); - request.Content = requestBody; + request.Content = content; return message; } /// Import Glossary Terms from local csv file by glossaryName. /// The name of the glossary. - /// The request body. + /// The content to send as the body of the request. /// Whether include term hierarchy. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ImportGlossaryTermsViaCsvByGlossaryNameAsync(string glossaryName, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + public virtual async Task ImportGlossaryTermsViaCsvByGlossaryNameAsync(string glossaryName, RequestContent content, bool? includeTermHierarchy = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateImportGlossaryTermsViaCsvByGlossaryNameRequest(glossaryName, requestBody, includeTermHierarchy, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateImportGlossaryTermsViaCsvByGlossaryNameRequest(glossaryName, content, includeTermHierarchy, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.ImportGlossaryTermsViaCsvByGlossaryName"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -10176,25 +10176,25 @@ public virtual async Task ImportGlossaryTermsViaCsvByGlossaryNameAsync /// Import Glossary Terms from local csv file by glossaryName. /// The name of the glossary. - /// The request body. + /// The content to send as the body of the request. /// Whether include term hierarchy. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response ImportGlossaryTermsViaCsvByGlossaryName(string glossaryName, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + public virtual Response ImportGlossaryTermsViaCsvByGlossaryName(string glossaryName, RequestContent content, bool? includeTermHierarchy = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateImportGlossaryTermsViaCsvByGlossaryNameRequest(glossaryName, requestBody, includeTermHierarchy, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateImportGlossaryTermsViaCsvByGlossaryNameRequest(glossaryName, content, includeTermHierarchy, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.ImportGlossaryTermsViaCsvByGlossaryName"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -10218,10 +10218,10 @@ public virtual Response ImportGlossaryTermsViaCsvByGlossaryName(string glossaryN /// Create Request for and operations. /// The name of the glossary. - /// The request body. + /// The content to send as the body of the request. /// Whether include term hierarchy. - /// The request options. - private HttpMessage CreateImportGlossaryTermsViaCsvByGlossaryNameRequest(string glossaryName, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateImportGlossaryTermsViaCsvByGlossaryNameRequest(string glossaryName, RequestContent content, bool? includeTermHierarchy = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -10240,29 +10240,29 @@ private HttpMessage CreateImportGlossaryTermsViaCsvByGlossaryNameRequest(string request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "multipart/form-data"); - request.Content = requestBody; + request.Content = content; return message; } /// Get the status of import csv operation. /// The globally unique identifier for async operation/job. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetImportCsvOperationStatusAsync(string operationGuid, RequestOptions requestOptions = null) + public virtual async Task GetImportCsvOperationStatusAsync(string operationGuid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetImportCsvOperationStatusRequest(operationGuid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetImportCsvOperationStatusRequest(operationGuid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetImportCsvOperationStatus"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -10286,23 +10286,23 @@ public virtual async Task GetImportCsvOperationStatusAsync(string oper /// Get the status of import csv operation. /// The globally unique identifier for async operation/job. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetImportCsvOperationStatus(string operationGuid, RequestOptions requestOptions = null) + public virtual Response GetImportCsvOperationStatus(string operationGuid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetImportCsvOperationStatusRequest(operationGuid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetImportCsvOperationStatusRequest(operationGuid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetImportCsvOperationStatus"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -10326,8 +10326,8 @@ public virtual Response GetImportCsvOperationStatus(string operationGuid, Reques /// Create Request for and operations. /// The globally unique identifier for async operation/job. - /// The request options. - private HttpMessage CreateGetImportCsvOperationStatusRequest(string operationGuid, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetImportCsvOperationStatusRequest(string operationGuid, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -10345,25 +10345,25 @@ private HttpMessage CreateGetImportCsvOperationStatusRequest(string operationGui /// Export Glossary Terms as csv file. /// The globally unique identifier for glossary. - /// The request body. + /// The content to send as the body of the request. /// Whether include term hierarchy. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task ExportGlossaryTermsAsCsvAsync(string glossaryGuid, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + public virtual async Task ExportGlossaryTermsAsCsvAsync(string glossaryGuid, RequestContent content, bool? includeTermHierarchy = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateExportGlossaryTermsAsCsvRequest(glossaryGuid, requestBody, includeTermHierarchy, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateExportGlossaryTermsAsCsvRequest(glossaryGuid, content, includeTermHierarchy, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.ExportGlossaryTermsAsCsv"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -10387,25 +10387,25 @@ public virtual async Task ExportGlossaryTermsAsCsvAsync(string glossar /// Export Glossary Terms as csv file. /// The globally unique identifier for glossary. - /// The request body. + /// The content to send as the body of the request. /// Whether include term hierarchy. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response ExportGlossaryTermsAsCsv(string glossaryGuid, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + public virtual Response ExportGlossaryTermsAsCsv(string glossaryGuid, RequestContent content, bool? includeTermHierarchy = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateExportGlossaryTermsAsCsvRequest(glossaryGuid, requestBody, includeTermHierarchy, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateExportGlossaryTermsAsCsvRequest(glossaryGuid, content, includeTermHierarchy, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.ExportGlossaryTermsAsCsv"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -10429,10 +10429,10 @@ public virtual Response ExportGlossaryTermsAsCsv(string glossaryGuid, RequestCon /// Create Request for and operations. /// The globally unique identifier for glossary. - /// The request body. + /// The content to send as the body of the request. /// Whether include term hierarchy. - /// The request options. - private HttpMessage CreateExportGlossaryTermsAsCsvRequest(string glossaryGuid, RequestContent requestBody, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateExportGlossaryTermsAsCsvRequest(string glossaryGuid, RequestContent content, bool? includeTermHierarchy = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -10451,7 +10451,7 @@ private HttpMessage CreateExportGlossaryTermsAsCsvRequest(string glossaryGuid, R request.Uri = uri; request.Headers.Add("Accept", "text/csv"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -10460,23 +10460,23 @@ private HttpMessage CreateExportGlossaryTermsAsCsvRequest(string glossaryGuid, R /// The page size - by default there is no paging. /// The offset for pagination purpose. /// Whether include term hierarchy. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetTermsByGlossaryNameAsync(string glossaryName, int? limit = null, int? offset = null, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + public virtual async Task GetTermsByGlossaryNameAsync(string glossaryName, int? limit = null, int? offset = null, bool? includeTermHierarchy = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetTermsByGlossaryNameRequest(glossaryName, limit, offset, includeTermHierarchy, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetTermsByGlossaryNameRequest(glossaryName, limit, offset, includeTermHierarchy, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetTermsByGlossaryName"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -10503,23 +10503,23 @@ public virtual async Task GetTermsByGlossaryNameAsync(string glossaryN /// The page size - by default there is no paging. /// The offset for pagination purpose. /// Whether include term hierarchy. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetTermsByGlossaryName(string glossaryName, int? limit = null, int? offset = null, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + public virtual Response GetTermsByGlossaryName(string glossaryName, int? limit = null, int? offset = null, bool? includeTermHierarchy = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetTermsByGlossaryNameRequest(glossaryName, limit, offset, includeTermHierarchy, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetTermsByGlossaryNameRequest(glossaryName, limit, offset, includeTermHierarchy, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewGlossaries.GetTermsByGlossaryName"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -10546,8 +10546,8 @@ public virtual Response GetTermsByGlossaryName(string glossaryName, int? limit = /// The page size - by default there is no paging. /// The offset for pagination purpose. /// Whether include term hierarchy. - /// The request options. - private HttpMessage CreateGetTermsByGlossaryNameRequest(string glossaryName, int? limit = null, int? offset = null, bool? includeTermHierarchy = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetTermsByGlossaryNameRequest(string glossaryName, int? limit = null, int? offset = null, bool? includeTermHierarchy = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewRelationships.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewRelationships.cs index 12fe76b0d2ce..2667b3501120 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewRelationships.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewRelationships.cs @@ -33,12 +33,12 @@ protected PurviewRelationships() /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -132,12 +132,12 @@ protected PurviewRelationships() /// /// Schema for AtlasObjectId: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// guid /// string @@ -158,24 +158,24 @@ protected PurviewRelationships() /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateAsync(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewRelationships.Create"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -201,12 +201,12 @@ public virtual async Task CreateAsync(RequestContent requestBody, Requ /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -300,12 +300,12 @@ public virtual async Task CreateAsync(RequestContent requestBody, Requ /// /// Schema for AtlasObjectId: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// guid /// string @@ -326,24 +326,24 @@ public virtual async Task CreateAsync(RequestContent requestBody, Requ /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Create(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response Create(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewRelationships.Create"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -366,9 +366,9 @@ public virtual Response Create(RequestContent requestBody, RequestOptions reques } /// Create Request for and operations. - /// The request body. - /// The request options. - private HttpMessage CreateCreateRequest(RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateRequest(RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -380,7 +380,7 @@ private HttpMessage CreateCreateRequest(RequestContent requestBody, RequestOptio request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -388,12 +388,12 @@ private HttpMessage CreateCreateRequest(RequestContent requestBody, RequestOptio /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -487,12 +487,12 @@ private HttpMessage CreateCreateRequest(RequestContent requestBody, RequestOptio /// /// Schema for AtlasObjectId: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// guid /// string @@ -513,24 +513,24 @@ private HttpMessage CreateCreateRequest(RequestContent requestBody, RequestOptio /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task UpdateAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task UpdateAsync(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateUpdateRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateUpdateRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewRelationships.Update"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -556,12 +556,12 @@ public virtual async Task UpdateAsync(RequestContent requestBody, Requ /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributes /// Dictionary<string, AnyObject> @@ -655,12 +655,12 @@ public virtual async Task UpdateAsync(RequestContent requestBody, Requ /// /// Schema for AtlasObjectId: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// guid /// string @@ -681,24 +681,24 @@ public virtual async Task UpdateAsync(RequestContent requestBody, Requ /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Update(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response Update(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateUpdateRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateUpdateRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewRelationships.Update"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -721,9 +721,9 @@ public virtual Response Update(RequestContent requestBody, RequestOptions reques } /// Create Request for and operations. - /// The request body. - /// The request options. - private HttpMessage CreateUpdateRequest(RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateUpdateRequest(RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -735,30 +735,30 @@ private HttpMessage CreateUpdateRequest(RequestContent requestBody, RequestOptio request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } /// Get relationship information between entities by its GUID. /// The globally unique identifier of the relationship. /// Limits whether includes extended information. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetAsync(string guid, bool? extendedInfo = null, RequestOptions requestOptions = null) + public virtual async Task GetAsync(string guid, bool? extendedInfo = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(guid, extendedInfo, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(guid, extendedInfo, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewRelationships.Get"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -783,23 +783,23 @@ public virtual async Task GetAsync(string guid, bool? extendedInfo = n /// Get relationship information between entities by its GUID. /// The globally unique identifier of the relationship. /// Limits whether includes extended information. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Get(string guid, bool? extendedInfo = null, RequestOptions requestOptions = null) + public virtual Response Get(string guid, bool? extendedInfo = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRequest(guid, extendedInfo, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRequest(guid, extendedInfo, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewRelationships.Get"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -824,8 +824,8 @@ public virtual Response Get(string guid, bool? extendedInfo = null, RequestOptio /// Create Request for and operations. /// The globally unique identifier of the relationship. /// Limits whether includes extended information. - /// The request options. - private HttpMessage CreateGetRequest(string guid, bool? extendedInfo = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetRequest(string guid, bool? extendedInfo = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -846,23 +846,23 @@ private HttpMessage CreateGetRequest(string guid, bool? extendedInfo = null, Req /// Delete a relationship between entities by its GUID. /// The globally unique identifier of the relationship. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteAsync(string guid, RequestOptions requestOptions = null) + public virtual async Task DeleteAsync(string guid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(guid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(guid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewRelationships.Delete"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -886,23 +886,23 @@ public virtual async Task DeleteAsync(string guid, RequestOptions requ /// Delete a relationship between entities by its GUID. /// The globally unique identifier of the relationship. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Delete(string guid, RequestOptions requestOptions = null) + public virtual Response Delete(string guid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(guid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(guid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewRelationships.Delete"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -926,8 +926,8 @@ public virtual Response Delete(string guid, RequestOptions requestOptions = null /// Create Request for and operations. /// The globally unique identifier of the relationship. - /// The request options. - private HttpMessage CreateDeleteRequest(string guid, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteRequest(string guid, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewTypes.cs b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewTypes.cs index 49ac028fe5d1..6b84f54e6bf2 100644 --- a/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewTypes.cs +++ b/sdk/purview/Azure.Analytics.Purview.Catalog/src/Generated/PurviewTypes.cs @@ -31,23 +31,23 @@ protected PurviewTypes() /// Get the classification definition for the given GUID. /// The globally unique identifier of the classification. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetClassificationDefByGuidAsync(string guid, RequestOptions requestOptions = null) + public virtual async Task GetClassificationDefByGuidAsync(string guid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetClassificationDefByGuidRequest(guid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetClassificationDefByGuidRequest(guid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetClassificationDefByGuid"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -71,23 +71,23 @@ public virtual async Task GetClassificationDefByGuidAsync(string guid, /// Get the classification definition for the given GUID. /// The globally unique identifier of the classification. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetClassificationDefByGuid(string guid, RequestOptions requestOptions = null) + public virtual Response GetClassificationDefByGuid(string guid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetClassificationDefByGuidRequest(guid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetClassificationDefByGuidRequest(guid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetClassificationDefByGuid"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -111,8 +111,8 @@ public virtual Response GetClassificationDefByGuid(string guid, RequestOptions r /// Create Request for and operations. /// The globally unique identifier of the classification. - /// The request options. - private HttpMessage CreateGetClassificationDefByGuidRequest(string guid, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetClassificationDefByGuidRequest(string guid, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -129,23 +129,23 @@ private HttpMessage CreateGetClassificationDefByGuidRequest(string guid, Request /// Get the classification definition by its name (unique). /// The name of the classification. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetClassificationDefByNameAsync(string name, RequestOptions requestOptions = null) + public virtual async Task GetClassificationDefByNameAsync(string name, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetClassificationDefByNameRequest(name, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetClassificationDefByNameRequest(name, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetClassificationDefByName"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -169,23 +169,23 @@ public virtual async Task GetClassificationDefByNameAsync(string name, /// Get the classification definition by its name (unique). /// The name of the classification. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetClassificationDefByName(string name, RequestOptions requestOptions = null) + public virtual Response GetClassificationDefByName(string name, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetClassificationDefByNameRequest(name, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetClassificationDefByNameRequest(name, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetClassificationDefByName"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -209,8 +209,8 @@ public virtual Response GetClassificationDefByName(string name, RequestOptions r /// Create Request for and operations. /// The name of the classification. - /// The request options. - private HttpMessage CreateGetClassificationDefByNameRequest(string name, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetClassificationDefByNameRequest(string name, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -227,23 +227,23 @@ private HttpMessage CreateGetClassificationDefByNameRequest(string name, Request /// Get the Entity definition for the given GUID. /// The globally unique identifier of the entity. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetEntityDefinitionByGuidAsync(string guid, RequestOptions requestOptions = null) + public virtual async Task GetEntityDefinitionByGuidAsync(string guid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetEntityDefinitionByGuidRequest(guid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetEntityDefinitionByGuidRequest(guid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetEntityDefinitionByGuid"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -267,23 +267,23 @@ public virtual async Task GetEntityDefinitionByGuidAsync(string guid, /// Get the Entity definition for the given GUID. /// The globally unique identifier of the entity. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetEntityDefinitionByGuid(string guid, RequestOptions requestOptions = null) + public virtual Response GetEntityDefinitionByGuid(string guid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetEntityDefinitionByGuidRequest(guid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetEntityDefinitionByGuidRequest(guid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetEntityDefinitionByGuid"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -307,8 +307,8 @@ public virtual Response GetEntityDefinitionByGuid(string guid, RequestOptions re /// Create Request for and operations. /// The globally unique identifier of the entity. - /// The request options. - private HttpMessage CreateGetEntityDefinitionByGuidRequest(string guid, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetEntityDefinitionByGuidRequest(string guid, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -325,23 +325,23 @@ private HttpMessage CreateGetEntityDefinitionByGuidRequest(string guid, RequestO /// Get the entity definition by its name (unique). /// The name of the entity. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetEntityDefinitionByNameAsync(string name, RequestOptions requestOptions = null) + public virtual async Task GetEntityDefinitionByNameAsync(string name, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetEntityDefinitionByNameRequest(name, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetEntityDefinitionByNameRequest(name, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetEntityDefinitionByName"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -365,23 +365,23 @@ public virtual async Task GetEntityDefinitionByNameAsync(string name, /// Get the entity definition by its name (unique). /// The name of the entity. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetEntityDefinitionByName(string name, RequestOptions requestOptions = null) + public virtual Response GetEntityDefinitionByName(string name, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetEntityDefinitionByNameRequest(name, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetEntityDefinitionByNameRequest(name, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetEntityDefinitionByName"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -405,8 +405,8 @@ public virtual Response GetEntityDefinitionByName(string name, RequestOptions re /// Create Request for and operations. /// The name of the entity. - /// The request options. - private HttpMessage CreateGetEntityDefinitionByNameRequest(string name, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetEntityDefinitionByNameRequest(string name, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -423,23 +423,23 @@ private HttpMessage CreateGetEntityDefinitionByNameRequest(string name, RequestO /// Get the enum definition for the given GUID. /// The globally unique identifier of the enum. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetEnumDefByGuidAsync(string guid, RequestOptions requestOptions = null) + public virtual async Task GetEnumDefByGuidAsync(string guid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetEnumDefByGuidRequest(guid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetEnumDefByGuidRequest(guid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetEnumDefByGuid"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -463,23 +463,23 @@ public virtual async Task GetEnumDefByGuidAsync(string guid, RequestOp /// Get the enum definition for the given GUID. /// The globally unique identifier of the enum. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetEnumDefByGuid(string guid, RequestOptions requestOptions = null) + public virtual Response GetEnumDefByGuid(string guid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetEnumDefByGuidRequest(guid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetEnumDefByGuidRequest(guid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetEnumDefByGuid"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -503,8 +503,8 @@ public virtual Response GetEnumDefByGuid(string guid, RequestOptions requestOpti /// Create Request for and operations. /// The globally unique identifier of the enum. - /// The request options. - private HttpMessage CreateGetEnumDefByGuidRequest(string guid, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetEnumDefByGuidRequest(string guid, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -521,23 +521,23 @@ private HttpMessage CreateGetEnumDefByGuidRequest(string guid, RequestOptions re /// Get the enum definition by its name (unique). /// The name of the enum. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetEnumDefByNameAsync(string name, RequestOptions requestOptions = null) + public virtual async Task GetEnumDefByNameAsync(string name, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetEnumDefByNameRequest(name, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetEnumDefByNameRequest(name, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetEnumDefByName"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -561,23 +561,23 @@ public virtual async Task GetEnumDefByNameAsync(string name, RequestOp /// Get the enum definition by its name (unique). /// The name of the enum. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetEnumDefByName(string name, RequestOptions requestOptions = null) + public virtual Response GetEnumDefByName(string name, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetEnumDefByNameRequest(name, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetEnumDefByNameRequest(name, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetEnumDefByName"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -601,8 +601,8 @@ public virtual Response GetEnumDefByName(string name, RequestOptions requestOpti /// Create Request for and operations. /// The name of the enum. - /// The request options. - private HttpMessage CreateGetEnumDefByNameRequest(string name, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetEnumDefByNameRequest(string name, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -619,23 +619,23 @@ private HttpMessage CreateGetEnumDefByNameRequest(string name, RequestOptions re /// Get the relationship definition for the given GUID. /// The globally unique identifier of the relationship. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetRelationshipDefByGuidAsync(string guid, RequestOptions requestOptions = null) + public virtual async Task GetRelationshipDefByGuidAsync(string guid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRelationshipDefByGuidRequest(guid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRelationshipDefByGuidRequest(guid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetRelationshipDefByGuid"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -659,23 +659,23 @@ public virtual async Task GetRelationshipDefByGuidAsync(string guid, R /// Get the relationship definition for the given GUID. /// The globally unique identifier of the relationship. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetRelationshipDefByGuid(string guid, RequestOptions requestOptions = null) + public virtual Response GetRelationshipDefByGuid(string guid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRelationshipDefByGuidRequest(guid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRelationshipDefByGuidRequest(guid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetRelationshipDefByGuid"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -699,8 +699,8 @@ public virtual Response GetRelationshipDefByGuid(string guid, RequestOptions req /// Create Request for and operations. /// The globally unique identifier of the relationship. - /// The request options. - private HttpMessage CreateGetRelationshipDefByGuidRequest(string guid, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetRelationshipDefByGuidRequest(string guid, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -717,23 +717,23 @@ private HttpMessage CreateGetRelationshipDefByGuidRequest(string guid, RequestOp /// Get the relationship definition by its name (unique). /// The name of the relationship. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetRelationshipDefByNameAsync(string name, RequestOptions requestOptions = null) + public virtual async Task GetRelationshipDefByNameAsync(string name, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRelationshipDefByNameRequest(name, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRelationshipDefByNameRequest(name, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetRelationshipDefByName"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -757,23 +757,23 @@ public virtual async Task GetRelationshipDefByNameAsync(string name, R /// Get the relationship definition by its name (unique). /// The name of the relationship. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetRelationshipDefByName(string name, RequestOptions requestOptions = null) + public virtual Response GetRelationshipDefByName(string name, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRelationshipDefByNameRequest(name, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRelationshipDefByNameRequest(name, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetRelationshipDefByName"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -797,8 +797,8 @@ public virtual Response GetRelationshipDefByName(string name, RequestOptions req /// Create Request for and operations. /// The name of the relationship. - /// The request options. - private HttpMessage CreateGetRelationshipDefByNameRequest(string name, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetRelationshipDefByNameRequest(string name, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -815,23 +815,23 @@ private HttpMessage CreateGetRelationshipDefByNameRequest(string name, RequestOp /// Get the struct definition for the given GUID. /// The globally unique identifier of the struct. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetStructDefByGuidAsync(string guid, RequestOptions requestOptions = null) + public virtual async Task GetStructDefByGuidAsync(string guid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetStructDefByGuidRequest(guid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetStructDefByGuidRequest(guid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetStructDefByGuid"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -855,23 +855,23 @@ public virtual async Task GetStructDefByGuidAsync(string guid, Request /// Get the struct definition for the given GUID. /// The globally unique identifier of the struct. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetStructDefByGuid(string guid, RequestOptions requestOptions = null) + public virtual Response GetStructDefByGuid(string guid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetStructDefByGuidRequest(guid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetStructDefByGuidRequest(guid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetStructDefByGuid"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -895,8 +895,8 @@ public virtual Response GetStructDefByGuid(string guid, RequestOptions requestOp /// Create Request for and operations. /// The globally unique identifier of the struct. - /// The request options. - private HttpMessage CreateGetStructDefByGuidRequest(string guid, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetStructDefByGuidRequest(string guid, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -913,23 +913,23 @@ private HttpMessage CreateGetStructDefByGuidRequest(string guid, RequestOptions /// Get the struct definition by its name (unique). /// The name of the struct. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetStructDefByNameAsync(string name, RequestOptions requestOptions = null) + public virtual async Task GetStructDefByNameAsync(string name, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetStructDefByNameRequest(name, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetStructDefByNameRequest(name, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetStructDefByName"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -953,23 +953,23 @@ public virtual async Task GetStructDefByNameAsync(string name, Request /// Get the struct definition by its name (unique). /// The name of the struct. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetStructDefByName(string name, RequestOptions requestOptions = null) + public virtual Response GetStructDefByName(string name, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetStructDefByNameRequest(name, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetStructDefByNameRequest(name, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetStructDefByName"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -993,8 +993,8 @@ public virtual Response GetStructDefByName(string name, RequestOptions requestOp /// Create Request for and operations. /// The name of the struct. - /// The request options. - private HttpMessage CreateGetStructDefByNameRequest(string name, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetStructDefByNameRequest(string name, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1011,23 +1011,23 @@ private HttpMessage CreateGetStructDefByNameRequest(string name, RequestOptions /// Get the type definition for the given GUID. /// The globally unique identifier of the type. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetTypeDefinitionByGuidAsync(string guid, RequestOptions requestOptions = null) + public virtual async Task GetTypeDefinitionByGuidAsync(string guid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetTypeDefinitionByGuidRequest(guid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetTypeDefinitionByGuidRequest(guid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetTypeDefinitionByGuid"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1051,23 +1051,23 @@ public virtual async Task GetTypeDefinitionByGuidAsync(string guid, Re /// Get the type definition for the given GUID. /// The globally unique identifier of the type. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetTypeDefinitionByGuid(string guid, RequestOptions requestOptions = null) + public virtual Response GetTypeDefinitionByGuid(string guid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetTypeDefinitionByGuidRequest(guid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetTypeDefinitionByGuidRequest(guid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetTypeDefinitionByGuid"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1091,8 +1091,8 @@ public virtual Response GetTypeDefinitionByGuid(string guid, RequestOptions requ /// Create Request for and operations. /// The globally unique identifier of the type. - /// The request options. - private HttpMessage CreateGetTypeDefinitionByGuidRequest(string guid, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetTypeDefinitionByGuidRequest(string guid, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1109,23 +1109,23 @@ private HttpMessage CreateGetTypeDefinitionByGuidRequest(string guid, RequestOpt /// Get the type definition by its name (unique). /// The name of the type. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetTypeDefinitionByNameAsync(string name, RequestOptions requestOptions = null) + public virtual async Task GetTypeDefinitionByNameAsync(string name, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetTypeDefinitionByNameRequest(name, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetTypeDefinitionByNameRequest(name, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetTypeDefinitionByName"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1149,23 +1149,23 @@ public virtual async Task GetTypeDefinitionByNameAsync(string name, Re /// Get the type definition by its name (unique). /// The name of the type. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetTypeDefinitionByName(string name, RequestOptions requestOptions = null) + public virtual Response GetTypeDefinitionByName(string name, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetTypeDefinitionByNameRequest(name, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetTypeDefinitionByNameRequest(name, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetTypeDefinitionByName"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1189,8 +1189,8 @@ public virtual Response GetTypeDefinitionByName(string name, RequestOptions requ /// Create Request for and operations. /// The name of the type. - /// The request options. - private HttpMessage CreateGetTypeDefinitionByNameRequest(string name, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetTypeDefinitionByNameRequest(string name, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1207,23 +1207,23 @@ private HttpMessage CreateGetTypeDefinitionByNameRequest(string name, RequestOpt /// Delete API for type identified by its name. /// The name of the type. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteTypeByNameAsync(string name, RequestOptions requestOptions = null) + public virtual async Task DeleteTypeByNameAsync(string name, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteTypeByNameRequest(name, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteTypeByNameRequest(name, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.DeleteTypeByName"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1247,23 +1247,23 @@ public virtual async Task DeleteTypeByNameAsync(string name, RequestOp /// Delete API for type identified by its name. /// The name of the type. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response DeleteTypeByName(string name, RequestOptions requestOptions = null) + public virtual Response DeleteTypeByName(string name, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteTypeByNameRequest(name, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteTypeByNameRequest(name, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.DeleteTypeByName"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1287,8 +1287,8 @@ public virtual Response DeleteTypeByName(string name, RequestOptions requestOpti /// Create Request for and operations. /// The name of the type. - /// The request options. - private HttpMessage CreateDeleteTypeByNameRequest(string name, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteTypeByNameRequest(string name, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1308,23 +1308,23 @@ private HttpMessage CreateDeleteTypeByNameRequest(string name, RequestOptions re /// This is always true when search filter type=term_template. /// /// Typedef name as search filter when get typedefs. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetAllTypeDefinitionsAsync(bool? includeTermTemplate = null, string type = null, RequestOptions requestOptions = null) + public virtual async Task GetAllTypeDefinitionsAsync(bool? includeTermTemplate = null, string type = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetAllTypeDefinitionsRequest(includeTermTemplate, type, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetAllTypeDefinitionsRequest(includeTermTemplate, type, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetAllTypeDefinitions"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1352,23 +1352,23 @@ public virtual async Task GetAllTypeDefinitionsAsync(bool? includeTerm /// This is always true when search filter type=term_template. /// /// Typedef name as search filter when get typedefs. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetAllTypeDefinitions(bool? includeTermTemplate = null, string type = null, RequestOptions requestOptions = null) + public virtual Response GetAllTypeDefinitions(bool? includeTermTemplate = null, string type = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetAllTypeDefinitionsRequest(includeTermTemplate, type, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetAllTypeDefinitionsRequest(includeTermTemplate, type, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetAllTypeDefinitions"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1396,8 +1396,8 @@ public virtual Response GetAllTypeDefinitions(bool? includeTermTemplate = null, /// This is always true when search filter type=term_template. /// /// Typedef name as search filter when get typedefs. - /// The request options. - private HttpMessage CreateGetAllTypeDefinitionsRequest(bool? includeTermTemplate = null, string type = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetAllTypeDefinitionsRequest(bool? includeTermTemplate = null, string type = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1426,12 +1426,12 @@ private HttpMessage CreateGetAllTypeDefinitionsRequest(bool? includeTermTemplate /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// classificationDefs /// AtlasClassificationDef[] @@ -1471,12 +1471,12 @@ private HttpMessage CreateGetAllTypeDefinitionsRequest(bool? includeTermTemplate /// /// Schema for AtlasClassificationDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributeDefs /// AtlasAttributeDef[] @@ -1599,12 +1599,12 @@ private HttpMessage CreateGetAllTypeDefinitionsRequest(bool? includeTermTemplate /// /// Schema for AtlasEntityDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributeDefs /// AtlasAttributeDef[] @@ -1716,12 +1716,12 @@ private HttpMessage CreateGetAllTypeDefinitionsRequest(bool? includeTermTemplate /// /// Schema for AtlasEnumDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// category /// "PRIMITIVE" | "OBJECT_ID_TYPE" | "ENUM" | "STRUCT" | "CLASSIFICATION" | "ENTITY" | "ARRAY" | "MAP" | "RELATIONSHIP" | "TERM_TEMPLATE" @@ -1821,12 +1821,12 @@ private HttpMessage CreateGetAllTypeDefinitionsRequest(bool? includeTermTemplate /// /// Schema for AtlasRelationshipDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributeDefs /// AtlasAttributeDef[] @@ -1960,12 +1960,12 @@ private HttpMessage CreateGetAllTypeDefinitionsRequest(bool? includeTermTemplate /// /// Schema for AtlasStructDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// category /// "PRIMITIVE" | "OBJECT_ID_TYPE" | "ENUM" | "STRUCT" | "CLASSIFICATION" | "ENTITY" | "ARRAY" | "MAP" | "RELATIONSHIP" | "TERM_TEMPLATE" @@ -2059,12 +2059,12 @@ private HttpMessage CreateGetAllTypeDefinitionsRequest(bool? includeTermTemplate /// /// Schema for TermTemplateDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributeDefs /// AtlasAttributeDef[] @@ -2158,12 +2158,12 @@ private HttpMessage CreateGetAllTypeDefinitionsRequest(bool? includeTermTemplate /// /// Schema for DateFormat: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// availableLocales /// string[] @@ -2221,12 +2221,12 @@ private HttpMessage CreateGetAllTypeDefinitionsRequest(bool? includeTermTemplate /// /// Schema for AtlasRelationshipEndDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// cardinality /// "SINGLE" | "LIST" | "SET" @@ -2266,12 +2266,12 @@ private HttpMessage CreateGetAllTypeDefinitionsRequest(bool? includeTermTemplate /// /// Schema for AtlasAttributeDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// cardinality /// "SINGLE" | "LIST" | "SET" @@ -2353,12 +2353,12 @@ private HttpMessage CreateGetAllTypeDefinitionsRequest(bool? includeTermTemplate /// /// Schema for NumberFormat: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// availableLocales /// string[] @@ -2446,12 +2446,12 @@ private HttpMessage CreateGetAllTypeDefinitionsRequest(bool? includeTermTemplate /// /// Schema for TimeZone: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// dstSavings /// number @@ -2491,12 +2491,12 @@ private HttpMessage CreateGetAllTypeDefinitionsRequest(bool? includeTermTemplate /// /// Schema for AtlasRelationshipAttributeDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// cardinality /// "SINGLE" | "LIST" | "SET" @@ -2590,12 +2590,12 @@ private HttpMessage CreateGetAllTypeDefinitionsRequest(bool? includeTermTemplate /// /// Schema for AtlasEnumElementDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// description /// string @@ -2617,12 +2617,12 @@ private HttpMessage CreateGetAllTypeDefinitionsRequest(bool? includeTermTemplate /// /// Schema for AtlasConstraintDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// params /// Dictionary<string, AnyObject> @@ -2637,24 +2637,24 @@ private HttpMessage CreateGetAllTypeDefinitionsRequest(bool? includeTermTemplate /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateTypeDefinitionsAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateTypeDefinitionsAsync(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateTypeDefinitionsRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateTypeDefinitionsRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.CreateTypeDefinitions"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2683,12 +2683,12 @@ public virtual async Task CreateTypeDefinitionsAsync(RequestContent re /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// classificationDefs /// AtlasClassificationDef[] @@ -2728,12 +2728,12 @@ public virtual async Task CreateTypeDefinitionsAsync(RequestContent re /// /// Schema for AtlasClassificationDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributeDefs /// AtlasAttributeDef[] @@ -2856,12 +2856,12 @@ public virtual async Task CreateTypeDefinitionsAsync(RequestContent re /// /// Schema for AtlasEntityDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributeDefs /// AtlasAttributeDef[] @@ -2973,12 +2973,12 @@ public virtual async Task CreateTypeDefinitionsAsync(RequestContent re /// /// Schema for AtlasEnumDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// category /// "PRIMITIVE" | "OBJECT_ID_TYPE" | "ENUM" | "STRUCT" | "CLASSIFICATION" | "ENTITY" | "ARRAY" | "MAP" | "RELATIONSHIP" | "TERM_TEMPLATE" @@ -3078,12 +3078,12 @@ public virtual async Task CreateTypeDefinitionsAsync(RequestContent re /// /// Schema for AtlasRelationshipDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributeDefs /// AtlasAttributeDef[] @@ -3217,12 +3217,12 @@ public virtual async Task CreateTypeDefinitionsAsync(RequestContent re /// /// Schema for AtlasStructDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// category /// "PRIMITIVE" | "OBJECT_ID_TYPE" | "ENUM" | "STRUCT" | "CLASSIFICATION" | "ENTITY" | "ARRAY" | "MAP" | "RELATIONSHIP" | "TERM_TEMPLATE" @@ -3316,12 +3316,12 @@ public virtual async Task CreateTypeDefinitionsAsync(RequestContent re /// /// Schema for TermTemplateDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributeDefs /// AtlasAttributeDef[] @@ -3415,12 +3415,12 @@ public virtual async Task CreateTypeDefinitionsAsync(RequestContent re /// /// Schema for DateFormat: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// availableLocales /// string[] @@ -3478,12 +3478,12 @@ public virtual async Task CreateTypeDefinitionsAsync(RequestContent re /// /// Schema for AtlasRelationshipEndDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// cardinality /// "SINGLE" | "LIST" | "SET" @@ -3523,12 +3523,12 @@ public virtual async Task CreateTypeDefinitionsAsync(RequestContent re /// /// Schema for AtlasAttributeDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// cardinality /// "SINGLE" | "LIST" | "SET" @@ -3610,12 +3610,12 @@ public virtual async Task CreateTypeDefinitionsAsync(RequestContent re /// /// Schema for NumberFormat: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// availableLocales /// string[] @@ -3703,12 +3703,12 @@ public virtual async Task CreateTypeDefinitionsAsync(RequestContent re /// /// Schema for TimeZone: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// dstSavings /// number @@ -3748,12 +3748,12 @@ public virtual async Task CreateTypeDefinitionsAsync(RequestContent re /// /// Schema for AtlasRelationshipAttributeDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// cardinality /// "SINGLE" | "LIST" | "SET" @@ -3847,12 +3847,12 @@ public virtual async Task CreateTypeDefinitionsAsync(RequestContent re /// /// Schema for AtlasEnumElementDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// description /// string @@ -3874,12 +3874,12 @@ public virtual async Task CreateTypeDefinitionsAsync(RequestContent re /// /// Schema for AtlasConstraintDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// params /// Dictionary<string, AnyObject> @@ -3894,24 +3894,24 @@ public virtual async Task CreateTypeDefinitionsAsync(RequestContent re /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateTypeDefinitions(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateTypeDefinitions(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateTypeDefinitionsRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateTypeDefinitionsRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.CreateTypeDefinitions"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -3934,9 +3934,9 @@ public virtual Response CreateTypeDefinitions(RequestContent requestBody, Reques } /// Create Request for and operations. - /// The request body. - /// The request options. - private HttpMessage CreateCreateTypeDefinitionsRequest(RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateTypeDefinitionsRequest(RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -3948,7 +3948,7 @@ private HttpMessage CreateCreateTypeDefinitionsRequest(RequestContent requestBod request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -3956,12 +3956,12 @@ private HttpMessage CreateCreateTypeDefinitionsRequest(RequestContent requestBod /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// classificationDefs /// AtlasClassificationDef[] @@ -4001,12 +4001,12 @@ private HttpMessage CreateCreateTypeDefinitionsRequest(RequestContent requestBod /// /// Schema for AtlasClassificationDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributeDefs /// AtlasAttributeDef[] @@ -4129,12 +4129,12 @@ private HttpMessage CreateCreateTypeDefinitionsRequest(RequestContent requestBod /// /// Schema for AtlasEntityDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributeDefs /// AtlasAttributeDef[] @@ -4246,12 +4246,12 @@ private HttpMessage CreateCreateTypeDefinitionsRequest(RequestContent requestBod /// /// Schema for AtlasEnumDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// category /// "PRIMITIVE" | "OBJECT_ID_TYPE" | "ENUM" | "STRUCT" | "CLASSIFICATION" | "ENTITY" | "ARRAY" | "MAP" | "RELATIONSHIP" | "TERM_TEMPLATE" @@ -4351,12 +4351,12 @@ private HttpMessage CreateCreateTypeDefinitionsRequest(RequestContent requestBod /// /// Schema for AtlasRelationshipDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributeDefs /// AtlasAttributeDef[] @@ -4490,12 +4490,12 @@ private HttpMessage CreateCreateTypeDefinitionsRequest(RequestContent requestBod /// /// Schema for AtlasStructDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// category /// "PRIMITIVE" | "OBJECT_ID_TYPE" | "ENUM" | "STRUCT" | "CLASSIFICATION" | "ENTITY" | "ARRAY" | "MAP" | "RELATIONSHIP" | "TERM_TEMPLATE" @@ -4589,12 +4589,12 @@ private HttpMessage CreateCreateTypeDefinitionsRequest(RequestContent requestBod /// /// Schema for TermTemplateDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributeDefs /// AtlasAttributeDef[] @@ -4688,12 +4688,12 @@ private HttpMessage CreateCreateTypeDefinitionsRequest(RequestContent requestBod /// /// Schema for DateFormat: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// availableLocales /// string[] @@ -4751,12 +4751,12 @@ private HttpMessage CreateCreateTypeDefinitionsRequest(RequestContent requestBod /// /// Schema for AtlasRelationshipEndDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// cardinality /// "SINGLE" | "LIST" | "SET" @@ -4796,12 +4796,12 @@ private HttpMessage CreateCreateTypeDefinitionsRequest(RequestContent requestBod /// /// Schema for AtlasAttributeDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// cardinality /// "SINGLE" | "LIST" | "SET" @@ -4883,12 +4883,12 @@ private HttpMessage CreateCreateTypeDefinitionsRequest(RequestContent requestBod /// /// Schema for NumberFormat: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// availableLocales /// string[] @@ -4976,12 +4976,12 @@ private HttpMessage CreateCreateTypeDefinitionsRequest(RequestContent requestBod /// /// Schema for TimeZone: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// dstSavings /// number @@ -5021,12 +5021,12 @@ private HttpMessage CreateCreateTypeDefinitionsRequest(RequestContent requestBod /// /// Schema for AtlasRelationshipAttributeDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// cardinality /// "SINGLE" | "LIST" | "SET" @@ -5120,12 +5120,12 @@ private HttpMessage CreateCreateTypeDefinitionsRequest(RequestContent requestBod /// /// Schema for AtlasEnumElementDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// description /// string @@ -5147,12 +5147,12 @@ private HttpMessage CreateCreateTypeDefinitionsRequest(RequestContent requestBod /// /// Schema for AtlasConstraintDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// params /// Dictionary<string, AnyObject> @@ -5167,24 +5167,24 @@ private HttpMessage CreateCreateTypeDefinitionsRequest(RequestContent requestBod /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task UpdateAtlasTypeDefinitionsAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task UpdateAtlasTypeDefinitionsAsync(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateUpdateAtlasTypeDefinitionsRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateUpdateAtlasTypeDefinitionsRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.UpdateAtlasTypeDefinitions"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -5210,12 +5210,12 @@ public virtual async Task UpdateAtlasTypeDefinitionsAsync(RequestConte /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// classificationDefs /// AtlasClassificationDef[] @@ -5255,12 +5255,12 @@ public virtual async Task UpdateAtlasTypeDefinitionsAsync(RequestConte /// /// Schema for AtlasClassificationDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributeDefs /// AtlasAttributeDef[] @@ -5383,12 +5383,12 @@ public virtual async Task UpdateAtlasTypeDefinitionsAsync(RequestConte /// /// Schema for AtlasEntityDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributeDefs /// AtlasAttributeDef[] @@ -5500,12 +5500,12 @@ public virtual async Task UpdateAtlasTypeDefinitionsAsync(RequestConte /// /// Schema for AtlasEnumDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// category /// "PRIMITIVE" | "OBJECT_ID_TYPE" | "ENUM" | "STRUCT" | "CLASSIFICATION" | "ENTITY" | "ARRAY" | "MAP" | "RELATIONSHIP" | "TERM_TEMPLATE" @@ -5605,12 +5605,12 @@ public virtual async Task UpdateAtlasTypeDefinitionsAsync(RequestConte /// /// Schema for AtlasRelationshipDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributeDefs /// AtlasAttributeDef[] @@ -5744,12 +5744,12 @@ public virtual async Task UpdateAtlasTypeDefinitionsAsync(RequestConte /// /// Schema for AtlasStructDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// category /// "PRIMITIVE" | "OBJECT_ID_TYPE" | "ENUM" | "STRUCT" | "CLASSIFICATION" | "ENTITY" | "ARRAY" | "MAP" | "RELATIONSHIP" | "TERM_TEMPLATE" @@ -5843,12 +5843,12 @@ public virtual async Task UpdateAtlasTypeDefinitionsAsync(RequestConte /// /// Schema for TermTemplateDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributeDefs /// AtlasAttributeDef[] @@ -5942,12 +5942,12 @@ public virtual async Task UpdateAtlasTypeDefinitionsAsync(RequestConte /// /// Schema for DateFormat: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// availableLocales /// string[] @@ -6005,12 +6005,12 @@ public virtual async Task UpdateAtlasTypeDefinitionsAsync(RequestConte /// /// Schema for AtlasRelationshipEndDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// cardinality /// "SINGLE" | "LIST" | "SET" @@ -6050,12 +6050,12 @@ public virtual async Task UpdateAtlasTypeDefinitionsAsync(RequestConte /// /// Schema for AtlasAttributeDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// cardinality /// "SINGLE" | "LIST" | "SET" @@ -6137,12 +6137,12 @@ public virtual async Task UpdateAtlasTypeDefinitionsAsync(RequestConte /// /// Schema for NumberFormat: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// availableLocales /// string[] @@ -6230,12 +6230,12 @@ public virtual async Task UpdateAtlasTypeDefinitionsAsync(RequestConte /// /// Schema for TimeZone: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// dstSavings /// number @@ -6275,12 +6275,12 @@ public virtual async Task UpdateAtlasTypeDefinitionsAsync(RequestConte /// /// Schema for AtlasRelationshipAttributeDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// cardinality /// "SINGLE" | "LIST" | "SET" @@ -6374,12 +6374,12 @@ public virtual async Task UpdateAtlasTypeDefinitionsAsync(RequestConte /// /// Schema for AtlasEnumElementDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// description /// string @@ -6401,12 +6401,12 @@ public virtual async Task UpdateAtlasTypeDefinitionsAsync(RequestConte /// /// Schema for AtlasConstraintDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// params /// Dictionary<string, AnyObject> @@ -6421,24 +6421,24 @@ public virtual async Task UpdateAtlasTypeDefinitionsAsync(RequestConte /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response UpdateAtlasTypeDefinitions(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response UpdateAtlasTypeDefinitions(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateUpdateAtlasTypeDefinitionsRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateUpdateAtlasTypeDefinitionsRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.UpdateAtlasTypeDefinitions"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -6461,9 +6461,9 @@ public virtual Response UpdateAtlasTypeDefinitions(RequestContent requestBody, R } /// Create Request for and operations. - /// The request body. - /// The request options. - private HttpMessage CreateUpdateAtlasTypeDefinitionsRequest(RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateUpdateAtlasTypeDefinitionsRequest(RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -6475,7 +6475,7 @@ private HttpMessage CreateUpdateAtlasTypeDefinitionsRequest(RequestContent reque request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -6483,12 +6483,12 @@ private HttpMessage CreateUpdateAtlasTypeDefinitionsRequest(RequestContent reque /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// classificationDefs /// AtlasClassificationDef[] @@ -6528,12 +6528,12 @@ private HttpMessage CreateUpdateAtlasTypeDefinitionsRequest(RequestContent reque /// /// Schema for AtlasClassificationDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributeDefs /// AtlasAttributeDef[] @@ -6656,12 +6656,12 @@ private HttpMessage CreateUpdateAtlasTypeDefinitionsRequest(RequestContent reque /// /// Schema for AtlasEntityDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributeDefs /// AtlasAttributeDef[] @@ -6773,12 +6773,12 @@ private HttpMessage CreateUpdateAtlasTypeDefinitionsRequest(RequestContent reque /// /// Schema for AtlasEnumDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// category /// "PRIMITIVE" | "OBJECT_ID_TYPE" | "ENUM" | "STRUCT" | "CLASSIFICATION" | "ENTITY" | "ARRAY" | "MAP" | "RELATIONSHIP" | "TERM_TEMPLATE" @@ -6878,12 +6878,12 @@ private HttpMessage CreateUpdateAtlasTypeDefinitionsRequest(RequestContent reque /// /// Schema for AtlasRelationshipDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributeDefs /// AtlasAttributeDef[] @@ -7017,12 +7017,12 @@ private HttpMessage CreateUpdateAtlasTypeDefinitionsRequest(RequestContent reque /// /// Schema for AtlasStructDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// category /// "PRIMITIVE" | "OBJECT_ID_TYPE" | "ENUM" | "STRUCT" | "CLASSIFICATION" | "ENTITY" | "ARRAY" | "MAP" | "RELATIONSHIP" | "TERM_TEMPLATE" @@ -7116,12 +7116,12 @@ private HttpMessage CreateUpdateAtlasTypeDefinitionsRequest(RequestContent reque /// /// Schema for TermTemplateDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributeDefs /// AtlasAttributeDef[] @@ -7215,12 +7215,12 @@ private HttpMessage CreateUpdateAtlasTypeDefinitionsRequest(RequestContent reque /// /// Schema for DateFormat: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// availableLocales /// string[] @@ -7278,12 +7278,12 @@ private HttpMessage CreateUpdateAtlasTypeDefinitionsRequest(RequestContent reque /// /// Schema for AtlasRelationshipEndDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// cardinality /// "SINGLE" | "LIST" | "SET" @@ -7323,12 +7323,12 @@ private HttpMessage CreateUpdateAtlasTypeDefinitionsRequest(RequestContent reque /// /// Schema for AtlasAttributeDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// cardinality /// "SINGLE" | "LIST" | "SET" @@ -7410,12 +7410,12 @@ private HttpMessage CreateUpdateAtlasTypeDefinitionsRequest(RequestContent reque /// /// Schema for NumberFormat: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// availableLocales /// string[] @@ -7503,12 +7503,12 @@ private HttpMessage CreateUpdateAtlasTypeDefinitionsRequest(RequestContent reque /// /// Schema for TimeZone: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// dstSavings /// number @@ -7548,12 +7548,12 @@ private HttpMessage CreateUpdateAtlasTypeDefinitionsRequest(RequestContent reque /// /// Schema for AtlasRelationshipAttributeDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// cardinality /// "SINGLE" | "LIST" | "SET" @@ -7647,12 +7647,12 @@ private HttpMessage CreateUpdateAtlasTypeDefinitionsRequest(RequestContent reque /// /// Schema for AtlasEnumElementDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// description /// string @@ -7674,12 +7674,12 @@ private HttpMessage CreateUpdateAtlasTypeDefinitionsRequest(RequestContent reque /// /// Schema for AtlasConstraintDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// params /// Dictionary<string, AnyObject> @@ -7694,24 +7694,24 @@ private HttpMessage CreateUpdateAtlasTypeDefinitionsRequest(RequestContent reque /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteTypeDefinitionsAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task DeleteTypeDefinitionsAsync(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteTypeDefinitionsRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteTypeDefinitionsRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.DeleteTypeDefinitions"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -7737,12 +7737,12 @@ public virtual async Task DeleteTypeDefinitionsAsync(RequestContent re /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// classificationDefs /// AtlasClassificationDef[] @@ -7782,12 +7782,12 @@ public virtual async Task DeleteTypeDefinitionsAsync(RequestContent re /// /// Schema for AtlasClassificationDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributeDefs /// AtlasAttributeDef[] @@ -7910,12 +7910,12 @@ public virtual async Task DeleteTypeDefinitionsAsync(RequestContent re /// /// Schema for AtlasEntityDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributeDefs /// AtlasAttributeDef[] @@ -8027,12 +8027,12 @@ public virtual async Task DeleteTypeDefinitionsAsync(RequestContent re /// /// Schema for AtlasEnumDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// category /// "PRIMITIVE" | "OBJECT_ID_TYPE" | "ENUM" | "STRUCT" | "CLASSIFICATION" | "ENTITY" | "ARRAY" | "MAP" | "RELATIONSHIP" | "TERM_TEMPLATE" @@ -8132,12 +8132,12 @@ public virtual async Task DeleteTypeDefinitionsAsync(RequestContent re /// /// Schema for AtlasRelationshipDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributeDefs /// AtlasAttributeDef[] @@ -8271,12 +8271,12 @@ public virtual async Task DeleteTypeDefinitionsAsync(RequestContent re /// /// Schema for AtlasStructDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// category /// "PRIMITIVE" | "OBJECT_ID_TYPE" | "ENUM" | "STRUCT" | "CLASSIFICATION" | "ENTITY" | "ARRAY" | "MAP" | "RELATIONSHIP" | "TERM_TEMPLATE" @@ -8370,12 +8370,12 @@ public virtual async Task DeleteTypeDefinitionsAsync(RequestContent re /// /// Schema for TermTemplateDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// attributeDefs /// AtlasAttributeDef[] @@ -8469,12 +8469,12 @@ public virtual async Task DeleteTypeDefinitionsAsync(RequestContent re /// /// Schema for DateFormat: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// availableLocales /// string[] @@ -8532,12 +8532,12 @@ public virtual async Task DeleteTypeDefinitionsAsync(RequestContent re /// /// Schema for AtlasRelationshipEndDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// cardinality /// "SINGLE" | "LIST" | "SET" @@ -8577,12 +8577,12 @@ public virtual async Task DeleteTypeDefinitionsAsync(RequestContent re /// /// Schema for AtlasAttributeDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// cardinality /// "SINGLE" | "LIST" | "SET" @@ -8664,12 +8664,12 @@ public virtual async Task DeleteTypeDefinitionsAsync(RequestContent re /// /// Schema for NumberFormat: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// availableLocales /// string[] @@ -8757,12 +8757,12 @@ public virtual async Task DeleteTypeDefinitionsAsync(RequestContent re /// /// Schema for TimeZone: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// dstSavings /// number @@ -8802,12 +8802,12 @@ public virtual async Task DeleteTypeDefinitionsAsync(RequestContent re /// /// Schema for AtlasRelationshipAttributeDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// cardinality /// "SINGLE" | "LIST" | "SET" @@ -8901,12 +8901,12 @@ public virtual async Task DeleteTypeDefinitionsAsync(RequestContent re /// /// Schema for AtlasEnumElementDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// description /// string @@ -8928,12 +8928,12 @@ public virtual async Task DeleteTypeDefinitionsAsync(RequestContent re /// /// Schema for AtlasConstraintDef: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// params /// Dictionary<string, AnyObject> @@ -8948,24 +8948,24 @@ public virtual async Task DeleteTypeDefinitionsAsync(RequestContent re /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response DeleteTypeDefinitions(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response DeleteTypeDefinitions(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteTypeDefinitionsRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteTypeDefinitionsRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.DeleteTypeDefinitions"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -8988,9 +8988,9 @@ public virtual Response DeleteTypeDefinitions(RequestContent requestBody, Reques } /// Create Request for and operations. - /// The request body. - /// The request options. - private HttpMessage CreateDeleteTypeDefinitionsRequest(RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateDeleteTypeDefinitionsRequest(RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -9001,7 +9001,7 @@ private HttpMessage CreateDeleteTypeDefinitionsRequest(RequestContent requestBod uri.AppendPath("/atlas/v2/types/typedefs", false); request.Uri = uri; request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -9011,23 +9011,23 @@ private HttpMessage CreateDeleteTypeDefinitionsRequest(RequestContent requestBod /// This is always true when search filter type=term_template. /// /// Typedef name as search filter when get typedefs. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetTypeDefinitionHeadersAsync(bool? includeTermTemplate = null, string type = null, RequestOptions requestOptions = null) + public virtual async Task GetTypeDefinitionHeadersAsync(bool? includeTermTemplate = null, string type = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetTypeDefinitionHeadersRequest(includeTermTemplate, type, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetTypeDefinitionHeadersRequest(includeTermTemplate, type, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetTypeDefinitionHeaders"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -9055,23 +9055,23 @@ public virtual async Task GetTypeDefinitionHeadersAsync(bool? includeT /// This is always true when search filter type=term_template. /// /// Typedef name as search filter when get typedefs. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetTypeDefinitionHeaders(bool? includeTermTemplate = null, string type = null, RequestOptions requestOptions = null) + public virtual Response GetTypeDefinitionHeaders(bool? includeTermTemplate = null, string type = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetTypeDefinitionHeadersRequest(includeTermTemplate, type, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetTypeDefinitionHeadersRequest(includeTermTemplate, type, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetTypeDefinitionHeaders"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -9099,8 +9099,8 @@ public virtual Response GetTypeDefinitionHeaders(bool? includeTermTemplate = nul /// This is always true when search filter type=term_template. /// /// Typedef name as search filter when get typedefs. - /// The request options. - private HttpMessage CreateGetTypeDefinitionHeadersRequest(bool? includeTermTemplate = null, string type = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetTypeDefinitionHeadersRequest(bool? includeTermTemplate = null, string type = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -9124,23 +9124,23 @@ private HttpMessage CreateGetTypeDefinitionHeadersRequest(bool? includeTermTempl /// Get the term template definition for the given GUID. /// The globally unique identifier of the term template. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetTermTemplateDefByGuidAsync(string guid, RequestOptions requestOptions = null) + public virtual async Task GetTermTemplateDefByGuidAsync(string guid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetTermTemplateDefByGuidRequest(guid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetTermTemplateDefByGuidRequest(guid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetTermTemplateDefByGuid"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -9164,23 +9164,23 @@ public virtual async Task GetTermTemplateDefByGuidAsync(string guid, R /// Get the term template definition for the given GUID. /// The globally unique identifier of the term template. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetTermTemplateDefByGuid(string guid, RequestOptions requestOptions = null) + public virtual Response GetTermTemplateDefByGuid(string guid, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetTermTemplateDefByGuidRequest(guid, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetTermTemplateDefByGuidRequest(guid, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetTermTemplateDefByGuid"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -9204,8 +9204,8 @@ public virtual Response GetTermTemplateDefByGuid(string guid, RequestOptions req /// Create Request for and operations. /// The globally unique identifier of the term template. - /// The request options. - private HttpMessage CreateGetTermTemplateDefByGuidRequest(string guid, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetTermTemplateDefByGuidRequest(string guid, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -9223,23 +9223,23 @@ private HttpMessage CreateGetTermTemplateDefByGuidRequest(string guid, RequestOp /// Get the term template definition by its name (unique). /// The name of the term template. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetTermTemplateDefByNameAsync(string name, RequestOptions requestOptions = null) + public virtual async Task GetTermTemplateDefByNameAsync(string name, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetTermTemplateDefByNameRequest(name, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetTermTemplateDefByNameRequest(name, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetTermTemplateDefByName"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -9263,23 +9263,23 @@ public virtual async Task GetTermTemplateDefByNameAsync(string name, R /// Get the term template definition by its name (unique). /// The name of the term template. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetTermTemplateDefByName(string name, RequestOptions requestOptions = null) + public virtual Response GetTermTemplateDefByName(string name, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetTermTemplateDefByNameRequest(name, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetTermTemplateDefByNameRequest(name, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewTypes.GetTermTemplateDefByName"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -9303,8 +9303,8 @@ public virtual Response GetTermTemplateDefByName(string name, RequestOptions req /// Create Request for and operations. /// The name of the term template. - /// The request options. - private HttpMessage CreateGetTermTemplateDefByNameRequest(string name, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetTermTemplateDefByNameRequest(string name, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/README.md b/sdk/purview/Azure.Analytics.Purview.Scanning/README.md index 22aea2432758..68f15f672030 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/README.md +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/README.md @@ -49,12 +49,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -101,15 +101,15 @@ When you submit a pull request, a CLA-bot will automatically determine whether y This project has adopted the [Microsoft Open Source Code of Conduct][code_of_conduct]. For more information see the [Code of Conduct FAQ][coc_faq] or contact [opencode@microsoft.com][coc_contact] with any additional questions or comments. -[source_code]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/purview/Azure.Analytics.Purview.Scanning/src +[source_code]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/purview/Azure.Analytics.Purview.Scanning/src [client_nuget_package]: https://www.nuget.org/packages?q=Azure.Analytics.Purview.Scanning [catalog_product_documentation]: https://azure.microsoft.com/services/purview/ -[azure_identity]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity +[azure_identity]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity [protocol_client_quickstart]: https://aka.ms/azsdk/net/protocol/quickstart [default_cred_ref]: https://docs.microsoft.com/dotnet/api/azure.identity.defaultazurecredential?view=azure-dotnet [azure_subscription]: https://azure.microsoft.com/free/ [purview_resource]: https://docs.microsoft.com/azure/purview/create-catalog-portal -[azure_core_diagnostics]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md +[azure_core_diagnostics]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md [cla]: https://cla.microsoft.com [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/api/Azure.Analytics.Purview.Scanning.netstandard2.0.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/api/Azure.Analytics.Purview.Scanning.netstandard2.0.cs index 87283775a280..02fd89425172 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/api/Azure.Analytics.Purview.Scanning.netstandard2.0.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/api/Azure.Analytics.Purview.Scanning.netstandard2.0.cs @@ -5,101 +5,101 @@ public partial class PurviewClassificationRuleClient protected PurviewClassificationRuleClient() { } public PurviewClassificationRuleClient(System.Uri endpoint, string classificationRuleName, Azure.Core.TokenCredential credential, Azure.Analytics.Purview.Scanning.PurviewScanningServiceClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateOrUpdate(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Delete(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetProperties(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetPropertiesAsync(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetVersions(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetVersionsAsync(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response TagVersion(int classificationRuleVersion, string action, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task TagVersionAsync(int classificationRuleVersion, string action, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateOrUpdate(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Delete(Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetProperties(Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetPropertiesAsync(Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetVersions(Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetVersionsAsync(Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response TagVersion(int classificationRuleVersion, string action, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task TagVersionAsync(int classificationRuleVersion, string action, Azure.RequestOptions options = null) { throw null; } } public partial class PurviewDataSourceClient { protected PurviewDataSourceClient() { } public PurviewDataSourceClient(System.Uri endpoint, string dataSourceName, Azure.Core.TokenCredential credential, Azure.Analytics.Purview.Scanning.PurviewScanningServiceClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateOrUpdate(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Delete(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetChildren(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetChildrenAsync(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetProperties(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetPropertiesAsync(Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateOrUpdate(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Delete(Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetChildren(Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetChildrenAsync(Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetProperties(Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetPropertiesAsync(Azure.RequestOptions options = null) { throw null; } public Azure.Analytics.Purview.Scanning.PurviewScanClient GetScanClient(string scanName) { throw null; } - public virtual Azure.Response GetScans(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetScansAsync(Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response GetScans(Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetScansAsync(Azure.RequestOptions options = null) { throw null; } } public partial class PurviewScanClient { protected PurviewScanClient() { } public PurviewScanClient(System.Uri endpoint, string dataSourceName, string scanName, Azure.Core.TokenCredential credential, Azure.Analytics.Purview.Scanning.PurviewScanningServiceClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CancelScan(string runId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CancelScanAsync(string runId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response CreateOrUpdate(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response CreateOrUpdateFilter(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateFilterAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response CreateOrUpdateTrigger(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateTriggerAsync(Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response Delete(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response DeleteTrigger(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteTriggerAsync(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetFilter(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetFilterAsync(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetProperties(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetPropertiesAsync(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetRuns(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetRunsAsync(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetTrigger(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetTriggerAsync(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response RunScan(string runId, string scanLevel = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task RunScanAsync(string runId, string scanLevel = null, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CancelScan(string runId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CancelScanAsync(string runId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response CreateOrUpdate(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response CreateOrUpdateFilter(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateFilterAsync(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response CreateOrUpdateTrigger(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateTriggerAsync(Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response Delete(Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response DeleteTrigger(Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteTriggerAsync(Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetFilter(Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetFilterAsync(Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetProperties(Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetPropertiesAsync(Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetRuns(Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetRunsAsync(Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetTrigger(Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetTriggerAsync(Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response RunScan(string runId, string scanLevel = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task RunScanAsync(string runId, string scanLevel = null, Azure.RequestOptions options = null) { throw null; } } public partial class PurviewScanningServiceClient { protected PurviewScanningServiceClient() { } public PurviewScanningServiceClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Analytics.Purview.Scanning.PurviewScanningServiceClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response CreateOrUpdateKeyVaultReference(string azureKeyVaultName, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateKeyVaultReferenceAsync(string azureKeyVaultName, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response CreateOrUpdateScanRuelset(string scanRulesetName, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateScanRuelsetAsync(string scanRulesetName, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response DeleteKeyVaultReference(string azureKeyVaultName, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteKeyVaultReferenceAsync(string azureKeyVaultName, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response DeleteScanRuleset(string scanRulesetName, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteScanRulesetAsync(string scanRulesetName, Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response CreateOrUpdateKeyVaultReference(string azureKeyVaultName, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateKeyVaultReferenceAsync(string azureKeyVaultName, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response CreateOrUpdateScanRuelset(string scanRulesetName, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateScanRuelsetAsync(string scanRulesetName, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response DeleteKeyVaultReference(string azureKeyVaultName, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteKeyVaultReferenceAsync(string azureKeyVaultName, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response DeleteScanRuleset(string scanRulesetName, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteScanRulesetAsync(string scanRulesetName, Azure.RequestOptions options = null) { throw null; } public Azure.Analytics.Purview.Scanning.PurviewClassificationRuleClient GetClassificationRuleClient(string classificationRuleName) { throw null; } - public virtual Azure.Response GetClassificationRules(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetClassificationRulesAsync(Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response GetClassificationRules(Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetClassificationRulesAsync(Azure.RequestOptions options = null) { throw null; } public Azure.Analytics.Purview.Scanning.PurviewDataSourceClient GetDataSourceClient(string dataSourceName) { throw null; } - public virtual Azure.Response GetDataSources(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetDataSourcesAsync(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetKeyVaultReference(string azureKeyVaultName, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetKeyVaultReferenceAsync(string azureKeyVaultName, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetKeyVaultReferences(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetKeyVaultReferencesAsync(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetLatestSystemRulestes(string dataSourceType = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetLatestSystemRulestesAsync(string dataSourceType = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetScanRuleset(string scanRulesetName, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetScanRulesetAsync(string scanRulesetName, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetScanRulesets(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetScanRulesetsAsync(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetSystemRulesets(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetSystemRulesetsAsync(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetSystemRulesetsForDataSource(string dataSourceType, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetSystemRulesetsForDataSourceAsync(string dataSourceType, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetSystemRulesetsForVersion(int version, string dataSourceType = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetSystemRulesetsForVersionAsync(int version, string dataSourceType = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetSystemRulesetsVersions(string dataSourceType = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetSystemRulesetsVersionsAsync(string dataSourceType = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response GetUnparentedDataSources(Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task GetUnparentedDataSourcesAsync(Azure.RequestOptions requestOptions = null) { throw null; } + public virtual Azure.Response GetDataSources(Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetDataSourcesAsync(Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetKeyVaultReference(string azureKeyVaultName, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetKeyVaultReferenceAsync(string azureKeyVaultName, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetKeyVaultReferences(Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetKeyVaultReferencesAsync(Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetLatestSystemRulestes(string dataSourceType = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetLatestSystemRulestesAsync(string dataSourceType = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetScanRuleset(string scanRulesetName, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetScanRulesetAsync(string scanRulesetName, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetScanRulesets(Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetScanRulesetsAsync(Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetSystemRulesets(Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetSystemRulesetsAsync(Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetSystemRulesetsForDataSource(string dataSourceType, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetSystemRulesetsForDataSourceAsync(string dataSourceType, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetSystemRulesetsForVersion(int version, string dataSourceType = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetSystemRulesetsForVersionAsync(int version, string dataSourceType = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetSystemRulesetsVersions(string dataSourceType = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetSystemRulesetsVersionsAsync(string dataSourceType = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GetUnparentedDataSources(Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GetUnparentedDataSourcesAsync(Azure.RequestOptions options = null) { throw null; } } public partial class PurviewScanningServiceClientOptions : Azure.Core.ClientOptions { diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewClassificationRuleClient.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewClassificationRuleClient.cs index 11e9a17295fb..8412823947a8 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewClassificationRuleClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewClassificationRuleClient.cs @@ -61,23 +61,23 @@ public PurviewClassificationRuleClient(Uri endpoint, string classificationRuleNa } /// Get a classification rule. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetPropertiesAsync(RequestOptions requestOptions = null) + public virtual async Task GetPropertiesAsync(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetPropertiesRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetPropertiesRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewClassificationRuleClient.GetProperties"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -100,23 +100,23 @@ public virtual async Task GetPropertiesAsync(RequestOptions requestOpt } /// Get a classification rule. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetProperties(RequestOptions requestOptions = null) + public virtual Response GetProperties(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetPropertiesRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetPropertiesRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewClassificationRuleClient.GetProperties"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -139,8 +139,8 @@ public virtual Response GetProperties(RequestOptions requestOptions = null) } /// Create Request for and operations. - /// The request options. - private HttpMessage CreateGetPropertiesRequest(RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetPropertiesRequest(RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -159,12 +159,12 @@ private HttpMessage CreateGetPropertiesRequest(RequestOptions requestOptions = n /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -185,24 +185,24 @@ private HttpMessage CreateGetPropertiesRequest(RequestOptions requestOptions = n /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateOrUpdateAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateOrUpdateAsync(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewClassificationRuleClient.CreateOrUpdate"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -229,12 +229,12 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -255,24 +255,24 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateOrUpdate(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateOrUpdate(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewClassificationRuleClient.CreateOrUpdate"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -296,9 +296,9 @@ public virtual Response CreateOrUpdate(RequestContent requestBody, RequestOption } /// Create Request for and operations. - /// The request body. - /// The request options. - private HttpMessage CreateCreateOrUpdateRequest(RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateOrUpdateRequest(RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -311,28 +311,28 @@ private HttpMessage CreateCreateOrUpdateRequest(RequestContent requestBody, Requ request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } /// Deletes a classification rule. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteAsync(RequestOptions requestOptions = null) + public virtual async Task DeleteAsync(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewClassificationRuleClient.Delete"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -356,23 +356,23 @@ public virtual async Task DeleteAsync(RequestOptions requestOptions = } /// Deletes a classification rule. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Delete(RequestOptions requestOptions = null) + public virtual Response Delete(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewClassificationRuleClient.Delete"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -396,8 +396,8 @@ public virtual Response Delete(RequestOptions requestOptions = null) } /// Create Request for and operations. - /// The request options. - private HttpMessage CreateDeleteRequest(RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteRequest(RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -413,23 +413,23 @@ private HttpMessage CreateDeleteRequest(RequestOptions requestOptions = null) } /// Lists the rule versions of a classification rule. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetVersionsAsync(RequestOptions requestOptions = null) + public virtual async Task GetVersionsAsync(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetVersionsRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetVersionsRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewClassificationRuleClient.GetVersions"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -452,23 +452,23 @@ public virtual async Task GetVersionsAsync(RequestOptions requestOptio } /// Lists the rule versions of a classification rule. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetVersions(RequestOptions requestOptions = null) + public virtual Response GetVersions(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetVersionsRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetVersionsRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewClassificationRuleClient.GetVersions"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -491,8 +491,8 @@ public virtual Response GetVersions(RequestOptions requestOptions = null) } /// Create Request for and operations. - /// The request options. - private HttpMessage CreateGetVersionsRequest(RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetVersionsRequest(RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -511,23 +511,23 @@ private HttpMessage CreateGetVersionsRequest(RequestOptions requestOptions = nul /// Sets Classification Action on a specific classification rule version. /// The Integer to use. /// The ClassificationAction to use. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task TagVersionAsync(int classificationRuleVersion, string action, RequestOptions requestOptions = null) + public virtual async Task TagVersionAsync(int classificationRuleVersion, string action, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateTagVersionRequest(classificationRuleVersion, action, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateTagVersionRequest(classificationRuleVersion, action, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewClassificationRuleClient.TagVersion"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -552,23 +552,23 @@ public virtual async Task TagVersionAsync(int classificationRuleVersio /// Sets Classification Action on a specific classification rule version. /// The Integer to use. /// The ClassificationAction to use. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response TagVersion(int classificationRuleVersion, string action, RequestOptions requestOptions = null) + public virtual Response TagVersion(int classificationRuleVersion, string action, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateTagVersionRequest(classificationRuleVersion, action, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateTagVersionRequest(classificationRuleVersion, action, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewClassificationRuleClient.TagVersion"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -593,8 +593,8 @@ public virtual Response TagVersion(int classificationRuleVersion, string action, /// Create Request for and operations. /// The Integer to use. /// The ClassificationAction to use. - /// The request options. - private HttpMessage CreateTagVersionRequest(int classificationRuleVersion, string action, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateTagVersionRequest(int classificationRuleVersion, string action, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewDataSourceClient.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewDataSourceClient.cs index 8d425600878a..bb3b74e62d0a 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewDataSourceClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewDataSourceClient.cs @@ -64,12 +64,12 @@ public PurviewDataSourceClient(Uri endpoint, string dataSourceName, TokenCredent /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -97,12 +97,12 @@ public PurviewDataSourceClient(Uri endpoint, string dataSourceName, TokenCredent /// /// Schema for Scan: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -130,12 +130,12 @@ public PurviewDataSourceClient(Uri endpoint, string dataSourceName, TokenCredent /// /// Schema for ScanResult: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// parentId /// string @@ -247,12 +247,12 @@ public PurviewDataSourceClient(Uri endpoint, string dataSourceName, TokenCredent /// /// Schema for ScanResultDiagnostics: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// notifications /// Notification[] @@ -268,12 +268,12 @@ public PurviewDataSourceClient(Uri endpoint, string dataSourceName, TokenCredent /// /// Schema for ScanResultError: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// code /// string @@ -301,12 +301,12 @@ public PurviewDataSourceClient(Uri endpoint, string dataSourceName, TokenCredent /// /// Schema for Notification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// message /// string @@ -322,12 +322,12 @@ public PurviewDataSourceClient(Uri endpoint, string dataSourceName, TokenCredent /// /// Schema for ErrorModel: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// code /// string @@ -354,24 +354,24 @@ public PurviewDataSourceClient(Uri endpoint, string dataSourceName, TokenCredent /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateOrUpdateAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateOrUpdateAsync(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewDataSourceClient.CreateOrUpdate"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -398,12 +398,12 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -431,12 +431,12 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo /// /// Schema for Scan: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -464,12 +464,12 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo /// /// Schema for ScanResult: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// parentId /// string @@ -581,12 +581,12 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo /// /// Schema for ScanResultDiagnostics: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// notifications /// Notification[] @@ -602,12 +602,12 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo /// /// Schema for ScanResultError: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// code /// string @@ -635,12 +635,12 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo /// /// Schema for Notification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// message /// string @@ -656,12 +656,12 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo /// /// Schema for ErrorModel: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// code /// string @@ -688,24 +688,24 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateOrUpdate(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateOrUpdate(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewDataSourceClient.CreateOrUpdate"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -729,9 +729,9 @@ public virtual Response CreateOrUpdate(RequestContent requestBody, RequestOption } /// Create Request for and operations. - /// The request body. - /// The request options. - private HttpMessage CreateCreateOrUpdateRequest(RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateOrUpdateRequest(RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -744,28 +744,28 @@ private HttpMessage CreateCreateOrUpdateRequest(RequestContent requestBody, Requ request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } /// Get a data source. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetPropertiesAsync(RequestOptions requestOptions = null) + public virtual async Task GetPropertiesAsync(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetPropertiesRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetPropertiesRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewDataSourceClient.GetProperties"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -788,23 +788,23 @@ public virtual async Task GetPropertiesAsync(RequestOptions requestOpt } /// Get a data source. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetProperties(RequestOptions requestOptions = null) + public virtual Response GetProperties(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetPropertiesRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetPropertiesRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewDataSourceClient.GetProperties"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -827,8 +827,8 @@ public virtual Response GetProperties(RequestOptions requestOptions = null) } /// Create Request for and operations. - /// The request options. - private HttpMessage CreateGetPropertiesRequest(RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetPropertiesRequest(RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -844,23 +844,23 @@ private HttpMessage CreateGetPropertiesRequest(RequestOptions requestOptions = n } /// Deletes a data source. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteAsync(RequestOptions requestOptions = null) + public virtual async Task DeleteAsync(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewDataSourceClient.Delete"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -884,23 +884,23 @@ public virtual async Task DeleteAsync(RequestOptions requestOptions = } /// Deletes a data source. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Delete(RequestOptions requestOptions = null) + public virtual Response Delete(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewDataSourceClient.Delete"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -924,8 +924,8 @@ public virtual Response Delete(RequestOptions requestOptions = null) } /// Create Request for and operations. - /// The request options. - private HttpMessage CreateDeleteRequest(RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteRequest(RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -941,23 +941,23 @@ private HttpMessage CreateDeleteRequest(RequestOptions requestOptions = null) } /// Lists the children of the collection. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetChildrenAsync(RequestOptions requestOptions = null) + public virtual async Task GetChildrenAsync(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetChildrenRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetChildrenRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewDataSourceClient.GetChildren"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -980,23 +980,23 @@ public virtual async Task GetChildrenAsync(RequestOptions requestOptio } /// Lists the children of the collection. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetChildren(RequestOptions requestOptions = null) + public virtual Response GetChildren(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetChildrenRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetChildrenRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewDataSourceClient.GetChildren"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1019,8 +1019,8 @@ public virtual Response GetChildren(RequestOptions requestOptions = null) } /// Create Request for and operations. - /// The request options. - private HttpMessage CreateGetChildrenRequest(RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetChildrenRequest(RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1037,23 +1037,23 @@ private HttpMessage CreateGetChildrenRequest(RequestOptions requestOptions = nul } /// List scans in data source. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetScansAsync(RequestOptions requestOptions = null) + public virtual async Task GetScansAsync(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetScansRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetScansRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewDataSourceClient.GetScans"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1076,23 +1076,23 @@ public virtual async Task GetScansAsync(RequestOptions requestOptions } /// List scans in data source. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetScans(RequestOptions requestOptions = null) + public virtual Response GetScans(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetScansRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetScansRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewDataSourceClient.GetScans"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1115,8 +1115,8 @@ public virtual Response GetScans(RequestOptions requestOptions = null) } /// Create Request for and operations. - /// The request options. - private HttpMessage CreateGetScansRequest(RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetScansRequest(RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanClient.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanClient.cs index d6792844636e..8ad0f319764b 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanClient.cs @@ -68,23 +68,23 @@ public PurviewScanClient(Uri endpoint, string dataSourceName, string scanName, T } /// Get a filter. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetFilterAsync(RequestOptions requestOptions = null) + public virtual async Task GetFilterAsync(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetFilterRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetFilterRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanClient.GetFilter"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -107,23 +107,23 @@ public virtual async Task GetFilterAsync(RequestOptions requestOptions } /// Get a filter. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetFilter(RequestOptions requestOptions = null) + public virtual Response GetFilter(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetFilterRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetFilterRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanClient.GetFilter"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -146,8 +146,8 @@ public virtual Response GetFilter(RequestOptions requestOptions = null) } /// Create Request for and operations. - /// The request options. - private HttpMessage CreateGetFilterRequest(RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetFilterRequest(RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -169,12 +169,12 @@ private HttpMessage CreateGetFilterRequest(RequestOptions requestOptions = null) /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -196,12 +196,12 @@ private HttpMessage CreateGetFilterRequest(RequestOptions requestOptions = null) /// /// Schema for FilterPropertiesAutoGenerated: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// excludeUriPrefixes /// string[] @@ -216,24 +216,24 @@ private HttpMessage CreateGetFilterRequest(RequestOptions requestOptions = null) /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateOrUpdateFilterAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateOrUpdateFilterAsync(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateFilterRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateFilterRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanClient.CreateOrUpdateFilter"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -260,12 +260,12 @@ public virtual async Task CreateOrUpdateFilterAsync(RequestContent req /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -287,12 +287,12 @@ public virtual async Task CreateOrUpdateFilterAsync(RequestContent req /// /// Schema for FilterPropertiesAutoGenerated: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// excludeUriPrefixes /// string[] @@ -307,24 +307,24 @@ public virtual async Task CreateOrUpdateFilterAsync(RequestContent req /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateOrUpdateFilter(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateOrUpdateFilter(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateFilterRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateFilterRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanClient.CreateOrUpdateFilter"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -348,9 +348,9 @@ public virtual Response CreateOrUpdateFilter(RequestContent requestBody, Request } /// Create Request for and operations. - /// The request body. - /// The request options. - private HttpMessage CreateCreateOrUpdateFilterRequest(RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateOrUpdateFilterRequest(RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -366,7 +366,7 @@ private HttpMessage CreateCreateOrUpdateFilterRequest(RequestContent requestBody request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } @@ -374,12 +374,12 @@ private HttpMessage CreateCreateOrUpdateFilterRequest(RequestContent requestBody /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -407,12 +407,12 @@ private HttpMessage CreateCreateOrUpdateFilterRequest(RequestContent requestBody /// /// Schema for ScanResult: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// parentId /// string @@ -524,12 +524,12 @@ private HttpMessage CreateCreateOrUpdateFilterRequest(RequestContent requestBody /// /// Schema for ScanResultDiagnostics: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// notifications /// Notification[] @@ -545,12 +545,12 @@ private HttpMessage CreateCreateOrUpdateFilterRequest(RequestContent requestBody /// /// Schema for ScanResultError: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// code /// string @@ -578,12 +578,12 @@ private HttpMessage CreateCreateOrUpdateFilterRequest(RequestContent requestBody /// /// Schema for Notification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// message /// string @@ -599,12 +599,12 @@ private HttpMessage CreateCreateOrUpdateFilterRequest(RequestContent requestBody /// /// Schema for ErrorModel: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// code /// string @@ -631,24 +631,24 @@ private HttpMessage CreateCreateOrUpdateFilterRequest(RequestContent requestBody /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateOrUpdateAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateOrUpdateAsync(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanClient.CreateOrUpdate"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -675,12 +675,12 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -708,12 +708,12 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo /// /// Schema for ScanResult: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// parentId /// string @@ -825,12 +825,12 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo /// /// Schema for ScanResultDiagnostics: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// notifications /// Notification[] @@ -846,12 +846,12 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo /// /// Schema for ScanResultError: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// code /// string @@ -879,12 +879,12 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo /// /// Schema for Notification: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// message /// string @@ -900,12 +900,12 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo /// /// Schema for ErrorModel: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// code /// string @@ -932,24 +932,24 @@ public virtual async Task CreateOrUpdateAsync(RequestContent requestBo /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateOrUpdate(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateOrUpdate(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanClient.CreateOrUpdate"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -973,9 +973,9 @@ public virtual Response CreateOrUpdate(RequestContent requestBody, RequestOption } /// Create Request for and operations. - /// The request body. - /// The request options. - private HttpMessage CreateCreateOrUpdateRequest(RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateOrUpdateRequest(RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -990,28 +990,28 @@ private HttpMessage CreateCreateOrUpdateRequest(RequestContent requestBody, Requ request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } /// Gets a scan information. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetPropertiesAsync(RequestOptions requestOptions = null) + public virtual async Task GetPropertiesAsync(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetPropertiesRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetPropertiesRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanClient.GetProperties"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1034,23 +1034,23 @@ public virtual async Task GetPropertiesAsync(RequestOptions requestOpt } /// Gets a scan information. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetProperties(RequestOptions requestOptions = null) + public virtual Response GetProperties(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetPropertiesRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetPropertiesRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanClient.GetProperties"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1073,8 +1073,8 @@ public virtual Response GetProperties(RequestOptions requestOptions = null) } /// Create Request for and operations. - /// The request options. - private HttpMessage CreateGetPropertiesRequest(RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetPropertiesRequest(RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1092,23 +1092,23 @@ private HttpMessage CreateGetPropertiesRequest(RequestOptions requestOptions = n } /// Deletes the scan associated with the data source. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteAsync(RequestOptions requestOptions = null) + public virtual async Task DeleteAsync(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanClient.Delete"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1132,23 +1132,23 @@ public virtual async Task DeleteAsync(RequestOptions requestOptions = } /// Deletes the scan associated with the data source. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response Delete(RequestOptions requestOptions = null) + public virtual Response Delete(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanClient.Delete"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1172,8 +1172,8 @@ public virtual Response Delete(RequestOptions requestOptions = null) } /// Create Request for and operations. - /// The request options. - private HttpMessage CreateDeleteRequest(RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteRequest(RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1193,23 +1193,23 @@ private HttpMessage CreateDeleteRequest(RequestOptions requestOptions = null) /// Runs the scan. /// The String to use. /// The ScanLevelType to use. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task RunScanAsync(string runId, string scanLevel = null, RequestOptions requestOptions = null) + public virtual async Task RunScanAsync(string runId, string scanLevel = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateRunScanRequest(runId, scanLevel, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateRunScanRequest(runId, scanLevel, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanClient.RunScan"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1234,23 +1234,23 @@ public virtual async Task RunScanAsync(string runId, string scanLevel /// Runs the scan. /// The String to use. /// The ScanLevelType to use. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response RunScan(string runId, string scanLevel = null, RequestOptions requestOptions = null) + public virtual Response RunScan(string runId, string scanLevel = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateRunScanRequest(runId, scanLevel, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateRunScanRequest(runId, scanLevel, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanClient.RunScan"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1275,8 +1275,8 @@ public virtual Response RunScan(string runId, string scanLevel = null, RequestOp /// Create Request for and operations. /// The String to use. /// The ScanLevelType to use. - /// The request options. - private HttpMessage CreateRunScanRequest(string runId, string scanLevel = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateRunScanRequest(string runId, string scanLevel = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1301,23 +1301,23 @@ private HttpMessage CreateRunScanRequest(string runId, string scanLevel = null, /// Cancels a scan. /// The String to use. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CancelScanAsync(string runId, RequestOptions requestOptions = null) + public virtual async Task CancelScanAsync(string runId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCancelScanRequest(runId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCancelScanRequest(runId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanClient.CancelScan"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1341,23 +1341,23 @@ public virtual async Task CancelScanAsync(string runId, RequestOptions /// Cancels a scan. /// The String to use. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CancelScan(string runId, RequestOptions requestOptions = null) + public virtual Response CancelScan(string runId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCancelScanRequest(runId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCancelScanRequest(runId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanClient.CancelScan"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1381,8 +1381,8 @@ public virtual Response CancelScan(string runId, RequestOptions requestOptions = /// Create Request for and operations. /// The String to use. - /// The request options. - private HttpMessage CreateCancelScanRequest(string runId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateCancelScanRequest(string runId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1403,23 +1403,23 @@ private HttpMessage CreateCancelScanRequest(string runId, RequestOptions request } /// Lists the scan history of a scan. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetRunsAsync(RequestOptions requestOptions = null) + public virtual async Task GetRunsAsync(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRunsRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRunsRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanClient.GetRuns"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1442,23 +1442,23 @@ public virtual async Task GetRunsAsync(RequestOptions requestOptions = } /// Lists the scan history of a scan. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetRuns(RequestOptions requestOptions = null) + public virtual Response GetRuns(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetRunsRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetRunsRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanClient.GetRuns"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1481,8 +1481,8 @@ public virtual Response GetRuns(RequestOptions requestOptions = null) } /// Create Request for and operations. - /// The request options. - private HttpMessage CreateGetRunsRequest(RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetRunsRequest(RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1501,23 +1501,23 @@ private HttpMessage CreateGetRunsRequest(RequestOptions requestOptions = null) } /// Gets trigger information. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetTriggerAsync(RequestOptions requestOptions = null) + public virtual async Task GetTriggerAsync(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetTriggerRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetTriggerRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanClient.GetTrigger"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1540,23 +1540,23 @@ public virtual async Task GetTriggerAsync(RequestOptions requestOption } /// Gets trigger information. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetTrigger(RequestOptions requestOptions = null) + public virtual Response GetTrigger(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetTriggerRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetTriggerRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanClient.GetTrigger"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1579,8 +1579,8 @@ public virtual Response GetTrigger(RequestOptions requestOptions = null) } /// Create Request for and operations. - /// The request options. - private HttpMessage CreateGetTriggerRequest(RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetTriggerRequest(RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1602,12 +1602,12 @@ private HttpMessage CreateGetTriggerRequest(RequestOptions requestOptions = null /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -1629,12 +1629,12 @@ private HttpMessage CreateGetTriggerRequest(RequestOptions requestOptions = null /// /// Schema for TriggerPropertiesAutoGenerated: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// recurrence /// TriggerPropertiesRecurrence @@ -1680,12 +1680,12 @@ private HttpMessage CreateGetTriggerRequest(RequestOptions requestOptions = null /// /// Schema for TriggerPropertiesRecurrence: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// frequency /// "Week" | "Month" @@ -1725,12 +1725,12 @@ private HttpMessage CreateGetTriggerRequest(RequestOptions requestOptions = null /// /// Schema for TriggerRecurrenceSchedule: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// additionalProperties /// Dictionary<string, AnyObject> @@ -1770,12 +1770,12 @@ private HttpMessage CreateGetTriggerRequest(RequestOptions requestOptions = null /// /// Schema for RecurrenceScheduleOccurrence: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// additionalProperties /// Dictionary<string, AnyObject> @@ -1796,24 +1796,24 @@ private HttpMessage CreateGetTriggerRequest(RequestOptions requestOptions = null /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateOrUpdateTriggerAsync(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateOrUpdateTriggerAsync(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateTriggerRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateTriggerRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanClient.CreateOrUpdateTrigger"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1840,12 +1840,12 @@ public virtual async Task CreateOrUpdateTriggerAsync(RequestContent re /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -1867,12 +1867,12 @@ public virtual async Task CreateOrUpdateTriggerAsync(RequestContent re /// /// Schema for TriggerPropertiesAutoGenerated: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// recurrence /// TriggerPropertiesRecurrence @@ -1918,12 +1918,12 @@ public virtual async Task CreateOrUpdateTriggerAsync(RequestContent re /// /// Schema for TriggerPropertiesRecurrence: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// frequency /// "Week" | "Month" @@ -1963,12 +1963,12 @@ public virtual async Task CreateOrUpdateTriggerAsync(RequestContent re /// /// Schema for TriggerRecurrenceSchedule: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// additionalProperties /// Dictionary<string, AnyObject> @@ -2008,12 +2008,12 @@ public virtual async Task CreateOrUpdateTriggerAsync(RequestContent re /// /// Schema for RecurrenceScheduleOccurrence: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// additionalProperties /// Dictionary<string, AnyObject> @@ -2034,24 +2034,24 @@ public virtual async Task CreateOrUpdateTriggerAsync(RequestContent re /// /// /// - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateOrUpdateTrigger(RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateOrUpdateTrigger(RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateTriggerRequest(requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateTriggerRequest(content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanClient.CreateOrUpdateTrigger"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2075,9 +2075,9 @@ public virtual Response CreateOrUpdateTrigger(RequestContent requestBody, Reques } /// Create Request for and operations. - /// The request body. - /// The request options. - private HttpMessage CreateCreateOrUpdateTriggerRequest(RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateOrUpdateTriggerRequest(RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -2093,28 +2093,28 @@ private HttpMessage CreateCreateOrUpdateTriggerRequest(RequestContent requestBod request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } /// Deletes the trigger associated with the scan. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteTriggerAsync(RequestOptions requestOptions = null) + public virtual async Task DeleteTriggerAsync(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteTriggerRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteTriggerRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanClient.DeleteTrigger"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2138,23 +2138,23 @@ public virtual async Task DeleteTriggerAsync(RequestOptions requestOpt } /// Deletes the trigger associated with the scan. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response DeleteTrigger(RequestOptions requestOptions = null) + public virtual Response DeleteTrigger(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteTriggerRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteTriggerRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanClient.DeleteTrigger"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -2178,8 +2178,8 @@ public virtual Response DeleteTrigger(RequestOptions requestOptions = null) } /// Create Request for and operations. - /// The request options. - private HttpMessage CreateDeleteTriggerRequest(RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteTriggerRequest(RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanningServiceClient.cs b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanningServiceClient.cs index 11392834801d..fce3b858e1fb 100644 --- a/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanningServiceClient.cs +++ b/sdk/purview/Azure.Analytics.Purview.Scanning/src/Generated/PurviewScanningServiceClient.cs @@ -55,23 +55,23 @@ public PurviewScanningServiceClient(Uri endpoint, TokenCredential credential, Pu /// Gets azureKeyVault information. /// The String to use. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetKeyVaultReferenceAsync(string azureKeyVaultName, RequestOptions requestOptions = null) + public virtual async Task GetKeyVaultReferenceAsync(string azureKeyVaultName, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetKeyVaultReferenceRequest(azureKeyVaultName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetKeyVaultReferenceRequest(azureKeyVaultName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.GetKeyVaultReference"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -95,23 +95,23 @@ public virtual async Task GetKeyVaultReferenceAsync(string azureKeyVau /// Gets azureKeyVault information. /// The String to use. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetKeyVaultReference(string azureKeyVaultName, RequestOptions requestOptions = null) + public virtual Response GetKeyVaultReference(string azureKeyVaultName, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetKeyVaultReferenceRequest(azureKeyVaultName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetKeyVaultReferenceRequest(azureKeyVaultName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.GetKeyVaultReference"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -135,8 +135,8 @@ public virtual Response GetKeyVaultReference(string azureKeyVaultName, RequestOp /// Create Request for and operations. /// The String to use. - /// The request options. - private HttpMessage CreateGetKeyVaultReferenceRequest(string azureKeyVaultName, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetKeyVaultReferenceRequest(string azureKeyVaultName, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -155,12 +155,12 @@ private HttpMessage CreateGetKeyVaultReferenceRequest(string azureKeyVaultName, /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -182,12 +182,12 @@ private HttpMessage CreateGetKeyVaultReferenceRequest(string azureKeyVaultName, /// /// Schema for AzureKeyVaultPropertiesAutoGenerated: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// baseUrl /// string @@ -203,24 +203,24 @@ private HttpMessage CreateGetKeyVaultReferenceRequest(string azureKeyVaultName, /// /// /// The String to use. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateOrUpdateKeyVaultReferenceAsync(string azureKeyVaultName, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateOrUpdateKeyVaultReferenceAsync(string azureKeyVaultName, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateKeyVaultReferenceRequest(azureKeyVaultName, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateKeyVaultReferenceRequest(azureKeyVaultName, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.CreateOrUpdateKeyVaultReference"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -246,12 +246,12 @@ public virtual async Task CreateOrUpdateKeyVaultReferenceAsync(string /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// id /// string @@ -273,12 +273,12 @@ public virtual async Task CreateOrUpdateKeyVaultReferenceAsync(string /// /// Schema for AzureKeyVaultPropertiesAutoGenerated: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// baseUrl /// string @@ -294,24 +294,24 @@ public virtual async Task CreateOrUpdateKeyVaultReferenceAsync(string /// /// /// The String to use. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateOrUpdateKeyVaultReference(string azureKeyVaultName, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateOrUpdateKeyVaultReference(string azureKeyVaultName, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateKeyVaultReferenceRequest(azureKeyVaultName, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateKeyVaultReferenceRequest(azureKeyVaultName, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.CreateOrUpdateKeyVaultReference"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -335,9 +335,9 @@ public virtual Response CreateOrUpdateKeyVaultReference(string azureKeyVaultName /// Create Request for and operations. /// The String to use. - /// The request body. - /// The request options. - private HttpMessage CreateCreateOrUpdateKeyVaultReferenceRequest(string azureKeyVaultName, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateOrUpdateKeyVaultReferenceRequest(string azureKeyVaultName, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -350,29 +350,29 @@ private HttpMessage CreateCreateOrUpdateKeyVaultReferenceRequest(string azureKey request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } /// Deletes the azureKeyVault associated with the account. /// The String to use. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteKeyVaultReferenceAsync(string azureKeyVaultName, RequestOptions requestOptions = null) + public virtual async Task DeleteKeyVaultReferenceAsync(string azureKeyVaultName, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteKeyVaultReferenceRequest(azureKeyVaultName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteKeyVaultReferenceRequest(azureKeyVaultName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.DeleteKeyVaultReference"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -397,23 +397,23 @@ public virtual async Task DeleteKeyVaultReferenceAsync(string azureKey /// Deletes the azureKeyVault associated with the account. /// The String to use. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response DeleteKeyVaultReference(string azureKeyVaultName, RequestOptions requestOptions = null) + public virtual Response DeleteKeyVaultReference(string azureKeyVaultName, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteKeyVaultReferenceRequest(azureKeyVaultName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteKeyVaultReferenceRequest(azureKeyVaultName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.DeleteKeyVaultReference"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -438,8 +438,8 @@ public virtual Response DeleteKeyVaultReference(string azureKeyVaultName, Reques /// Create Request for and operations. /// The String to use. - /// The request options. - private HttpMessage CreateDeleteKeyVaultReferenceRequest(string azureKeyVaultName, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteKeyVaultReferenceRequest(string azureKeyVaultName, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -455,23 +455,23 @@ private HttpMessage CreateDeleteKeyVaultReferenceRequest(string azureKeyVaultNam } /// List azureKeyVaults in account. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetKeyVaultReferencesAsync(RequestOptions requestOptions = null) + public virtual async Task GetKeyVaultReferencesAsync(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetKeyVaultReferencesRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetKeyVaultReferencesRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.GetKeyVaultReferences"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -494,23 +494,23 @@ public virtual async Task GetKeyVaultReferencesAsync(RequestOptions re } /// List azureKeyVaults in account. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetKeyVaultReferences(RequestOptions requestOptions = null) + public virtual Response GetKeyVaultReferences(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetKeyVaultReferencesRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetKeyVaultReferencesRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.GetKeyVaultReferences"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -533,8 +533,8 @@ public virtual Response GetKeyVaultReferences(RequestOptions requestOptions = nu } /// Create Request for and operations. - /// The request options. - private HttpMessage CreateGetKeyVaultReferencesRequest(RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetKeyVaultReferencesRequest(RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -549,23 +549,23 @@ private HttpMessage CreateGetKeyVaultReferencesRequest(RequestOptions requestOpt } /// List classification rules in Account. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetClassificationRulesAsync(RequestOptions requestOptions = null) + public virtual async Task GetClassificationRulesAsync(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetClassificationRulesRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetClassificationRulesRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.GetClassificationRules"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -588,23 +588,23 @@ public virtual async Task GetClassificationRulesAsync(RequestOptions r } /// List classification rules in Account. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetClassificationRules(RequestOptions requestOptions = null) + public virtual Response GetClassificationRules(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetClassificationRulesRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetClassificationRulesRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.GetClassificationRules"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -627,8 +627,8 @@ public virtual Response GetClassificationRules(RequestOptions requestOptions = n } /// Create Request for and operations. - /// The request options. - private HttpMessage CreateGetClassificationRulesRequest(RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetClassificationRulesRequest(RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -643,23 +643,23 @@ private HttpMessage CreateGetClassificationRulesRequest(RequestOptions requestOp } /// List data sources in Data catalog. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetDataSourcesAsync(RequestOptions requestOptions = null) + public virtual async Task GetDataSourcesAsync(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetDataSourcesRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetDataSourcesRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.GetDataSources"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -682,23 +682,23 @@ public virtual async Task GetDataSourcesAsync(RequestOptions requestOp } /// List data sources in Data catalog. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetDataSources(RequestOptions requestOptions = null) + public virtual Response GetDataSources(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetDataSourcesRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetDataSourcesRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.GetDataSources"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -721,8 +721,8 @@ public virtual Response GetDataSources(RequestOptions requestOptions = null) } /// Create Request for and operations. - /// The request options. - private HttpMessage CreateGetDataSourcesRequest(RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetDataSourcesRequest(RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -737,23 +737,23 @@ private HttpMessage CreateGetDataSourcesRequest(RequestOptions requestOptions = } /// Lists the data sources in the account that do not belong to any collection. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetUnparentedDataSourcesAsync(RequestOptions requestOptions = null) + public virtual async Task GetUnparentedDataSourcesAsync(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetUnparentedDataSourcesRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetUnparentedDataSourcesRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.GetUnparentedDataSources"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -776,23 +776,23 @@ public virtual async Task GetUnparentedDataSourcesAsync(RequestOptions } /// Lists the data sources in the account that do not belong to any collection. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetUnparentedDataSources(RequestOptions requestOptions = null) + public virtual Response GetUnparentedDataSources(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetUnparentedDataSourcesRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetUnparentedDataSourcesRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.GetUnparentedDataSources"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -815,8 +815,8 @@ public virtual Response GetUnparentedDataSources(RequestOptions requestOptions = } /// Create Request for and operations. - /// The request options. - private HttpMessage CreateGetUnparentedDataSourcesRequest(RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetUnparentedDataSourcesRequest(RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -832,23 +832,23 @@ private HttpMessage CreateGetUnparentedDataSourcesRequest(RequestOptions request /// Get a scan ruleset. /// The String to use. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetScanRulesetAsync(string scanRulesetName, RequestOptions requestOptions = null) + public virtual async Task GetScanRulesetAsync(string scanRulesetName, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetScanRulesetRequest(scanRulesetName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetScanRulesetRequest(scanRulesetName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.GetScanRuleset"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -872,23 +872,23 @@ public virtual async Task GetScanRulesetAsync(string scanRulesetName, /// Get a scan ruleset. /// The String to use. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetScanRuleset(string scanRulesetName, RequestOptions requestOptions = null) + public virtual Response GetScanRuleset(string scanRulesetName, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetScanRulesetRequest(scanRulesetName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetScanRulesetRequest(scanRulesetName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.GetScanRuleset"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -912,8 +912,8 @@ public virtual Response GetScanRuleset(string scanRulesetName, RequestOptions re /// Create Request for and operations. /// The String to use. - /// The request options. - private HttpMessage CreateGetScanRulesetRequest(string scanRulesetName, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetScanRulesetRequest(string scanRulesetName, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -932,12 +932,12 @@ private HttpMessage CreateGetScanRulesetRequest(string scanRulesetName, RequestO /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// scanRulesetType /// "Custom" | "System" @@ -977,24 +977,24 @@ private HttpMessage CreateGetScanRulesetRequest(string scanRulesetName, RequestO /// /// /// The String to use. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CreateOrUpdateScanRuelsetAsync(string scanRulesetName, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task CreateOrUpdateScanRuelsetAsync(string scanRulesetName, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateScanRuelsetRequest(scanRulesetName, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateScanRuelsetRequest(scanRulesetName, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.CreateOrUpdateScanRuelset"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1021,12 +1021,12 @@ public virtual async Task CreateOrUpdateScanRuelsetAsync(string scanRu /// /// Schema for Request Body: /// - /// + /// /// Name /// Type /// Required /// Description - /// + /// /// /// scanRulesetType /// "Custom" | "System" @@ -1066,24 +1066,24 @@ public virtual async Task CreateOrUpdateScanRuelsetAsync(string scanRu /// /// /// The String to use. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CreateOrUpdateScanRuelset(string scanRulesetName, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response CreateOrUpdateScanRuelset(string scanRulesetName, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCreateOrUpdateScanRuelsetRequest(scanRulesetName, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCreateOrUpdateScanRuelsetRequest(scanRulesetName, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.CreateOrUpdateScanRuelset"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1108,9 +1108,9 @@ public virtual Response CreateOrUpdateScanRuelset(string scanRulesetName, Reques /// Create Request for and operations. /// The String to use. - /// The request body. - /// The request options. - private HttpMessage CreateCreateOrUpdateScanRuelsetRequest(string scanRulesetName, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateCreateOrUpdateScanRuelsetRequest(string scanRulesetName, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1123,29 +1123,29 @@ private HttpMessage CreateCreateOrUpdateScanRuelsetRequest(string scanRulesetNam request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - request.Content = requestBody; + request.Content = content; return message; } /// Deletes a scan ruleset. /// The String to use. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task DeleteScanRulesetAsync(string scanRulesetName, RequestOptions requestOptions = null) + public virtual async Task DeleteScanRulesetAsync(string scanRulesetName, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteScanRulesetRequest(scanRulesetName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteScanRulesetRequest(scanRulesetName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.DeleteScanRuleset"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1170,23 +1170,23 @@ public virtual async Task DeleteScanRulesetAsync(string scanRulesetNam /// Deletes a scan ruleset. /// The String to use. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response DeleteScanRuleset(string scanRulesetName, RequestOptions requestOptions = null) + public virtual Response DeleteScanRuleset(string scanRulesetName, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateDeleteScanRulesetRequest(scanRulesetName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateDeleteScanRulesetRequest(scanRulesetName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.DeleteScanRuleset"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1211,8 +1211,8 @@ public virtual Response DeleteScanRuleset(string scanRulesetName, RequestOptions /// Create Request for and operations. /// The String to use. - /// The request options. - private HttpMessage CreateDeleteScanRulesetRequest(string scanRulesetName, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateDeleteScanRulesetRequest(string scanRulesetName, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1228,23 +1228,23 @@ private HttpMessage CreateDeleteScanRulesetRequest(string scanRulesetName, Reque } /// List scan rulesets in Data catalog. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetScanRulesetsAsync(RequestOptions requestOptions = null) + public virtual async Task GetScanRulesetsAsync(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetScanRulesetsRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetScanRulesetsRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.GetScanRulesets"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1267,23 +1267,23 @@ public virtual async Task GetScanRulesetsAsync(RequestOptions requestO } /// List scan rulesets in Data catalog. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetScanRulesets(RequestOptions requestOptions = null) + public virtual Response GetScanRulesets(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetScanRulesetsRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetScanRulesetsRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.GetScanRulesets"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1306,8 +1306,8 @@ public virtual Response GetScanRulesets(RequestOptions requestOptions = null) } /// Create Request for and operations. - /// The request options. - private HttpMessage CreateGetScanRulesetsRequest(RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetScanRulesetsRequest(RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1322,23 +1322,23 @@ private HttpMessage CreateGetScanRulesetsRequest(RequestOptions requestOptions = } /// List all system scan rulesets for an account. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetSystemRulesetsAsync(RequestOptions requestOptions = null) + public virtual async Task GetSystemRulesetsAsync(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetSystemRulesetsRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetSystemRulesetsRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.GetSystemRulesets"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1361,23 +1361,23 @@ public virtual async Task GetSystemRulesetsAsync(RequestOptions reques } /// List all system scan rulesets for an account. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetSystemRulesets(RequestOptions requestOptions = null) + public virtual Response GetSystemRulesets(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetSystemRulesetsRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetSystemRulesetsRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.GetSystemRulesets"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1400,8 +1400,8 @@ public virtual Response GetSystemRulesets(RequestOptions requestOptions = null) } /// Create Request for and operations. - /// The request options. - private HttpMessage CreateGetSystemRulesetsRequest(RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetSystemRulesetsRequest(RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1417,23 +1417,23 @@ private HttpMessage CreateGetSystemRulesetsRequest(RequestOptions requestOptions /// Get a system scan ruleset for a data source. /// The DataSourceType to use. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetSystemRulesetsForDataSourceAsync(string dataSourceType, RequestOptions requestOptions = null) + public virtual async Task GetSystemRulesetsForDataSourceAsync(string dataSourceType, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetSystemRulesetsForDataSourceRequest(dataSourceType, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetSystemRulesetsForDataSourceRequest(dataSourceType, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.GetSystemRulesetsForDataSource"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1457,23 +1457,23 @@ public virtual async Task GetSystemRulesetsForDataSourceAsync(string d /// Get a system scan ruleset for a data source. /// The DataSourceType to use. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetSystemRulesetsForDataSource(string dataSourceType, RequestOptions requestOptions = null) + public virtual Response GetSystemRulesetsForDataSource(string dataSourceType, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetSystemRulesetsForDataSourceRequest(dataSourceType, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetSystemRulesetsForDataSourceRequest(dataSourceType, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.GetSystemRulesetsForDataSource"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1497,8 +1497,8 @@ public virtual Response GetSystemRulesetsForDataSource(string dataSourceType, Re /// Create Request for and operations. /// The DataSourceType to use. - /// The request options. - private HttpMessage CreateGetSystemRulesetsForDataSourceRequest(string dataSourceType, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetSystemRulesetsForDataSourceRequest(string dataSourceType, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1516,23 +1516,23 @@ private HttpMessage CreateGetSystemRulesetsForDataSourceRequest(string dataSourc /// Get a scan ruleset by version. /// The Integer to use. /// The DataSourceType to use. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetSystemRulesetsForVersionAsync(int version, string dataSourceType = null, RequestOptions requestOptions = null) + public virtual async Task GetSystemRulesetsForVersionAsync(int version, string dataSourceType = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetSystemRulesetsForVersionRequest(version, dataSourceType, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetSystemRulesetsForVersionRequest(version, dataSourceType, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.GetSystemRulesetsForVersion"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1557,23 +1557,23 @@ public virtual async Task GetSystemRulesetsForVersionAsync(int version /// Get a scan ruleset by version. /// The Integer to use. /// The DataSourceType to use. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetSystemRulesetsForVersion(int version, string dataSourceType = null, RequestOptions requestOptions = null) + public virtual Response GetSystemRulesetsForVersion(int version, string dataSourceType = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetSystemRulesetsForVersionRequest(version, dataSourceType, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetSystemRulesetsForVersionRequest(version, dataSourceType, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.GetSystemRulesetsForVersion"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1598,8 +1598,8 @@ public virtual Response GetSystemRulesetsForVersion(int version, string dataSour /// Create Request for and operations. /// The Integer to use. /// The DataSourceType to use. - /// The request options. - private HttpMessage CreateGetSystemRulesetsForVersionRequest(int version, string dataSourceType = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetSystemRulesetsForVersionRequest(int version, string dataSourceType = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1620,23 +1620,23 @@ private HttpMessage CreateGetSystemRulesetsForVersionRequest(int version, string /// Get the latest version of a system scan ruleset. /// The DataSourceType to use. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetLatestSystemRulestesAsync(string dataSourceType = null, RequestOptions requestOptions = null) + public virtual async Task GetLatestSystemRulestesAsync(string dataSourceType = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetLatestSystemRulestesRequest(dataSourceType, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetLatestSystemRulestesRequest(dataSourceType, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.GetLatestSystemRulestes"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1660,23 +1660,23 @@ public virtual async Task GetLatestSystemRulestesAsync(string dataSour /// Get the latest version of a system scan ruleset. /// The DataSourceType to use. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetLatestSystemRulestes(string dataSourceType = null, RequestOptions requestOptions = null) + public virtual Response GetLatestSystemRulestes(string dataSourceType = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetLatestSystemRulestesRequest(dataSourceType, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetLatestSystemRulestesRequest(dataSourceType, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.GetLatestSystemRulestes"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1700,8 +1700,8 @@ public virtual Response GetLatestSystemRulestes(string dataSourceType = null, Re /// Create Request for and operations. /// The DataSourceType to use. - /// The request options. - private HttpMessage CreateGetLatestSystemRulestesRequest(string dataSourceType = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetLatestSystemRulestesRequest(string dataSourceType = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1721,23 +1721,23 @@ private HttpMessage CreateGetLatestSystemRulestesRequest(string dataSourceType = /// List system scan ruleset versions in Data catalog. /// The DataSourceType to use. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetSystemRulesetsVersionsAsync(string dataSourceType = null, RequestOptions requestOptions = null) + public virtual async Task GetSystemRulesetsVersionsAsync(string dataSourceType = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetSystemRulesetsVersionsRequest(dataSourceType, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetSystemRulesetsVersionsRequest(dataSourceType, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.GetSystemRulesetsVersions"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1761,23 +1761,23 @@ public virtual async Task GetSystemRulesetsVersionsAsync(string dataSo /// List system scan ruleset versions in Data catalog. /// The DataSourceType to use. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetSystemRulesetsVersions(string dataSourceType = null, RequestOptions requestOptions = null) + public virtual Response GetSystemRulesetsVersions(string dataSourceType = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetSystemRulesetsVersionsRequest(dataSourceType, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetSystemRulesetsVersionsRequest(dataSourceType, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("PurviewScanningServiceClient.GetSystemRulesetsVersions"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1801,8 +1801,8 @@ public virtual Response GetSystemRulesetsVersions(string dataSourceType = null, /// Create Request for and operations. /// The DataSourceType to use. - /// The request options. - private HttpMessage CreateGetSystemRulesetsVersionsRequest(string dataSourceType = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetSystemRulesetsVersionsRequest(string dataSourceType = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/purview/ci.yml b/sdk/purview/ci.yml index 6c793145cf12..8421be6f7903 100644 --- a/sdk/purview/ci.yml +++ b/sdk/purview/ci.yml @@ -2,7 +2,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -13,7 +12,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/quantum/Azure.Quantum.Jobs/README.md b/sdk/quantum/Azure.Quantum.Jobs/README.md index ceae8cde649c..8bc7bd13bb9f 100644 --- a/sdk/quantum/Azure.Quantum.Jobs/README.md +++ b/sdk/quantum/Azure.Quantum.Jobs/README.md @@ -47,12 +47,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -189,12 +189,12 @@ additional questions or comments. -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/quantum/Azure.Quantum.Jobs/src +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/quantum/Azure.Quantum.Jobs/src [resource-groups]: https://docs.microsoft.com/azure/azure-resource-manager/management/manage-resource-groups-portal [workspaces]: https://docs.microsoft.com/azure/quantum/how-to-create-quantum-workspaces-with-the-azure-portal [location]: https://azure.microsoft.com/global-infrastructure/services/?products=quantum [blob-storage]: https://docs.microsoft.com/azure/storage/blobs/storage-blobs-introduction -[contributing]: https://github.com/Azure/azure-sdk-for-net/tree/master/CONTRIBUTING.md +[contributing]: https://github.com/Azure/azure-sdk-for-net/tree/main/CONTRIBUTING.md [subscriptions]: https://ms.portal.azure.com/#blade/Microsoft_Azure_Billing/SubscriptionsBlade [credentials]: https://docs.microsoft.com/dotnet/api/overview/azure/identity-readme#credentials [style-guide-msft]: https://docs.microsoft.com/style-guide/capitalization diff --git a/sdk/quantum/ci.yml b/sdk/quantum/ci.yml index 2e2e3b1ca1b7..5218fa5a1fd0 100644 --- a/sdk/quantum/ci.yml +++ b/sdk/quantum/ci.yml @@ -2,7 +2,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -13,7 +12,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/README.md b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/README.md index 377970c3a909..fec67813333d 100644 --- a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/README.md +++ b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/README.md @@ -128,7 +128,7 @@ RemoteRenderingClient client = new RemoteRenderingClient(remoteRenderingEndpoint #### Authenticating with a static access token You can pass a Mixed Reality access token as an `AccessToken` previously retrieved from the -[Mixed Reality STS service](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/mixedreality/Azure.MixedReality.Authentication) +[Mixed Reality STS service](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/mixedreality/Azure.MixedReality.Authentication) to be used with a Mixed Reality client library: ```csharp Snippet:CreateAClientWithStaticAccessToken diff --git a/sdk/remoterendering/ci.yml b/sdk/remoterendering/ci.yml index 2aa96ca9c9b1..602701e13927 100644 --- a/sdk/remoterendering/ci.yml +++ b/sdk/remoterendering/ci.yml @@ -2,7 +2,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -13,7 +12,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/resources/Azure.ResourceManager.Resources/README.md b/sdk/resources/Azure.ResourceManager.Resources/README.md index dac3c22660e5..a670981d19d2 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/README.md +++ b/sdk/resources/Azure.ResourceManager.Resources/README.md @@ -18,7 +18,7 @@ Install-Package Azure.ResourceManager.Resources -Version 1.0.0-preview.2 ### Authenticate the Client -To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) ## Key concepts @@ -28,9 +28,9 @@ Key concepts of the Azure .NET SDK can be found [here](https://azure.github.io/a Documentation is available to help you learn how to use this package -- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) - [API References](https://docs.microsoft.com/dotnet/api/?view=azure-dotnet) -- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md) +- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md) ## Examples diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/AuthorizationOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/AuthorizationOperations.cs new file mode 100644 index 000000000000..c64e48dcc4ec --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/AuthorizationOperations.cs @@ -0,0 +1,400 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// AuthorizationOperations operations. + /// + internal partial class AuthorizationOperations : IServiceOperations, IAuthorizationOperations + { + /// + /// Initializes a new instance of the AuthorizationOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal AuthorizationOperations(ManagementLockClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the ManagementLockClient + /// + public ManagementLockClient Client { get; private set; } + + /// + /// Lists all of the available Microsoft.Authorization REST API operations. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Authorization/operations").ToString(); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all of the available Microsoft.Authorization REST API operations. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/AuthorizationOperationsExtensions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/AuthorizationOperationsExtensions.cs new file mode 100644 index 000000000000..e9bfdaf75844 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/AuthorizationOperationsExtensions.cs @@ -0,0 +1,87 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for AuthorizationOperations. + /// + public static partial class AuthorizationOperationsExtensions + { + /// + /// Lists all of the available Microsoft.Authorization REST API operations. + /// + /// + /// The operations group for this extension method. + /// + public static IPage List(this IAuthorizationOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Lists all of the available Microsoft.Authorization REST API operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IAuthorizationOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all of the available Microsoft.Authorization REST API operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IAuthorizationOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all of the available Microsoft.Authorization REST API operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IAuthorizationOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DataPolicyManifestsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DataPolicyManifestsOperations.cs new file mode 100644 index 000000000000..ed80f674c104 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DataPolicyManifestsOperations.cs @@ -0,0 +1,604 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DataPolicyManifestsOperations operations. + /// + internal partial class DataPolicyManifestsOperations : IServiceOperations, IDataPolicyManifestsOperations + { + /// + /// Initializes a new instance of the DataPolicyManifestsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal DataPolicyManifestsOperations(PolicyClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the PolicyClient + /// + public PolicyClient Client { get; private set; } + + /// + /// Retrieves a data policy manifest. + /// + /// + /// This operation retrieves the data policy manifest with the given policy + /// mode. + /// + /// + /// The policy mode of the data policy manifest to get. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetByPolicyModeWithHttpMessagesAsync(string policyMode, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (policyMode == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "policyMode"); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("policyMode", policyMode); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetByPolicyMode", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Authorization/dataPolicyManifests/{policyMode}").ToString(); + _url = _url.Replace("{policyMode}", System.Uri.EscapeDataString(policyMode)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves data policy manifests + /// + /// + /// This operation retrieves a list of all the data policy manifests that match + /// the optional given $filter. Valid values for $filter are: + /// "$filter=namespace eq '{0}'". If $filter is not provided, the unfiltered + /// list includes all data policy manifests for data resource types. If + /// $filter=namespace is provided, the returned list only includes all data + /// policy manifests that have a namespace matching the provided value. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// "namespace eq '{value}'". If $filter is not provided, no filtering is + /// performed. If $filter=namespace eq '{value}' is provided, the returned list + /// only includes all data policy manifests that have a namespace matching the + /// provided value. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("filter", filter); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Authorization/dataPolicyManifests").ToString(); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", filter)); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves data policy manifests + /// + /// + /// This operation retrieves a list of all the data policy manifests that match + /// the optional given $filter. Valid values for $filter are: + /// "$filter=namespace eq '{0}'". If $filter is not provided, the unfiltered + /// list includes all data policy manifests for data resource types. If + /// $filter=namespace is provided, the returned list only includes all data + /// policy manifests that have a namespace matching the provided value. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DataPolicyManifestsOperationsExtensions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DataPolicyManifestsOperationsExtensions.cs new file mode 100644 index 000000000000..d889e99596e7 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DataPolicyManifestsOperationsExtensions.cs @@ -0,0 +1,175 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for DataPolicyManifestsOperations. + /// + public static partial class DataPolicyManifestsOperationsExtensions + { + /// + /// Retrieves a data policy manifest. + /// + /// + /// This operation retrieves the data policy manifest with the given policy + /// mode. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The policy mode of the data policy manifest to get. + /// + public static DataPolicyManifest GetByPolicyMode(this IDataPolicyManifestsOperations operations, string policyMode) + { + return operations.GetByPolicyModeAsync(policyMode).GetAwaiter().GetResult(); + } + + /// + /// Retrieves a data policy manifest. + /// + /// + /// This operation retrieves the data policy manifest with the given policy + /// mode. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The policy mode of the data policy manifest to get. + /// + /// + /// The cancellation token. + /// + public static async Task GetByPolicyModeAsync(this IDataPolicyManifestsOperations operations, string policyMode, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetByPolicyModeWithHttpMessagesAsync(policyMode, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves data policy manifests + /// + /// + /// This operation retrieves a list of all the data policy manifests that match + /// the optional given $filter. Valid values for $filter are: + /// "$filter=namespace eq '{0}'". If $filter is not provided, the unfiltered + /// list includes all data policy manifests for data resource types. If + /// $filter=namespace is provided, the returned list only includes all data + /// policy manifests that have a namespace matching the provided value. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// "namespace eq '{value}'". If $filter is not provided, no filtering is + /// performed. If $filter=namespace eq '{value}' is provided, the returned list + /// only includes all data policy manifests that have a namespace matching the + /// provided value. + /// + public static IPage List(this IDataPolicyManifestsOperations operations, string filter = default(string)) + { + return operations.ListAsync(filter).GetAwaiter().GetResult(); + } + + /// + /// Retrieves data policy manifests + /// + /// + /// This operation retrieves a list of all the data policy manifests that match + /// the optional given $filter. Valid values for $filter are: + /// "$filter=namespace eq '{0}'". If $filter is not provided, the unfiltered + /// list includes all data policy manifests for data resource types. If + /// $filter=namespace is provided, the returned list only includes all data + /// policy manifests that have a namespace matching the provided value. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// "namespace eq '{value}'". If $filter is not provided, no filtering is + /// performed. If $filter=namespace eq '{value}' is provided, the returned list + /// only includes all data policy manifests that have a namespace matching the + /// provided value. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IDataPolicyManifestsOperations operations, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(filter, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves data policy manifests + /// + /// + /// This operation retrieves a list of all the data policy manifests that match + /// the optional given $filter. Valid values for $filter are: + /// "$filter=namespace eq '{0}'". If $filter is not provided, the unfiltered + /// list includes all data policy manifests for data resource types. If + /// $filter=namespace is provided, the returned list only includes all data + /// policy manifests that have a namespace matching the provided value. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IDataPolicyManifestsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Retrieves data policy manifests + /// + /// + /// This operation retrieves a list of all the data policy manifests that match + /// the optional given $filter. Valid values for $filter are: + /// "$filter=namespace eq '{0}'". If $filter is not provided, the unfiltered + /// list includes all data policy manifests for data resource types. If + /// $filter=namespace is provided, the returned list only includes all data + /// policy manifests that have a namespace matching the provided value. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IDataPolicyManifestsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DeploymentOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DeploymentOperations.cs new file mode 100644 index 000000000000..e99f83084f90 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DeploymentOperations.cs @@ -0,0 +1,3100 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DeploymentOperations operations. + /// + internal partial class DeploymentOperations : IServiceOperations, IDeploymentOperations + { + /// + /// Initializes a new instance of the DeploymentOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal DeploymentOperations(ResourceManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the ResourceManagementClient + /// + public ResourceManagementClient Client { get; private set; } + + /// + /// Gets a deployments operation. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// The ID of the operation to get. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetAtScopeWithHttpMessagesAsync(string scope, string deploymentName, string operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (operationId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "operationId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("scope", scope); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("operationId", operationId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetAtScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}").ToString(); + _url = _url.Replace("{scope}", scope); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + _url = _url.Replace("{operationId}", System.Uri.EscapeDataString(operationId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// The number of results to return. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtScopeWithHttpMessagesAsync(string scope, string deploymentName, int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("scope", scope); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("top", top); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/operations").ToString(); + _url = _url.Replace("{scope}", scope); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a deployments operation. + /// + /// + /// The name of the deployment. + /// + /// + /// The ID of the operation to get. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetAtTenantScopeWithHttpMessagesAsync(string deploymentName, string operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (operationId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "operationId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("operationId", operationId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetAtTenantScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}").ToString(); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + _url = _url.Replace("{operationId}", System.Uri.EscapeDataString(operationId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The name of the deployment. + /// + /// + /// The number of results to return. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtTenantScopeWithHttpMessagesAsync(string deploymentName, int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("top", top); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtTenantScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Resources/deployments/{deploymentName}/operations").ToString(); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a deployments operation. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// The ID of the operation to get. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, string operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (groupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "groupId"); + } + if (groupId != null) + { + if (groupId.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "groupId", 90); + } + if (groupId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "groupId", 1); + } + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (operationId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "operationId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("groupId", groupId); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("operationId", operationId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetAtManagementGroupScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}").ToString(); + _url = _url.Replace("{groupId}", System.Uri.EscapeDataString(groupId)); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + _url = _url.Replace("{operationId}", System.Uri.EscapeDataString(operationId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// The number of results to return. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (groupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "groupId"); + } + if (groupId != null) + { + if (groupId.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "groupId", 90); + } + if (groupId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "groupId", 1); + } + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("groupId", groupId); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("top", top); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtManagementGroupScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations").ToString(); + _url = _url.Replace("{groupId}", System.Uri.EscapeDataString(groupId)); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a deployments operation. + /// + /// + /// The name of the deployment. + /// + /// + /// The ID of the operation to get. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, string operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (operationId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "operationId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("operationId", operationId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetAtSubscriptionScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations/{operationId}").ToString(); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + _url = _url.Replace("{operationId}", System.Uri.EscapeDataString(operationId)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The name of the deployment. + /// + /// + /// The number of results to return. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("top", top); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtSubscriptionScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/operations").ToString(); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// 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. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string deploymentName, string operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (operationId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "operationId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("operationId", operationId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations/{operationId}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + _url = _url.Replace("{operationId}", System.Uri.EscapeDataString(operationId)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the deployment. + /// + /// + /// The number of results to return. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string deploymentName, int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("top", top); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/deployments/{deploymentName}/operations").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtScopeNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtScopeNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtTenantScopeNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtTenantScopeNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtManagementGroupScopeNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtManagementGroupScopeNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtSubscriptionScopeNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtSubscriptionScopeNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DeploymentOperationsExtensions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DeploymentOperationsExtensions.cs new file mode 100644 index 000000000000..8258812a5d37 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DeploymentOperationsExtensions.cs @@ -0,0 +1,631 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for DeploymentOperations. + /// + public static partial class DeploymentOperationsExtensions + { + /// + /// Gets a deployments operation. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// The ID of the operation to get. + /// + public static DeploymentOperation GetAtScope(this IDeploymentOperations operations, string scope, string deploymentName, string operationId) + { + return operations.GetAtScopeAsync(scope, deploymentName, operationId).GetAwaiter().GetResult(); + } + + /// + /// Gets a deployments operation. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// The ID of the operation to get. + /// + /// + /// The cancellation token. + /// + public static async Task GetAtScopeAsync(this IDeploymentOperations operations, string scope, string deploymentName, string operationId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetAtScopeWithHttpMessagesAsync(scope, deploymentName, operationId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// The number of results to return. + /// + public static IPage ListAtScope(this IDeploymentOperations operations, string scope, string deploymentName, int? top = default(int?)) + { + return operations.ListAtScopeAsync(scope, deploymentName, top).GetAwaiter().GetResult(); + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// The number of results to return. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtScopeAsync(this IDeploymentOperations operations, string scope, string deploymentName, int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtScopeWithHttpMessagesAsync(scope, deploymentName, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a deployments operation. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// The ID of the operation to get. + /// + public static DeploymentOperation GetAtTenantScope(this IDeploymentOperations operations, string deploymentName, string operationId) + { + return operations.GetAtTenantScopeAsync(deploymentName, operationId).GetAwaiter().GetResult(); + } + + /// + /// Gets a deployments operation. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// The ID of the operation to get. + /// + /// + /// The cancellation token. + /// + public static async Task GetAtTenantScopeAsync(this IDeploymentOperations operations, string deploymentName, string operationId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetAtTenantScopeWithHttpMessagesAsync(deploymentName, operationId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// The number of results to return. + /// + public static IPage ListAtTenantScope(this IDeploymentOperations operations, string deploymentName, int? top = default(int?)) + { + return operations.ListAtTenantScopeAsync(deploymentName, top).GetAwaiter().GetResult(); + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// The number of results to return. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtTenantScopeAsync(this IDeploymentOperations operations, string deploymentName, int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtTenantScopeWithHttpMessagesAsync(deploymentName, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a deployments operation. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// The ID of the operation to get. + /// + public static DeploymentOperation GetAtManagementGroupScope(this IDeploymentOperations operations, string groupId, string deploymentName, string operationId) + { + return operations.GetAtManagementGroupScopeAsync(groupId, deploymentName, operationId).GetAwaiter().GetResult(); + } + + /// + /// Gets a deployments operation. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// The ID of the operation to get. + /// + /// + /// The cancellation token. + /// + public static async Task GetAtManagementGroupScopeAsync(this IDeploymentOperations operations, string groupId, string deploymentName, string operationId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetAtManagementGroupScopeWithHttpMessagesAsync(groupId, deploymentName, operationId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// The number of results to return. + /// + public static IPage ListAtManagementGroupScope(this IDeploymentOperations operations, string groupId, string deploymentName, int? top = default(int?)) + { + return operations.ListAtManagementGroupScopeAsync(groupId, deploymentName, top).GetAwaiter().GetResult(); + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// The number of results to return. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtManagementGroupScopeAsync(this IDeploymentOperations operations, string groupId, string deploymentName, int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtManagementGroupScopeWithHttpMessagesAsync(groupId, deploymentName, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a deployments operation. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// The ID of the operation to get. + /// + public static DeploymentOperation GetAtSubscriptionScope(this IDeploymentOperations operations, string deploymentName, string operationId) + { + return operations.GetAtSubscriptionScopeAsync(deploymentName, operationId).GetAwaiter().GetResult(); + } + + /// + /// Gets a deployments operation. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// The ID of the operation to get. + /// + /// + /// The cancellation token. + /// + public static async Task GetAtSubscriptionScopeAsync(this IDeploymentOperations operations, string deploymentName, string operationId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetAtSubscriptionScopeWithHttpMessagesAsync(deploymentName, operationId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// The number of results to return. + /// + public static IPage ListAtSubscriptionScope(this IDeploymentOperations operations, string deploymentName, int? top = default(int?)) + { + return operations.ListAtSubscriptionScopeAsync(deploymentName, top).GetAwaiter().GetResult(); + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// The number of results to return. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtSubscriptionScopeAsync(this IDeploymentOperations operations, string deploymentName, int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtSubscriptionScopeWithHttpMessagesAsync(deploymentName, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a deployments operation. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the deployment. + /// + /// + /// The ID of the operation to get. + /// + public static DeploymentOperation Get(this IDeploymentOperations operations, string resourceGroupName, string deploymentName, string operationId) + { + return operations.GetAsync(resourceGroupName, deploymentName, operationId).GetAwaiter().GetResult(); + } + + /// + /// Gets a deployments operation. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + public static async Task GetAsync(this IDeploymentOperations operations, string resourceGroupName, string deploymentName, string operationId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, deploymentName, operationId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the deployment. + /// + /// + /// The number of results to return. + /// + public static IPage List(this IDeploymentOperations operations, string resourceGroupName, string deploymentName, int? top = default(int?)) + { + return operations.ListAsync(resourceGroupName, deploymentName, top).GetAwaiter().GetResult(); + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the deployment. + /// + /// + /// The number of results to return. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IDeploymentOperations operations, string resourceGroupName, string deploymentName, int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, deploymentName, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListAtScopeNext(this IDeploymentOperations operations, string nextPageLink) + { + return operations.ListAtScopeNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtScopeNextAsync(this IDeploymentOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtScopeNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListAtTenantScopeNext(this IDeploymentOperations operations, string nextPageLink) + { + return operations.ListAtTenantScopeNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtTenantScopeNextAsync(this IDeploymentOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtTenantScopeNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListAtManagementGroupScopeNext(this IDeploymentOperations operations, string nextPageLink) + { + return operations.ListAtManagementGroupScopeNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtManagementGroupScopeNextAsync(this IDeploymentOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtManagementGroupScopeNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListAtSubscriptionScopeNext(this IDeploymentOperations operations, string nextPageLink) + { + return operations.ListAtSubscriptionScopeNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtSubscriptionScopeNextAsync(this IDeploymentOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtSubscriptionScopeNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IDeploymentOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IDeploymentOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DeploymentScriptsClient.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DeploymentScriptsClient.cs new file mode 100644 index 000000000000..b1e7a13ec521 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DeploymentScriptsClient.cs @@ -0,0 +1,363 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + + /// + /// The APIs listed in this specification can be used to manage Deployment + /// Scripts resource through the Azure Resource Manager. + /// + public partial class DeploymentScriptsClient : ServiceClient, IDeploymentScriptsClient, IAzureClient + { + /// + /// The base URI of the service. + /// + public System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + public JsonSerializerSettings SerializationSettings { get; private set; } + + /// + /// Gets or sets json deserialization settings. + /// + public JsonSerializerSettings DeserializationSettings { get; private set; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + public ServiceClientCredentials Credentials { get; private set; } + + /// + /// Subscription Id which forms part of the URI for every service call. + /// + public string SubscriptionId { get; set; } + + /// + /// Client Api version. + /// + public string ApiVersion { get; private set; } + + /// + /// The preferred language for the response. + /// + public string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default value is + /// 30. + /// + public int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. When set to + /// true a unique x-ms-client-request-id value is generated and included in + /// each request. Default is true. + /// + public bool? GenerateClientRequestId { get; set; } + + /// + /// Gets the IDeploymentScriptsOperations. + /// + public virtual IDeploymentScriptsOperations DeploymentScripts { get; private set; } + + /// + /// Initializes a new instance of the DeploymentScriptsClient class. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling DeploymentScriptsClient.Dispose(). False: will not dispose provided httpClient + protected DeploymentScriptsClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient) + { + Initialize(); + } + + /// + /// Initializes a new instance of the DeploymentScriptsClient class. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected DeploymentScriptsClient(params DelegatingHandler[] handlers) : base(handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the DeploymentScriptsClient class. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected DeploymentScriptsClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the DeploymentScriptsClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected DeploymentScriptsClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the DeploymentScriptsClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected DeploymentScriptsClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the DeploymentScriptsClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public DeploymentScriptsClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the DeploymentScriptsClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling DeploymentScriptsClient.Dispose(). False: will not dispose provided httpClient + /// + /// Thrown when a required parameter is null + /// + public DeploymentScriptsClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the DeploymentScriptsClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public DeploymentScriptsClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the DeploymentScriptsClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public DeploymentScriptsClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the DeploymentScriptsClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public DeploymentScriptsClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// An optional partial-method to perform custom initialization. + /// + partial void CustomInitialize(); + /// + /// Initializes client properties. + /// + private void Initialize() + { + DeploymentScripts = new DeploymentScriptsOperations(this); + BaseUri = new System.Uri("https://management.azure.com"); + ApiVersion = "2020-10-01"; + AcceptLanguage = "en-US"; + LongRunningOperationRetryTimeout = 30; + GenerateClientRequestId = true; + SerializationSettings = new JsonSerializerSettings + { + Formatting = Newtonsoft.Json.Formatting.Indented, + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + SerializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings = new JsonSerializerSettings + { + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("kind")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("kind")); + CustomInitialize(); + DeserializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DeploymentScriptsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DeploymentScriptsOperations.cs new file mode 100644 index 000000000000..122afdc920c3 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DeploymentScriptsOperations.cs @@ -0,0 +1,2095 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DeploymentScriptsOperations operations. + /// + internal partial class DeploymentScriptsOperations : IServiceOperations, IDeploymentScriptsOperations + { + /// + /// Initializes a new instance of the DeploymentScriptsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal DeploymentScriptsOperations(DeploymentScriptsClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the DeploymentScriptsClient + /// + public DeploymentScriptsClient Client { get; private set; } + + /// + /// Creates a deployment script. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + /// + /// Deployment script supplied to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string scriptName, DeploymentScript deploymentScript, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, scriptName, deploymentScript, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates deployment script tags with specified values. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + /// + /// Deployment script resource with the tags to be updated. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string scriptName, DeploymentScriptUpdateParameter deploymentScript = default(DeploymentScriptUpdateParameter), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (scriptName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scriptName"); + } + if (scriptName != null) + { + if (scriptName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "scriptName", 90); + } + if (scriptName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "scriptName", 1); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("scriptName", scriptName); + tracingParameters.Add("deploymentScript", deploymentScript); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentScripts/{scriptName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{scriptName}", System.Uri.EscapeDataString(scriptName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(deploymentScript != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(deploymentScript, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new DeploymentScriptsErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + DeploymentScriptsError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a deployment script with a given name. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string scriptName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (scriptName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scriptName"); + } + if (scriptName != null) + { + if (scriptName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "scriptName", 90); + } + if (scriptName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "scriptName", 1); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("scriptName", scriptName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentScripts/{scriptName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{scriptName}", System.Uri.EscapeDataString(scriptName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new DeploymentScriptsErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + DeploymentScriptsError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a deployment script. When operation completes, status code 200 + /// returned without content. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string scriptName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (scriptName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scriptName"); + } + if (scriptName != null) + { + if (scriptName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "scriptName", 90); + } + if (scriptName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "scriptName", 1); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("scriptName", scriptName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentScripts/{scriptName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{scriptName}", System.Uri.EscapeDataString(scriptName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new DeploymentScriptsErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + DeploymentScriptsError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all deployment scripts for a given subscription. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListBySubscriptionWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListBySubscription", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentScripts").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new DeploymentScriptsErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + DeploymentScriptsError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets deployment script logs for a given deployment script name. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetLogsWithHttpMessagesAsync(string resourceGroupName, string scriptName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (scriptName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scriptName"); + } + if (scriptName != null) + { + if (scriptName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "scriptName", 90); + } + if (scriptName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "scriptName", 1); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("scriptName", scriptName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetLogs", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentScripts/{scriptName}/logs").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{scriptName}", System.Uri.EscapeDataString(scriptName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new DeploymentScriptsErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + DeploymentScriptsError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets deployment script logs for a given deployment script name. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + /// + /// The number of lines to show from the tail of the deployment script log. + /// Valid value is a positive number up to 1000. If 'tail' is not provided, all + /// available logs are shown up to container instance log capacity of 4mb. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetLogsDefaultWithHttpMessagesAsync(string resourceGroupName, string scriptName, int? tail = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (scriptName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scriptName"); + } + if (scriptName != null) + { + if (scriptName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "scriptName", 90); + } + if (scriptName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "scriptName", 1); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("scriptName", scriptName); + tracingParameters.Add("tail", tail); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetLogsDefault", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentScripts/{scriptName}/logs/default").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{scriptName}", System.Uri.EscapeDataString(scriptName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (tail != null) + { + _queryParameters.Add(string.Format("tail={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(tail, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new DeploymentScriptsErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + DeploymentScriptsError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists deployments scripts. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentScripts").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new DeploymentScriptsErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + DeploymentScriptsError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates a deployment script. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + /// + /// Deployment script supplied to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string scriptName, DeploymentScript deploymentScript, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (scriptName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scriptName"); + } + if (scriptName != null) + { + if (scriptName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "scriptName", 90); + } + if (scriptName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "scriptName", 1); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (deploymentScript == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentScript"); + } + if (deploymentScript != null) + { + deploymentScript.Validate(); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("scriptName", scriptName); + tracingParameters.Add("deploymentScript", deploymentScript); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentScripts/{scriptName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{scriptName}", System.Uri.EscapeDataString(scriptName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(deploymentScript != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(deploymentScript, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new DeploymentScriptsErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + DeploymentScriptsError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all deployment scripts for a given subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListBySubscriptionNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new DeploymentScriptsErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + DeploymentScriptsError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists deployments scripts. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new DeploymentScriptsErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + DeploymentScriptsError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DeploymentScriptsOperationsExtensions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DeploymentScriptsOperationsExtensions.cs new file mode 100644 index 000000000000..f9a22328b240 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DeploymentScriptsOperationsExtensions.cs @@ -0,0 +1,462 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for DeploymentScriptsOperations. + /// + public static partial class DeploymentScriptsOperationsExtensions + { + /// + /// Creates a deployment script. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + /// + /// Deployment script supplied to the operation. + /// + public static DeploymentScript Create(this IDeploymentScriptsOperations operations, string resourceGroupName, string scriptName, DeploymentScript deploymentScript) + { + return operations.CreateAsync(resourceGroupName, scriptName, deploymentScript).GetAwaiter().GetResult(); + } + + /// + /// Creates a deployment script. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + /// + /// Deployment script supplied to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task CreateAsync(this IDeploymentScriptsOperations operations, string resourceGroupName, string scriptName, DeploymentScript deploymentScript, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, scriptName, deploymentScript, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates deployment script tags with specified values. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + /// + /// Deployment script resource with the tags to be updated. + /// + public static DeploymentScript Update(this IDeploymentScriptsOperations operations, string resourceGroupName, string scriptName, DeploymentScriptUpdateParameter deploymentScript = default(DeploymentScriptUpdateParameter)) + { + return operations.UpdateAsync(resourceGroupName, scriptName, deploymentScript).GetAwaiter().GetResult(); + } + + /// + /// Updates deployment script tags with specified values. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + /// + /// Deployment script resource with the tags to be updated. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IDeploymentScriptsOperations operations, string resourceGroupName, string scriptName, DeploymentScriptUpdateParameter deploymentScript = default(DeploymentScriptUpdateParameter), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, scriptName, deploymentScript, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a deployment script with a given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + public static DeploymentScript Get(this IDeploymentScriptsOperations operations, string resourceGroupName, string scriptName) + { + return operations.GetAsync(resourceGroupName, scriptName).GetAwaiter().GetResult(); + } + + /// + /// Gets a deployment script with a given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IDeploymentScriptsOperations operations, string resourceGroupName, string scriptName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, scriptName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a deployment script. When operation completes, status code 200 + /// returned without content. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + public static void Delete(this IDeploymentScriptsOperations operations, string resourceGroupName, string scriptName) + { + operations.DeleteAsync(resourceGroupName, scriptName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a deployment script. When operation completes, status code 200 + /// returned without content. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IDeploymentScriptsOperations operations, string resourceGroupName, string scriptName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, scriptName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Lists all deployment scripts for a given subscription. + /// + /// + /// The operations group for this extension method. + /// + public static IPage ListBySubscription(this IDeploymentScriptsOperations operations) + { + return operations.ListBySubscriptionAsync().GetAwaiter().GetResult(); + } + + /// + /// Lists all deployment scripts for a given subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListBySubscriptionAsync(this IDeploymentScriptsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListBySubscriptionWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets deployment script logs for a given deployment script name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + public static ScriptLogsList GetLogs(this IDeploymentScriptsOperations operations, string resourceGroupName, string scriptName) + { + return operations.GetLogsAsync(resourceGroupName, scriptName).GetAwaiter().GetResult(); + } + + /// + /// Gets deployment script logs for a given deployment script name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + /// + /// The cancellation token. + /// + public static async Task GetLogsAsync(this IDeploymentScriptsOperations operations, string resourceGroupName, string scriptName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetLogsWithHttpMessagesAsync(resourceGroupName, scriptName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets deployment script logs for a given deployment script name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + /// + /// The number of lines to show from the tail of the deployment script log. + /// Valid value is a positive number up to 1000. If 'tail' is not provided, all + /// available logs are shown up to container instance log capacity of 4mb. + /// + public static ScriptLog GetLogsDefault(this IDeploymentScriptsOperations operations, string resourceGroupName, string scriptName, int? tail = default(int?)) + { + return operations.GetLogsDefaultAsync(resourceGroupName, scriptName, tail).GetAwaiter().GetResult(); + } + + /// + /// Gets deployment script logs for a given deployment script name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + /// + /// The number of lines to show from the tail of the deployment script log. + /// Valid value is a positive number up to 1000. If 'tail' is not provided, all + /// available logs are shown up to container instance log capacity of 4mb. + /// + /// + /// The cancellation token. + /// + public static async Task GetLogsDefaultAsync(this IDeploymentScriptsOperations operations, string resourceGroupName, string scriptName, int? tail = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetLogsDefaultWithHttpMessagesAsync(resourceGroupName, scriptName, tail, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists deployments scripts. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + public static IPage ListByResourceGroup(this IDeploymentScriptsOperations operations, string resourceGroupName) + { + return operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Lists deployments scripts. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupAsync(this IDeploymentScriptsOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates a deployment script. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + /// + /// Deployment script supplied to the operation. + /// + public static DeploymentScript BeginCreate(this IDeploymentScriptsOperations operations, string resourceGroupName, string scriptName, DeploymentScript deploymentScript) + { + return operations.BeginCreateAsync(resourceGroupName, scriptName, deploymentScript).GetAwaiter().GetResult(); + } + + /// + /// Creates a deployment script. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + /// + /// Deployment script supplied to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateAsync(this IDeploymentScriptsOperations operations, string resourceGroupName, string scriptName, DeploymentScript deploymentScript, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, scriptName, deploymentScript, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all deployment scripts for a given subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListBySubscriptionNext(this IDeploymentScriptsOperations operations, string nextPageLink) + { + return operations.ListBySubscriptionNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all deployment scripts for a given subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListBySubscriptionNextAsync(this IDeploymentScriptsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListBySubscriptionNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists deployments scripts. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByResourceGroupNext(this IDeploymentScriptsOperations operations, string nextPageLink) + { + return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists deployments scripts. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupNextAsync(this IDeploymentScriptsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DeploymentsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DeploymentsOperations.cs new file mode 100644 index 000000000000..264aae05622e --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DeploymentsOperations.cs @@ -0,0 +1,11093 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DeploymentsOperations operations. + /// + internal partial class DeploymentsOperations : IServiceOperations, IDeploymentsOperations + { + /// + /// Initializes a new instance of the DeploymentsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal DeploymentsOperations(ResourceManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the ResourceManagementClient + /// + public ResourceManagementClient Client { get; private set; } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. Deleting + /// a template deployment removes the associated deployment operations. 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 resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteAtScopeWithHttpMessagesAsync(string scope, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteAtScopeWithHttpMessagesAsync(scope, deploymentName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Checks whether the deployment exists. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CheckExistenceAtScopeWithHttpMessagesAsync(string scope, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("scope", scope); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CheckExistenceAtScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Resources/deployments/{deploymentName}").ToString(); + _url = _url.Replace("{scope}", scope); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("HEAD"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 204 && (int)_statusCode != 404) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + _result.Body = _statusCode == System.Net.HttpStatusCode.NoContent; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deploys resources at a given scope. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateAtScopeWithHttpMessagesAsync(string scope, string deploymentName, Deployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateAtScopeWithHttpMessagesAsync(scope, deploymentName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a deployment. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetAtScopeWithHttpMessagesAsync(string scope, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("scope", scope); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetAtScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Resources/deployments/{deploymentName}").ToString(); + _url = _url.Replace("{scope}", scope); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Cancels a currently running template deployment. + /// + /// + /// 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 resources partially deployed. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task CancelAtScopeWithHttpMessagesAsync(string scope, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("scope", scope); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CancelAtScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel").ToString(); + _url = _url.Replace("{scope}", scope); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> ValidateAtScopeWithHttpMessagesAsync(string scope, string deploymentName, Deployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginValidateAtScopeWithHttpMessagesAsync(scope, deploymentName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Exports the template used for specified deployment. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> ExportTemplateAtScopeWithHttpMessagesAsync(string scope, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("scope", scope); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ExportTemplateAtScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate").ToString(); + _url = _url.Replace("{scope}", scope); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get all the deployments at the given scope. + /// + /// + /// The resource scope. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtScopeWithHttpMessagesAsync(string scope, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("scope", scope); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Resources/deployments/").ToString(); + _url = _url.Replace("{scope}", scope); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. Deleting + /// a template deployment removes the associated deployment operations. 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 deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteAtTenantScopeWithHttpMessagesAsync(string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteAtTenantScopeWithHttpMessagesAsync(deploymentName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Checks whether the deployment exists. + /// + /// + /// The name of the deployment. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CheckExistenceAtTenantScopeWithHttpMessagesAsync(string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CheckExistenceAtTenantScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Resources/deployments/{deploymentName}").ToString(); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("HEAD"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 204 && (int)_statusCode != 404) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + _result.Body = _statusCode == System.Net.HttpStatusCode.NoContent; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deploys resources at tenant scope. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateAtTenantScopeWithHttpMessagesAsync(string deploymentName, ScopedDeployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateAtTenantScopeWithHttpMessagesAsync(deploymentName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a deployment. + /// + /// + /// The name of the deployment. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetAtTenantScopeWithHttpMessagesAsync(string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetAtTenantScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Resources/deployments/{deploymentName}").ToString(); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Cancels a currently running template deployment. + /// + /// + /// 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 resources partially deployed. + /// + /// + /// The name of the deployment. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task CancelAtTenantScopeWithHttpMessagesAsync(string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CancelAtTenantScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Resources/deployments/{deploymentName}/cancel").ToString(); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> ValidateAtTenantScopeWithHttpMessagesAsync(string deploymentName, ScopedDeployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginValidateAtTenantScopeWithHttpMessagesAsync(deploymentName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Returns changes that will be made by the deployment if executed at the + /// scope of the tenant group. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> WhatIfAtTenantScopeWithHttpMessagesAsync(string deploymentName, ScopedDeploymentWhatIf parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginWhatIfAtTenantScopeWithHttpMessagesAsync(deploymentName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Exports the template used for specified deployment. + /// + /// + /// The name of the deployment. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> ExportTemplateAtTenantScopeWithHttpMessagesAsync(string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ExportTemplateAtTenantScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate").ToString(); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get all the deployments at the tenant scope. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtTenantScopeWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtTenantScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Resources/deployments/").ToString(); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. Deleting + /// a template deployment removes the associated deployment operations. 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 management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteAtManagementGroupScopeWithHttpMessagesAsync(groupId, deploymentName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Checks whether the deployment exists. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CheckExistenceAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (groupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "groupId"); + } + if (groupId != null) + { + if (groupId.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "groupId", 90); + } + if (groupId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "groupId", 1); + } + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("groupId", groupId); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CheckExistenceAtManagementGroupScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}").ToString(); + _url = _url.Replace("{groupId}", System.Uri.EscapeDataString(groupId)); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("HEAD"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 204 && (int)_statusCode != 404) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + _result.Body = _statusCode == System.Net.HttpStatusCode.NoContent; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deploys resources at management group scope. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, ScopedDeployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateAtManagementGroupScopeWithHttpMessagesAsync(groupId, deploymentName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a deployment. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (groupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "groupId"); + } + if (groupId != null) + { + if (groupId.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "groupId", 90); + } + if (groupId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "groupId", 1); + } + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("groupId", groupId); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetAtManagementGroupScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}").ToString(); + _url = _url.Replace("{groupId}", System.Uri.EscapeDataString(groupId)); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Cancels a currently running template deployment. + /// + /// + /// 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 resources partially deployed. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task CancelAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (groupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "groupId"); + } + if (groupId != null) + { + if (groupId.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "groupId", 90); + } + if (groupId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "groupId", 1); + } + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("groupId", groupId); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CancelAtManagementGroupScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel").ToString(); + _url = _url.Replace("{groupId}", System.Uri.EscapeDataString(groupId)); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> ValidateAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, ScopedDeployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginValidateAtManagementGroupScopeWithHttpMessagesAsync(groupId, deploymentName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Returns changes that will be made by the deployment if executed at the + /// scope of the management group. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> WhatIfAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, ScopedDeploymentWhatIf parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginWhatIfAtManagementGroupScopeWithHttpMessagesAsync(groupId, deploymentName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Exports the template used for specified deployment. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> ExportTemplateAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (groupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "groupId"); + } + if (groupId != null) + { + if (groupId.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "groupId", 90); + } + if (groupId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "groupId", 1); + } + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("groupId", groupId); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ExportTemplateAtManagementGroupScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate").ToString(); + _url = _url.Replace("{groupId}", System.Uri.EscapeDataString(groupId)); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get all the deployments for a management group. + /// + /// + /// The management group ID. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtManagementGroupScopeWithHttpMessagesAsync(string groupId, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (groupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "groupId"); + } + if (groupId != null) + { + if (groupId.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "groupId", 90); + } + if (groupId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "groupId", 1); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("groupId", groupId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtManagementGroupScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/").ToString(); + _url = _url.Replace("{groupId}", System.Uri.EscapeDataString(groupId)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. Deleting + /// a template deployment removes the associated deployment operations. 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 deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteAtSubscriptionScopeWithHttpMessagesAsync(deploymentName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Checks whether the deployment exists. + /// + /// + /// The name of the deployment. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CheckExistenceAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CheckExistenceAtSubscriptionScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}").ToString(); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("HEAD"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 204 && (int)_statusCode != 404) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + _result.Body = _statusCode == System.Net.HttpStatusCode.NoContent; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deploys resources at subscription scope. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, Deployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateAtSubscriptionScopeWithHttpMessagesAsync(deploymentName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a deployment. + /// + /// + /// The name of the deployment. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetAtSubscriptionScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}").ToString(); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Cancels a currently running template deployment. + /// + /// + /// 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 resources partially deployed. + /// + /// + /// The name of the deployment. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task CancelAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CancelAtSubscriptionScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel").ToString(); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> ValidateAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, Deployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginValidateAtSubscriptionScopeWithHttpMessagesAsync(deploymentName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Returns changes that will be made by the deployment if executed at the + /// scope of the subscription. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to What If. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> WhatIfAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, DeploymentWhatIf parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginWhatIfAtSubscriptionScopeWithHttpMessagesAsync(deploymentName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Exports the template used for specified deployment. + /// + /// + /// The name of the deployment. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> ExportTemplateAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ExportTemplateAtSubscriptionScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate").ToString(); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get all the deployments for a subscription. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtSubscriptionScopeWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtSubscriptionScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// 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. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, deploymentName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).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. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CheckExistenceWithHttpMessagesAsync(string resourceGroupName, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CheckExistence", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("HEAD"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 204 && (int)_statusCode != 404) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + _result.Body = _statusCode == System.Net.HttpStatusCode.NoContent; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deploys resources to a resource group. + /// + /// + /// 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 headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string deploymentName, Deployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, deploymentName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a deployment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the deployment. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Cancels a currently running template deployment. + /// + /// + /// 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. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task CancelWithHttpMessagesAsync(string resourceGroupName, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Cancel", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// 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 headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> ValidateWithHttpMessagesAsync(string resourceGroupName, string deploymentName, Deployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginValidateWithHttpMessagesAsync(resourceGroupName, deploymentName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Returns changes that will be made by the deployment if executed at the + /// scope of the resource group. + /// + /// + /// 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 headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> WhatIfWithHttpMessagesAsync(string resourceGroupName, string deploymentName, DeploymentWhatIf parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginWhatIfWithHttpMessagesAsync(resourceGroupName, deploymentName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).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. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> ExportTemplateWithHttpMessagesAsync(string resourceGroupName, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ExportTemplate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/exportTemplate").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get all the deployments for a resource group. + /// + /// + /// The name of the resource group with the deployments to get. The name is + /// case insensitive. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Calculate the hash of the given template. + /// + /// + /// The template provided to calculate hash. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CalculateTemplateHashWithHttpMessagesAsync(object template, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (template == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "template"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("template", template); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CalculateTemplateHash", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Resources/calculateTemplateHash").ToString(); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(template != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(template, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. Deleting + /// a template deployment removes the associated deployment operations. 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 resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginDeleteAtScopeWithHttpMessagesAsync(string scope, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("scope", scope); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDeleteAtScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Resources/deployments/{deploymentName}").ToString(); + _url = _url.Replace("{scope}", scope); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deploys resources at a given scope. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginCreateOrUpdateAtScopeWithHttpMessagesAsync(string scope, string deploymentName, Deployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("scope", scope); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdateAtScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Resources/deployments/{deploymentName}").ToString(); + _url = _url.Replace("{scope}", scope); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginValidateAtScopeWithHttpMessagesAsync(string scope, string deploymentName, Deployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("scope", scope); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginValidateAtScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/validate").ToString(); + _url = _url.Replace("{scope}", scope); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 400) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 400) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. Deleting + /// a template deployment removes the associated deployment operations. 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 deployment. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginDeleteAtTenantScopeWithHttpMessagesAsync(string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDeleteAtTenantScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Resources/deployments/{deploymentName}").ToString(); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deploys resources at tenant scope. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginCreateOrUpdateAtTenantScopeWithHttpMessagesAsync(string deploymentName, ScopedDeployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdateAtTenantScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Resources/deployments/{deploymentName}").ToString(); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginValidateAtTenantScopeWithHttpMessagesAsync(string deploymentName, ScopedDeployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginValidateAtTenantScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Resources/deployments/{deploymentName}/validate").ToString(); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 400) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 400) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Returns changes that will be made by the deployment if executed at the + /// scope of the tenant group. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginWhatIfAtTenantScopeWithHttpMessagesAsync(string deploymentName, ScopedDeploymentWhatIf parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginWhatIfAtTenantScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Resources/deployments/{deploymentName}/whatIf").ToString(); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. Deleting + /// a template deployment removes the associated deployment operations. 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 management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginDeleteAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (groupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "groupId"); + } + if (groupId != null) + { + if (groupId.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "groupId", 90); + } + if (groupId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "groupId", 1); + } + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("groupId", groupId); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDeleteAtManagementGroupScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}").ToString(); + _url = _url.Replace("{groupId}", System.Uri.EscapeDataString(groupId)); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deploys resources at management group scope. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginCreateOrUpdateAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, ScopedDeployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (groupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "groupId"); + } + if (groupId != null) + { + if (groupId.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "groupId", 90); + } + if (groupId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "groupId", 1); + } + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("groupId", groupId); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdateAtManagementGroupScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}").ToString(); + _url = _url.Replace("{groupId}", System.Uri.EscapeDataString(groupId)); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginValidateAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, ScopedDeployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (groupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "groupId"); + } + if (groupId != null) + { + if (groupId.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "groupId", 90); + } + if (groupId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "groupId", 1); + } + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("groupId", groupId); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginValidateAtManagementGroupScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate").ToString(); + _url = _url.Replace("{groupId}", System.Uri.EscapeDataString(groupId)); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 400) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 400) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Returns changes that will be made by the deployment if executed at the + /// scope of the management group. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginWhatIfAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, ScopedDeploymentWhatIf parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (groupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "groupId"); + } + if (groupId != null) + { + if (groupId.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "groupId", 90); + } + if (groupId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "groupId", 1); + } + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("groupId", groupId); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginWhatIfAtManagementGroupScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf").ToString(); + _url = _url.Replace("{groupId}", System.Uri.EscapeDataString(groupId)); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. Deleting + /// a template deployment removes the associated deployment operations. 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 deployment. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginDeleteAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDeleteAtSubscriptionScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}").ToString(); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deploys resources at subscription scope. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginCreateOrUpdateAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, Deployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdateAtSubscriptionScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}").ToString(); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginValidateAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, Deployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginValidateAtSubscriptionScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/validate").ToString(); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 400) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 400) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Returns changes that will be made by the deployment if executed at the + /// scope of the subscription. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to What If. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginWhatIfAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, DeploymentWhatIf parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginWhatIfAtSubscriptionScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf").ToString(); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// 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. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deploys resources to a resource group. + /// + /// + /// 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. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string deploymentName, Deployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// 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. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginValidateWithHttpMessagesAsync(string resourceGroupName, string deploymentName, Deployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginValidate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/validate").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 400) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 400) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Returns changes that will be made by the deployment if executed at the + /// scope of the resource group. + /// + /// + /// 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. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginWhatIfWithHttpMessagesAsync(string resourceGroupName, string deploymentName, DeploymentWhatIf parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (deploymentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "deploymentName"); + } + if (deploymentName != null) + { + if (deploymentName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "deploymentName", 64); + } + if (deploymentName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "deploymentName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(deploymentName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "deploymentName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("deploymentName", deploymentName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginWhatIf", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{deploymentName}", System.Uri.EscapeDataString(deploymentName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get all the deployments at the given scope. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtScopeNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtScopeNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get all the deployments at the tenant scope. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtTenantScopeNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtTenantScopeNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get all the deployments for a management group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtManagementGroupScopeNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtManagementGroupScopeNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get all the deployments for a subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtSubscriptionScopeNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtSubscriptionScopeNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get all the deployments for a resource group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DeploymentsOperationsExtensions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DeploymentsOperationsExtensions.cs new file mode 100644 index 000000000000..20b3ac7e7468 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/DeploymentsOperationsExtensions.cs @@ -0,0 +1,3137 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for DeploymentsOperations. + /// + public static partial class DeploymentsOperationsExtensions + { + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. Deleting + /// a template deployment removes the associated deployment operations. 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 operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + public static void DeleteAtScope(this IDeploymentsOperations operations, string scope, string deploymentName) + { + operations.DeleteAtScopeAsync(scope, deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. Deleting + /// a template deployment removes the associated deployment operations. 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 operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAtScopeAsync(this IDeploymentsOperations operations, string scope, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteAtScopeWithHttpMessagesAsync(scope, deploymentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Checks whether the deployment exists. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + public static bool CheckExistenceAtScope(this IDeploymentsOperations operations, string scope, string deploymentName) + { + return operations.CheckExistenceAtScopeAsync(scope, deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Checks whether the deployment exists. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task CheckExistenceAtScopeAsync(this IDeploymentsOperations operations, string scope, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CheckExistenceAtScopeWithHttpMessagesAsync(scope, deploymentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deploys resources at a given scope. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + public static DeploymentExtended CreateOrUpdateAtScope(this IDeploymentsOperations operations, string scope, string deploymentName, Deployment parameters) + { + return operations.CreateOrUpdateAtScopeAsync(scope, deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Deploys resources at a given scope. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAtScopeAsync(this IDeploymentsOperations operations, string scope, string deploymentName, Deployment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateAtScopeWithHttpMessagesAsync(scope, deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + public static DeploymentExtended GetAtScope(this IDeploymentsOperations operations, string scope, string deploymentName) + { + return operations.GetAtScopeAsync(scope, deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Gets a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task GetAtScopeAsync(this IDeploymentsOperations operations, string scope, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetAtScopeWithHttpMessagesAsync(scope, deploymentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Cancels a currently running template deployment. + /// + /// + /// 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 resources partially deployed. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + public static void CancelAtScope(this IDeploymentsOperations operations, string scope, string deploymentName) + { + operations.CancelAtScopeAsync(scope, deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Cancels a currently running template deployment. + /// + /// + /// 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 resources partially deployed. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task CancelAtScopeAsync(this IDeploymentsOperations operations, string scope, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.CancelAtScopeWithHttpMessagesAsync(scope, deploymentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + public static DeploymentValidateResult ValidateAtScope(this IDeploymentsOperations operations, string scope, string deploymentName, Deployment parameters) + { + return operations.ValidateAtScopeAsync(scope, deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The cancellation token. + /// + public static async Task ValidateAtScopeAsync(this IDeploymentsOperations operations, string scope, string deploymentName, Deployment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ValidateAtScopeWithHttpMessagesAsync(scope, deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Exports the template used for specified deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + public static DeploymentExportResult ExportTemplateAtScope(this IDeploymentsOperations operations, string scope, string deploymentName) + { + return operations.ExportTemplateAtScopeAsync(scope, deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Exports the template used for specified deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task ExportTemplateAtScopeAsync(this IDeploymentsOperations operations, string scope, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ExportTemplateAtScopeWithHttpMessagesAsync(scope, deploymentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get all the deployments at the given scope. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage ListAtScope(this IDeploymentsOperations operations, string scope, ODataQuery odataQuery = default(ODataQuery)) + { + return operations.ListAtScopeAsync(scope, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get all the deployments at the given scope. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtScopeAsync(this IDeploymentsOperations operations, string scope, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtScopeWithHttpMessagesAsync(scope, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. Deleting + /// a template deployment removes the associated deployment operations. 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 operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + public static void DeleteAtTenantScope(this IDeploymentsOperations operations, string deploymentName) + { + operations.DeleteAtTenantScopeAsync(deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. Deleting + /// a template deployment removes the associated deployment operations. 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 operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAtTenantScopeAsync(this IDeploymentsOperations operations, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteAtTenantScopeWithHttpMessagesAsync(deploymentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Checks whether the deployment exists. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + public static bool CheckExistenceAtTenantScope(this IDeploymentsOperations operations, string deploymentName) + { + return operations.CheckExistenceAtTenantScopeAsync(deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Checks whether the deployment exists. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task CheckExistenceAtTenantScopeAsync(this IDeploymentsOperations operations, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CheckExistenceAtTenantScopeWithHttpMessagesAsync(deploymentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deploys resources at tenant scope. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + public static DeploymentExtended CreateOrUpdateAtTenantScope(this IDeploymentsOperations operations, string deploymentName, ScopedDeployment parameters) + { + return operations.CreateOrUpdateAtTenantScopeAsync(deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Deploys resources at tenant scope. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAtTenantScopeAsync(this IDeploymentsOperations operations, string deploymentName, ScopedDeployment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateAtTenantScopeWithHttpMessagesAsync(deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + public static DeploymentExtended GetAtTenantScope(this IDeploymentsOperations operations, string deploymentName) + { + return operations.GetAtTenantScopeAsync(deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Gets a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task GetAtTenantScopeAsync(this IDeploymentsOperations operations, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetAtTenantScopeWithHttpMessagesAsync(deploymentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Cancels a currently running template deployment. + /// + /// + /// 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 resources partially deployed. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + public static void CancelAtTenantScope(this IDeploymentsOperations operations, string deploymentName) + { + operations.CancelAtTenantScopeAsync(deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Cancels a currently running template deployment. + /// + /// + /// 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 resources partially deployed. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task CancelAtTenantScopeAsync(this IDeploymentsOperations operations, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.CancelAtTenantScopeWithHttpMessagesAsync(deploymentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + public static DeploymentValidateResult ValidateAtTenantScope(this IDeploymentsOperations operations, string deploymentName, ScopedDeployment parameters) + { + return operations.ValidateAtTenantScopeAsync(deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The cancellation token. + /// + public static async Task ValidateAtTenantScopeAsync(this IDeploymentsOperations operations, string deploymentName, ScopedDeployment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ValidateAtTenantScopeWithHttpMessagesAsync(deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Returns changes that will be made by the deployment if executed at the + /// scope of the tenant group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + public static WhatIfOperationResult WhatIfAtTenantScope(this IDeploymentsOperations operations, string deploymentName, ScopedDeploymentWhatIf parameters) + { + return operations.WhatIfAtTenantScopeAsync(deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Returns changes that will be made by the deployment if executed at the + /// scope of the tenant group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The cancellation token. + /// + public static async Task WhatIfAtTenantScopeAsync(this IDeploymentsOperations operations, string deploymentName, ScopedDeploymentWhatIf parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.WhatIfAtTenantScopeWithHttpMessagesAsync(deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Exports the template used for specified deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + public static DeploymentExportResult ExportTemplateAtTenantScope(this IDeploymentsOperations operations, string deploymentName) + { + return operations.ExportTemplateAtTenantScopeAsync(deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Exports the template used for specified deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task ExportTemplateAtTenantScopeAsync(this IDeploymentsOperations operations, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ExportTemplateAtTenantScopeWithHttpMessagesAsync(deploymentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get all the deployments at the tenant scope. + /// + /// + /// The operations group for this extension method. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage ListAtTenantScope(this IDeploymentsOperations operations, ODataQuery odataQuery = default(ODataQuery)) + { + return operations.ListAtTenantScopeAsync(odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get all the deployments at the tenant scope. + /// + /// + /// The operations group for this extension method. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtTenantScopeAsync(this IDeploymentsOperations operations, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtTenantScopeWithHttpMessagesAsync(odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. Deleting + /// a template deployment removes the associated deployment operations. 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 operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + public static void DeleteAtManagementGroupScope(this IDeploymentsOperations operations, string groupId, string deploymentName) + { + operations.DeleteAtManagementGroupScopeAsync(groupId, deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. Deleting + /// a template deployment removes the associated deployment operations. 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 operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAtManagementGroupScopeAsync(this IDeploymentsOperations operations, string groupId, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteAtManagementGroupScopeWithHttpMessagesAsync(groupId, deploymentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Checks whether the deployment exists. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + public static bool CheckExistenceAtManagementGroupScope(this IDeploymentsOperations operations, string groupId, string deploymentName) + { + return operations.CheckExistenceAtManagementGroupScopeAsync(groupId, deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Checks whether the deployment exists. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task CheckExistenceAtManagementGroupScopeAsync(this IDeploymentsOperations operations, string groupId, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CheckExistenceAtManagementGroupScopeWithHttpMessagesAsync(groupId, deploymentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deploys resources at management group scope. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + public static DeploymentExtended CreateOrUpdateAtManagementGroupScope(this IDeploymentsOperations operations, string groupId, string deploymentName, ScopedDeployment parameters) + { + return operations.CreateOrUpdateAtManagementGroupScopeAsync(groupId, deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Deploys resources at management group scope. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAtManagementGroupScopeAsync(this IDeploymentsOperations operations, string groupId, string deploymentName, ScopedDeployment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateAtManagementGroupScopeWithHttpMessagesAsync(groupId, deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + public static DeploymentExtended GetAtManagementGroupScope(this IDeploymentsOperations operations, string groupId, string deploymentName) + { + return operations.GetAtManagementGroupScopeAsync(groupId, deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Gets a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task GetAtManagementGroupScopeAsync(this IDeploymentsOperations operations, string groupId, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetAtManagementGroupScopeWithHttpMessagesAsync(groupId, deploymentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Cancels a currently running template deployment. + /// + /// + /// 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 resources partially deployed. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + public static void CancelAtManagementGroupScope(this IDeploymentsOperations operations, string groupId, string deploymentName) + { + operations.CancelAtManagementGroupScopeAsync(groupId, deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Cancels a currently running template deployment. + /// + /// + /// 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 resources partially deployed. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task CancelAtManagementGroupScopeAsync(this IDeploymentsOperations operations, string groupId, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.CancelAtManagementGroupScopeWithHttpMessagesAsync(groupId, deploymentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + public static DeploymentValidateResult ValidateAtManagementGroupScope(this IDeploymentsOperations operations, string groupId, string deploymentName, ScopedDeployment parameters) + { + return operations.ValidateAtManagementGroupScopeAsync(groupId, deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The cancellation token. + /// + public static async Task ValidateAtManagementGroupScopeAsync(this IDeploymentsOperations operations, string groupId, string deploymentName, ScopedDeployment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ValidateAtManagementGroupScopeWithHttpMessagesAsync(groupId, deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Returns changes that will be made by the deployment if executed at the + /// scope of the management group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + public static WhatIfOperationResult WhatIfAtManagementGroupScope(this IDeploymentsOperations operations, string groupId, string deploymentName, ScopedDeploymentWhatIf parameters) + { + return operations.WhatIfAtManagementGroupScopeAsync(groupId, deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Returns changes that will be made by the deployment if executed at the + /// scope of the management group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The cancellation token. + /// + public static async Task WhatIfAtManagementGroupScopeAsync(this IDeploymentsOperations operations, string groupId, string deploymentName, ScopedDeploymentWhatIf parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.WhatIfAtManagementGroupScopeWithHttpMessagesAsync(groupId, deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Exports the template used for specified deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + public static DeploymentExportResult ExportTemplateAtManagementGroupScope(this IDeploymentsOperations operations, string groupId, string deploymentName) + { + return operations.ExportTemplateAtManagementGroupScopeAsync(groupId, deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Exports the template used for specified deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task ExportTemplateAtManagementGroupScopeAsync(this IDeploymentsOperations operations, string groupId, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ExportTemplateAtManagementGroupScopeWithHttpMessagesAsync(groupId, deploymentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get all the deployments for a management group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage ListAtManagementGroupScope(this IDeploymentsOperations operations, string groupId, ODataQuery odataQuery = default(ODataQuery)) + { + return operations.ListAtManagementGroupScopeAsync(groupId, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get all the deployments for a management group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtManagementGroupScopeAsync(this IDeploymentsOperations operations, string groupId, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtManagementGroupScopeWithHttpMessagesAsync(groupId, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. Deleting + /// a template deployment removes the associated deployment operations. 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 operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + public static void DeleteAtSubscriptionScope(this IDeploymentsOperations operations, string deploymentName) + { + operations.DeleteAtSubscriptionScopeAsync(deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. Deleting + /// a template deployment removes the associated deployment operations. 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 operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAtSubscriptionScopeAsync(this IDeploymentsOperations operations, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteAtSubscriptionScopeWithHttpMessagesAsync(deploymentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Checks whether the deployment exists. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + public static bool CheckExistenceAtSubscriptionScope(this IDeploymentsOperations operations, string deploymentName) + { + return operations.CheckExistenceAtSubscriptionScopeAsync(deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Checks whether the deployment exists. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task CheckExistenceAtSubscriptionScopeAsync(this IDeploymentsOperations operations, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CheckExistenceAtSubscriptionScopeWithHttpMessagesAsync(deploymentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deploys resources at subscription scope. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + public static DeploymentExtended CreateOrUpdateAtSubscriptionScope(this IDeploymentsOperations operations, string deploymentName, Deployment parameters) + { + return operations.CreateOrUpdateAtSubscriptionScopeAsync(deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Deploys resources at subscription scope. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAtSubscriptionScopeAsync(this IDeploymentsOperations operations, string deploymentName, Deployment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateAtSubscriptionScopeWithHttpMessagesAsync(deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + public static DeploymentExtended GetAtSubscriptionScope(this IDeploymentsOperations operations, string deploymentName) + { + return operations.GetAtSubscriptionScopeAsync(deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Gets a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task GetAtSubscriptionScopeAsync(this IDeploymentsOperations operations, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetAtSubscriptionScopeWithHttpMessagesAsync(deploymentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Cancels a currently running template deployment. + /// + /// + /// 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 resources partially deployed. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + public static void CancelAtSubscriptionScope(this IDeploymentsOperations operations, string deploymentName) + { + operations.CancelAtSubscriptionScopeAsync(deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Cancels a currently running template deployment. + /// + /// + /// 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 resources partially deployed. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task CancelAtSubscriptionScopeAsync(this IDeploymentsOperations operations, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.CancelAtSubscriptionScopeWithHttpMessagesAsync(deploymentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + public static DeploymentValidateResult ValidateAtSubscriptionScope(this IDeploymentsOperations operations, string deploymentName, Deployment parameters) + { + return operations.ValidateAtSubscriptionScopeAsync(deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The cancellation token. + /// + public static async Task ValidateAtSubscriptionScopeAsync(this IDeploymentsOperations operations, string deploymentName, Deployment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ValidateAtSubscriptionScopeWithHttpMessagesAsync(deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Returns changes that will be made by the deployment if executed at the + /// scope of the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to What If. + /// + public static WhatIfOperationResult WhatIfAtSubscriptionScope(this IDeploymentsOperations operations, string deploymentName, DeploymentWhatIf parameters) + { + return operations.WhatIfAtSubscriptionScopeAsync(deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Returns changes that will be made by the deployment if executed at the + /// scope of the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to What If. + /// + /// + /// The cancellation token. + /// + public static async Task WhatIfAtSubscriptionScopeAsync(this IDeploymentsOperations operations, string deploymentName, DeploymentWhatIf parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.WhatIfAtSubscriptionScopeWithHttpMessagesAsync(deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Exports the template used for specified deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + public static DeploymentExportResult ExportTemplateAtSubscriptionScope(this IDeploymentsOperations operations, string deploymentName) + { + return operations.ExportTemplateAtSubscriptionScopeAsync(deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Exports the template used for specified deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task ExportTemplateAtSubscriptionScopeAsync(this IDeploymentsOperations operations, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ExportTemplateAtSubscriptionScopeWithHttpMessagesAsync(deploymentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get all the deployments for a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage ListAtSubscriptionScope(this IDeploymentsOperations operations, ODataQuery odataQuery = default(ODataQuery)) + { + return operations.ListAtSubscriptionScopeAsync(odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get all the deployments for a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtSubscriptionScopeAsync(this IDeploymentsOperations operations, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtSubscriptionScopeWithHttpMessagesAsync(odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// 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 operations group for this extension method. + /// + /// + /// The name of the resource group with the deployment to delete. The name is + /// case insensitive. + /// + /// + /// The name of the deployment. + /// + public static void Delete(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName) + { + operations.DeleteAsync(resourceGroupName, deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// 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 operations group for this extension method. + /// + /// + /// The name of the resource group with the deployment to delete. The name is + /// case insensitive. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, deploymentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Checks whether the deployment exists. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group with the deployment to check. The name is + /// case insensitive. + /// + /// + /// The name of the deployment. + /// + public static bool CheckExistence(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName) + { + return operations.CheckExistenceAsync(resourceGroupName, deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Checks whether the deployment exists. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group with the deployment to check. The name is + /// case insensitive. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task CheckExistenceAsync(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CheckExistenceWithHttpMessagesAsync(resourceGroupName, deploymentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deploys resources to a resource group. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + public static DeploymentExtended CreateOrUpdate(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, Deployment parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Deploys resources to a resource group. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + public static async Task CreateOrUpdateAsync(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, Deployment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the deployment. + /// + public static DeploymentExtended Get(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName) + { + return operations.GetAsync(resourceGroupName, deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Gets a deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, deploymentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Cancels a currently running template deployment. + /// + /// + /// 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 operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the deployment. + /// + public static void Cancel(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName) + { + operations.CancelAsync(resourceGroupName, deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Cancels a currently running template deployment. + /// + /// + /// 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 operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task CancelAsync(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.CancelWithHttpMessagesAsync(resourceGroupName, deploymentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + public static DeploymentValidateResult Validate(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, Deployment parameters) + { + return operations.ValidateAsync(resourceGroupName, deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + public static async Task ValidateAsync(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, Deployment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ValidateWithHttpMessagesAsync(resourceGroupName, deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Returns changes that will be made by the deployment if executed at the + /// scope of the resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + public static WhatIfOperationResult WhatIf(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, DeploymentWhatIf parameters) + { + return operations.WhatIfAsync(resourceGroupName, deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Returns changes that will be made by the deployment if executed at the + /// scope of the resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + public static async Task WhatIfAsync(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, DeploymentWhatIf parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.WhatIfWithHttpMessagesAsync(resourceGroupName, deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Exports the template used for specified deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the deployment. + /// + public static DeploymentExportResult ExportTemplate(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName) + { + return operations.ExportTemplateAsync(resourceGroupName, deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Exports the template used for specified deployment. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task ExportTemplateAsync(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ExportTemplateWithHttpMessagesAsync(resourceGroupName, deploymentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get all the deployments for a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group with the deployments to get. The name is + /// case insensitive. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage ListByResourceGroup(this IDeploymentsOperations operations, string resourceGroupName, ODataQuery odataQuery = default(ODataQuery)) + { + return operations.ListByResourceGroupAsync(resourceGroupName, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get all the deployments for a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group with the deployments to get. The name is + /// case insensitive. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupAsync(this IDeploymentsOperations operations, string resourceGroupName, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Calculate the hash of the given template. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The template provided to calculate hash. + /// + public static TemplateHashResult CalculateTemplateHash(this IDeploymentsOperations operations, object template) + { + return operations.CalculateTemplateHashAsync(template).GetAwaiter().GetResult(); + } + + /// + /// Calculate the hash of the given template. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The template provided to calculate hash. + /// + /// + /// The cancellation token. + /// + public static async Task CalculateTemplateHashAsync(this IDeploymentsOperations operations, object template, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CalculateTemplateHashWithHttpMessagesAsync(template, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. Deleting + /// a template deployment removes the associated deployment operations. 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 operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + public static void BeginDeleteAtScope(this IDeploymentsOperations operations, string scope, string deploymentName) + { + operations.BeginDeleteAtScopeAsync(scope, deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. Deleting + /// a template deployment removes the associated deployment operations. 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 operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAtScopeAsync(this IDeploymentsOperations operations, string scope, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteAtScopeWithHttpMessagesAsync(scope, deploymentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Deploys resources at a given scope. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + public static DeploymentExtended BeginCreateOrUpdateAtScope(this IDeploymentsOperations operations, string scope, string deploymentName, Deployment parameters) + { + return operations.BeginCreateOrUpdateAtScopeAsync(scope, deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Deploys resources at a given scope. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAtScopeAsync(this IDeploymentsOperations operations, string scope, string deploymentName, Deployment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateAtScopeWithHttpMessagesAsync(scope, deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + public static DeploymentValidateResult BeginValidateAtScope(this IDeploymentsOperations operations, string scope, string deploymentName, Deployment parameters) + { + return operations.BeginValidateAtScopeAsync(scope, deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The cancellation token. + /// + public static async Task BeginValidateAtScopeAsync(this IDeploymentsOperations operations, string scope, string deploymentName, Deployment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginValidateAtScopeWithHttpMessagesAsync(scope, deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. Deleting + /// a template deployment removes the associated deployment operations. 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 operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + public static void BeginDeleteAtTenantScope(this IDeploymentsOperations operations, string deploymentName) + { + operations.BeginDeleteAtTenantScopeAsync(deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. Deleting + /// a template deployment removes the associated deployment operations. 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 operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAtTenantScopeAsync(this IDeploymentsOperations operations, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteAtTenantScopeWithHttpMessagesAsync(deploymentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Deploys resources at tenant scope. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + public static DeploymentExtended BeginCreateOrUpdateAtTenantScope(this IDeploymentsOperations operations, string deploymentName, ScopedDeployment parameters) + { + return operations.BeginCreateOrUpdateAtTenantScopeAsync(deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Deploys resources at tenant scope. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAtTenantScopeAsync(this IDeploymentsOperations operations, string deploymentName, ScopedDeployment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateAtTenantScopeWithHttpMessagesAsync(deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + public static DeploymentValidateResult BeginValidateAtTenantScope(this IDeploymentsOperations operations, string deploymentName, ScopedDeployment parameters) + { + return operations.BeginValidateAtTenantScopeAsync(deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The cancellation token. + /// + public static async Task BeginValidateAtTenantScopeAsync(this IDeploymentsOperations operations, string deploymentName, ScopedDeployment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginValidateAtTenantScopeWithHttpMessagesAsync(deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Returns changes that will be made by the deployment if executed at the + /// scope of the tenant group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + public static WhatIfOperationResult BeginWhatIfAtTenantScope(this IDeploymentsOperations operations, string deploymentName, ScopedDeploymentWhatIf parameters) + { + return operations.BeginWhatIfAtTenantScopeAsync(deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Returns changes that will be made by the deployment if executed at the + /// scope of the tenant group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The cancellation token. + /// + public static async Task BeginWhatIfAtTenantScopeAsync(this IDeploymentsOperations operations, string deploymentName, ScopedDeploymentWhatIf parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginWhatIfAtTenantScopeWithHttpMessagesAsync(deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. Deleting + /// a template deployment removes the associated deployment operations. 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 operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + public static void BeginDeleteAtManagementGroupScope(this IDeploymentsOperations operations, string groupId, string deploymentName) + { + operations.BeginDeleteAtManagementGroupScopeAsync(groupId, deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. Deleting + /// a template deployment removes the associated deployment operations. 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 operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAtManagementGroupScopeAsync(this IDeploymentsOperations operations, string groupId, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteAtManagementGroupScopeWithHttpMessagesAsync(groupId, deploymentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Deploys resources at management group scope. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + public static DeploymentExtended BeginCreateOrUpdateAtManagementGroupScope(this IDeploymentsOperations operations, string groupId, string deploymentName, ScopedDeployment parameters) + { + return operations.BeginCreateOrUpdateAtManagementGroupScopeAsync(groupId, deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Deploys resources at management group scope. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAtManagementGroupScopeAsync(this IDeploymentsOperations operations, string groupId, string deploymentName, ScopedDeployment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateAtManagementGroupScopeWithHttpMessagesAsync(groupId, deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + public static DeploymentValidateResult BeginValidateAtManagementGroupScope(this IDeploymentsOperations operations, string groupId, string deploymentName, ScopedDeployment parameters) + { + return operations.BeginValidateAtManagementGroupScopeAsync(groupId, deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The cancellation token. + /// + public static async Task BeginValidateAtManagementGroupScopeAsync(this IDeploymentsOperations operations, string groupId, string deploymentName, ScopedDeployment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginValidateAtManagementGroupScopeWithHttpMessagesAsync(groupId, deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Returns changes that will be made by the deployment if executed at the + /// scope of the management group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + public static WhatIfOperationResult BeginWhatIfAtManagementGroupScope(this IDeploymentsOperations operations, string groupId, string deploymentName, ScopedDeploymentWhatIf parameters) + { + return operations.BeginWhatIfAtManagementGroupScopeAsync(groupId, deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Returns changes that will be made by the deployment if executed at the + /// scope of the management group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The cancellation token. + /// + public static async Task BeginWhatIfAtManagementGroupScopeAsync(this IDeploymentsOperations operations, string groupId, string deploymentName, ScopedDeploymentWhatIf parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginWhatIfAtManagementGroupScopeWithHttpMessagesAsync(groupId, deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. Deleting + /// a template deployment removes the associated deployment operations. 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 operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + public static void BeginDeleteAtSubscriptionScope(this IDeploymentsOperations operations, string deploymentName) + { + operations.BeginDeleteAtSubscriptionScopeAsync(deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. Deleting + /// a template deployment removes the associated deployment operations. 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 operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAtSubscriptionScopeAsync(this IDeploymentsOperations operations, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteAtSubscriptionScopeWithHttpMessagesAsync(deploymentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Deploys resources at subscription scope. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + public static DeploymentExtended BeginCreateOrUpdateAtSubscriptionScope(this IDeploymentsOperations operations, string deploymentName, Deployment parameters) + { + return operations.BeginCreateOrUpdateAtSubscriptionScopeAsync(deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Deploys resources at subscription scope. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAtSubscriptionScopeAsync(this IDeploymentsOperations operations, string deploymentName, Deployment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateAtSubscriptionScopeWithHttpMessagesAsync(deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + public static DeploymentValidateResult BeginValidateAtSubscriptionScope(this IDeploymentsOperations operations, string deploymentName, Deployment parameters) + { + return operations.BeginValidateAtSubscriptionScopeAsync(deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The cancellation token. + /// + public static async Task BeginValidateAtSubscriptionScopeAsync(this IDeploymentsOperations operations, string deploymentName, Deployment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginValidateAtSubscriptionScopeWithHttpMessagesAsync(deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Returns changes that will be made by the deployment if executed at the + /// scope of the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to What If. + /// + public static WhatIfOperationResult BeginWhatIfAtSubscriptionScope(this IDeploymentsOperations operations, string deploymentName, DeploymentWhatIf parameters) + { + return operations.BeginWhatIfAtSubscriptionScopeAsync(deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Returns changes that will be made by the deployment if executed at the + /// scope of the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to What If. + /// + /// + /// The cancellation token. + /// + public static async Task BeginWhatIfAtSubscriptionScopeAsync(this IDeploymentsOperations operations, string deploymentName, DeploymentWhatIf parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginWhatIfAtSubscriptionScopeWithHttpMessagesAsync(deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// 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 operations group for this extension method. + /// + /// + /// The name of the resource group with the deployment to delete. The name is + /// case insensitive. + /// + /// + /// The name of the deployment. + /// + public static void BeginDelete(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName) + { + operations.BeginDeleteAsync(resourceGroupName, deploymentName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// 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 operations group for this extension method. + /// + /// + /// The name of the resource group with the deployment to delete. The name is + /// case insensitive. + /// + /// + /// The name of the deployment. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, deploymentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Deploys resources to a resource group. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + public static DeploymentExtended BeginCreateOrUpdate(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, Deployment parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Deploys resources to a resource group. + /// + /// + /// You can provide the template and parameters directly in the request or link + /// to JSON files. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + public static async Task BeginCreateOrUpdateAsync(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, Deployment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + public static DeploymentValidateResult BeginValidate(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, Deployment parameters) + { + return operations.BeginValidateAsync(resourceGroupName, deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Validates whether the specified template is syntactically correct and will + /// be accepted by Azure Resource Manager.. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + public static async Task BeginValidateAsync(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, Deployment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginValidateWithHttpMessagesAsync(resourceGroupName, deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Returns changes that will be made by the deployment if executed at the + /// scope of the resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + public static WhatIfOperationResult BeginWhatIf(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, DeploymentWhatIf parameters) + { + return operations.BeginWhatIfAsync(resourceGroupName, deploymentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Returns changes that will be made by the deployment if executed at the + /// scope of the resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + public static async Task BeginWhatIfAsync(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, DeploymentWhatIf parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginWhatIfWithHttpMessagesAsync(resourceGroupName, deploymentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get all the deployments at the given scope. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListAtScopeNext(this IDeploymentsOperations operations, string nextPageLink) + { + return operations.ListAtScopeNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get all the deployments at the given scope. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtScopeNextAsync(this IDeploymentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtScopeNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get all the deployments at the tenant scope. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListAtTenantScopeNext(this IDeploymentsOperations operations, string nextPageLink) + { + return operations.ListAtTenantScopeNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get all the deployments at the tenant scope. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtTenantScopeNextAsync(this IDeploymentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtTenantScopeNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get all the deployments for a management group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListAtManagementGroupScopeNext(this IDeploymentsOperations operations, string nextPageLink) + { + return operations.ListAtManagementGroupScopeNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get all the deployments for a management group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtManagementGroupScopeNextAsync(this IDeploymentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtManagementGroupScopeNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get all the deployments for a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListAtSubscriptionScopeNext(this IDeploymentsOperations operations, string nextPageLink) + { + return operations.ListAtSubscriptionScopeNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get all the deployments for a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtSubscriptionScopeNextAsync(this IDeploymentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtSubscriptionScopeNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get all the deployments for a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByResourceGroupNext(this IDeploymentsOperations operations, string nextPageLink) + { + return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get all the deployments for a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupNextAsync(this IDeploymentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/FeatureClient.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/FeatureClient.cs new file mode 100644 index 000000000000..21d53b351add --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/FeatureClient.cs @@ -0,0 +1,702 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + public partial class FeatureClient : ServiceClient, IFeatureClient, IAzureClient + { + /// + /// The base URI of the service. + /// + public System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + public JsonSerializerSettings SerializationSettings { get; private set; } + + /// + /// Gets or sets json deserialization settings. + /// + public JsonSerializerSettings DeserializationSettings { get; private set; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + public ServiceClientCredentials Credentials { get; private set; } + + /// + /// The Azure subscription ID. + /// + public string SubscriptionId { get; set; } + + /// + /// The provider namespace. + /// + public string ProviderNamespace { get; set; } + + /// + /// The preferred language for the response. + /// + public string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default value is + /// 30. + /// + public int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. When set to + /// true a unique x-ms-client-request-id value is generated and included in + /// each request. Default is true. + /// + public bool? GenerateClientRequestId { get; set; } + + /// + /// Gets the IFeaturesOperations. + /// + public virtual IFeaturesOperations Features { get; private set; } + + /// + /// Gets the ISubscriptionFeatureRegistrationsOperations. + /// + public virtual ISubscriptionFeatureRegistrationsOperations SubscriptionFeatureRegistrations { get; private set; } + + /// + /// Initializes a new instance of the FeatureClient class. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling FeatureClient.Dispose(). False: will not dispose provided httpClient + protected FeatureClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient) + { + Initialize(); + } + + /// + /// Initializes a new instance of the FeatureClient class. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected FeatureClient(params DelegatingHandler[] handlers) : base(handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the FeatureClient class. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected FeatureClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the FeatureClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected FeatureClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the FeatureClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected FeatureClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the FeatureClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public FeatureClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the FeatureClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling FeatureClient.Dispose(). False: will not dispose provided httpClient + /// + /// Thrown when a required parameter is null + /// + public FeatureClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the FeatureClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public FeatureClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the FeatureClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public FeatureClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the FeatureClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public FeatureClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// An optional partial-method to perform custom initialization. + /// + partial void CustomInitialize(); + /// + /// Initializes client properties. + /// + private void Initialize() + { + Features = new FeaturesOperations(this); + SubscriptionFeatureRegistrations = new SubscriptionFeatureRegistrationsOperations(this); + BaseUri = new System.Uri("https://management.azure.com"); + AcceptLanguage = "en-US"; + LongRunningOperationRetryTimeout = 30; + GenerateClientRequestId = true; + SerializationSettings = new JsonSerializerSettings + { + Formatting = Newtonsoft.Json.Formatting.Indented, + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + DeserializationSettings = new JsonSerializerSettings + { + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + CustomInitialize(); + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } + /// + /// Lists all of the available Microsoft.Features REST API operations. + /// + /// + /// The API version to use for this operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListOperationsWithHttpMessagesAsync(string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (apiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "apiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListOperations", tracingParameters); + } + // Construct URL + var _baseUrl = BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Features/operations").ToString(); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all of the available Microsoft.Features REST API operations. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListOperationsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListOperationsNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/FeatureClientExtensions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/FeatureClientExtensions.cs new file mode 100644 index 000000000000..cec8ba4eaab7 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/FeatureClientExtensions.cs @@ -0,0 +1,93 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for FeatureClient. + /// + public static partial class FeatureClientExtensions + { + /// + /// Lists all of the available Microsoft.Features REST API operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The API version to use for this operation. + /// + public static IPage ListOperations(this IFeatureClient operations, string apiVersion) + { + return operations.ListOperationsAsync(apiVersion).GetAwaiter().GetResult(); + } + + /// + /// Lists all of the available Microsoft.Features REST API operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The API version to use for this operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListOperationsAsync(this IFeatureClient operations, string apiVersion, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListOperationsWithHttpMessagesAsync(apiVersion, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all of the available Microsoft.Features REST API operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListOperationsNext(this IFeatureClient operations, string nextPageLink) + { + return operations.ListOperationsNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all of the available Microsoft.Features REST API operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListOperationsNextAsync(this IFeatureClient operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListOperationsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/FeaturesOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/FeaturesOperations.cs new file mode 100644 index 000000000000..6c07fb3450ba --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/FeaturesOperations.cs @@ -0,0 +1,1342 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// FeaturesOperations operations. + /// + internal partial class FeaturesOperations : IServiceOperations, IFeaturesOperations + { + /// + /// Initializes a new instance of the FeaturesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal FeaturesOperations(FeatureClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the FeatureClient + /// + public FeatureClient Client { get; private set; } + + /// + /// Gets all the preview features that are available through AFEC for the + /// subscription. + /// + /// + /// The API version to use for this operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAllWithHttpMessagesAsync(string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (apiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "apiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAll", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Features/features").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all the preview features in a provider namespace that are available + /// through AFEC for the subscription. + /// + /// + /// The namespace of the resource provider for getting features. + /// + /// + /// The API version to use for this operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string resourceProviderNamespace, string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceProviderNamespace"); + } + if (apiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "apiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceProviderNamespace", resourceProviderNamespace); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features").ToString(); + _url = _url.Replace("{resourceProviderNamespace}", System.Uri.EscapeDataString(resourceProviderNamespace)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the preview feature with the specified name. + /// + /// + /// The resource provider namespace for the feature. + /// + /// + /// The name of the feature to get. + /// + /// + /// The API version to use for this operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceProviderNamespace, string featureName, string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceProviderNamespace"); + } + if (featureName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "featureName"); + } + if (apiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "apiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceProviderNamespace", resourceProviderNamespace); + tracingParameters.Add("featureName", featureName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}").ToString(); + _url = _url.Replace("{resourceProviderNamespace}", System.Uri.EscapeDataString(resourceProviderNamespace)); + _url = _url.Replace("{featureName}", System.Uri.EscapeDataString(featureName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Registers the preview feature for the subscription. + /// + /// + /// The namespace of the resource provider. + /// + /// + /// The name of the feature to register. + /// + /// + /// The API version to use for this operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> RegisterWithHttpMessagesAsync(string resourceProviderNamespace, string featureName, string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceProviderNamespace"); + } + if (featureName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "featureName"); + } + if (apiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "apiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceProviderNamespace", resourceProviderNamespace); + tracingParameters.Add("featureName", featureName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Register", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}/register").ToString(); + _url = _url.Replace("{resourceProviderNamespace}", System.Uri.EscapeDataString(resourceProviderNamespace)); + _url = _url.Replace("{featureName}", System.Uri.EscapeDataString(featureName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Unregisters the preview feature for the subscription. + /// + /// + /// The namespace of the resource provider. + /// + /// + /// The name of the feature to unregister. + /// + /// + /// The API version to use for this operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> UnregisterWithHttpMessagesAsync(string resourceProviderNamespace, string featureName, string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceProviderNamespace"); + } + if (featureName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "featureName"); + } + if (apiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "apiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceProviderNamespace", resourceProviderNamespace); + tracingParameters.Add("featureName", featureName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Unregister", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}/unregister").ToString(); + _url = _url.Replace("{resourceProviderNamespace}", System.Uri.EscapeDataString(resourceProviderNamespace)); + _url = _url.Replace("{featureName}", System.Uri.EscapeDataString(featureName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all the preview features that are available through AFEC for the + /// subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAllNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAllNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all the preview features in a provider namespace that are available + /// through AFEC for the subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/FeaturesOperationsExtensions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/FeaturesOperationsExtensions.cs new file mode 100644 index 000000000000..d2c726d28625 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/FeaturesOperationsExtensions.cs @@ -0,0 +1,313 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for FeaturesOperations. + /// + public static partial class FeaturesOperationsExtensions + { + /// + /// Gets all the preview features that are available through AFEC for the + /// subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The API version to use for this operation. + /// + public static IPage ListAll(this IFeaturesOperations operations, string apiVersion) + { + return operations.ListAllAsync(apiVersion).GetAwaiter().GetResult(); + } + + /// + /// Gets all the preview features that are available through AFEC for the + /// subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The API version to use for this operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAllAsync(this IFeaturesOperations operations, string apiVersion, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAllWithHttpMessagesAsync(apiVersion, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the preview features in a provider namespace that are available + /// through AFEC for the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The namespace of the resource provider for getting features. + /// + /// + /// The API version to use for this operation. + /// + public static IPage List(this IFeaturesOperations operations, string resourceProviderNamespace, string apiVersion) + { + return operations.ListAsync(resourceProviderNamespace, apiVersion).GetAwaiter().GetResult(); + } + + /// + /// Gets all the preview features in a provider namespace that are available + /// through AFEC for the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The namespace of the resource provider for getting features. + /// + /// + /// The API version to use for this operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IFeaturesOperations operations, string resourceProviderNamespace, string apiVersion, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(resourceProviderNamespace, apiVersion, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the preview feature with the specified name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource provider namespace for the feature. + /// + /// + /// The name of the feature to get. + /// + /// + /// The API version to use for this operation. + /// + public static FeatureResult Get(this IFeaturesOperations operations, string resourceProviderNamespace, string featureName, string apiVersion) + { + return operations.GetAsync(resourceProviderNamespace, featureName, apiVersion).GetAwaiter().GetResult(); + } + + /// + /// Gets the preview feature with the specified name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource provider namespace for the feature. + /// + /// + /// The name of the feature to get. + /// + /// + /// The API version to use for this operation. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IFeaturesOperations operations, string resourceProviderNamespace, string featureName, string apiVersion, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceProviderNamespace, featureName, apiVersion, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Registers the preview feature for the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The namespace of the resource provider. + /// + /// + /// The name of the feature to register. + /// + /// + /// The API version to use for this operation. + /// + public static FeatureResult Register(this IFeaturesOperations operations, string resourceProviderNamespace, string featureName, string apiVersion) + { + return operations.RegisterAsync(resourceProviderNamespace, featureName, apiVersion).GetAwaiter().GetResult(); + } + + /// + /// Registers the preview feature for the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The namespace of the resource provider. + /// + /// + /// The name of the feature to register. + /// + /// + /// The API version to use for this operation. + /// + /// + /// The cancellation token. + /// + public static async Task RegisterAsync(this IFeaturesOperations operations, string resourceProviderNamespace, string featureName, string apiVersion, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.RegisterWithHttpMessagesAsync(resourceProviderNamespace, featureName, apiVersion, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Unregisters the preview feature for the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The namespace of the resource provider. + /// + /// + /// The name of the feature to unregister. + /// + /// + /// The API version to use for this operation. + /// + public static FeatureResult Unregister(this IFeaturesOperations operations, string resourceProviderNamespace, string featureName, string apiVersion) + { + return operations.UnregisterAsync(resourceProviderNamespace, featureName, apiVersion).GetAwaiter().GetResult(); + } + + /// + /// Unregisters the preview feature for the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The namespace of the resource provider. + /// + /// + /// The name of the feature to unregister. + /// + /// + /// The API version to use for this operation. + /// + /// + /// The cancellation token. + /// + public static async Task UnregisterAsync(this IFeaturesOperations operations, string resourceProviderNamespace, string featureName, string apiVersion, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UnregisterWithHttpMessagesAsync(resourceProviderNamespace, featureName, apiVersion, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the preview features that are available through AFEC for the + /// subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListAllNext(this IFeaturesOperations operations, string nextPageLink) + { + return operations.ListAllNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all the preview features that are available through AFEC for the + /// subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAllNextAsync(this IFeaturesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAllNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the preview features in a provider namespace that are available + /// through AFEC for the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IFeaturesOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all the preview features in a provider namespace that are available + /// through AFEC for the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IFeaturesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IAuthorizationOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IAuthorizationOperations.cs new file mode 100644 index 000000000000..1840398c2754 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IAuthorizationOperations.cs @@ -0,0 +1,70 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// AuthorizationOperations operations. + /// + public partial interface IAuthorizationOperations + { + /// + /// Lists all of the available Microsoft.Authorization REST API + /// operations. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all of the available Microsoft.Authorization REST API + /// operations. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IDataPolicyManifestsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IDataPolicyManifestsOperations.cs new file mode 100644 index 000000000000..17656ba8a87c --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IDataPolicyManifestsOperations.cs @@ -0,0 +1,119 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DataPolicyManifestsOperations operations. + /// + public partial interface IDataPolicyManifestsOperations + { + /// + /// Retrieves a data policy manifest. + /// + /// + /// This operation retrieves the data policy manifest with the given + /// policy mode. + /// + /// + /// The policy mode of the data policy manifest to get. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetByPolicyModeWithHttpMessagesAsync(string policyMode, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves data policy manifests + /// + /// + /// This operation retrieves a list of all the data policy manifests + /// that match the optional given $filter. Valid values for $filter + /// are: "$filter=namespace eq '{0}'". If $filter is not provided, the + /// unfiltered list includes all data policy manifests for data + /// resource types. If $filter=namespace is provided, the returned list + /// only includes all data policy manifests that have a namespace + /// matching the provided value. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// "namespace eq '{value}'". If $filter is not provided, no filtering + /// is performed. If $filter=namespace eq '{value}' is provided, the + /// returned list only includes all data policy manifests that have a + /// namespace matching the provided value. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves data policy manifests + /// + /// + /// This operation retrieves a list of all the data policy manifests + /// that match the optional given $filter. Valid values for $filter + /// are: "$filter=namespace eq '{0}'". If $filter is not provided, the + /// unfiltered list includes all data policy manifests for data + /// resource types. If $filter=namespace is provided, the returned list + /// only includes all data policy manifests that have a namespace + /// matching the provided value. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IDeploymentOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IDeploymentOperations.cs new file mode 100644 index 000000000000..d490a1ba53a7 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IDeploymentOperations.cs @@ -0,0 +1,405 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DeploymentOperations operations. + /// + public partial interface IDeploymentOperations + { + /// + /// Gets a deployments operation. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// The ID of the operation to get. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetAtScopeWithHttpMessagesAsync(string scope, string deploymentName, string operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// The number of results to return. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtScopeWithHttpMessagesAsync(string scope, string deploymentName, int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a deployments operation. + /// + /// + /// The name of the deployment. + /// + /// + /// The ID of the operation to get. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetAtTenantScopeWithHttpMessagesAsync(string deploymentName, string operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The name of the deployment. + /// + /// + /// The number of results to return. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtTenantScopeWithHttpMessagesAsync(string deploymentName, int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a deployments operation. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// The ID of the operation to get. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, string operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// The number of results to return. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a deployments operation. + /// + /// + /// The name of the deployment. + /// + /// + /// The ID of the operation to get. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, string operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The name of the deployment. + /// + /// + /// The number of results to return. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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 headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string deploymentName, string operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the deployment. + /// + /// + /// The number of results to return. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string resourceGroupName, string deploymentName, int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtScopeNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtTenantScopeNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtManagementGroupScopeNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtSubscriptionScopeNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all deployments operations for a deployment. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IDeploymentScriptsClient.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IDeploymentScriptsClient.cs new file mode 100644 index 000000000000..1da53b5a95fc --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IDeploymentScriptsClient.cs @@ -0,0 +1,79 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + + /// + /// The APIs listed in this specification can be used to manage Deployment + /// Scripts resource through the Azure Resource Manager. + /// + public partial interface IDeploymentScriptsClient : System.IDisposable + { + /// + /// The base URI of the service. + /// + System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + JsonSerializerSettings SerializationSettings { get; } + + /// + /// Gets or sets json deserialization settings. + /// + JsonSerializerSettings DeserializationSettings { get; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + ServiceClientCredentials Credentials { get; } + + /// + /// Subscription Id which forms part of the URI for every service call. + /// + string SubscriptionId { get; set; } + + /// + /// Client Api version. + /// + string ApiVersion { get; } + + /// + /// The preferred language for the response. + /// + string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default + /// value is 30. + /// + int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. When + /// set to true a unique x-ms-client-request-id value is generated and + /// included in each request. Default is true. + /// + bool? GenerateClientRequestId { get; set; } + + + /// + /// Gets the IDeploymentScriptsOperations. + /// + IDeploymentScriptsOperations DeploymentScripts { get; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IDeploymentScriptsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IDeploymentScriptsOperations.cs new file mode 100644 index 000000000000..9a3385fa2e19 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IDeploymentScriptsOperations.cs @@ -0,0 +1,300 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DeploymentScriptsOperations operations. + /// + public partial interface IDeploymentScriptsOperations + { + /// + /// Creates a deployment script. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + /// + /// Deployment script supplied to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateWithHttpMessagesAsync(string resourceGroupName, string scriptName, DeploymentScript deploymentScript, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates deployment script tags with specified values. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + /// + /// Deployment script resource with the tags to be updated. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string scriptName, DeploymentScriptUpdateParameter deploymentScript = default(DeploymentScriptUpdateParameter), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a deployment script with a given name. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string scriptName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a deployment script. When operation completes, status code + /// 200 returned without content. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string scriptName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all deployment scripts for a given subscription. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListBySubscriptionWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets deployment script logs for a given deployment script name. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetLogsWithHttpMessagesAsync(string resourceGroupName, string scriptName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets deployment script logs for a given deployment script name. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + /// + /// The number of lines to show from the tail of the deployment script + /// log. Valid value is a positive number up to 1000. If 'tail' is not + /// provided, all available logs are shown up to container instance log + /// capacity of 4mb. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetLogsDefaultWithHttpMessagesAsync(string resourceGroupName, string scriptName, int? tail = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists deployments scripts. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a deployment script. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the deployment script. + /// + /// + /// Deployment script supplied to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string scriptName, DeploymentScript deploymentScript, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all deployment scripts for a given subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists deployments scripts. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IDeploymentsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IDeploymentsOperations.cs new file mode 100644 index 000000000000..15767ed9c350 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IDeploymentsOperations.cs @@ -0,0 +1,1908 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DeploymentsOperations operations. + /// + public partial interface IDeploymentsOperations + { + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. + /// Deleting a template deployment removes the associated deployment + /// operations. 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 resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteAtScopeWithHttpMessagesAsync(string scope, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Checks whether the deployment exists. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task> CheckExistenceAtScopeWithHttpMessagesAsync(string scope, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deploys resources at a given scope. + /// + /// + /// You can provide the template and parameters directly in the request + /// or link to JSON files. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateAtScopeWithHttpMessagesAsync(string scope, string deploymentName, Deployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a deployment. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetAtScopeWithHttpMessagesAsync(string scope, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Cancels a currently running template deployment. + /// + /// + /// 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 resources partially deployed. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task CancelAtScopeWithHttpMessagesAsync(string scope, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Validates whether the specified template is syntactically correct + /// and will be accepted by Azure Resource Manager.. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ValidateAtScopeWithHttpMessagesAsync(string scope, string deploymentName, Deployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Exports the template used for specified deployment. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ExportTemplateAtScopeWithHttpMessagesAsync(string scope, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get all the deployments at the given scope. + /// + /// + /// The resource scope. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtScopeWithHttpMessagesAsync(string scope, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. + /// Deleting a template deployment removes the associated deployment + /// operations. 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 deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteAtTenantScopeWithHttpMessagesAsync(string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Checks whether the deployment exists. + /// + /// + /// The name of the deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task> CheckExistenceAtTenantScopeWithHttpMessagesAsync(string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deploys resources at tenant scope. + /// + /// + /// You can provide the template and parameters directly in the request + /// or link to JSON files. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateAtTenantScopeWithHttpMessagesAsync(string deploymentName, ScopedDeployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a deployment. + /// + /// + /// The name of the deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetAtTenantScopeWithHttpMessagesAsync(string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Cancels a currently running template deployment. + /// + /// + /// 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 resources partially deployed. + /// + /// + /// The name of the deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task CancelAtTenantScopeWithHttpMessagesAsync(string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Validates whether the specified template is syntactically correct + /// and will be accepted by Azure Resource Manager.. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ValidateAtTenantScopeWithHttpMessagesAsync(string deploymentName, ScopedDeployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Returns changes that will be made by the deployment if executed at + /// the scope of the tenant group. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> WhatIfAtTenantScopeWithHttpMessagesAsync(string deploymentName, ScopedDeploymentWhatIf parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Exports the template used for specified deployment. + /// + /// + /// The name of the deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ExportTemplateAtTenantScopeWithHttpMessagesAsync(string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get all the deployments at the tenant scope. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtTenantScopeWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. + /// Deleting a template deployment removes the associated deployment + /// operations. 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 management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Checks whether the deployment exists. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task> CheckExistenceAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deploys resources at management group scope. + /// + /// + /// You can provide the template and parameters directly in the request + /// or link to JSON files. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, ScopedDeployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a deployment. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Cancels a currently running template deployment. + /// + /// + /// 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 resources partially deployed. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task CancelAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Validates whether the specified template is syntactically correct + /// and will be accepted by Azure Resource Manager.. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ValidateAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, ScopedDeployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Returns changes that will be made by the deployment if executed at + /// the scope of the management group. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> WhatIfAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, ScopedDeploymentWhatIf parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Exports the template used for specified deployment. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ExportTemplateAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get all the deployments for a management group. + /// + /// + /// The management group ID. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtManagementGroupScopeWithHttpMessagesAsync(string groupId, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. + /// Deleting a template deployment removes the associated deployment + /// operations. 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 deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Checks whether the deployment exists. + /// + /// + /// The name of the deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task> CheckExistenceAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deploys resources at subscription scope. + /// + /// + /// You can provide the template and parameters directly in the request + /// or link to JSON files. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, Deployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a deployment. + /// + /// + /// The name of the deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Cancels a currently running template deployment. + /// + /// + /// 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 resources partially deployed. + /// + /// + /// The name of the deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task CancelAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Validates whether the specified template is syntactically correct + /// and will be accepted by Azure Resource Manager.. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ValidateAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, Deployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Returns changes that will be made by the deployment if executed at + /// the scope of the subscription. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to What If. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> WhatIfAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, DeploymentWhatIf parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Exports the template used for specified deployment. + /// + /// + /// The name of the deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ExportTemplateAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get all the deployments for a subscription. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtSubscriptionScopeWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// 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. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task> CheckExistenceWithHttpMessagesAsync(string resourceGroupName, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deploys resources to a resource group. + /// + /// + /// 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 headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string deploymentName, Deployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a deployment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Cancels a currently running template deployment. + /// + /// + /// 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. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task CancelWithHttpMessagesAsync(string resourceGroupName, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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 headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ValidateWithHttpMessagesAsync(string resourceGroupName, string deploymentName, Deployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Returns changes that will be made by the deployment if executed at + /// the scope of the resource group. + /// + /// + /// 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 headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> WhatIfWithHttpMessagesAsync(string resourceGroupName, string deploymentName, DeploymentWhatIf parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Exports the template used for specified deployment. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ExportTemplateWithHttpMessagesAsync(string resourceGroupName, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get all the deployments for a resource group. + /// + /// + /// The name of the resource group with the deployments to get. The + /// name is case insensitive. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Calculate the hash of the given template. + /// + /// + /// The template provided to calculate hash. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CalculateTemplateHashWithHttpMessagesAsync(object template, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. + /// Deleting a template deployment removes the associated deployment + /// operations. 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 resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteAtScopeWithHttpMessagesAsync(string scope, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deploys resources at a given scope. + /// + /// + /// You can provide the template and parameters directly in the request + /// or link to JSON files. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateOrUpdateAtScopeWithHttpMessagesAsync(string scope, string deploymentName, Deployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Validates whether the specified template is syntactically correct + /// and will be accepted by Azure Resource Manager.. + /// + /// + /// The resource scope. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginValidateAtScopeWithHttpMessagesAsync(string scope, string deploymentName, Deployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. + /// Deleting a template deployment removes the associated deployment + /// operations. 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 deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteAtTenantScopeWithHttpMessagesAsync(string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deploys resources at tenant scope. + /// + /// + /// You can provide the template and parameters directly in the request + /// or link to JSON files. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateOrUpdateAtTenantScopeWithHttpMessagesAsync(string deploymentName, ScopedDeployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Validates whether the specified template is syntactically correct + /// and will be accepted by Azure Resource Manager.. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginValidateAtTenantScopeWithHttpMessagesAsync(string deploymentName, ScopedDeployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Returns changes that will be made by the deployment if executed at + /// the scope of the tenant group. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginWhatIfAtTenantScopeWithHttpMessagesAsync(string deploymentName, ScopedDeploymentWhatIf parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. + /// Deleting a template deployment removes the associated deployment + /// operations. 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 management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deploys resources at management group scope. + /// + /// + /// You can provide the template and parameters directly in the request + /// or link to JSON files. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateOrUpdateAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, ScopedDeployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Validates whether the specified template is syntactically correct + /// and will be accepted by Azure Resource Manager.. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginValidateAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, ScopedDeployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Returns changes that will be made by the deployment if executed at + /// the scope of the management group. + /// + /// + /// The management group ID. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginWhatIfAtManagementGroupScopeWithHttpMessagesAsync(string groupId, string deploymentName, ScopedDeploymentWhatIf parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// A template deployment that is currently running cannot be deleted. + /// Deleting a template deployment removes the associated deployment + /// operations. 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 deployment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deploys resources at subscription scope. + /// + /// + /// You can provide the template and parameters directly in the request + /// or link to JSON files. + /// + /// + /// The name of the deployment. + /// + /// + /// Additional parameters supplied to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateOrUpdateAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, Deployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Validates whether the specified template is syntactically correct + /// and will be accepted by Azure Resource Manager.. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to validate. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginValidateAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, Deployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Returns changes that will be made by the deployment if executed at + /// the scope of the subscription. + /// + /// + /// The name of the deployment. + /// + /// + /// Parameters to What If. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginWhatIfAtSubscriptionScopeWithHttpMessagesAsync(string deploymentName, DeploymentWhatIf parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a deployment from the deployment history. + /// + /// + /// 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. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string deploymentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deploys resources to a resource group. + /// + /// + /// 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 headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string deploymentName, Deployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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 headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginValidateWithHttpMessagesAsync(string resourceGroupName, string deploymentName, Deployment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Returns changes that will be made by the deployment if executed at + /// the scope of the resource group. + /// + /// + /// 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 headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginWhatIfWithHttpMessagesAsync(string resourceGroupName, string deploymentName, DeploymentWhatIf parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get all the deployments at the given scope. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtScopeNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get all the deployments at the tenant scope. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtTenantScopeNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get all the deployments for a management group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtManagementGroupScopeNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get all the deployments for a subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtSubscriptionScopeNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get all the deployments for a resource group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IFeatureClient.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IFeatureClient.cs new file mode 100644 index 000000000000..919074f4843a --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IFeatureClient.cs @@ -0,0 +1,114 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// + public partial interface IFeatureClient : System.IDisposable + { + /// + /// The base URI of the service. + /// + System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + JsonSerializerSettings SerializationSettings { get; } + + /// + /// Gets or sets json deserialization settings. + /// + JsonSerializerSettings DeserializationSettings { get; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + ServiceClientCredentials Credentials { get; } + + /// + /// The Azure subscription ID. + /// + string SubscriptionId { get; set; } + + /// + /// The provider namespace. + /// + string ProviderNamespace { get; set; } + + /// + /// The preferred language for the response. + /// + string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default + /// value is 30. + /// + int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. When + /// set to true a unique x-ms-client-request-id value is generated and + /// included in each request. Default is true. + /// + bool? GenerateClientRequestId { get; set; } + + + /// + /// Gets the IFeaturesOperations. + /// + IFeaturesOperations Features { get; } + + /// + /// Gets the ISubscriptionFeatureRegistrationsOperations. + /// + ISubscriptionFeatureRegistrationsOperations SubscriptionFeatureRegistrations { get; } + + /// + /// Lists all of the available Microsoft.Features REST API operations. + /// + /// + /// The API version to use for this operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + Task>> ListOperationsWithHttpMessagesAsync(string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + + /// + /// Lists all of the available Microsoft.Features REST API operations. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + Task>> ListOperationsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IFeaturesOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IFeaturesOperations.cs new file mode 100644 index 000000000000..767f2208533c --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IFeaturesOperations.cs @@ -0,0 +1,206 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// FeaturesOperations operations. + /// + public partial interface IFeaturesOperations + { + /// + /// Gets all the preview features that are available through AFEC for + /// the subscription. + /// + /// + /// The API version to use for this operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAllWithHttpMessagesAsync(string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the preview features in a provider namespace that are + /// available through AFEC for the subscription. + /// + /// + /// The namespace of the resource provider for getting features. + /// + /// + /// The API version to use for this operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string resourceProviderNamespace, string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the preview feature with the specified name. + /// + /// + /// The resource provider namespace for the feature. + /// + /// + /// The name of the feature to get. + /// + /// + /// The API version to use for this operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceProviderNamespace, string featureName, string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Registers the preview feature for the subscription. + /// + /// + /// The namespace of the resource provider. + /// + /// + /// The name of the feature to register. + /// + /// + /// The API version to use for this operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> RegisterWithHttpMessagesAsync(string resourceProviderNamespace, string featureName, string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Unregisters the preview feature for the subscription. + /// + /// + /// The namespace of the resource provider. + /// + /// + /// The name of the feature to unregister. + /// + /// + /// The API version to use for this operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UnregisterWithHttpMessagesAsync(string resourceProviderNamespace, string featureName, string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the preview features that are available through AFEC for + /// the subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAllNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the preview features in a provider namespace that are + /// available through AFEC for the subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IManagementLinkClient.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IManagementLinkClient.cs new file mode 100644 index 000000000000..c842679731d6 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IManagementLinkClient.cs @@ -0,0 +1,88 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + + /// + /// Azure resources can be linked together to form logical relationships. + /// You can establish links between resources belonging to different + /// resource groups. However, all the linked resources must belong to the + /// same subscription. Each resource can be linked to 50 other resources. + /// If any of the linked resources are deleted or moved, the link owner + /// must clean up the remaining link. + /// + public partial interface IManagementLinkClient : System.IDisposable + { + /// + /// The base URI of the service. + /// + System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + JsonSerializerSettings SerializationSettings { get; } + + /// + /// Gets or sets json deserialization settings. + /// + JsonSerializerSettings DeserializationSettings { get; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + ServiceClientCredentials Credentials { get; } + + /// + /// The ID of the target subscription. + /// + string SubscriptionId { get; set; } + + /// + /// The API version to use for the operation. + /// + string ApiVersion { get; } + + /// + /// The preferred language for the response. + /// + string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default + /// value is 30. + /// + int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. When + /// set to true a unique x-ms-client-request-id value is generated and + /// included in each request. Default is true. + /// + bool? GenerateClientRequestId { get; set; } + + + /// + /// Gets the IOperations. + /// + IOperations Operations { get; } + + /// + /// Gets the IResourceLinksOperations. + /// + IResourceLinksOperations ResourceLinks { get; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IManagementLockClient.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IManagementLockClient.cs new file mode 100644 index 000000000000..bf17f7efc845 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IManagementLockClient.cs @@ -0,0 +1,84 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + + /// + /// Azure resources can be locked to prevent other users in your + /// organization from deleting or modifying resources. + /// + public partial interface IManagementLockClient : System.IDisposable + { + /// + /// The base URI of the service. + /// + System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + JsonSerializerSettings SerializationSettings { get; } + + /// + /// Gets or sets json deserialization settings. + /// + JsonSerializerSettings DeserializationSettings { get; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + ServiceClientCredentials Credentials { get; } + + /// + /// The ID of the target subscription. + /// + string SubscriptionId { get; set; } + + /// + /// The API version to use for the operation. + /// + string ApiVersion { get; } + + /// + /// The preferred language for the response. + /// + string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default + /// value is 30. + /// + int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. When + /// set to true a unique x-ms-client-request-id value is generated and + /// included in each request. Default is true. + /// + bool? GenerateClientRequestId { get; set; } + + + /// + /// Gets the IAuthorizationOperations. + /// + IAuthorizationOperations AuthorizationOperations { get; } + + /// + /// Gets the IManagementLocksOperations. + /// + IManagementLocksOperations ManagementLocks { get; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IManagementLocksOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IManagementLocksOperations.cs new file mode 100644 index 000000000000..4c95d1ba8782 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IManagementLocksOperations.cs @@ -0,0 +1,615 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ManagementLocksOperations operations. + /// + public partial interface IManagementLocksOperations + { + /// + /// Creates or updates a management lock at the resource group level. + /// + /// + /// When you apply a lock at a parent scope, all child resources + /// inherit the same lock. To create management locks, you must have + /// access to Microsoft.Authorization/* or + /// Microsoft.Authorization/locks/* actions. Of the built-in roles, + /// only Owner and User Access Administrator are granted those actions. + /// + /// + /// The name of the resource group to lock. + /// + /// + /// The lock name. The lock name can be a maximum of 260 characters. It + /// cannot contain <, > %, &, :, \, ?, /, or any control + /// characters. + /// + /// + /// The management lock parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateAtResourceGroupLevelWithHttpMessagesAsync(string resourceGroupName, string lockName, ManagementLockObject parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a management lock at the resource group level. + /// + /// + /// To delete management locks, you must have access to + /// Microsoft.Authorization/* or Microsoft.Authorization/locks/* + /// actions. Of the built-in roles, only Owner and User Access + /// Administrator are granted those actions. + /// + /// + /// The name of the resource group containing the lock. + /// + /// + /// The name of lock to delete. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteAtResourceGroupLevelWithHttpMessagesAsync(string resourceGroupName, string lockName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a management lock at the resource group level. + /// + /// + /// The name of the locked resource group. + /// + /// + /// The name of the lock to get. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetAtResourceGroupLevelWithHttpMessagesAsync(string resourceGroupName, string lockName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a management lock by scope. + /// + /// + /// The scope for the lock. When providing a scope for the assignment, + /// use '/subscriptions/{subscriptionId}' for subscriptions, + /// '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' + /// for resource groups, and + /// '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' + /// for resources. + /// + /// + /// The name of lock. + /// + /// + /// Create or update management lock parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateByScopeWithHttpMessagesAsync(string scope, string lockName, ManagementLockObject parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete a management lock by scope. + /// + /// + /// The scope for the lock. + /// + /// + /// The name of lock. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteByScopeWithHttpMessagesAsync(string scope, string lockName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get a management lock by scope. + /// + /// + /// The scope for the lock. + /// + /// + /// The name of lock. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetByScopeWithHttpMessagesAsync(string scope, string lockName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a management lock at the resource level or any + /// level below the resource. + /// + /// + /// When you apply a lock at a parent scope, all child resources + /// inherit the same lock. To create management locks, you must have + /// access to Microsoft.Authorization/* or + /// Microsoft.Authorization/locks/* actions. Of the built-in roles, + /// only Owner and User Access Administrator are granted those actions. + /// + /// + /// The name of the resource group containing the resource to lock. + /// + /// + /// The resource provider namespace of the resource to lock. + /// + /// + /// The parent resource identity. + /// + /// + /// The resource type of the resource to lock. + /// + /// + /// The name of the resource to lock. + /// + /// + /// The name of lock. The lock name can be a maximum of 260 characters. + /// It cannot contain <, > %, &, :, \, ?, /, or any control + /// characters. + /// + /// + /// Parameters for creating or updating a management lock. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateAtResourceLevelWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string lockName, ManagementLockObject parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the management lock of a resource or any level below the + /// resource. + /// + /// + /// To delete management locks, you must have access to + /// Microsoft.Authorization/* or Microsoft.Authorization/locks/* + /// actions. Of the built-in roles, only Owner and User Access + /// Administrator are granted those actions. + /// + /// + /// The name of the resource group containing the resource with the + /// lock to delete. + /// + /// + /// The resource provider namespace of the resource with the lock to + /// delete. + /// + /// + /// The parent resource identity. + /// + /// + /// The resource type of the resource with the lock to delete. + /// + /// + /// The name of the resource with the lock to delete. + /// + /// + /// The name of the lock to delete. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteAtResourceLevelWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string lockName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get the management lock of a resource or any level below resource. + /// + /// + /// The name of the resource group. + /// + /// + /// The namespace of the resource provider. + /// + /// + /// An extra path parameter needed in some services, like SQL + /// Databases. + /// + /// + /// The type of the resource. + /// + /// + /// The name of the resource. + /// + /// + /// The name of lock. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetAtResourceLevelWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string lockName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a management lock at the subscription level. + /// + /// + /// When you apply a lock at a parent scope, all child resources + /// inherit the same lock. To create management locks, you must have + /// access to Microsoft.Authorization/* or + /// Microsoft.Authorization/locks/* actions. Of the built-in roles, + /// only Owner and User Access Administrator are granted those actions. + /// + /// + /// The name of lock. The lock name can be a maximum of 260 characters. + /// It cannot contain <, > %, &, :, \, ?, /, or any control + /// characters. + /// + /// + /// The management lock parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateAtSubscriptionLevelWithHttpMessagesAsync(string lockName, ManagementLockObject parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the management lock at the subscription level. + /// + /// + /// To delete management locks, you must have access to + /// Microsoft.Authorization/* or Microsoft.Authorization/locks/* + /// actions. Of the built-in roles, only Owner and User Access + /// Administrator are granted those actions. + /// + /// + /// The name of lock to delete. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteAtSubscriptionLevelWithHttpMessagesAsync(string lockName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a management lock at the subscription level. + /// + /// + /// The name of the lock to get. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetAtSubscriptionLevelWithHttpMessagesAsync(string lockName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the management locks for a resource group. + /// + /// + /// The name of the resource group containing the locks to get. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtResourceGroupLevelWithHttpMessagesAsync(string resourceGroupName, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the management locks for a resource or any level below + /// resource. + /// + /// + /// The name of the resource group containing the locked resource. The + /// name is case insensitive. + /// + /// + /// The namespace of the resource provider. + /// + /// + /// The parent resource identity. + /// + /// + /// The resource type of the locked resource. + /// + /// + /// The name of the locked resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtResourceLevelWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the management locks for a subscription. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtSubscriptionLevelWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the management locks for a scope. + /// + /// + /// The scope for the lock. When providing a scope for the assignment, + /// use '/subscriptions/{subscriptionId}' for subscriptions, + /// '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' + /// for resource groups, and + /// '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' + /// for resources. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByScopeWithHttpMessagesAsync(string scope, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the management locks for a resource group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtResourceGroupLevelNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the management locks for a resource or any level below + /// resource. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtResourceLevelNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the management locks for a subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtSubscriptionLevelNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the management locks for a scope. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByScopeNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IOperations.cs new file mode 100644 index 000000000000..47e539f2fbfd --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IOperations.cs @@ -0,0 +1,68 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Operations operations. + /// + public partial interface IOperations + { + /// + /// Lists all of the available Microsoft.Resources REST API operations. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all of the available Microsoft.Resources REST API operations. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IPolicyAssignmentsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IPolicyAssignmentsOperations.cs new file mode 100644 index 000000000000..f03511c37fa4 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IPolicyAssignmentsOperations.cs @@ -0,0 +1,656 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// PolicyAssignmentsOperations operations. + /// + public partial interface IPolicyAssignmentsOperations + { + /// + /// Deletes a policy assignment. + /// + /// + /// This operation deletes a policy assignment, given its name and the + /// scope it was created in. The scope of a policy assignment is the + /// part of its ID preceding + /// '/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// + /// + /// The scope of the policy assignment. Valid scopes are: management + /// group (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource + /// group (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', + /// or resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + /// + /// The name of the policy assignment to delete. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> DeleteWithHttpMessagesAsync(string scope, string policyAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a policy assignment. + /// + /// + /// This operation creates or updates a policy assignment with the + /// given scope and name. Policy assignments apply to all resources + /// contained within their scope. For example, when you assign a policy + /// at resource group scope, that policy applies to all resources in + /// the group. + /// + /// + /// The scope of the policy assignment. Valid scopes are: management + /// group (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource + /// group (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', + /// or resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + /// + /// The name of the policy assignment. + /// + /// + /// Parameters for the policy assignment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateWithHttpMessagesAsync(string scope, string policyAssignmentName, PolicyAssignment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves a policy assignment. + /// + /// + /// This operation retrieves a single policy assignment, given its name + /// and the scope it was created at. + /// + /// + /// The scope of the policy assignment. Valid scopes are: management + /// group (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource + /// group (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', + /// or resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + /// + /// The name of the policy assignment to get. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string scope, string policyAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves all policy assignments that apply to a resource group. + /// + /// + /// This operation retrieves the list of all policy assignments + /// associated with the given resource group in the given subscription + /// that match the optional given $filter. Valid values for $filter + /// are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq + /// '{value}''. If $filter is not provided, the unfiltered list + /// includes all policy assignments associated with the resource group, + /// including those that apply directly or apply from containing + /// scopes, as well as any applied to resources contained within the + /// resource group. If $filter=atScope() is provided, the returned list + /// includes all policy assignments that apply to the resource group, + /// which is everything in the unfiltered list except those applied to + /// resources contained within the resource group. If + /// $filter=atExactScope() is provided, the returned list only includes + /// all policy assignments that at the resource group. If + /// $filter=policyDefinitionId eq '{value}' is provided, the returned + /// list includes all policy assignments of the policy definition whose + /// id is {value} that apply to the resource group. + /// + /// + /// The name of the resource group that contains policy assignments. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. + /// If $filter is not provided, no filtering is performed. If + /// $filter=atScope() is provided, the returned list only includes all + /// policy assignments that apply to the scope, which is everything in + /// the unfiltered list except those applied to sub scopes contained + /// within the given scope. If $filter=atExactScope() is provided, the + /// returned list only includes all policy assignments that at the + /// given scope. If $filter=policyDefinitionId eq '{value}' is + /// provided, the returned list includes all policy assignments of the + /// policy definition whose id is {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not + /// provided, it will return 500 records. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListForResourceGroupWithHttpMessagesAsync(string resourceGroupName, string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves all policy assignments that apply to a resource. + /// + /// + /// This operation retrieves the list of all policy assignments + /// associated with the specified resource in the given resource group + /// and subscription that match the optional given $filter. Valid + /// values for $filter are: 'atScope()', 'atExactScope()' or + /// 'policyDefinitionId eq '{value}''. If $filter is not provided, the + /// unfiltered list includes all policy assignments associated with the + /// resource, including those that apply directly or from all + /// containing scopes, as well as any applied to resources contained + /// within the resource. If $filter=atScope() is provided, the returned + /// list includes all policy assignments that apply to the resource, + /// which is everything in the unfiltered list except those applied to + /// resources contained within the resource. If $filter=atExactScope() + /// is provided, the returned list only includes all policy assignments + /// that at the resource level. If $filter=policyDefinitionId eq + /// '{value}' is provided, the returned list includes all policy + /// assignments of the policy definition whose id is {value} that apply + /// to the resource. Three parameters plus the resource name are used + /// to identify a specific resource. If the resource is not part of a + /// parent resource (the more common case), the parent resource path + /// should not be provided (or provided as ''). For example a web app + /// could be specified as ({resourceProviderNamespace} == + /// 'Microsoft.Web', {parentResourcePath} == '', {resourceType} == + /// 'sites', {resourceName} == 'MyWebApp'). If the resource is part of + /// a parent resource, then all parameters should be provided. For + /// example a virtual machine DNS name could be specified as + /// ({resourceProviderNamespace} == 'Microsoft.Compute', + /// {parentResourcePath} == 'virtualMachines/MyVirtualMachine', + /// {resourceType} == 'domainNames', {resourceName} == + /// 'MyComputerName'). A convenient alternative to providing the + /// namespace and type name separately is to provide both in the + /// {resourceType} parameter, format: ({resourceProviderNamespace} == + /// '', {parentResourcePath} == '', {resourceType} == + /// 'Microsoft.Web/sites', {resourceName} == 'MyWebApp'). + /// + /// + /// The name of the resource group containing the resource. + /// + /// + /// The namespace of the resource provider. For example, the namespace + /// of a virtual machine is Microsoft.Compute (from + /// Microsoft.Compute/virtualMachines) + /// + /// + /// The parent resource path. Use empty string if there is none. + /// + /// + /// The resource type name. For example the type name of a web app is + /// 'sites' (from Microsoft.Web/sites). + /// + /// + /// The name of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListForResourceWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves all policy assignments that apply to a management group. + /// + /// + /// This operation retrieves the list of all policy assignments + /// applicable to the management group that match the given $filter. + /// Valid values for $filter are: 'atScope()', 'atExactScope()' or + /// 'policyDefinitionId eq '{value}''. If $filter=atScope() is + /// provided, the returned list includes all policy assignments that + /// are assigned to the management group or the management group's + /// ancestors. If $filter=atExactScope() is provided, the returned list + /// only includes all policy assignments that at the management group. + /// If $filter=policyDefinitionId eq '{value}' is provided, the + /// returned list includes all policy assignments of the policy + /// definition whose id is {value} that apply to the management group. + /// + /// + /// The ID of the management group. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. + /// If $filter is not provided, no filtering is performed. If + /// $filter=atScope() is provided, the returned list only includes all + /// policy assignments that apply to the scope, which is everything in + /// the unfiltered list except those applied to sub scopes contained + /// within the given scope. If $filter=atExactScope() is provided, the + /// returned list only includes all policy assignments that at the + /// given scope. If $filter=policyDefinitionId eq '{value}' is + /// provided, the returned list includes all policy assignments of the + /// policy definition whose id is {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not + /// provided, it will return 500 records. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListForManagementGroupWithHttpMessagesAsync(string managementGroupId, string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves all policy assignments that apply to a subscription. + /// + /// + /// This operation retrieves the list of all policy assignments + /// associated with the given subscription that match the optional + /// given $filter. Valid values for $filter are: 'atScope()', + /// 'atExactScope()' or 'policyDefinitionId eq '{value}''. If $filter + /// is not provided, the unfiltered list includes all policy + /// assignments associated with the subscription, including those that + /// apply directly or from management groups that contain the given + /// subscription, as well as any applied to objects contained within + /// the subscription. If $filter=atScope() is provided, the returned + /// list includes all policy assignments that apply to the + /// subscription, which is everything in the unfiltered list except + /// those applied to objects contained within the subscription. If + /// $filter=atExactScope() is provided, the returned list only includes + /// all policy assignments that at the subscription. If + /// $filter=policyDefinitionId eq '{value}' is provided, the returned + /// list includes all policy assignments of the policy definition whose + /// id is {value}. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a policy assignment. + /// + /// + /// This operation deletes the policy with the given ID. Policy + /// assignment IDs have this format: + /// '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// Valid formats for {scope} are: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}' + /// (management group), '/subscriptions/{subscriptionId}' + /// (subscription), + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' + /// (resource group), or + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// (resource). + /// + /// + /// The ID of the policy assignment to delete. Use the format + /// '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> DeleteByIdWithHttpMessagesAsync(string policyAssignmentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a policy assignment. + /// + /// + /// This operation creates or updates the policy assignment with the + /// given ID. Policy assignments made on a scope apply to all resources + /// contained in that scope. For example, when you assign a policy to a + /// resource group that policy applies to all resources in the group. + /// Policy assignment IDs have this format: + /// '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// Valid scopes are: management group (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource + /// group (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', + /// or resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. + /// + /// + /// The ID of the policy assignment to create. Use the format + /// '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// + /// + /// Parameters for policy assignment. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateByIdWithHttpMessagesAsync(string policyAssignmentId, PolicyAssignment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves the policy assignment with the given ID. + /// + /// + /// The operation retrieves the policy assignment with the given ID. + /// Policy assignment IDs have this format: + /// '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// Valid scopes are: management group (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource + /// group (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', + /// or resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. + /// + /// + /// The ID of the policy assignment to get. Use the format + /// '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetByIdWithHttpMessagesAsync(string policyAssignmentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves all policy assignments that apply to a resource group. + /// + /// + /// This operation retrieves the list of all policy assignments + /// associated with the given resource group in the given subscription + /// that match the optional given $filter. Valid values for $filter + /// are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq + /// '{value}''. If $filter is not provided, the unfiltered list + /// includes all policy assignments associated with the resource group, + /// including those that apply directly or apply from containing + /// scopes, as well as any applied to resources contained within the + /// resource group. If $filter=atScope() is provided, the returned list + /// includes all policy assignments that apply to the resource group, + /// which is everything in the unfiltered list except those applied to + /// resources contained within the resource group. If + /// $filter=atExactScope() is provided, the returned list only includes + /// all policy assignments that at the resource group. If + /// $filter=policyDefinitionId eq '{value}' is provided, the returned + /// list includes all policy assignments of the policy definition whose + /// id is {value} that apply to the resource group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListForResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves all policy assignments that apply to a resource. + /// + /// + /// This operation retrieves the list of all policy assignments + /// associated with the specified resource in the given resource group + /// and subscription that match the optional given $filter. Valid + /// values for $filter are: 'atScope()', 'atExactScope()' or + /// 'policyDefinitionId eq '{value}''. If $filter is not provided, the + /// unfiltered list includes all policy assignments associated with the + /// resource, including those that apply directly or from all + /// containing scopes, as well as any applied to resources contained + /// within the resource. If $filter=atScope() is provided, the returned + /// list includes all policy assignments that apply to the resource, + /// which is everything in the unfiltered list except those applied to + /// resources contained within the resource. If $filter=atExactScope() + /// is provided, the returned list only includes all policy assignments + /// that at the resource level. If $filter=policyDefinitionId eq + /// '{value}' is provided, the returned list includes all policy + /// assignments of the policy definition whose id is {value} that apply + /// to the resource. Three parameters plus the resource name are used + /// to identify a specific resource. If the resource is not part of a + /// parent resource (the more common case), the parent resource path + /// should not be provided (or provided as ''). For example a web app + /// could be specified as ({resourceProviderNamespace} == + /// 'Microsoft.Web', {parentResourcePath} == '', {resourceType} == + /// 'sites', {resourceName} == 'MyWebApp'). If the resource is part of + /// a parent resource, then all parameters should be provided. For + /// example a virtual machine DNS name could be specified as + /// ({resourceProviderNamespace} == 'Microsoft.Compute', + /// {parentResourcePath} == 'virtualMachines/MyVirtualMachine', + /// {resourceType} == 'domainNames', {resourceName} == + /// 'MyComputerName'). A convenient alternative to providing the + /// namespace and type name separately is to provide both in the + /// {resourceType} parameter, format: ({resourceProviderNamespace} == + /// '', {parentResourcePath} == '', {resourceType} == + /// 'Microsoft.Web/sites', {resourceName} == 'MyWebApp'). + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListForResourceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves all policy assignments that apply to a management group. + /// + /// + /// This operation retrieves the list of all policy assignments + /// applicable to the management group that match the given $filter. + /// Valid values for $filter are: 'atScope()', 'atExactScope()' or + /// 'policyDefinitionId eq '{value}''. If $filter=atScope() is + /// provided, the returned list includes all policy assignments that + /// are assigned to the management group or the management group's + /// ancestors. If $filter=atExactScope() is provided, the returned list + /// only includes all policy assignments that at the management group. + /// If $filter=policyDefinitionId eq '{value}' is provided, the + /// returned list includes all policy assignments of the policy + /// definition whose id is {value} that apply to the management group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListForManagementGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves all policy assignments that apply to a subscription. + /// + /// + /// This operation retrieves the list of all policy assignments + /// associated with the given subscription that match the optional + /// given $filter. Valid values for $filter are: 'atScope()', + /// 'atExactScope()' or 'policyDefinitionId eq '{value}''. If $filter + /// is not provided, the unfiltered list includes all policy + /// assignments associated with the subscription, including those that + /// apply directly or from management groups that contain the given + /// subscription, as well as any applied to objects contained within + /// the subscription. If $filter=atScope() is provided, the returned + /// list includes all policy assignments that apply to the + /// subscription, which is everything in the unfiltered list except + /// those applied to objects contained within the subscription. If + /// $filter=atExactScope() is provided, the returned list only includes + /// all policy assignments that at the subscription. If + /// $filter=policyDefinitionId eq '{value}' is provided, the returned + /// list includes all policy assignments of the policy definition whose + /// id is {value}. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IPolicyClient.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IPolicyClient.cs new file mode 100644 index 000000000000..32307497cef6 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IPolicyClient.cs @@ -0,0 +1,92 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + + /// + /// + public partial interface IPolicyClient : System.IDisposable + { + /// + /// The base URI of the service. + /// + System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + JsonSerializerSettings SerializationSettings { get; } + + /// + /// Gets or sets json deserialization settings. + /// + JsonSerializerSettings DeserializationSettings { get; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + ServiceClientCredentials Credentials { get; } + + /// + /// The ID of the target subscription. + /// + string SubscriptionId { get; set; } + + /// + /// The preferred language for the response. + /// + string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default + /// value is 30. + /// + int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. When + /// set to true a unique x-ms-client-request-id value is generated and + /// included in each request. Default is true. + /// + bool? GenerateClientRequestId { get; set; } + + + /// + /// Gets the IDataPolicyManifestsOperations. + /// + IDataPolicyManifestsOperations DataPolicyManifests { get; } + + /// + /// Gets the IPolicyAssignmentsOperations. + /// + IPolicyAssignmentsOperations PolicyAssignments { get; } + + /// + /// Gets the IPolicyDefinitionsOperations. + /// + IPolicyDefinitionsOperations PolicyDefinitions { get; } + + /// + /// Gets the IPolicySetDefinitionsOperations. + /// + IPolicySetDefinitionsOperations PolicySetDefinitions { get; } + + /// + /// Gets the IPolicyExemptionsOperations. + /// + IPolicyExemptionsOperations PolicyExemptions { get; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IPolicyDefinitionsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IPolicyDefinitionsOperations.cs new file mode 100644 index 000000000000..6f1b1d5dbbc5 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IPolicyDefinitionsOperations.cs @@ -0,0 +1,483 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// PolicyDefinitionsOperations operations. + /// + public partial interface IPolicyDefinitionsOperations + { + /// + /// Creates or updates a policy definition in a subscription. + /// + /// + /// This operation creates or updates a policy definition in the given + /// subscription with the given name. + /// + /// + /// The name of the policy definition to create. + /// + /// + /// The policy definition properties. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string policyDefinitionName, PolicyDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a policy definition in a subscription. + /// + /// + /// This operation deletes the policy definition in the given + /// subscription with the given name. + /// + /// + /// The name of the policy definition to delete. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string policyDefinitionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves a policy definition in a subscription. + /// + /// + /// This operation retrieves the policy definition in the given + /// subscription with the given name. + /// + /// + /// The name of the policy definition to get. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string policyDefinitionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves a built-in policy definition. + /// + /// + /// This operation retrieves the built-in policy definition with the + /// given name. + /// + /// + /// The name of the built-in policy definition to get. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetBuiltInWithHttpMessagesAsync(string policyDefinitionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a policy definition in a management group. + /// + /// + /// This operation creates or updates a policy definition in the given + /// management group with the given name. + /// + /// + /// The name of the policy definition to create. + /// + /// + /// The policy definition properties. + /// + /// + /// The ID of the management group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateAtManagementGroupWithHttpMessagesAsync(string policyDefinitionName, PolicyDefinition parameters, string managementGroupId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a policy definition in a management group. + /// + /// + /// This operation deletes the policy definition in the given + /// management group with the given name. + /// + /// + /// The name of the policy definition to delete. + /// + /// + /// The ID of the management group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteAtManagementGroupWithHttpMessagesAsync(string policyDefinitionName, string managementGroupId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieve a policy definition in a management group. + /// + /// + /// This operation retrieves the policy definition in the given + /// management group with the given name. + /// + /// + /// The name of the policy definition to get. + /// + /// + /// The ID of the management group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetAtManagementGroupWithHttpMessagesAsync(string policyDefinitionName, string managementGroupId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves policy definitions in a subscription + /// + /// + /// This operation retrieves a list of all the policy definitions in a + /// given subscription that match the optional given $filter. Valid + /// values for $filter are: 'atExactScope()', 'policyType -eq {value}' + /// or 'category eq '{value}''. If $filter is not provided, the + /// unfiltered list includes all policy definitions associated with the + /// subscription, including those that apply directly or from + /// management groups that contain the given subscription. If + /// $filter=atExactScope() is provided, the returned list only includes + /// all policy definitions that at the given subscription. If + /// $filter='policyType -eq {value}' is provided, the returned list + /// only includes all policy definitions whose type match the {value}. + /// Possible policyType values are NotSpecified, BuiltIn, Custom, and + /// Static. If $filter='category -eq {value}' is provided, the returned + /// list only includes all policy definitions whose category match the + /// {value}. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, no filtering is performed. + /// If $filter=atExactScope() is provided, the returned list only + /// includes all policy definitions that at the given scope. If + /// $filter='policyType -eq {value}' is provided, the returned list + /// only includes all policy definitions whose type match the {value}. + /// Possible policyType values are NotSpecified, BuiltIn, Custom, and + /// Static. If $filter='category -eq {value}' is provided, the returned + /// list only includes all policy definitions whose category match the + /// {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not + /// provided, it will return 500 records. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieve built-in policy definitions + /// + /// + /// This operation retrieves a list of all the built-in policy + /// definitions that match the optional given $filter. If + /// $filter='policyType -eq {value}' is provided, the returned list + /// only includes all built-in policy definitions whose type match the + /// {value}. Possible policyType values are NotSpecified, BuiltIn, + /// Custom, and Static. If $filter='category -eq {value}' is provided, + /// the returned list only includes all built-in policy definitions + /// whose category match the {value}. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, no filtering is performed. + /// If $filter=atExactScope() is provided, the returned list only + /// includes all policy definitions that at the given scope. If + /// $filter='policyType -eq {value}' is provided, the returned list + /// only includes all policy definitions whose type match the {value}. + /// Possible policyType values are NotSpecified, BuiltIn, Custom, and + /// Static. If $filter='category -eq {value}' is provided, the returned + /// list only includes all policy definitions whose category match the + /// {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not + /// provided, it will return 500 records. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListBuiltInWithHttpMessagesAsync(string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieve policy definitions in a management group + /// + /// + /// This operation retrieves a list of all the policy definitions in a + /// given management group that match the optional given $filter. Valid + /// values for $filter are: 'atExactScope()', 'policyType -eq {value}' + /// or 'category eq '{value}''. If $filter is not provided, the + /// unfiltered list includes all policy definitions associated with the + /// management group, including those that apply directly or from + /// management groups that contain the given management group. If + /// $filter=atExactScope() is provided, the returned list only includes + /// all policy definitions that at the given management group. If + /// $filter='policyType -eq {value}' is provided, the returned list + /// only includes all policy definitions whose type match the {value}. + /// Possible policyType values are NotSpecified, BuiltIn, Custom, and + /// Static. If $filter='category -eq {value}' is provided, the returned + /// list only includes all policy definitions whose category match the + /// {value}. + /// + /// + /// The ID of the management group. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, no filtering is performed. + /// If $filter=atExactScope() is provided, the returned list only + /// includes all policy definitions that at the given scope. If + /// $filter='policyType -eq {value}' is provided, the returned list + /// only includes all policy definitions whose type match the {value}. + /// Possible policyType values are NotSpecified, BuiltIn, Custom, and + /// Static. If $filter='category -eq {value}' is provided, the returned + /// list only includes all policy definitions whose category match the + /// {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not + /// provided, it will return 500 records. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByManagementGroupWithHttpMessagesAsync(string managementGroupId, string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves policy definitions in a subscription + /// + /// + /// This operation retrieves a list of all the policy definitions in a + /// given subscription that match the optional given $filter. Valid + /// values for $filter are: 'atExactScope()', 'policyType -eq {value}' + /// or 'category eq '{value}''. If $filter is not provided, the + /// unfiltered list includes all policy definitions associated with the + /// subscription, including those that apply directly or from + /// management groups that contain the given subscription. If + /// $filter=atExactScope() is provided, the returned list only includes + /// all policy definitions that at the given subscription. If + /// $filter='policyType -eq {value}' is provided, the returned list + /// only includes all policy definitions whose type match the {value}. + /// Possible policyType values are NotSpecified, BuiltIn, Custom, and + /// Static. If $filter='category -eq {value}' is provided, the returned + /// list only includes all policy definitions whose category match the + /// {value}. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieve built-in policy definitions + /// + /// + /// This operation retrieves a list of all the built-in policy + /// definitions that match the optional given $filter. If + /// $filter='policyType -eq {value}' is provided, the returned list + /// only includes all built-in policy definitions whose type match the + /// {value}. Possible policyType values are NotSpecified, BuiltIn, + /// Custom, and Static. If $filter='category -eq {value}' is provided, + /// the returned list only includes all built-in policy definitions + /// whose category match the {value}. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListBuiltInNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieve policy definitions in a management group + /// + /// + /// This operation retrieves a list of all the policy definitions in a + /// given management group that match the optional given $filter. Valid + /// values for $filter are: 'atExactScope()', 'policyType -eq {value}' + /// or 'category eq '{value}''. If $filter is not provided, the + /// unfiltered list includes all policy definitions associated with the + /// management group, including those that apply directly or from + /// management groups that contain the given management group. If + /// $filter=atExactScope() is provided, the returned list only includes + /// all policy definitions that at the given management group. If + /// $filter='policyType -eq {value}' is provided, the returned list + /// only includes all policy definitions whose type match the {value}. + /// Possible policyType values are NotSpecified, BuiltIn, Custom, and + /// Static. If $filter='category -eq {value}' is provided, the returned + /// list only includes all policy definitions whose category match the + /// {value}. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByManagementGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IPolicyExemptionsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IPolicyExemptionsOperations.cs new file mode 100644 index 000000000000..60e1fbf11576 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IPolicyExemptionsOperations.cs @@ -0,0 +1,523 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// PolicyExemptionsOperations operations. + /// + public partial interface IPolicyExemptionsOperations + { + /// + /// Deletes a policy exemption. + /// + /// + /// This operation deletes a policy exemption, given its name and the + /// scope it was created in. The scope of a policy exemption is the + /// part of its ID preceding + /// '/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}'. + /// + /// + /// The scope of the policy exemption. Valid scopes are: management + /// group (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource + /// group (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', + /// or resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + /// + /// The name of the policy exemption to delete. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string scope, string policyExemptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a policy exemption. + /// + /// + /// This operation creates or updates a policy exemption with the given + /// scope and name. Policy exemptions apply to all resources contained + /// within their scope. For example, when you create a policy exemption + /// at resource group scope for a policy assignment at the same or + /// above level, the exemption exempts to all applicable resources in + /// the resource group. + /// + /// + /// The scope of the policy exemption. Valid scopes are: management + /// group (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource + /// group (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', + /// or resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + /// + /// The name of the policy exemption to delete. + /// + /// + /// Parameters for the policy exemption. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string scope, string policyExemptionName, PolicyExemption parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves a policy exemption. + /// + /// + /// This operation retrieves a single policy exemption, given its name + /// and the scope it was created at. + /// + /// + /// The scope of the policy exemption. Valid scopes are: management + /// group (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource + /// group (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', + /// or resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + /// + /// The name of the policy exemption to delete. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string scope, string policyExemptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves all policy exemptions that apply to a subscription. + /// + /// + /// This operation retrieves the list of all policy exemptions + /// associated with the given subscription that match the optional + /// given $filter. Valid values for $filter are: 'atScope()', + /// 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq + /// '{value}''. If $filter is not provided, the unfiltered list + /// includes all policy exemptions associated with the subscription, + /// including those that apply directly or from management groups that + /// contain the given subscription, as well as any applied to objects + /// contained within the subscription. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atScope()', 'atExactScope()', 'excludeExpired()' or + /// 'policyAssignmentId eq '{value}''. If $filter is not provided, no + /// filtering is performed. If $filter is not provided, the unfiltered + /// list includes all policy exemptions associated with the scope, + /// including those that apply directly or apply from containing + /// scopes. If $filter=atScope() is provided, the returned list only + /// includes all policy exemptions that apply to the scope, which is + /// everything in the unfiltered list except those applied to sub + /// scopes contained within the given scope. If $filter=atExactScope() + /// is provided, the returned list only includes all policy exemptions + /// that at the given scope. If $filter=excludeExpired() is provided, + /// the returned list only includes all policy exemptions that either + /// haven't expired or didn't set expiration date. If + /// $filter=policyAssignmentId eq '{value}' is provided. the returned + /// list only includes all policy exemptions that are associated with + /// the give policyAssignmentId. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves all policy exemptions that apply to a resource group. + /// + /// + /// This operation retrieves the list of all policy exemptions + /// associated with the given resource group in the given subscription + /// that match the optional given $filter. Valid values for $filter + /// are: 'atScope()', 'atExactScope()', 'excludeExpired()' or + /// 'policyAssignmentId eq '{value}''. If $filter is not provided, the + /// unfiltered list includes all policy exemptions associated with the + /// resource group, including those that apply directly or apply from + /// containing scopes, as well as any applied to resources contained + /// within the resource group. + /// + /// + /// The name of the resource group containing the resource. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atScope()', 'atExactScope()', 'excludeExpired()' or + /// 'policyAssignmentId eq '{value}''. If $filter is not provided, no + /// filtering is performed. If $filter is not provided, the unfiltered + /// list includes all policy exemptions associated with the scope, + /// including those that apply directly or apply from containing + /// scopes. If $filter=atScope() is provided, the returned list only + /// includes all policy exemptions that apply to the scope, which is + /// everything in the unfiltered list except those applied to sub + /// scopes contained within the given scope. If $filter=atExactScope() + /// is provided, the returned list only includes all policy exemptions + /// that at the given scope. If $filter=excludeExpired() is provided, + /// the returned list only includes all policy exemptions that either + /// haven't expired or didn't set expiration date. If + /// $filter=policyAssignmentId eq '{value}' is provided. the returned + /// list only includes all policy exemptions that are associated with + /// the give policyAssignmentId. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListForResourceGroupWithHttpMessagesAsync(string resourceGroupName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves all policy exemptions that apply to a resource. + /// + /// + /// This operation retrieves the list of all policy exemptions + /// associated with the specified resource in the given resource group + /// and subscription that match the optional given $filter. Valid + /// values for $filter are: 'atScope()', 'atExactScope()', + /// 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter + /// is not provided, the unfiltered list includes all policy exemptions + /// associated with the resource, including those that apply directly + /// or from all containing scopes, as well as any applied to resources + /// contained within the resource. Three parameters plus the resource + /// name are used to identify a specific resource. If the resource is + /// not part of a parent resource (the more common case), the parent + /// resource path should not be provided (or provided as ''). For + /// example a web app could be specified as + /// ({resourceProviderNamespace} == 'Microsoft.Web', + /// {parentResourcePath} == '', {resourceType} == 'sites', + /// {resourceName} == 'MyWebApp'). If the resource is part of a parent + /// resource, then all parameters should be provided. For example a + /// virtual machine DNS name could be specified as + /// ({resourceProviderNamespace} == 'Microsoft.Compute', + /// {parentResourcePath} == 'virtualMachines/MyVirtualMachine', + /// {resourceType} == 'domainNames', {resourceName} == + /// 'MyComputerName'). A convenient alternative to providing the + /// namespace and type name separately is to provide both in the + /// {resourceType} parameter, format: ({resourceProviderNamespace} == + /// '', {parentResourcePath} == '', {resourceType} == + /// 'Microsoft.Web/sites', {resourceName} == 'MyWebApp'). + /// + /// + /// The name of the resource group containing the resource. + /// + /// + /// The namespace of the resource provider. For example, the namespace + /// of a virtual machine is Microsoft.Compute (from + /// Microsoft.Compute/virtualMachines) + /// + /// + /// The parent resource path. Use empty string if there is none. + /// + /// + /// The resource type name. For example the type name of a web app is + /// 'sites' (from Microsoft.Web/sites). + /// + /// + /// The name of the resource. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atScope()', 'atExactScope()', 'excludeExpired()' or + /// 'policyAssignmentId eq '{value}''. If $filter is not provided, no + /// filtering is performed. If $filter is not provided, the unfiltered + /// list includes all policy exemptions associated with the scope, + /// including those that apply directly or apply from containing + /// scopes. If $filter=atScope() is provided, the returned list only + /// includes all policy exemptions that apply to the scope, which is + /// everything in the unfiltered list except those applied to sub + /// scopes contained within the given scope. If $filter=atExactScope() + /// is provided, the returned list only includes all policy exemptions + /// that at the given scope. If $filter=excludeExpired() is provided, + /// the returned list only includes all policy exemptions that either + /// haven't expired or didn't set expiration date. If + /// $filter=policyAssignmentId eq '{value}' is provided. the returned + /// list only includes all policy exemptions that are associated with + /// the give policyAssignmentId. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListForResourceWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves all policy exemptions that apply to a management group. + /// + /// + /// This operation retrieves the list of all policy exemptions + /// applicable to the management group that match the given $filter. + /// Valid values for $filter are: 'atScope()', 'atExactScope()', + /// 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If + /// $filter=atScope() is provided, the returned list includes all + /// policy exemptions that are assigned to the management group or the + /// management group's ancestors. + /// + /// + /// The ID of the management group. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atScope()', 'atExactScope()', 'excludeExpired()' or + /// 'policyAssignmentId eq '{value}''. If $filter is not provided, no + /// filtering is performed. If $filter is not provided, the unfiltered + /// list includes all policy exemptions associated with the scope, + /// including those that apply directly or apply from containing + /// scopes. If $filter=atScope() is provided, the returned list only + /// includes all policy exemptions that apply to the scope, which is + /// everything in the unfiltered list except those applied to sub + /// scopes contained within the given scope. If $filter=atExactScope() + /// is provided, the returned list only includes all policy exemptions + /// that at the given scope. If $filter=excludeExpired() is provided, + /// the returned list only includes all policy exemptions that either + /// haven't expired or didn't set expiration date. If + /// $filter=policyAssignmentId eq '{value}' is provided. the returned + /// list only includes all policy exemptions that are associated with + /// the give policyAssignmentId. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListForManagementGroupWithHttpMessagesAsync(string managementGroupId, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves all policy exemptions that apply to a subscription. + /// + /// + /// This operation retrieves the list of all policy exemptions + /// associated with the given subscription that match the optional + /// given $filter. Valid values for $filter are: 'atScope()', + /// 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq + /// '{value}''. If $filter is not provided, the unfiltered list + /// includes all policy exemptions associated with the subscription, + /// including those that apply directly or from management groups that + /// contain the given subscription, as well as any applied to objects + /// contained within the subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves all policy exemptions that apply to a resource group. + /// + /// + /// This operation retrieves the list of all policy exemptions + /// associated with the given resource group in the given subscription + /// that match the optional given $filter. Valid values for $filter + /// are: 'atScope()', 'atExactScope()', 'excludeExpired()' or + /// 'policyAssignmentId eq '{value}''. If $filter is not provided, the + /// unfiltered list includes all policy exemptions associated with the + /// resource group, including those that apply directly or apply from + /// containing scopes, as well as any applied to resources contained + /// within the resource group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListForResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves all policy exemptions that apply to a resource. + /// + /// + /// This operation retrieves the list of all policy exemptions + /// associated with the specified resource in the given resource group + /// and subscription that match the optional given $filter. Valid + /// values for $filter are: 'atScope()', 'atExactScope()', + /// 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter + /// is not provided, the unfiltered list includes all policy exemptions + /// associated with the resource, including those that apply directly + /// or from all containing scopes, as well as any applied to resources + /// contained within the resource. Three parameters plus the resource + /// name are used to identify a specific resource. If the resource is + /// not part of a parent resource (the more common case), the parent + /// resource path should not be provided (or provided as ''). For + /// example a web app could be specified as + /// ({resourceProviderNamespace} == 'Microsoft.Web', + /// {parentResourcePath} == '', {resourceType} == 'sites', + /// {resourceName} == 'MyWebApp'). If the resource is part of a parent + /// resource, then all parameters should be provided. For example a + /// virtual machine DNS name could be specified as + /// ({resourceProviderNamespace} == 'Microsoft.Compute', + /// {parentResourcePath} == 'virtualMachines/MyVirtualMachine', + /// {resourceType} == 'domainNames', {resourceName} == + /// 'MyComputerName'). A convenient alternative to providing the + /// namespace and type name separately is to provide both in the + /// {resourceType} parameter, format: ({resourceProviderNamespace} == + /// '', {parentResourcePath} == '', {resourceType} == + /// 'Microsoft.Web/sites', {resourceName} == 'MyWebApp'). + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListForResourceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves all policy exemptions that apply to a management group. + /// + /// + /// This operation retrieves the list of all policy exemptions + /// applicable to the management group that match the given $filter. + /// Valid values for $filter are: 'atScope()', 'atExactScope()', + /// 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If + /// $filter=atScope() is provided, the returned list includes all + /// policy exemptions that are assigned to the management group or the + /// management group's ancestors. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListForManagementGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IPolicySetDefinitionsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IPolicySetDefinitionsOperations.cs new file mode 100644 index 000000000000..23854dfadcc6 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IPolicySetDefinitionsOperations.cs @@ -0,0 +1,477 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// PolicySetDefinitionsOperations operations. + /// + public partial interface IPolicySetDefinitionsOperations + { + /// + /// Creates or updates a policy set definition. + /// + /// + /// This operation creates or updates a policy set definition in the + /// given subscription with the given name. + /// + /// + /// The name of the policy set definition to create. + /// + /// + /// The policy set definition properties. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string policySetDefinitionName, PolicySetDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a policy set definition. + /// + /// + /// This operation deletes the policy set definition in the given + /// subscription with the given name. + /// + /// + /// The name of the policy set definition to delete. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string policySetDefinitionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves a policy set definition. + /// + /// + /// This operation retrieves the policy set definition in the given + /// subscription with the given name. + /// + /// + /// The name of the policy set definition to get. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string policySetDefinitionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves a built in policy set definition. + /// + /// + /// This operation retrieves the built-in policy set definition with + /// the given name. + /// + /// + /// The name of the policy set definition to get. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetBuiltInWithHttpMessagesAsync(string policySetDefinitionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves the policy set definitions for a subscription. + /// + /// + /// This operation retrieves a list of all the policy set definitions + /// in a given subscription that match the optional given $filter. + /// Valid values for $filter are: 'atExactScope()', 'policyType -eq + /// {value}' or 'category eq '{value}''. If $filter is not provided, + /// the unfiltered list includes all policy set definitions associated + /// with the subscription, including those that apply directly or from + /// management groups that contain the given subscription. If + /// $filter=atExactScope() is provided, the returned list only includes + /// all policy set definitions that at the given subscription. If + /// $filter='policyType -eq {value}' is provided, the returned list + /// only includes all policy set definitions whose type match the + /// {value}. Possible policyType values are NotSpecified, BuiltIn and + /// Custom. If $filter='category -eq {value}' is provided, the returned + /// list only includes all policy set definitions whose category match + /// the {value}. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, no filtering is performed. + /// If $filter=atExactScope() is provided, the returned list only + /// includes all policy set definitions that at the given scope. If + /// $filter='policyType -eq {value}' is provided, the returned list + /// only includes all policy set definitions whose type match the + /// {value}. Possible policyType values are NotSpecified, BuiltIn, + /// Custom, and Static. If $filter='category -eq {value}' is provided, + /// the returned list only includes all policy set definitions whose + /// category match the {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not + /// provided, it will return 500 records. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves built-in policy set definitions. + /// + /// + /// This operation retrieves a list of all the built-in policy set + /// definitions that match the optional given $filter. If + /// $filter='category -eq {value}' is provided, the returned list only + /// includes all built-in policy set definitions whose category match + /// the {value}. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, no filtering is performed. + /// If $filter=atExactScope() is provided, the returned list only + /// includes all policy set definitions that at the given scope. If + /// $filter='policyType -eq {value}' is provided, the returned list + /// only includes all policy set definitions whose type match the + /// {value}. Possible policyType values are NotSpecified, BuiltIn, + /// Custom, and Static. If $filter='category -eq {value}' is provided, + /// the returned list only includes all policy set definitions whose + /// category match the {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not + /// provided, it will return 500 records. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListBuiltInWithHttpMessagesAsync(string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a policy set definition. + /// + /// + /// This operation creates or updates a policy set definition in the + /// given management group with the given name. + /// + /// + /// The name of the policy set definition to create. + /// + /// + /// The policy set definition properties. + /// + /// + /// The ID of the management group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateAtManagementGroupWithHttpMessagesAsync(string policySetDefinitionName, PolicySetDefinition parameters, string managementGroupId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a policy set definition. + /// + /// + /// This operation deletes the policy set definition in the given + /// management group with the given name. + /// + /// + /// The name of the policy set definition to delete. + /// + /// + /// The ID of the management group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteAtManagementGroupWithHttpMessagesAsync(string policySetDefinitionName, string managementGroupId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves a policy set definition. + /// + /// + /// This operation retrieves the policy set definition in the given + /// management group with the given name. + /// + /// + /// The name of the policy set definition to get. + /// + /// + /// The ID of the management group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetAtManagementGroupWithHttpMessagesAsync(string policySetDefinitionName, string managementGroupId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves all policy set definitions in management group. + /// + /// + /// This operation retrieves a list of all the policy set definitions + /// in a given management group that match the optional given $filter. + /// Valid values for $filter are: 'atExactScope()', 'policyType -eq + /// {value}' or 'category eq '{value}''. If $filter is not provided, + /// the unfiltered list includes all policy set definitions associated + /// with the management group, including those that apply directly or + /// from management groups that contain the given management group. If + /// $filter=atExactScope() is provided, the returned list only includes + /// all policy set definitions that at the given management group. If + /// $filter='policyType -eq {value}' is provided, the returned list + /// only includes all policy set definitions whose type match the + /// {value}. Possible policyType values are NotSpecified, BuiltIn and + /// Custom. If $filter='category -eq {value}' is provided, the returned + /// list only includes all policy set definitions whose category match + /// the {value}. + /// + /// + /// The ID of the management group. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, no filtering is performed. + /// If $filter=atExactScope() is provided, the returned list only + /// includes all policy set definitions that at the given scope. If + /// $filter='policyType -eq {value}' is provided, the returned list + /// only includes all policy set definitions whose type match the + /// {value}. Possible policyType values are NotSpecified, BuiltIn, + /// Custom, and Static. If $filter='category -eq {value}' is provided, + /// the returned list only includes all policy set definitions whose + /// category match the {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not + /// provided, it will return 500 records. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByManagementGroupWithHttpMessagesAsync(string managementGroupId, string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves the policy set definitions for a subscription. + /// + /// + /// This operation retrieves a list of all the policy set definitions + /// in a given subscription that match the optional given $filter. + /// Valid values for $filter are: 'atExactScope()', 'policyType -eq + /// {value}' or 'category eq '{value}''. If $filter is not provided, + /// the unfiltered list includes all policy set definitions associated + /// with the subscription, including those that apply directly or from + /// management groups that contain the given subscription. If + /// $filter=atExactScope() is provided, the returned list only includes + /// all policy set definitions that at the given subscription. If + /// $filter='policyType -eq {value}' is provided, the returned list + /// only includes all policy set definitions whose type match the + /// {value}. Possible policyType values are NotSpecified, BuiltIn and + /// Custom. If $filter='category -eq {value}' is provided, the returned + /// list only includes all policy set definitions whose category match + /// the {value}. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves built-in policy set definitions. + /// + /// + /// This operation retrieves a list of all the built-in policy set + /// definitions that match the optional given $filter. If + /// $filter='category -eq {value}' is provided, the returned list only + /// includes all built-in policy set definitions whose category match + /// the {value}. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListBuiltInNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Retrieves all policy set definitions in management group. + /// + /// + /// This operation retrieves a list of all the policy set definitions + /// in a given management group that match the optional given $filter. + /// Valid values for $filter are: 'atExactScope()', 'policyType -eq + /// {value}' or 'category eq '{value}''. If $filter is not provided, + /// the unfiltered list includes all policy set definitions associated + /// with the management group, including those that apply directly or + /// from management groups that contain the given management group. If + /// $filter=atExactScope() is provided, the returned list only includes + /// all policy set definitions that at the given management group. If + /// $filter='policyType -eq {value}' is provided, the returned list + /// only includes all policy set definitions whose type match the + /// {value}. Possible policyType values are NotSpecified, BuiltIn and + /// Custom. If $filter='category -eq {value}' is provided, the returned + /// list only includes all policy set definitions whose category match + /// the {value}. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByManagementGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IProviderResourceTypesOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IProviderResourceTypesOperations.cs new file mode 100644 index 000000000000..dc9596a63a4b --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IProviderResourceTypesOperations.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ProviderResourceTypesOperations operations. + /// + public partial interface IProviderResourceTypesOperations + { + /// + /// List the resource types for a 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 headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ListWithHttpMessagesAsync(string resourceProviderNamespace, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IProvidersOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IProvidersOperations.cs new file mode 100644 index 000000000000..0d78a83859b3 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IProvidersOperations.cs @@ -0,0 +1,272 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ProvidersOperations operations. + /// + public partial interface IProvidersOperations + { + /// + /// Unregisters a subscription from a resource provider. + /// + /// + /// The namespace of the resource provider to unregister. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UnregisterWithHttpMessagesAsync(string resourceProviderNamespace, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Registers a management group with a resource provider. + /// + /// + /// The namespace of the resource provider to register. + /// + /// + /// The management group ID. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task RegisterAtManagementGroupScopeWithHttpMessagesAsync(string resourceProviderNamespace, string groupId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get the provider permissions. + /// + /// + /// The namespace of the resource provider. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ProviderPermissionsWithHttpMessagesAsync(string resourceProviderNamespace, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Registers a subscription with a resource provider. + /// + /// + /// The namespace of the resource provider to register. + /// + /// + /// The third party consent for S2S. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> RegisterWithHttpMessagesAsync(string resourceProviderNamespace, ProviderRegistrationRequest properties = default(ProviderRegistrationRequest), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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 headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(int? top = default(int?), string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all resource providers for the tenant. + /// + /// + /// The number of results to return. If null is passed returns all + /// providers. + /// + /// + /// 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 headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtTenantScopeWithHttpMessagesAsync(int? top = default(int?), string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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 headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceProviderNamespace, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the specified resource provider at the tenant level. + /// + /// + /// The namespace of the resource provider. + /// + /// + /// The $expand query parameter. For example, to include property + /// aliases in response, use $expand=resourceTypes/aliases. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetAtTenantScopeWithHttpMessagesAsync(string resourceProviderNamespace, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all resource providers for a subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all resource providers for the tenant. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtTenantScopeNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IResourceGroupsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IResourceGroupsOperations.cs new file mode 100644 index 000000000000..079b910cfc0d --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IResourceGroupsOperations.cs @@ -0,0 +1,284 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ResourceGroupsOperations operations. + /// + public partial interface IResourceGroupsOperations + { + /// + /// Checks whether a resource group exists. + /// + /// + /// The name of the resource group to check. The name is case + /// insensitive. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task> CheckExistenceWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a resource group. + /// + /// + /// The name of the resource group to create or update. Can include + /// alphanumeric, underscore, parentheses, hyphen, period (except at + /// end), and Unicode characters that match the allowed characters. + /// + /// + /// Parameters supplied to the create or update a resource group. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, ResourceGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a resource group. + /// + /// + /// 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 resource types you want to force delete. Currently, only the + /// following is supported: + /// forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string forceDeletionTypes = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a resource group. + /// + /// + /// The name of the resource group to get. The name is case + /// insensitive. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a resource group. + /// + /// + /// 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 headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, ResourceGroupPatchable parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Captures the specified resource group as a template. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Parameters for exporting the template. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ExportTemplateWithHttpMessagesAsync(string resourceGroupName, ExportTemplateRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the resource groups for a subscription. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a resource group. + /// + /// + /// 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 resource types you want to force delete. Currently, only the + /// following is supported: + /// forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string forceDeletionTypes = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Captures the specified resource group as a template. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Parameters for exporting the template. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginExportTemplateWithHttpMessagesAsync(string resourceGroupName, ExportTemplateRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the resource groups for a subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IResourceLinksOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IResourceLinksOperations.cs new file mode 100644 index 000000000000..17f290230a3e --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IResourceLinksOperations.cs @@ -0,0 +1,197 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ResourceLinksOperations operations. + /// + public partial interface IResourceLinksOperations + { + /// + /// Deletes a resource link with the specified ID. + /// + /// + /// The fully qualified ID of the resource link. Use the format, + /// /subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/{provider-namespace}/{resource-type}/{resource-name}/Microsoft.Resources/links/{link-name}. + /// For example, + /// /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates a resource link between the specified resources. + /// + /// + /// The fully qualified ID of the resource link. Use the format, + /// /subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/{provider-namespace}/{resource-type}/{resource-name}/Microsoft.Resources/links/{link-name}. + /// For example, + /// /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink + /// + /// + /// Parameters for creating or updating a resource link. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string linkId, ResourceLink parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a resource link with the specified ID. + /// + /// + /// The fully qualified Id of the resource link. For example, + /// /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the linked resources for the subscription. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtSubscriptionWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of resource links at and below the specified source + /// scope. + /// + /// + /// The fully qualified ID of the scope for getting the resource links. + /// For example, to list resource links at and under a resource group, + /// set the scope to + /// /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtSourceScopeWithHttpMessagesAsync(string scope, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all the linked resources for the subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtSubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of resource links at and below the specified source + /// scope. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAtSourceScopeNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IResourceManagementClient.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IResourceManagementClient.cs new file mode 100644 index 000000000000..43f5a54c009f --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IResourceManagementClient.cs @@ -0,0 +1,113 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + + /// + /// Provides operations for working with resources and resource groups. + /// + public partial interface IResourceManagementClient : System.IDisposable + { + /// + /// The base URI of the service. + /// + System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + JsonSerializerSettings SerializationSettings { get; } + + /// + /// Gets or sets json deserialization settings. + /// + JsonSerializerSettings DeserializationSettings { get; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + ServiceClientCredentials Credentials { get; } + + /// + /// The Microsoft Azure subscription ID. + /// + string SubscriptionId { get; set; } + + /// + /// The API version to use for this operation. + /// + string ApiVersion { get; } + + /// + /// The preferred language for the response. + /// + string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default + /// value is 30. + /// + int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. When + /// set to true a unique x-ms-client-request-id value is generated and + /// included in each request. Default is true. + /// + bool? GenerateClientRequestId { get; set; } + + + /// + /// Gets the IOperations. + /// + IOperations Operations { get; } + + /// + /// Gets the IDeploymentsOperations. + /// + IDeploymentsOperations Deployments { get; } + + /// + /// Gets the IProvidersOperations. + /// + IProvidersOperations Providers { get; } + + /// + /// Gets the IProviderResourceTypesOperations. + /// + IProviderResourceTypesOperations ProviderResourceTypes { get; } + + /// + /// Gets the IResourcesOperations. + /// + IResourcesOperations Resources { get; } + + /// + /// Gets the IResourceGroupsOperations. + /// + IResourceGroupsOperations ResourceGroups { get; } + + /// + /// Gets the ITagsOperations. + /// + ITagsOperations Tags { get; } + + /// + /// Gets the IDeploymentOperations. + /// + IDeploymentOperations DeploymentOperations { get; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IResourcesOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IResourcesOperations.cs new file mode 100644 index 000000000000..e15905153906 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/IResourcesOperations.cs @@ -0,0 +1,775 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ResourcesOperations operations. + /// + public partial interface IResourcesOperations + { + /// + /// Get all the resources for a resource group. + /// + /// + /// The resource group with the resources to get. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Moves resources from one resource group to another resource group. + /// + /// + /// The resources to be moved must be in the same source resource group + /// in the source subscription being used. 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 from the source subscription + /// containing the resources to be moved. + /// + /// + /// Parameters for moving resources. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task MoveResourcesWithHttpMessagesAsync(string sourceResourceGroupName, ResourcesMoveInfo parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Validates whether resources can be moved from one resource group to + /// another resource group. + /// + /// + /// This operation checks whether the specified resources can be moved + /// to the target. The resources to be moved must be in the same source + /// resource group in the source subscription being used. 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 from the source subscription + /// containing the resources to be validated for move. + /// + /// + /// Parameters for moving resources. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task ValidateMoveResourcesWithHttpMessagesAsync(string sourceResourceGroupName, ResourcesMoveInfo parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get all the resources in a subscription. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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 API version to use for the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task> CheckExistenceWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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 API version to use for the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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. + /// + /// + /// The API version to use for the operation. + /// + /// + /// Parameters for creating or updating the resource. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, GenericResource parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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. + /// + /// + /// The API version to use for the operation. + /// + /// + /// Parameters for updating the resource. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, GenericResource parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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 API version to use for the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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 API version to use for the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task> CheckExistenceByIdWithHttpMessagesAsync(string resourceId, string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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 API version to use for the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteByIdWithHttpMessagesAsync(string resourceId, string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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} + /// + /// + /// The API version to use for the operation. + /// + /// + /// Create or update resource parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateByIdWithHttpMessagesAsync(string resourceId, string apiVersion, GenericResource parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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} + /// + /// + /// The API version to use for the operation. + /// + /// + /// Update resource parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateByIdWithHttpMessagesAsync(string resourceId, string apiVersion, GenericResource parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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 API version to use for the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetByIdWithHttpMessagesAsync(string resourceId, string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Moves resources from one resource group to another resource group. + /// + /// + /// The resources to be moved must be in the same source resource group + /// in the source subscription being used. 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 from the source subscription + /// containing the resources to be moved. + /// + /// + /// Parameters for moving resources. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginMoveResourcesWithHttpMessagesAsync(string sourceResourceGroupName, ResourcesMoveInfo parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Validates whether resources can be moved from one resource group to + /// another resource group. + /// + /// + /// This operation checks whether the specified resources can be moved + /// to the target. The resources to be moved must be in the same source + /// resource group in the source subscription being used. 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 from the source subscription + /// containing the resources to be validated for move. + /// + /// + /// Parameters for moving resources. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginValidateMoveResourcesWithHttpMessagesAsync(string sourceResourceGroupName, ResourcesMoveInfo parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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 API version to use for the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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. + /// + /// + /// The API version to use for the operation. + /// + /// + /// Parameters for creating or updating the resource. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, GenericResource parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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. + /// + /// + /// The API version to use for the operation. + /// + /// + /// Parameters for updating the resource. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, GenericResource parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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 API version to use for the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteByIdWithHttpMessagesAsync(string resourceId, string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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} + /// + /// + /// The API version to use for the operation. + /// + /// + /// Create or update resource parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateOrUpdateByIdWithHttpMessagesAsync(string resourceId, string apiVersion, GenericResource parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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} + /// + /// + /// The API version to use for the operation. + /// + /// + /// Update resource parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginUpdateByIdWithHttpMessagesAsync(string resourceId, string apiVersion, GenericResource parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get all the resources for a resource group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get all the resources in a subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ISubscriptionClient.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ISubscriptionClient.cs new file mode 100644 index 000000000000..ac1cbd16a473 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ISubscriptionClient.cs @@ -0,0 +1,108 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// All resource groups and resources exist within subscriptions. These + /// operation enable you get information about your subscriptions and + /// tenants. A tenant is a dedicated instance of Azure Active Directory + /// (Azure AD) for your organization. + /// + public partial interface ISubscriptionClient : System.IDisposable + { + /// + /// The base URI of the service. + /// + System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + JsonSerializerSettings SerializationSettings { get; } + + /// + /// Gets or sets json deserialization settings. + /// + JsonSerializerSettings DeserializationSettings { get; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + ServiceClientCredentials Credentials { get; } + + /// + /// The API version to use for the operation. + /// + string ApiVersion { get; } + + /// + /// The preferred language for the response. + /// + string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default + /// value is 30. + /// + int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. When + /// set to true a unique x-ms-client-request-id value is generated and + /// included in each request. Default is true. + /// + bool? GenerateClientRequestId { get; set; } + + + /// + /// Gets the IOperations. + /// + IOperations Operations { get; } + + /// + /// Gets the ISubscriptionsOperations. + /// + ISubscriptionsOperations Subscriptions { get; } + + /// + /// Gets the ITenantsOperations. + /// + ITenantsOperations Tenants { get; } + + /// + /// Checks resource name validity + /// + /// + /// A resource name is valid if it is not a reserved word, does not + /// contains a reserved word and does not start with a reserved word + /// + /// + /// Resource object with values for resource name and resource type + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + Task> CheckResourceNameWithHttpMessagesAsync(ResourceName resourceNameDefinition = default(ResourceName), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ISubscriptionFeatureRegistrationsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ISubscriptionFeatureRegistrationsOperations.cs new file mode 100644 index 000000000000..1e474a5d44fc --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ISubscriptionFeatureRegistrationsOperations.cs @@ -0,0 +1,192 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// SubscriptionFeatureRegistrationsOperations operations. + /// + public partial interface ISubscriptionFeatureRegistrationsOperations + { + /// + /// Returns a feature registration + /// + /// + /// The API version to use for this operation. + /// + /// + /// The feature name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string apiVersion, string featureName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or update a feature registration. + /// + /// + /// The API version to use for this operation. + /// + /// + /// The feature name. + /// + /// + /// Subscription Feature Registration Type details. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string apiVersion, string featureName, SubscriptionFeatureRegistration subscriptionFeatureRegistrationType = default(SubscriptionFeatureRegistration), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a feature registration + /// + /// + /// The API version to use for this operation. + /// + /// + /// The feature name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string apiVersion, string featureName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Returns subscription feature registrations for given subscription + /// and provider namespace. + /// + /// + /// The API version to use for this operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListBySubscriptionWithHttpMessagesAsync(string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Returns subscription feature registrations for given subscription. + /// + /// + /// The API version to use for this operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAllBySubscriptionWithHttpMessagesAsync(string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Returns subscription feature registrations for given subscription + /// and provider namespace. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Returns subscription feature registrations for given subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListAllBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ISubscriptionsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ISubscriptionsOperations.cs new file mode 100644 index 000000000000..0bd2d1982258 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ISubscriptionsOperations.cs @@ -0,0 +1,120 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// SubscriptionsOperations operations. + /// + public partial interface ISubscriptionsOperations + { + /// + /// Gets all available geo-locations. + /// + /// + /// This operation provides all the locations that are available for + /// resource providers; however, each resource provider may support a + /// subset of this list. + /// + /// + /// The ID of the target subscription. + /// + /// + /// Whether to include extended locations. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListLocationsWithHttpMessagesAsync(string subscriptionId, bool? includeExtendedLocations = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets details about a specified subscription. + /// + /// + /// The ID of the target subscription. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string subscriptionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all subscriptions for a tenant. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all subscriptions for a tenant. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ITagsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ITagsOperations.cs new file mode 100644 index 000000000000..6feb9c72b1f9 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ITagsOperations.cs @@ -0,0 +1,299 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// TagsOperations operations. + /// + public partial interface ITagsOperations + { + /// + /// Deletes a predefined tag value for a predefined tag name. + /// + /// + /// This operation allows deleting a value from the list of predefined + /// values for an existing predefined tag name. The value being deleted + /// must not be in use as a tag value for the given tag name for any + /// resource. + /// + /// + /// The name of the tag. + /// + /// + /// The value of the tag to delete. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteValueWithHttpMessagesAsync(string tagName, string tagValue, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a predefined value for a predefined tag name. + /// + /// + /// This operation allows adding a value to the list of predefined + /// values for an existing predefined tag name. A tag value can have a + /// maximum of 256 characters. + /// + /// + /// The name of the tag. + /// + /// + /// The value of the tag to create. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateValueWithHttpMessagesAsync(string tagName, string tagValue, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a predefined tag name. + /// + /// + /// This operation allows adding a name to the list of predefined tag + /// names for the given subscription. A tag name can have a maximum of + /// 512 characters and is case-insensitive. Tag names cannot have the + /// following prefixes which are reserved for Azure use: 'microsoft', + /// 'azure', 'windows'. + /// + /// + /// The name of the tag to create. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string tagName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a predefined tag name. + /// + /// + /// This operation allows deleting a name from the list of predefined + /// tag names for the given subscription. The name being deleted must + /// not be in use as a tag name for any resource. All predefined values + /// for the given name must have already been deleted. + /// + /// + /// The name of the tag. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string tagName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a summary of tag usage under the subscription. + /// + /// + /// This operation performs a union of predefined tags, resource tags, + /// resource group tags and subscription tags, and returns a summary of + /// usage for each tag name and value under the given subscription. In + /// case of a large number of tags, this operation may return a + /// previously cached result. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates the entire set of tags on a resource or + /// subscription. + /// + /// + /// This operation allows adding or replacing the entire set of tags on + /// the specified resource or subscription. The specified entity can + /// have a maximum of 50 tags. + /// + /// + /// The resource scope. + /// + /// + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateAtScopeWithHttpMessagesAsync(string scope, TagsResource parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Selectively updates the set of tags on a resource or subscription. + /// + /// + /// This operation allows replacing, merging or selectively deleting + /// tags on the specified resource or subscription. The specified + /// entity can have a maximum of 50 tags at the end of the operation. + /// The 'replace' option replaces the entire set of existing tags with + /// a new set. The 'merge' option allows adding tags with new names and + /// updating the values of tags with existing names. The 'delete' + /// option allows selectively deleting tags based on given names or + /// name/value pairs. + /// + /// + /// The resource scope. + /// + /// + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateAtScopeWithHttpMessagesAsync(string scope, TagsPatchResource parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the entire set of tags on a resource or subscription. + /// + /// + /// The resource scope. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetAtScopeWithHttpMessagesAsync(string scope, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the entire set of tags on a resource or subscription. + /// + /// + /// The resource scope. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteAtScopeWithHttpMessagesAsync(string scope, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a summary of tag usage under the subscription. + /// + /// + /// This operation performs a union of predefined tags, resource tags, + /// resource group tags and subscription tags, and returns a summary of + /// usage for each tag name and value under the given subscription. In + /// case of a large number of tags, this operation may return a + /// previously cached result. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ITemplateSpecVersionsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ITemplateSpecVersionsOperations.cs new file mode 100644 index 000000000000..63b3688082fc --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ITemplateSpecVersionsOperations.cs @@ -0,0 +1,192 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// TemplateSpecVersionsOperations operations. + /// + public partial interface ITemplateSpecVersionsOperations + { + /// + /// Creates or updates a Template Spec version. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// The version of the Template Spec. + /// + /// + /// Template Spec Version supplied to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string templateSpecName, string templateSpecVersion, TemplateSpecVersion templateSpecVersionModel, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates Template Spec Version tags with specified values. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// The version of the Template Spec. + /// + /// + /// Template Spec Version resource with the tags to be updated. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string templateSpecName, string templateSpecVersion, TemplateSpecVersionUpdateModel templateSpecVersionUpdateModel = default(TemplateSpecVersionUpdateModel), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a Template Spec version from a specific Template Spec. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// The version of the Template Spec. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string templateSpecName, string templateSpecVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a specific version from a Template Spec. When operation + /// completes, status code 200 returned without content. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// The version of the Template Spec. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string templateSpecName, string templateSpecVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all the Template Spec versions in the specified Template + /// Spec. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string resourceGroupName, string templateSpecName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all the Template Spec versions in the specified Template + /// Spec. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ITemplateSpecsClient.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ITemplateSpecsClient.cs new file mode 100644 index 000000000000..00e83e8042a9 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ITemplateSpecsClient.cs @@ -0,0 +1,84 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + + /// + /// The APIs listed in this specification can be used to manage Template + /// Spec resources through the Azure Resource Manager. + /// + public partial interface ITemplateSpecsClient : System.IDisposable + { + /// + /// The base URI of the service. + /// + System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + JsonSerializerSettings SerializationSettings { get; } + + /// + /// Gets or sets json deserialization settings. + /// + JsonSerializerSettings DeserializationSettings { get; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + ServiceClientCredentials Credentials { get; } + + /// + /// Subscription Id which forms part of the URI for every service call. + /// + string SubscriptionId { get; set; } + + /// + /// Client Api version. + /// + string ApiVersion { get; } + + /// + /// The preferred language for the response. + /// + string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default + /// value is 30. + /// + int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. When + /// set to true a unique x-ms-client-request-id value is generated and + /// included in each request. Default is true. + /// + bool? GenerateClientRequestId { get; set; } + + + /// + /// Gets the ITemplateSpecsOperations. + /// + ITemplateSpecsOperations TemplateSpecs { get; } + + /// + /// Gets the ITemplateSpecVersionsOperations. + /// + ITemplateSpecVersionsOperations TemplateSpecVersions { get; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ITemplateSpecsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ITemplateSpecsOperations.cs new file mode 100644 index 000000000000..876a48586182 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ITemplateSpecsOperations.cs @@ -0,0 +1,228 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// TemplateSpecsOperations operations. + /// + public partial interface ITemplateSpecsOperations + { + /// + /// Creates or updates a Template Spec. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// Template Spec supplied to the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string templateSpecName, TemplateSpec templateSpec, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates Template Spec tags with specified values. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// Template Spec resource with the tags to be updated. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string templateSpecName, TemplateSpecUpdateModel templateSpec = default(TemplateSpecUpdateModel), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a Template Spec with a given name. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// Allows for expansion of additional Template Spec details in the + /// response. Optional. Possible values include: 'versions' + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string templateSpecName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a Template Spec by name. When operation completes, status + /// code 200 returned without content. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string templateSpecName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all the Template Specs within the specified subscriptions. + /// + /// + /// Allows for expansion of additional Template Spec details in the + /// response. Optional. Possible values include: 'versions' + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListBySubscriptionWithHttpMessagesAsync(string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all the Template Specs within the specified resource group. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Allows for expansion of additional Template Spec details in the + /// response. Optional. Possible values include: 'versions' + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all the Template Specs within the specified subscriptions. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all the Template Specs within the specified resource group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ITenantsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ITenantsOperations.cs new file mode 100644 index 000000000000..dd947f7281f7 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ITenantsOperations.cs @@ -0,0 +1,68 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// TenantsOperations operations. + /// + public partial interface ITenantsOperations + { + /// + /// Gets the tenants for your account. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the tenants for your account. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ManagementLinkClient.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ManagementLinkClient.cs new file mode 100644 index 000000000000..82892ad753d4 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ManagementLinkClient.cs @@ -0,0 +1,369 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + + /// + /// Azure resources can be linked together to form logical relationships. + /// You can establish links between resources belonging to different + /// resource groups. However, all the linked resources must belong to the + /// same subscription. Each resource can be linked to 50 other resources. + /// If any of the linked resources are deleted or moved, the link owner + /// must clean up the remaining link. + /// + public partial class ManagementLinkClient : ServiceClient, IManagementLinkClient, IAzureClient + { + /// + /// The base URI of the service. + /// + public System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + public JsonSerializerSettings SerializationSettings { get; private set; } + + /// + /// Gets or sets json deserialization settings. + /// + public JsonSerializerSettings DeserializationSettings { get; private set; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + public ServiceClientCredentials Credentials { get; private set; } + + /// + /// The ID of the target subscription. + /// + public string SubscriptionId { get; set; } + + /// + /// The API version to use for the operation. + /// + public string ApiVersion { get; private set; } + + /// + /// The preferred language for the response. + /// + public string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default value is + /// 30. + /// + public int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. When set to + /// true a unique x-ms-client-request-id value is generated and included in + /// each request. Default is true. + /// + public bool? GenerateClientRequestId { get; set; } + + /// + /// Gets the IOperations. + /// + public virtual IOperations Operations { get; private set; } + + /// + /// Gets the IResourceLinksOperations. + /// + public virtual IResourceLinksOperations ResourceLinks { get; private set; } + + /// + /// Initializes a new instance of the ManagementLinkClient class. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling ManagementLinkClient.Dispose(). False: will not dispose provided httpClient + protected ManagementLinkClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient) + { + Initialize(); + } + + /// + /// Initializes a new instance of the ManagementLinkClient class. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected ManagementLinkClient(params DelegatingHandler[] handlers) : base(handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the ManagementLinkClient class. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected ManagementLinkClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the ManagementLinkClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected ManagementLinkClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the ManagementLinkClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected ManagementLinkClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the ManagementLinkClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public ManagementLinkClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the ManagementLinkClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling ManagementLinkClient.Dispose(). False: will not dispose provided httpClient + /// + /// Thrown when a required parameter is null + /// + public ManagementLinkClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the ManagementLinkClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public ManagementLinkClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the ManagementLinkClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public ManagementLinkClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the ManagementLinkClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public ManagementLinkClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// An optional partial-method to perform custom initialization. + /// + partial void CustomInitialize(); + /// + /// Initializes client properties. + /// + private void Initialize() + { + Operations = new Operations(this); + ResourceLinks = new ResourceLinksOperations(this); + BaseUri = new System.Uri("https://management.azure.com"); + ApiVersion = "2016-09-01"; + AcceptLanguage = "en-US"; + LongRunningOperationRetryTimeout = 30; + GenerateClientRequestId = true; + SerializationSettings = new JsonSerializerSettings + { + Formatting = Newtonsoft.Json.Formatting.Indented, + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + DeserializationSettings = new JsonSerializerSettings + { + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + CustomInitialize(); + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ManagementLockClient.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ManagementLockClient.cs new file mode 100644 index 000000000000..cbf59226bfa1 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ManagementLockClient.cs @@ -0,0 +1,367 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + + /// + /// Azure resources can be locked to prevent other users in your + /// organization from deleting or modifying resources. + /// + public partial class ManagementLockClient : ServiceClient, IManagementLockClient, IAzureClient + { + /// + /// The base URI of the service. + /// + public System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + public JsonSerializerSettings SerializationSettings { get; private set; } + + /// + /// Gets or sets json deserialization settings. + /// + public JsonSerializerSettings DeserializationSettings { get; private set; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + public ServiceClientCredentials Credentials { get; private set; } + + /// + /// The ID of the target subscription. + /// + public string SubscriptionId { get; set; } + + /// + /// The API version to use for the operation. + /// + public string ApiVersion { get; private set; } + + /// + /// The preferred language for the response. + /// + public string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default value is + /// 30. + /// + public int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. When set to + /// true a unique x-ms-client-request-id value is generated and included in + /// each request. Default is true. + /// + public bool? GenerateClientRequestId { get; set; } + + /// + /// Gets the IAuthorizationOperations. + /// + public virtual IAuthorizationOperations AuthorizationOperations { get; private set; } + + /// + /// Gets the IManagementLocksOperations. + /// + public virtual IManagementLocksOperations ManagementLocks { get; private set; } + + /// + /// Initializes a new instance of the ManagementLockClient class. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling ManagementLockClient.Dispose(). False: will not dispose provided httpClient + protected ManagementLockClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient) + { + Initialize(); + } + + /// + /// Initializes a new instance of the ManagementLockClient class. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected ManagementLockClient(params DelegatingHandler[] handlers) : base(handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the ManagementLockClient class. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected ManagementLockClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the ManagementLockClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected ManagementLockClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the ManagementLockClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected ManagementLockClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the ManagementLockClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public ManagementLockClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the ManagementLockClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling ManagementLockClient.Dispose(). False: will not dispose provided httpClient + /// + /// Thrown when a required parameter is null + /// + public ManagementLockClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the ManagementLockClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public ManagementLockClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the ManagementLockClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public ManagementLockClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the ManagementLockClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public ManagementLockClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// An optional partial-method to perform custom initialization. + /// + partial void CustomInitialize(); + /// + /// Initializes client properties. + /// + private void Initialize() + { + AuthorizationOperations = new AuthorizationOperations(this); + ManagementLocks = new ManagementLocksOperations(this); + BaseUri = new System.Uri("https://management.azure.com"); + ApiVersion = "2016-09-01"; + AcceptLanguage = "en-US"; + LongRunningOperationRetryTimeout = 30; + GenerateClientRequestId = true; + SerializationSettings = new JsonSerializerSettings + { + Formatting = Newtonsoft.Json.Formatting.Indented, + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + SerializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings = new JsonSerializerSettings + { + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + CustomInitialize(); + DeserializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ManagementLocksOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ManagementLocksOperations.cs new file mode 100644 index 000000000000..ddbd156343f6 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ManagementLocksOperations.cs @@ -0,0 +1,4218 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ManagementLocksOperations operations. + /// + internal partial class ManagementLocksOperations : IServiceOperations, IManagementLocksOperations + { + /// + /// Initializes a new instance of the ManagementLocksOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ManagementLocksOperations(ManagementLockClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the ManagementLockClient + /// + public ManagementLockClient Client { get; private set; } + + /// + /// Creates or updates a management lock at the resource group level. + /// + /// + /// When you apply a lock at a parent scope, all child resources inherit the + /// same lock. To create management locks, you must have access to + /// Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of + /// the built-in roles, only Owner and User Access Administrator are granted + /// those actions. + /// + /// + /// The name of the resource group to lock. + /// + /// + /// The lock name. The lock name can be a maximum of 260 characters. It cannot + /// contain <, > %, &, :, \, ?, /, or any control characters. + /// + /// + /// The management lock parameters. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateOrUpdateAtResourceGroupLevelWithHttpMessagesAsync(string resourceGroupName, string lockName, ManagementLockObject parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (lockName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "lockName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("lockName", lockName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdateAtResourceGroupLevel", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{lockName}", System.Uri.EscapeDataString(lockName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a management lock at the resource group level. + /// + /// + /// To delete management locks, you must have access to + /// Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of + /// the built-in roles, only Owner and User Access Administrator are granted + /// those actions. + /// + /// + /// The name of the resource group containing the lock. + /// + /// + /// The name of lock to delete. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteAtResourceGroupLevelWithHttpMessagesAsync(string resourceGroupName, string lockName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (lockName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "lockName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("lockName", lockName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "DeleteAtResourceGroupLevel", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{lockName}", System.Uri.EscapeDataString(lockName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a management lock at the resource group level. + /// + /// + /// The name of the locked resource group. + /// + /// + /// The name of the lock to get. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetAtResourceGroupLevelWithHttpMessagesAsync(string resourceGroupName, string lockName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (lockName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "lockName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("lockName", lockName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetAtResourceGroupLevel", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{lockName}", System.Uri.EscapeDataString(lockName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create or update a management lock by scope. + /// + /// + /// The scope for the lock. When providing a scope for the assignment, use + /// '/subscriptions/{subscriptionId}' for subscriptions, + /// '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for + /// resource groups, and + /// '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' + /// for resources. + /// + /// + /// The name of lock. + /// + /// + /// Create or update management lock parameters. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateOrUpdateByScopeWithHttpMessagesAsync(string scope, string lockName, ManagementLockObject parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (lockName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "lockName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("scope", scope); + tracingParameters.Add("lockName", lockName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdateByScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Authorization/locks/{lockName}").ToString(); + _url = _url.Replace("{scope}", System.Uri.EscapeDataString(scope)); + _url = _url.Replace("{lockName}", System.Uri.EscapeDataString(lockName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Delete a management lock by scope. + /// + /// + /// The scope for the lock. + /// + /// + /// The name of lock. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteByScopeWithHttpMessagesAsync(string scope, string lockName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (lockName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "lockName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("scope", scope); + tracingParameters.Add("lockName", lockName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "DeleteByScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Authorization/locks/{lockName}").ToString(); + _url = _url.Replace("{scope}", System.Uri.EscapeDataString(scope)); + _url = _url.Replace("{lockName}", System.Uri.EscapeDataString(lockName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get a management lock by scope. + /// + /// + /// The scope for the lock. + /// + /// + /// The name of lock. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetByScopeWithHttpMessagesAsync(string scope, string lockName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (lockName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "lockName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("scope", scope); + tracingParameters.Add("lockName", lockName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetByScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Authorization/locks/{lockName}").ToString(); + _url = _url.Replace("{scope}", System.Uri.EscapeDataString(scope)); + _url = _url.Replace("{lockName}", System.Uri.EscapeDataString(lockName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates a management lock at the resource level or any level + /// below the resource. + /// + /// + /// When you apply a lock at a parent scope, all child resources inherit the + /// same lock. To create management locks, you must have access to + /// Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of + /// the built-in roles, only Owner and User Access Administrator are granted + /// those actions. + /// + /// + /// The name of the resource group containing the resource to lock. + /// + /// + /// The resource provider namespace of the resource to lock. + /// + /// + /// The parent resource identity. + /// + /// + /// The resource type of the resource to lock. + /// + /// + /// The name of the resource to lock. + /// + /// + /// The name of lock. The lock name can be a maximum of 260 characters. It + /// cannot contain <, > %, &, :, \, ?, /, or any control characters. + /// + /// + /// Parameters for creating or updating a management lock. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateOrUpdateAtResourceLevelWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string lockName, ManagementLockObject parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (resourceProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceProviderNamespace"); + } + if (parentResourcePath == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parentResourcePath"); + } + if (resourceType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceType"); + } + if (resourceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceName"); + } + if (lockName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "lockName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("resourceProviderNamespace", resourceProviderNamespace); + tracingParameters.Add("parentResourcePath", parentResourcePath); + tracingParameters.Add("resourceType", resourceType); + tracingParameters.Add("resourceName", resourceName); + tracingParameters.Add("lockName", lockName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdateAtResourceLevel", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceProviderNamespace}", System.Uri.EscapeDataString(resourceProviderNamespace)); + _url = _url.Replace("{parentResourcePath}", parentResourcePath); + _url = _url.Replace("{resourceType}", resourceType); + _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName)); + _url = _url.Replace("{lockName}", System.Uri.EscapeDataString(lockName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes the management lock of a resource or any level below the resource. + /// + /// + /// To delete management locks, you must have access to + /// Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of + /// the built-in roles, only Owner and User Access Administrator are granted + /// those actions. + /// + /// + /// The name of the resource group containing the resource with the lock to + /// delete. + /// + /// + /// The resource provider namespace of the resource with the lock to delete. + /// + /// + /// The parent resource identity. + /// + /// + /// The resource type of the resource with the lock to delete. + /// + /// + /// The name of the resource with the lock to delete. + /// + /// + /// The name of the lock to delete. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteAtResourceLevelWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string lockName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (resourceProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceProviderNamespace"); + } + if (parentResourcePath == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parentResourcePath"); + } + if (resourceType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceType"); + } + if (resourceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceName"); + } + if (lockName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "lockName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("resourceProviderNamespace", resourceProviderNamespace); + tracingParameters.Add("parentResourcePath", parentResourcePath); + tracingParameters.Add("resourceType", resourceType); + tracingParameters.Add("resourceName", resourceName); + tracingParameters.Add("lockName", lockName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "DeleteAtResourceLevel", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceProviderNamespace}", System.Uri.EscapeDataString(resourceProviderNamespace)); + _url = _url.Replace("{parentResourcePath}", parentResourcePath); + _url = _url.Replace("{resourceType}", resourceType); + _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName)); + _url = _url.Replace("{lockName}", System.Uri.EscapeDataString(lockName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get the management lock of a resource or any level below resource. + /// + /// + /// The name of the resource group. + /// + /// + /// The namespace of the resource provider. + /// + /// + /// An extra path parameter needed in some services, like SQL Databases. + /// + /// + /// The type of the resource. + /// + /// + /// The name of the resource. + /// + /// + /// The name of lock. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetAtResourceLevelWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string lockName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (resourceProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceProviderNamespace"); + } + if (parentResourcePath == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parentResourcePath"); + } + if (resourceType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceType"); + } + if (resourceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceName"); + } + if (lockName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "lockName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("resourceProviderNamespace", resourceProviderNamespace); + tracingParameters.Add("parentResourcePath", parentResourcePath); + tracingParameters.Add("resourceType", resourceType); + tracingParameters.Add("resourceName", resourceName); + tracingParameters.Add("lockName", lockName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetAtResourceLevel", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceProviderNamespace}", System.Uri.EscapeDataString(resourceProviderNamespace)); + _url = _url.Replace("{parentResourcePath}", parentResourcePath); + _url = _url.Replace("{resourceType}", resourceType); + _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName)); + _url = _url.Replace("{lockName}", System.Uri.EscapeDataString(lockName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates a management lock at the subscription level. + /// + /// + /// When you apply a lock at a parent scope, all child resources inherit the + /// same lock. To create management locks, you must have access to + /// Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of + /// the built-in roles, only Owner and User Access Administrator are granted + /// those actions. + /// + /// + /// The name of lock. The lock name can be a maximum of 260 characters. It + /// cannot contain <, > %, &, :, \, ?, /, or any control characters. + /// + /// + /// The management lock parameters. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateOrUpdateAtSubscriptionLevelWithHttpMessagesAsync(string lockName, ManagementLockObject parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (lockName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "lockName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("lockName", lockName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdateAtSubscriptionLevel", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}").ToString(); + _url = _url.Replace("{lockName}", System.Uri.EscapeDataString(lockName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes the management lock at the subscription level. + /// + /// + /// To delete management locks, you must have access to + /// Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of + /// the built-in roles, only Owner and User Access Administrator are granted + /// those actions. + /// + /// + /// The name of lock to delete. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteAtSubscriptionLevelWithHttpMessagesAsync(string lockName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (lockName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "lockName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("lockName", lockName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "DeleteAtSubscriptionLevel", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}").ToString(); + _url = _url.Replace("{lockName}", System.Uri.EscapeDataString(lockName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a management lock at the subscription level. + /// + /// + /// The name of the lock to get. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetAtSubscriptionLevelWithHttpMessagesAsync(string lockName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (lockName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "lockName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("lockName", lockName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetAtSubscriptionLevel", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}").ToString(); + _url = _url.Replace("{lockName}", System.Uri.EscapeDataString(lockName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all the management locks for a resource group. + /// + /// + /// The name of the resource group containing the locks to get. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtResourceGroupLevelWithHttpMessagesAsync(string resourceGroupName, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtResourceGroupLevel", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all the management locks for a resource or any level below resource. + /// + /// + /// The name of the resource group containing the locked resource. The name is + /// case insensitive. + /// + /// + /// The namespace of the resource provider. + /// + /// + /// The parent resource identity. + /// + /// + /// The resource type of the locked resource. + /// + /// + /// The name of the locked resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtResourceLevelWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (resourceProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceProviderNamespace"); + } + if (parentResourcePath == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parentResourcePath"); + } + if (resourceType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceType"); + } + if (resourceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("resourceProviderNamespace", resourceProviderNamespace); + tracingParameters.Add("parentResourcePath", parentResourcePath); + tracingParameters.Add("resourceType", resourceType); + tracingParameters.Add("resourceName", resourceName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtResourceLevel", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceProviderNamespace}", System.Uri.EscapeDataString(resourceProviderNamespace)); + _url = _url.Replace("{parentResourcePath}", parentResourcePath); + _url = _url.Replace("{resourceType}", resourceType); + _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all the management locks for a subscription. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtSubscriptionLevelWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtSubscriptionLevel", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all the management locks for a scope. + /// + /// + /// The scope for the lock. When providing a scope for the assignment, use + /// '/subscriptions/{subscriptionId}' for subscriptions, + /// '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for + /// resource groups, and + /// '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' + /// for resources. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByScopeWithHttpMessagesAsync(string scope, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("scope", scope); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Authorization/locks").ToString(); + _url = _url.Replace("{scope}", System.Uri.EscapeDataString(scope)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all the management locks for a resource group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtResourceGroupLevelNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtResourceGroupLevelNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all the management locks for a resource or any level below resource. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtResourceLevelNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtResourceLevelNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all the management locks for a subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtSubscriptionLevelNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtSubscriptionLevelNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all the management locks for a scope. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByScopeNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByScopeNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ManagementLocksOperationsExtensions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ManagementLocksOperationsExtensions.cs new file mode 100644 index 000000000000..5efb409dc0aa --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ManagementLocksOperationsExtensions.cs @@ -0,0 +1,996 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for ManagementLocksOperations. + /// + public static partial class ManagementLocksOperationsExtensions + { + /// + /// Creates or updates a management lock at the resource group level. + /// + /// + /// When you apply a lock at a parent scope, all child resources inherit the + /// same lock. To create management locks, you must have access to + /// Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of + /// the built-in roles, only Owner and User Access Administrator are granted + /// those actions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to lock. + /// + /// + /// The lock name. The lock name can be a maximum of 260 characters. It cannot + /// contain <, > %, &, :, \, ?, /, or any control characters. + /// + /// + /// The management lock parameters. + /// + public static ManagementLockObject CreateOrUpdateAtResourceGroupLevel(this IManagementLocksOperations operations, string resourceGroupName, string lockName, ManagementLockObject parameters) + { + return operations.CreateOrUpdateAtResourceGroupLevelAsync(resourceGroupName, lockName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a management lock at the resource group level. + /// + /// + /// When you apply a lock at a parent scope, all child resources inherit the + /// same lock. To create management locks, you must have access to + /// Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of + /// the built-in roles, only Owner and User Access Administrator are granted + /// those actions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to lock. + /// + /// + /// The lock name. The lock name can be a maximum of 260 characters. It cannot + /// contain <, > %, &, :, \, ?, /, or any control characters. + /// + /// + /// The management lock parameters. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAtResourceGroupLevelAsync(this IManagementLocksOperations operations, string resourceGroupName, string lockName, ManagementLockObject parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateAtResourceGroupLevelWithHttpMessagesAsync(resourceGroupName, lockName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a management lock at the resource group level. + /// + /// + /// To delete management locks, you must have access to + /// Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of + /// the built-in roles, only Owner and User Access Administrator are granted + /// those actions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group containing the lock. + /// + /// + /// The name of lock to delete. + /// + public static void DeleteAtResourceGroupLevel(this IManagementLocksOperations operations, string resourceGroupName, string lockName) + { + operations.DeleteAtResourceGroupLevelAsync(resourceGroupName, lockName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a management lock at the resource group level. + /// + /// + /// To delete management locks, you must have access to + /// Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of + /// the built-in roles, only Owner and User Access Administrator are granted + /// those actions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group containing the lock. + /// + /// + /// The name of lock to delete. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAtResourceGroupLevelAsync(this IManagementLocksOperations operations, string resourceGroupName, string lockName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteAtResourceGroupLevelWithHttpMessagesAsync(resourceGroupName, lockName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets a management lock at the resource group level. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the locked resource group. + /// + /// + /// The name of the lock to get. + /// + public static ManagementLockObject GetAtResourceGroupLevel(this IManagementLocksOperations operations, string resourceGroupName, string lockName) + { + return operations.GetAtResourceGroupLevelAsync(resourceGroupName, lockName).GetAwaiter().GetResult(); + } + + /// + /// Gets a management lock at the resource group level. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the locked resource group. + /// + /// + /// The name of the lock to get. + /// + /// + /// The cancellation token. + /// + public static async Task GetAtResourceGroupLevelAsync(this IManagementLocksOperations operations, string resourceGroupName, string lockName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetAtResourceGroupLevelWithHttpMessagesAsync(resourceGroupName, lockName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a management lock by scope. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The scope for the lock. When providing a scope for the assignment, use + /// '/subscriptions/{subscriptionId}' for subscriptions, + /// '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for + /// resource groups, and + /// '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' + /// for resources. + /// + /// + /// The name of lock. + /// + /// + /// Create or update management lock parameters. + /// + public static ManagementLockObject CreateOrUpdateByScope(this IManagementLocksOperations operations, string scope, string lockName, ManagementLockObject parameters) + { + return operations.CreateOrUpdateByScopeAsync(scope, lockName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Create or update a management lock by scope. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The scope for the lock. When providing a scope for the assignment, use + /// '/subscriptions/{subscriptionId}' for subscriptions, + /// '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for + /// resource groups, and + /// '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' + /// for resources. + /// + /// + /// The name of lock. + /// + /// + /// Create or update management lock parameters. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateByScopeAsync(this IManagementLocksOperations operations, string scope, string lockName, ManagementLockObject parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateByScopeWithHttpMessagesAsync(scope, lockName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete a management lock by scope. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The scope for the lock. + /// + /// + /// The name of lock. + /// + public static void DeleteByScope(this IManagementLocksOperations operations, string scope, string lockName) + { + operations.DeleteByScopeAsync(scope, lockName).GetAwaiter().GetResult(); + } + + /// + /// Delete a management lock by scope. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The scope for the lock. + /// + /// + /// The name of lock. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteByScopeAsync(this IManagementLocksOperations operations, string scope, string lockName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteByScopeWithHttpMessagesAsync(scope, lockName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Get a management lock by scope. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The scope for the lock. + /// + /// + /// The name of lock. + /// + public static ManagementLockObject GetByScope(this IManagementLocksOperations operations, string scope, string lockName) + { + return operations.GetByScopeAsync(scope, lockName).GetAwaiter().GetResult(); + } + + /// + /// Get a management lock by scope. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The scope for the lock. + /// + /// + /// The name of lock. + /// + /// + /// The cancellation token. + /// + public static async Task GetByScopeAsync(this IManagementLocksOperations operations, string scope, string lockName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetByScopeWithHttpMessagesAsync(scope, lockName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a management lock at the resource level or any level + /// below the resource. + /// + /// + /// When you apply a lock at a parent scope, all child resources inherit the + /// same lock. To create management locks, you must have access to + /// Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of + /// the built-in roles, only Owner and User Access Administrator are granted + /// those actions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group containing the resource to lock. + /// + /// + /// The resource provider namespace of the resource to lock. + /// + /// + /// The parent resource identity. + /// + /// + /// The resource type of the resource to lock. + /// + /// + /// The name of the resource to lock. + /// + /// + /// The name of lock. The lock name can be a maximum of 260 characters. It + /// cannot contain <, > %, &, :, \, ?, /, or any control characters. + /// + /// + /// Parameters for creating or updating a management lock. + /// + public static ManagementLockObject CreateOrUpdateAtResourceLevel(this IManagementLocksOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string lockName, ManagementLockObject parameters) + { + return operations.CreateOrUpdateAtResourceLevelAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, lockName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a management lock at the resource level or any level + /// below the resource. + /// + /// + /// When you apply a lock at a parent scope, all child resources inherit the + /// same lock. To create management locks, you must have access to + /// Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of + /// the built-in roles, only Owner and User Access Administrator are granted + /// those actions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group containing the resource to lock. + /// + /// + /// The resource provider namespace of the resource to lock. + /// + /// + /// The parent resource identity. + /// + /// + /// The resource type of the resource to lock. + /// + /// + /// The name of the resource to lock. + /// + /// + /// The name of lock. The lock name can be a maximum of 260 characters. It + /// cannot contain <, > %, &, :, \, ?, /, or any control characters. + /// + /// + /// Parameters for creating or updating a management lock. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAtResourceLevelAsync(this IManagementLocksOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string lockName, ManagementLockObject parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateAtResourceLevelWithHttpMessagesAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, lockName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the management lock of a resource or any level below the resource. + /// + /// + /// To delete management locks, you must have access to + /// Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of + /// the built-in roles, only Owner and User Access Administrator are granted + /// those actions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group containing the resource with the lock to + /// delete. + /// + /// + /// The resource provider namespace of the resource with the lock to delete. + /// + /// + /// The parent resource identity. + /// + /// + /// The resource type of the resource with the lock to delete. + /// + /// + /// The name of the resource with the lock to delete. + /// + /// + /// The name of the lock to delete. + /// + public static void DeleteAtResourceLevel(this IManagementLocksOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string lockName) + { + operations.DeleteAtResourceLevelAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, lockName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the management lock of a resource or any level below the resource. + /// + /// + /// To delete management locks, you must have access to + /// Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of + /// the built-in roles, only Owner and User Access Administrator are granted + /// those actions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group containing the resource with the lock to + /// delete. + /// + /// + /// The resource provider namespace of the resource with the lock to delete. + /// + /// + /// The parent resource identity. + /// + /// + /// The resource type of the resource with the lock to delete. + /// + /// + /// The name of the resource with the lock to delete. + /// + /// + /// The name of the lock to delete. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAtResourceLevelAsync(this IManagementLocksOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string lockName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteAtResourceLevelWithHttpMessagesAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, lockName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Get the management lock of a resource or any level below resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The namespace of the resource provider. + /// + /// + /// An extra path parameter needed in some services, like SQL Databases. + /// + /// + /// The type of the resource. + /// + /// + /// The name of the resource. + /// + /// + /// The name of lock. + /// + public static ManagementLockObject GetAtResourceLevel(this IManagementLocksOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string lockName) + { + return operations.GetAtResourceLevelAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, lockName).GetAwaiter().GetResult(); + } + + /// + /// Get the management lock of a resource or any level below resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The namespace of the resource provider. + /// + /// + /// An extra path parameter needed in some services, like SQL Databases. + /// + /// + /// The type of the resource. + /// + /// + /// The name of the resource. + /// + /// + /// The name of lock. + /// + /// + /// The cancellation token. + /// + public static async Task GetAtResourceLevelAsync(this IManagementLocksOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string lockName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetAtResourceLevelWithHttpMessagesAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, lockName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a management lock at the subscription level. + /// + /// + /// When you apply a lock at a parent scope, all child resources inherit the + /// same lock. To create management locks, you must have access to + /// Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of + /// the built-in roles, only Owner and User Access Administrator are granted + /// those actions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of lock. The lock name can be a maximum of 260 characters. It + /// cannot contain <, > %, &, :, \, ?, /, or any control characters. + /// + /// + /// The management lock parameters. + /// + public static ManagementLockObject CreateOrUpdateAtSubscriptionLevel(this IManagementLocksOperations operations, string lockName, ManagementLockObject parameters) + { + return operations.CreateOrUpdateAtSubscriptionLevelAsync(lockName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a management lock at the subscription level. + /// + /// + /// When you apply a lock at a parent scope, all child resources inherit the + /// same lock. To create management locks, you must have access to + /// Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of + /// the built-in roles, only Owner and User Access Administrator are granted + /// those actions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of lock. The lock name can be a maximum of 260 characters. It + /// cannot contain <, > %, &, :, \, ?, /, or any control characters. + /// + /// + /// The management lock parameters. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAtSubscriptionLevelAsync(this IManagementLocksOperations operations, string lockName, ManagementLockObject parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateAtSubscriptionLevelWithHttpMessagesAsync(lockName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the management lock at the subscription level. + /// + /// + /// To delete management locks, you must have access to + /// Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of + /// the built-in roles, only Owner and User Access Administrator are granted + /// those actions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of lock to delete. + /// + public static void DeleteAtSubscriptionLevel(this IManagementLocksOperations operations, string lockName) + { + operations.DeleteAtSubscriptionLevelAsync(lockName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the management lock at the subscription level. + /// + /// + /// To delete management locks, you must have access to + /// Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of + /// the built-in roles, only Owner and User Access Administrator are granted + /// those actions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of lock to delete. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAtSubscriptionLevelAsync(this IManagementLocksOperations operations, string lockName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteAtSubscriptionLevelWithHttpMessagesAsync(lockName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets a management lock at the subscription level. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the lock to get. + /// + public static ManagementLockObject GetAtSubscriptionLevel(this IManagementLocksOperations operations, string lockName) + { + return operations.GetAtSubscriptionLevelAsync(lockName).GetAwaiter().GetResult(); + } + + /// + /// Gets a management lock at the subscription level. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the lock to get. + /// + /// + /// The cancellation token. + /// + public static async Task GetAtSubscriptionLevelAsync(this IManagementLocksOperations operations, string lockName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetAtSubscriptionLevelWithHttpMessagesAsync(lockName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the management locks for a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group containing the locks to get. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage ListAtResourceGroupLevel(this IManagementLocksOperations operations, string resourceGroupName, ODataQuery odataQuery = default(ODataQuery)) + { + return operations.ListAtResourceGroupLevelAsync(resourceGroupName, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Gets all the management locks for a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group containing the locks to get. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtResourceGroupLevelAsync(this IManagementLocksOperations operations, string resourceGroupName, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtResourceGroupLevelWithHttpMessagesAsync(resourceGroupName, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the management locks for a resource or any level below resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group containing the locked resource. The name is + /// case insensitive. + /// + /// + /// The namespace of the resource provider. + /// + /// + /// The parent resource identity. + /// + /// + /// The resource type of the locked resource. + /// + /// + /// The name of the locked resource. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage ListAtResourceLevel(this IManagementLocksOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, ODataQuery odataQuery = default(ODataQuery)) + { + return operations.ListAtResourceLevelAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Gets all the management locks for a resource or any level below resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group containing the locked resource. The name is + /// case insensitive. + /// + /// + /// The namespace of the resource provider. + /// + /// + /// The parent resource identity. + /// + /// + /// The resource type of the locked resource. + /// + /// + /// The name of the locked resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtResourceLevelAsync(this IManagementLocksOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtResourceLevelWithHttpMessagesAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the management locks for a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage ListAtSubscriptionLevel(this IManagementLocksOperations operations, ODataQuery odataQuery = default(ODataQuery)) + { + return operations.ListAtSubscriptionLevelAsync(odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Gets all the management locks for a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtSubscriptionLevelAsync(this IManagementLocksOperations operations, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtSubscriptionLevelWithHttpMessagesAsync(odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the management locks for a scope. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The scope for the lock. When providing a scope for the assignment, use + /// '/subscriptions/{subscriptionId}' for subscriptions, + /// '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for + /// resource groups, and + /// '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' + /// for resources. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage ListByScope(this IManagementLocksOperations operations, string scope, ODataQuery odataQuery = default(ODataQuery)) + { + return operations.ListByScopeAsync(scope, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Gets all the management locks for a scope. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The scope for the lock. When providing a scope for the assignment, use + /// '/subscriptions/{subscriptionId}' for subscriptions, + /// '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for + /// resource groups, and + /// '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' + /// for resources. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByScopeAsync(this IManagementLocksOperations operations, string scope, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByScopeWithHttpMessagesAsync(scope, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the management locks for a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListAtResourceGroupLevelNext(this IManagementLocksOperations operations, string nextPageLink) + { + return operations.ListAtResourceGroupLevelNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all the management locks for a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtResourceGroupLevelNextAsync(this IManagementLocksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtResourceGroupLevelNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the management locks for a resource or any level below resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListAtResourceLevelNext(this IManagementLocksOperations operations, string nextPageLink) + { + return operations.ListAtResourceLevelNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all the management locks for a resource or any level below resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtResourceLevelNextAsync(this IManagementLocksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtResourceLevelNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the management locks for a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListAtSubscriptionLevelNext(this IManagementLocksOperations operations, string nextPageLink) + { + return operations.ListAtSubscriptionLevelNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all the management locks for a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtSubscriptionLevelNextAsync(this IManagementLocksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtSubscriptionLevelNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the management locks for a scope. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByScopeNext(this IManagementLocksOperations operations, string nextPageLink) + { + return operations.ListByScopeNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all the management locks for a scope. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByScopeNextAsync(this IManagementLocksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByScopeNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Alias.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Alias.cs new file mode 100644 index 000000000000..586f96ec9390 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Alias.cs @@ -0,0 +1,99 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The alias type. + /// + public partial class Alias + { + /// + /// Initializes a new instance of the Alias class. + /// + public Alias() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Alias class. + /// + /// The alias name. + /// The paths for an alias. + /// The type of the alias. Possible values include: + /// 'NotSpecified', 'PlainText', 'Mask' + /// The default path for an alias. + /// The default pattern for an + /// alias. + /// The default alias path metadata. + /// Applies to the default path and to any alias path that doesn't have + /// metadata + public Alias(string name = default(string), IList paths = default(IList), AliasType? type = default(AliasType?), string defaultPath = default(string), AliasPattern defaultPattern = default(AliasPattern), AliasPathMetadata defaultMetadata = default(AliasPathMetadata)) + { + Name = name; + Paths = paths; + Type = type; + DefaultPath = defaultPath; + DefaultPattern = defaultPattern; + DefaultMetadata = defaultMetadata; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the alias name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the paths for an alias. + /// + [JsonProperty(PropertyName = "paths")] + public IList Paths { get; set; } + + /// + /// Gets or sets the type of the alias. Possible values include: + /// 'NotSpecified', 'PlainText', 'Mask' + /// + [JsonProperty(PropertyName = "type")] + public AliasType? Type { get; set; } + + /// + /// Gets or sets the default path for an alias. + /// + [JsonProperty(PropertyName = "defaultPath")] + public string DefaultPath { get; set; } + + /// + /// Gets or sets the default pattern for an alias. + /// + [JsonProperty(PropertyName = "defaultPattern")] + public AliasPattern DefaultPattern { get; set; } + + /// + /// Gets the default alias path metadata. Applies to the default path + /// and to any alias path that doesn't have metadata + /// + [JsonProperty(PropertyName = "defaultMetadata")] + public AliasPathMetadata DefaultMetadata { get; private set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AliasPath.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AliasPath.cs new file mode 100644 index 000000000000..e77e23be94d2 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AliasPath.cs @@ -0,0 +1,79 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The type of the paths for alias. + /// + public partial class AliasPath + { + /// + /// Initializes a new instance of the AliasPath class. + /// + public AliasPath() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AliasPath class. + /// + /// The path of an alias. + /// The API versions. + /// The pattern for an alias path. + /// The metadata of the alias path. If missing, + /// fall back to the default metadata of the alias. + public AliasPath(string path = default(string), IList apiVersions = default(IList), AliasPattern pattern = default(AliasPattern), AliasPathMetadata metadata = default(AliasPathMetadata)) + { + Path = path; + ApiVersions = apiVersions; + Pattern = pattern; + Metadata = metadata; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the path of an alias. + /// + [JsonProperty(PropertyName = "path")] + public string Path { get; set; } + + /// + /// Gets or sets the API versions. + /// + [JsonProperty(PropertyName = "apiVersions")] + public IList ApiVersions { get; set; } + + /// + /// Gets or sets the pattern for an alias path. + /// + [JsonProperty(PropertyName = "pattern")] + public AliasPattern Pattern { get; set; } + + /// + /// Gets the metadata of the alias path. If missing, fall back to the + /// default metadata of the alias. + /// + [JsonProperty(PropertyName = "metadata")] + public AliasPathMetadata Metadata { get; private set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AliasPathAttributes.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AliasPathAttributes.cs new file mode 100644 index 000000000000..95f7f1812b76 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AliasPathAttributes.cs @@ -0,0 +1,29 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + + /// + /// Defines values for AliasPathAttributes. + /// + public static class AliasPathAttributes + { + /// + /// The token that the alias path is referring to has no attributes. + /// + public const string None = "None"; + /// + /// The token that the alias path is referring to is modifiable by + /// policies with 'modify' effect. + /// + public const string Modifiable = "Modifiable"; + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AliasPathMetadata.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AliasPathMetadata.cs new file mode 100644 index 000000000000..1825f6e635cf --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AliasPathMetadata.cs @@ -0,0 +1,63 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + public partial class AliasPathMetadata + { + /// + /// Initializes a new instance of the AliasPathMetadata class. + /// + public AliasPathMetadata() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AliasPathMetadata class. + /// + /// The type of the token that the alias path is + /// referring to. Possible values include: 'NotSpecified', 'Any', + /// 'String', 'Object', 'Array', 'Integer', 'Number', 'Boolean' + /// The attributes of the token that the alias + /// path is referring to. Possible values include: 'None', + /// 'Modifiable' + public AliasPathMetadata(string type = default(string), string attributes = default(string)) + { + Type = type; + Attributes = attributes; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the type of the token that the alias path is referring to. + /// Possible values include: 'NotSpecified', 'Any', 'String', 'Object', + /// 'Array', 'Integer', 'Number', 'Boolean' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets the attributes of the token that the alias path is referring + /// to. Possible values include: 'None', 'Modifiable' + /// + [JsonProperty(PropertyName = "attributes")] + public string Attributes { get; private set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AliasPathTokenType.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AliasPathTokenType.cs new file mode 100644 index 000000000000..d6872ec13c30 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AliasPathTokenType.cs @@ -0,0 +1,52 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + + /// + /// Defines values for AliasPathTokenType. + /// + public static class AliasPathTokenType + { + /// + /// The token type is not specified. + /// + public const string NotSpecified = "NotSpecified"; + /// + /// The token type can be anything. + /// + public const string Any = "Any"; + /// + /// The token type is string. + /// + public const string String = "String"; + /// + /// The token type is object. + /// + public const string Object = "Object"; + /// + /// The token type is array. + /// + public const string Array = "Array"; + /// + /// The token type is integer. + /// + public const string Integer = "Integer"; + /// + /// The token type is number. + /// + public const string Number = "Number"; + /// + /// The token type is boolean. + /// + public const string Boolean = "Boolean"; + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AliasPattern.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AliasPattern.cs new file mode 100644 index 000000000000..224944423d3b --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AliasPattern.cs @@ -0,0 +1,69 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The type of the pattern for an alias path. + /// + public partial class AliasPattern + { + /// + /// Initializes a new instance of the AliasPattern class. + /// + public AliasPattern() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AliasPattern class. + /// + /// The alias pattern phrase. + /// The alias pattern variable. + /// The type of alias pattern. Possible values + /// include: 'NotSpecified', 'Extract' + public AliasPattern(string phrase = default(string), string variable = default(string), AliasPatternType? type = default(AliasPatternType?)) + { + Phrase = phrase; + Variable = variable; + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the alias pattern phrase. + /// + [JsonProperty(PropertyName = "phrase")] + public string Phrase { get; set; } + + /// + /// Gets or sets the alias pattern variable. + /// + [JsonProperty(PropertyName = "variable")] + public string Variable { get; set; } + + /// + /// Gets or sets the type of alias pattern. Possible values include: + /// 'NotSpecified', 'Extract' + /// + [JsonProperty(PropertyName = "type")] + public AliasPatternType? Type { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AliasPatternType.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AliasPatternType.cs new file mode 100644 index 000000000000..dc764ea10176 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AliasPatternType.cs @@ -0,0 +1,66 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for AliasPatternType. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum AliasPatternType + { + /// + /// NotSpecified is not allowed. + /// + [EnumMember(Value = "NotSpecified")] + NotSpecified, + /// + /// Extract is the only allowed value. + /// + [EnumMember(Value = "Extract")] + Extract + } + internal static class AliasPatternTypeEnumExtension + { + internal static string ToSerializedValue(this AliasPatternType? value) + { + return value == null ? null : ((AliasPatternType)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this AliasPatternType value) + { + switch( value ) + { + case AliasPatternType.NotSpecified: + return "NotSpecified"; + case AliasPatternType.Extract: + return "Extract"; + } + return null; + } + + internal static AliasPatternType? ParseAliasPatternType(this string value) + { + switch( value ) + { + case "NotSpecified": + return AliasPatternType.NotSpecified; + case "Extract": + return AliasPatternType.Extract; + } + return null; + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AliasType.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AliasType.cs new file mode 100644 index 000000000000..482cd058fb91 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AliasType.cs @@ -0,0 +1,75 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for AliasType. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum AliasType + { + /// + /// Alias type is unknown (same as not providing alias type). + /// + [EnumMember(Value = "NotSpecified")] + NotSpecified, + /// + /// Alias value is not secret. + /// + [EnumMember(Value = "PlainText")] + PlainText, + /// + /// Alias value is secret. + /// + [EnumMember(Value = "Mask")] + Mask + } + internal static class AliasTypeEnumExtension + { + internal static string ToSerializedValue(this AliasType? value) + { + return value == null ? null : ((AliasType)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this AliasType value) + { + switch( value ) + { + case AliasType.NotSpecified: + return "NotSpecified"; + case AliasType.PlainText: + return "PlainText"; + case AliasType.Mask: + return "Mask"; + } + return null; + } + + internal static AliasType? ParseAliasType(this string value) + { + switch( value ) + { + case "NotSpecified": + return AliasType.NotSpecified; + case "PlainText": + return AliasType.PlainText; + case "Mask": + return AliasType.Mask; + } + return null; + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ApiProfile.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ApiProfile.cs new file mode 100644 index 000000000000..2ff4ca327571 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ApiProfile.cs @@ -0,0 +1,56 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + public partial class ApiProfile + { + /// + /// Initializes a new instance of the ApiProfile class. + /// + public ApiProfile() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ApiProfile class. + /// + /// The profile version. + /// The API version. + public ApiProfile(string profileVersion = default(string), string apiVersion = default(string)) + { + ProfileVersion = profileVersion; + ApiVersion = apiVersion; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the profile version. + /// + [JsonProperty(PropertyName = "profileVersion")] + public string ProfileVersion { get; private set; } + + /// + /// Gets the API version. + /// + [JsonProperty(PropertyName = "apiVersion")] + public string ApiVersion { get; private set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AuthorizationProfile.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AuthorizationProfile.cs new file mode 100644 index 000000000000..7840550d6a73 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AuthorizationProfile.cs @@ -0,0 +1,83 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Authorization Profile + /// + public partial class AuthorizationProfile + { + /// + /// Initializes a new instance of the AuthorizationProfile class. + /// + public AuthorizationProfile() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AuthorizationProfile class. + /// + /// The requested time + /// The requester + /// The requester object id + /// The approved time + /// The approver + public AuthorizationProfile(System.DateTime? requestedTime = default(System.DateTime?), string requester = default(string), string requesterObjectId = default(string), System.DateTime? approvedTime = default(System.DateTime?), string approver = default(string)) + { + RequestedTime = requestedTime; + Requester = requester; + RequesterObjectId = requesterObjectId; + ApprovedTime = approvedTime; + Approver = approver; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the requested time + /// + [JsonProperty(PropertyName = "requestedTime")] + public System.DateTime? RequestedTime { get; private set; } + + /// + /// Gets the requester + /// + [JsonProperty(PropertyName = "requester")] + public string Requester { get; private set; } + + /// + /// Gets the requester object id + /// + [JsonProperty(PropertyName = "requesterObjectId")] + public string RequesterObjectId { get; private set; } + + /// + /// Gets the approved time + /// + [JsonProperty(PropertyName = "approvedTime")] + public System.DateTime? ApprovedTime { get; private set; } + + /// + /// Gets the approver + /// + [JsonProperty(PropertyName = "approver")] + public string Approver { get; private set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AzureCliScript.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AzureCliScript.cs new file mode 100644 index 000000000000..966922d2002e --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AzureCliScript.cs @@ -0,0 +1,251 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Object model for the Azure CLI script. + /// + [Newtonsoft.Json.JsonObject("AzureCLI")] + [Rest.Serialization.JsonTransformation] + public partial class AzureCliScript : DeploymentScript + { + /// + /// Initializes a new instance of the AzureCliScript class. + /// + public AzureCliScript() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AzureCliScript class. + /// + /// The location of the ACI and the storage + /// account for the deployment script. + /// Interval for which the service + /// retains the script resource after it reaches a terminal state. + /// Resource will be deleted when this duration expires. Duration is + /// based on ISO 8601 pattern (for example P1D means one day). + /// Azure CLI module version to be + /// used. + /// String Id used to locate any resource on + /// Azure. + /// Name of this resource. + /// Type of this resource. + /// Optional property. Managed identity to be + /// used for this deployment script. Currently, only user-assigned MSI + /// is supported. + /// Resource tags. + /// The system metadata related to this + /// resource. + /// Container settings. + /// Storage Account + /// settings. + /// The clean up preference when the + /// script execution gets in a terminal state. Default setting is + /// 'Always'. Possible values include: 'Always', 'OnSuccess', + /// 'OnExpiration' + /// State of the script execution. This + /// only appears in the response. Possible values include: 'Creating', + /// 'ProvisioningResources', 'Running', 'Succeeded', 'Failed', + /// 'Canceled' + /// Contains the results of script + /// execution. + /// List of script outputs. + /// Uri for the script. This is the + /// entry point for the external script. + /// Supporting files for the + /// external script. + /// Script body. + /// Command line arguments to pass to the + /// script. Arguments are separated by spaces. ex: -Name blue* + /// -Location 'West US 2' + /// The environment variables to + /// pass over to the script. + /// Gets or sets how the deployment script + /// should be forced to execute even if the script resource has not + /// changed. Can be current time stamp or a GUID. + /// Maximum allowed script execution time + /// specified in ISO 8601 format. Default value is P1D + public AzureCliScript(string location, System.TimeSpan retentionInterval, string azCliVersion, string id = default(string), string name = default(string), string type = default(string), ManagedServiceIdentity identity = default(ManagedServiceIdentity), IDictionary tags = default(IDictionary), SystemData systemData = default(SystemData), ContainerConfiguration containerSettings = default(ContainerConfiguration), StorageAccountConfiguration storageAccountSettings = default(StorageAccountConfiguration), string cleanupPreference = default(string), string provisioningState = default(string), ScriptStatus status = default(ScriptStatus), IDictionary outputs = default(IDictionary), string primaryScriptUri = default(string), IList supportingScriptUris = default(IList), string scriptContent = default(string), string arguments = default(string), IList environmentVariables = default(IList), string forceUpdateTag = default(string), System.TimeSpan? timeout = default(System.TimeSpan?)) + : base(location, id, name, type, identity, tags, systemData) + { + ContainerSettings = containerSettings; + StorageAccountSettings = storageAccountSettings; + CleanupPreference = cleanupPreference; + ProvisioningState = provisioningState; + Status = status; + Outputs = outputs; + PrimaryScriptUri = primaryScriptUri; + SupportingScriptUris = supportingScriptUris; + ScriptContent = scriptContent; + Arguments = arguments; + EnvironmentVariables = environmentVariables; + ForceUpdateTag = forceUpdateTag; + RetentionInterval = retentionInterval; + Timeout = timeout; + AzCliVersion = azCliVersion; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets container settings. + /// + [JsonProperty(PropertyName = "properties.containerSettings")] + public ContainerConfiguration ContainerSettings { get; set; } + + /// + /// Gets or sets storage Account settings. + /// + [JsonProperty(PropertyName = "properties.storageAccountSettings")] + public StorageAccountConfiguration StorageAccountSettings { get; set; } + + /// + /// Gets or sets the clean up preference when the script execution gets + /// in a terminal state. Default setting is 'Always'. Possible values + /// include: 'Always', 'OnSuccess', 'OnExpiration' + /// + [JsonProperty(PropertyName = "properties.cleanupPreference")] + public string CleanupPreference { get; set; } + + /// + /// Gets state of the script execution. This only appears in the + /// response. Possible values include: 'Creating', + /// 'ProvisioningResources', 'Running', 'Succeeded', 'Failed', + /// 'Canceled' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets contains the results of script execution. + /// + [JsonProperty(PropertyName = "properties.status")] + public ScriptStatus Status { get; private set; } + + /// + /// Gets list of script outputs. + /// + [JsonProperty(PropertyName = "properties.outputs")] + public IDictionary Outputs { get; private set; } + + /// + /// Gets or sets uri for the script. This is the entry point for the + /// external script. + /// + [JsonProperty(PropertyName = "properties.primaryScriptUri")] + public string PrimaryScriptUri { get; set; } + + /// + /// Gets or sets supporting files for the external script. + /// + [JsonProperty(PropertyName = "properties.supportingScriptUris")] + public IList SupportingScriptUris { get; set; } + + /// + /// Gets or sets script body. + /// + [JsonProperty(PropertyName = "properties.scriptContent")] + public string ScriptContent { get; set; } + + /// + /// Gets or sets command line arguments to pass to the script. + /// Arguments are separated by spaces. ex: -Name blue* -Location 'West + /// US 2' + /// + [JsonProperty(PropertyName = "properties.arguments")] + public string Arguments { get; set; } + + /// + /// Gets or sets the environment variables to pass over to the script. + /// + [JsonProperty(PropertyName = "properties.environmentVariables")] + public IList EnvironmentVariables { get; set; } + + /// + /// Gets or sets how the deployment script should be forced to execute + /// even if the script resource has not changed. Can be current time + /// stamp or a GUID. + /// + [JsonProperty(PropertyName = "properties.forceUpdateTag")] + public string ForceUpdateTag { get; set; } + + /// + /// Gets or sets interval for which the service retains the script + /// resource after it reaches a terminal state. Resource will be + /// deleted when this duration expires. Duration is based on ISO 8601 + /// pattern (for example P1D means one day). + /// + [JsonProperty(PropertyName = "properties.retentionInterval")] + public System.TimeSpan RetentionInterval { get; set; } + + /// + /// Gets or sets maximum allowed script execution time specified in ISO + /// 8601 format. Default value is P1D + /// + [JsonProperty(PropertyName = "properties.timeout")] + public System.TimeSpan? Timeout { get; set; } + + /// + /// Gets or sets azure CLI module version to be used. + /// + [JsonProperty(PropertyName = "properties.azCliVersion")] + public string AzCliVersion { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (AzCliVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AzCliVersion"); + } + if (ContainerSettings != null) + { + ContainerSettings.Validate(); + } + if (ScriptContent != null) + { + if (ScriptContent.Length > 32000) + { + throw new ValidationException(ValidationRules.MaxLength, "ScriptContent", 32000); + } + } + if (EnvironmentVariables != null) + { + foreach (var element in EnvironmentVariables) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AzurePowerShellScript.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AzurePowerShellScript.cs new file mode 100644 index 000000000000..2b6fea7330c7 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AzurePowerShellScript.cs @@ -0,0 +1,251 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Object model for the Azure PowerShell script. + /// + [Newtonsoft.Json.JsonObject("AzurePowerShell")] + [Rest.Serialization.JsonTransformation] + public partial class AzurePowerShellScript : DeploymentScript + { + /// + /// Initializes a new instance of the AzurePowerShellScript class. + /// + public AzurePowerShellScript() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AzurePowerShellScript class. + /// + /// The location of the ACI and the storage + /// account for the deployment script. + /// Interval for which the service + /// retains the script resource after it reaches a terminal state. + /// Resource will be deleted when this duration expires. Duration is + /// based on ISO 8601 pattern (for example P1D means one day). + /// Azure PowerShell module version + /// to be used. + /// String Id used to locate any resource on + /// Azure. + /// Name of this resource. + /// Type of this resource. + /// Optional property. Managed identity to be + /// used for this deployment script. Currently, only user-assigned MSI + /// is supported. + /// Resource tags. + /// The system metadata related to this + /// resource. + /// Container settings. + /// Storage Account + /// settings. + /// The clean up preference when the + /// script execution gets in a terminal state. Default setting is + /// 'Always'. Possible values include: 'Always', 'OnSuccess', + /// 'OnExpiration' + /// State of the script execution. This + /// only appears in the response. Possible values include: 'Creating', + /// 'ProvisioningResources', 'Running', 'Succeeded', 'Failed', + /// 'Canceled' + /// Contains the results of script + /// execution. + /// List of script outputs. + /// Uri for the script. This is the + /// entry point for the external script. + /// Supporting files for the + /// external script. + /// Script body. + /// Command line arguments to pass to the + /// script. Arguments are separated by spaces. ex: -Name blue* + /// -Location 'West US 2' + /// The environment variables to + /// pass over to the script. + /// Gets or sets how the deployment script + /// should be forced to execute even if the script resource has not + /// changed. Can be current time stamp or a GUID. + /// Maximum allowed script execution time + /// specified in ISO 8601 format. Default value is P1D + public AzurePowerShellScript(string location, System.TimeSpan retentionInterval, string azPowerShellVersion, string id = default(string), string name = default(string), string type = default(string), ManagedServiceIdentity identity = default(ManagedServiceIdentity), IDictionary tags = default(IDictionary), SystemData systemData = default(SystemData), ContainerConfiguration containerSettings = default(ContainerConfiguration), StorageAccountConfiguration storageAccountSettings = default(StorageAccountConfiguration), string cleanupPreference = default(string), string provisioningState = default(string), ScriptStatus status = default(ScriptStatus), IDictionary outputs = default(IDictionary), string primaryScriptUri = default(string), IList supportingScriptUris = default(IList), string scriptContent = default(string), string arguments = default(string), IList environmentVariables = default(IList), string forceUpdateTag = default(string), System.TimeSpan? timeout = default(System.TimeSpan?)) + : base(location, id, name, type, identity, tags, systemData) + { + ContainerSettings = containerSettings; + StorageAccountSettings = storageAccountSettings; + CleanupPreference = cleanupPreference; + ProvisioningState = provisioningState; + Status = status; + Outputs = outputs; + PrimaryScriptUri = primaryScriptUri; + SupportingScriptUris = supportingScriptUris; + ScriptContent = scriptContent; + Arguments = arguments; + EnvironmentVariables = environmentVariables; + ForceUpdateTag = forceUpdateTag; + RetentionInterval = retentionInterval; + Timeout = timeout; + AzPowerShellVersion = azPowerShellVersion; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets container settings. + /// + [JsonProperty(PropertyName = "properties.containerSettings")] + public ContainerConfiguration ContainerSettings { get; set; } + + /// + /// Gets or sets storage Account settings. + /// + [JsonProperty(PropertyName = "properties.storageAccountSettings")] + public StorageAccountConfiguration StorageAccountSettings { get; set; } + + /// + /// Gets or sets the clean up preference when the script execution gets + /// in a terminal state. Default setting is 'Always'. Possible values + /// include: 'Always', 'OnSuccess', 'OnExpiration' + /// + [JsonProperty(PropertyName = "properties.cleanupPreference")] + public string CleanupPreference { get; set; } + + /// + /// Gets state of the script execution. This only appears in the + /// response. Possible values include: 'Creating', + /// 'ProvisioningResources', 'Running', 'Succeeded', 'Failed', + /// 'Canceled' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets contains the results of script execution. + /// + [JsonProperty(PropertyName = "properties.status")] + public ScriptStatus Status { get; private set; } + + /// + /// Gets list of script outputs. + /// + [JsonProperty(PropertyName = "properties.outputs")] + public IDictionary Outputs { get; private set; } + + /// + /// Gets or sets uri for the script. This is the entry point for the + /// external script. + /// + [JsonProperty(PropertyName = "properties.primaryScriptUri")] + public string PrimaryScriptUri { get; set; } + + /// + /// Gets or sets supporting files for the external script. + /// + [JsonProperty(PropertyName = "properties.supportingScriptUris")] + public IList SupportingScriptUris { get; set; } + + /// + /// Gets or sets script body. + /// + [JsonProperty(PropertyName = "properties.scriptContent")] + public string ScriptContent { get; set; } + + /// + /// Gets or sets command line arguments to pass to the script. + /// Arguments are separated by spaces. ex: -Name blue* -Location 'West + /// US 2' + /// + [JsonProperty(PropertyName = "properties.arguments")] + public string Arguments { get; set; } + + /// + /// Gets or sets the environment variables to pass over to the script. + /// + [JsonProperty(PropertyName = "properties.environmentVariables")] + public IList EnvironmentVariables { get; set; } + + /// + /// Gets or sets how the deployment script should be forced to execute + /// even if the script resource has not changed. Can be current time + /// stamp or a GUID. + /// + [JsonProperty(PropertyName = "properties.forceUpdateTag")] + public string ForceUpdateTag { get; set; } + + /// + /// Gets or sets interval for which the service retains the script + /// resource after it reaches a terminal state. Resource will be + /// deleted when this duration expires. Duration is based on ISO 8601 + /// pattern (for example P1D means one day). + /// + [JsonProperty(PropertyName = "properties.retentionInterval")] + public System.TimeSpan RetentionInterval { get; set; } + + /// + /// Gets or sets maximum allowed script execution time specified in ISO + /// 8601 format. Default value is P1D + /// + [JsonProperty(PropertyName = "properties.timeout")] + public System.TimeSpan? Timeout { get; set; } + + /// + /// Gets or sets azure PowerShell module version to be used. + /// + [JsonProperty(PropertyName = "properties.azPowerShellVersion")] + public string AzPowerShellVersion { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (AzPowerShellVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "AzPowerShellVersion"); + } + if (ContainerSettings != null) + { + ContainerSettings.Validate(); + } + if (ScriptContent != null) + { + if (ScriptContent.Length > 32000) + { + throw new ValidationException(ValidationRules.MaxLength, "ScriptContent", 32000); + } + } + if (EnvironmentVariables != null) + { + foreach (var element in EnvironmentVariables) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AzureResourceBase.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AzureResourceBase.cs new file mode 100644 index 000000000000..cc88e8879a78 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/AzureResourceBase.cs @@ -0,0 +1,80 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Common properties for all Azure resources. + /// + public partial class AzureResourceBase : IResource + { + /// + /// Initializes a new instance of the AzureResourceBase class. + /// + public AzureResourceBase() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AzureResourceBase class. + /// + /// String Id used to locate any resource on + /// Azure. + /// Name of this resource. + /// Type of this resource. + /// Azure Resource Manager metadata containing + /// createdBy and modifiedBy information. + public AzureResourceBase(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData)) + { + Id = id; + Name = name; + Type = type; + SystemData = systemData; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets string Id used to locate any resource on Azure. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets name of this resource. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets type of this resource. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets azure Resource Manager metadata containing createdBy and + /// modifiedBy information. + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/BasicDependency.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/BasicDependency.cs new file mode 100644 index 000000000000..86d63ecd1367 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/BasicDependency.cs @@ -0,0 +1,67 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Deployment dependency information. + /// + public partial class BasicDependency + { + /// + /// Initializes a new instance of the BasicDependency class. + /// + public BasicDependency() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the BasicDependency class. + /// + /// The ID of the dependency. + /// The dependency resource type. + /// The dependency resource name. + public BasicDependency(string id = default(string), string resourceType = default(string), string resourceName = default(string)) + { + Id = id; + ResourceType = resourceType; + ResourceName = resourceName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the ID of the dependency. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Gets or sets the dependency resource type. + /// + [JsonProperty(PropertyName = "resourceType")] + public string ResourceType { get; set; } + + /// + /// Gets or sets the dependency resource name. + /// + [JsonProperty(PropertyName = "resourceName")] + public string ResourceName { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ChangeType.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ChangeType.cs new file mode 100644 index 000000000000..c1477220758b --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ChangeType.cs @@ -0,0 +1,123 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for ChangeType. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ChangeType + { + /// + /// The resource does not exist in the current state but is present in + /// the desired state. The resource will be created when the deployment + /// is executed. + /// + [EnumMember(Value = "Create")] + Create, + /// + /// The resource exists in the current state and is missing from the + /// desired state. The resource will be deleted when the deployment is + /// executed. + /// + [EnumMember(Value = "Delete")] + Delete, + /// + /// The resource exists in the current state and is missing from the + /// desired state. The resource will not be deployed or modified when + /// the deployment is executed. + /// + [EnumMember(Value = "Ignore")] + Ignore, + /// + /// The resource exists in the current state and the desired state and + /// will be redeployed when the deployment is executed. The properties + /// of the resource may or may not change. + /// + [EnumMember(Value = "Deploy")] + Deploy, + /// + /// The resource exists in the current state and the desired state and + /// will be redeployed when the deployment is executed. The properties + /// of the resource will not change. + /// + [EnumMember(Value = "NoChange")] + NoChange, + /// + /// The resource exists in the current state and the desired state and + /// will be redeployed when the deployment is executed. The properties + /// of the resource will change. + /// + [EnumMember(Value = "Modify")] + Modify, + /// + /// The resource is not supported by What-If. + /// + [EnumMember(Value = "Unsupported")] + Unsupported + } + internal static class ChangeTypeEnumExtension + { + internal static string ToSerializedValue(this ChangeType? value) + { + return value == null ? null : ((ChangeType)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this ChangeType value) + { + switch( value ) + { + case ChangeType.Create: + return "Create"; + case ChangeType.Delete: + return "Delete"; + case ChangeType.Ignore: + return "Ignore"; + case ChangeType.Deploy: + return "Deploy"; + case ChangeType.NoChange: + return "NoChange"; + case ChangeType.Modify: + return "Modify"; + case ChangeType.Unsupported: + return "Unsupported"; + } + return null; + } + + internal static ChangeType? ParseChangeType(this string value) + { + switch( value ) + { + case "Create": + return ChangeType.Create; + case "Delete": + return ChangeType.Delete; + case "Ignore": + return ChangeType.Ignore; + case "Deploy": + return ChangeType.Deploy; + case "NoChange": + return ChangeType.NoChange; + case "Modify": + return ChangeType.Modify; + case "Unsupported": + return ChangeType.Unsupported; + } + return null; + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/CheckResourceNameResult.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/CheckResourceNameResult.cs new file mode 100644 index 000000000000..d34372d05eed --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/CheckResourceNameResult.cs @@ -0,0 +1,70 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Resource Name valid if not a reserved word, does not contain a reserved + /// word and does not start with a reserved word + /// + public partial class CheckResourceNameResult + { + /// + /// Initializes a new instance of the CheckResourceNameResult class. + /// + public CheckResourceNameResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CheckResourceNameResult class. + /// + /// Name of Resource + /// Type of Resource + /// Is the resource name Allowed or Reserved. + /// Possible values include: 'Allowed', 'Reserved' + public CheckResourceNameResult(string name = default(string), string type = default(string), string status = default(string)) + { + Name = name; + Type = type; + Status = status; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets name of Resource + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets type of Resource + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets is the resource name Allowed or Reserved. Possible + /// values include: 'Allowed', 'Reserved' + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/CleanupOptions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/CleanupOptions.cs new file mode 100644 index 000000000000..77c061d76a39 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/CleanupOptions.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + + /// + /// Defines values for CleanupOptions. + /// + public static class CleanupOptions + { + public const string Always = "Always"; + public const string OnSuccess = "OnSuccess"; + public const string OnExpiration = "OnExpiration"; + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ContainerConfiguration.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ContainerConfiguration.cs new file mode 100644 index 000000000000..5237d57be407 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ContainerConfiguration.cs @@ -0,0 +1,98 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Settings to customize ACI container instance. + /// + public partial class ContainerConfiguration + { + /// + /// Initializes a new instance of the ContainerConfiguration class. + /// + public ContainerConfiguration() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ContainerConfiguration class. + /// + /// Container group name, if not + /// specified then the name will get auto-generated. Not specifying a + /// 'containerGroupName' indicates the system to generate a unique name + /// which might end up flagging an Azure Policy as non-compliant. Use + /// 'containerGroupName' when you have an Azure Policy that expects a + /// specific naming convention or when you want to fully control the + /// name. 'containerGroupName' property must be between 1 and 63 + /// characters long, must contain only lowercase letters, numbers, and + /// dashes and it cannot start or end with a dash and consecutive + /// dashes are not allowed. To specify a 'containerGroupName', add the + /// following object to properties: { "containerSettings": { + /// "containerGroupName": "contoso-container" } }. If you do not want + /// to specify a 'containerGroupName' then do not add + /// 'containerSettings' property. + public ContainerConfiguration(string containerGroupName = default(string)) + { + ContainerGroupName = containerGroupName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets container group name, if not specified then the name + /// will get auto-generated. Not specifying a 'containerGroupName' + /// indicates the system to generate a unique name which might end up + /// flagging an Azure Policy as non-compliant. Use 'containerGroupName' + /// when you have an Azure Policy that expects a specific naming + /// convention or when you want to fully control the name. + /// 'containerGroupName' property must be between 1 and 63 characters + /// long, must contain only lowercase letters, numbers, and dashes and + /// it cannot start or end with a dash and consecutive dashes are not + /// allowed. To specify a 'containerGroupName', add the following + /// object to properties: { "containerSettings": { + /// "containerGroupName": "contoso-container" } }. If you do not want + /// to specify a 'containerGroupName' then do not add + /// 'containerSettings' property. + /// + [JsonProperty(PropertyName = "containerGroupName")] + public string ContainerGroupName { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ContainerGroupName != null) + { + if (ContainerGroupName.Length > 63) + { + throw new ValidationException(ValidationRules.MaxLength, "ContainerGroupName", 63); + } + if (ContainerGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "ContainerGroupName", 1); + } + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/CreatedByType.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/CreatedByType.cs new file mode 100644 index 000000000000..e6bc620661a8 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/CreatedByType.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + + /// + /// Defines values for CreatedByType. + /// + public static class CreatedByType + { + public const string User = "User"; + public const string Application = "Application"; + public const string ManagedIdentity = "ManagedIdentity"; + public const string Key = "Key"; + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DataEffect.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DataEffect.cs new file mode 100644 index 000000000000..a26e1a4abde5 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DataEffect.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The data effect definition. + /// + public partial class DataEffect + { + /// + /// Initializes a new instance of the DataEffect class. + /// + public DataEffect() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataEffect class. + /// + /// The data effect name. + /// The data effect details schema. + public DataEffect(string name = default(string), object detailsSchema = default(object)) + { + Name = name; + DetailsSchema = detailsSchema; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the data effect name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the data effect details schema. + /// + [JsonProperty(PropertyName = "detailsSchema")] + public object DetailsSchema { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DataManifestCustomResourceFunctionDefinition.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DataManifestCustomResourceFunctionDefinition.cs new file mode 100644 index 000000000000..b4248ecf787a --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DataManifestCustomResourceFunctionDefinition.cs @@ -0,0 +1,93 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The custom resource function definition. + /// + public partial class DataManifestCustomResourceFunctionDefinition + { + /// + /// Initializes a new instance of the + /// DataManifestCustomResourceFunctionDefinition class. + /// + public DataManifestCustomResourceFunctionDefinition() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// DataManifestCustomResourceFunctionDefinition class. + /// + /// The function name as it will appear in the + /// policy rule. eg - 'vault'. + /// The fully qualified + /// control plane resource type that this function represents. eg - + /// 'Microsoft.KeyVault/vaults'. + /// The top-level properties that can + /// be selected on the function's output. eg - [ "name", "location" ] + /// if vault().name and vault().location are supported + /// A value indicating whether the + /// custom properties within the property bag are allowed. Needs + /// api-version to be specified in the policy rule eg - + /// vault('2019-06-01'). + public DataManifestCustomResourceFunctionDefinition(string name = default(string), string fullyQualifiedResourceType = default(string), IList defaultProperties = default(IList), bool? allowCustomProperties = default(bool?)) + { + Name = name; + FullyQualifiedResourceType = fullyQualifiedResourceType; + DefaultProperties = defaultProperties; + AllowCustomProperties = allowCustomProperties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the function name as it will appear in the policy + /// rule. eg - 'vault'. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the fully qualified control plane resource type that + /// this function represents. eg - 'Microsoft.KeyVault/vaults'. + /// + [JsonProperty(PropertyName = "fullyQualifiedResourceType")] + public string FullyQualifiedResourceType { get; set; } + + /// + /// Gets or sets the top-level properties that can be selected on the + /// function's output. eg - [ "name", "location" ] if vault().name and + /// vault().location are supported + /// + [JsonProperty(PropertyName = "defaultProperties")] + public IList DefaultProperties { get; set; } + + /// + /// Gets or sets a value indicating whether the custom properties + /// within the property bag are allowed. Needs api-version to be + /// specified in the policy rule eg - vault('2019-06-01'). + /// + [JsonProperty(PropertyName = "allowCustomProperties")] + public bool? AllowCustomProperties { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DataPolicyManifest.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DataPolicyManifest.cs new file mode 100644 index 000000000000..46946a624682 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DataPolicyManifest.cs @@ -0,0 +1,151 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The data policy manifest. + /// + [Rest.Serialization.JsonTransformation] + public partial class DataPolicyManifest : IResource + { + /// + /// Initializes a new instance of the DataPolicyManifest class. + /// + public DataPolicyManifest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DataPolicyManifest class. + /// + /// The list of namespaces for the data policy + /// manifest. + /// The policy mode of the data policy + /// manifest. + /// A value indicating whether policy mode + /// is allowed only in built-in definitions. + /// An array of resource type + /// aliases. + /// The effect definition. + /// The non-alias field accessor values that + /// can be used in the policy rule. + /// The standard resource functions + /// (subscription and/or resourceGroup). + /// An array of data manifest custom resource + /// definition. + /// The ID of the data policy manifest. + /// The name of the data policy manifest (it's the + /// same as the Policy Mode). + /// The type of the resource + /// (Microsoft.Authorization/dataPolicyManifests). + public DataPolicyManifest(IList namespaces = default(IList), string policyMode = default(string), bool? isBuiltInOnly = default(bool?), IList resourceTypeAliases = default(IList), IList effects = default(IList), IList fieldValues = default(IList), IList standard = default(IList), IList custom = default(IList), string id = default(string), string name = default(string), string type = default(string)) + { + Namespaces = namespaces; + PolicyMode = policyMode; + IsBuiltInOnly = isBuiltInOnly; + ResourceTypeAliases = resourceTypeAliases; + Effects = effects; + FieldValues = fieldValues; + Standard = standard; + Custom = custom; + Id = id; + Name = name; + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the list of namespaces for the data policy manifest. + /// + [JsonProperty(PropertyName = "properties.namespaces")] + public IList Namespaces { get; set; } + + /// + /// Gets or sets the policy mode of the data policy manifest. + /// + [JsonProperty(PropertyName = "properties.policyMode")] + public string PolicyMode { get; set; } + + /// + /// Gets or sets a value indicating whether policy mode is allowed only + /// in built-in definitions. + /// + [JsonProperty(PropertyName = "properties.isBuiltInOnly")] + public bool? IsBuiltInOnly { get; set; } + + /// + /// Gets or sets an array of resource type aliases. + /// + [JsonProperty(PropertyName = "properties.resourceTypeAliases")] + public IList ResourceTypeAliases { get; set; } + + /// + /// Gets or sets the effect definition. + /// + [JsonProperty(PropertyName = "properties.effects")] + public IList Effects { get; set; } + + /// + /// Gets or sets the non-alias field accessor values that can be used + /// in the policy rule. + /// + [JsonProperty(PropertyName = "properties.fieldValues")] + public IList FieldValues { get; set; } + + /// + /// Gets or sets the standard resource functions (subscription and/or + /// resourceGroup). + /// + [JsonProperty(PropertyName = "properties.resourceFunctions.standard")] + public IList Standard { get; set; } + + /// + /// Gets or sets an array of data manifest custom resource definition. + /// + [JsonProperty(PropertyName = "properties.resourceFunctions.custom")] + public IList Custom { get; set; } + + /// + /// Gets the ID of the data policy manifest. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the name of the data policy manifest (it's the same as the + /// Policy Mode). + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the type of the resource + /// (Microsoft.Authorization/dataPolicyManifests). + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DebugSetting.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DebugSetting.cs new file mode 100644 index 000000000000..4050c505d219 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DebugSetting.cs @@ -0,0 +1,65 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The debug setting. + /// + public partial class DebugSetting + { + /// + /// Initializes a new instance of the DebugSetting class. + /// + public DebugSetting() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DebugSetting class. + /// + /// 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 DebugSetting(string detailLevel = default(string)) + { + DetailLevel = detailLevel; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets 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. + /// + [JsonProperty(PropertyName = "detailLevel")] + public string DetailLevel { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Dependency.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Dependency.cs new file mode 100644 index 000000000000..dfbbe31aa24a --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Dependency.cs @@ -0,0 +1,77 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Deployment dependency information. + /// + public partial class Dependency + { + /// + /// Initializes a new instance of the Dependency class. + /// + public Dependency() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Dependency class. + /// + /// The list of dependencies. + /// The ID of the dependency. + /// The dependency resource type. + /// The dependency resource name. + public Dependency(IList dependsOn = default(IList), string id = default(string), string resourceType = default(string), string resourceName = default(string)) + { + DependsOn = dependsOn; + Id = id; + ResourceType = resourceType; + ResourceName = resourceName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the list of dependencies. + /// + [JsonProperty(PropertyName = "dependsOn")] + public IList DependsOn { get; set; } + + /// + /// Gets or sets the ID of the dependency. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Gets or sets the dependency resource type. + /// + [JsonProperty(PropertyName = "resourceType")] + public string ResourceType { get; set; } + + /// + /// Gets or sets the dependency resource name. + /// + [JsonProperty(PropertyName = "resourceName")] + public string ResourceName { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Deployment.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Deployment.cs new file mode 100644 index 000000000000..db880f6df32d --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Deployment.cs @@ -0,0 +1,88 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Deployment operation parameters. + /// + public partial class Deployment + { + /// + /// Initializes a new instance of the Deployment class. + /// + public Deployment() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Deployment class. + /// + /// The deployment properties. + /// The location to store the deployment + /// data. + /// Deployment tags + public Deployment(DeploymentProperties properties, string location = default(string), IDictionary tags = default(IDictionary)) + { + Location = location; + Properties = properties; + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the location to store the deployment data. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets the deployment properties. + /// + [JsonProperty(PropertyName = "properties")] + public DeploymentProperties Properties { get; set; } + + /// + /// Gets or sets deployment tags + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Properties == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Properties"); + } + if (Properties != null) + { + Properties.Validate(); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentExportResult.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentExportResult.cs new file mode 100644 index 000000000000..7a6d04bcefdf --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentExportResult.cs @@ -0,0 +1,51 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The deployment export result. + /// + public partial class DeploymentExportResult + { + /// + /// Initializes a new instance of the DeploymentExportResult class. + /// + public DeploymentExportResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DeploymentExportResult class. + /// + /// The template content. + public DeploymentExportResult(object template = default(object)) + { + Template = template; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the template content. + /// + [JsonProperty(PropertyName = "template")] + public object Template { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentExtended.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentExtended.cs new file mode 100644 index 000000000000..52b5881d604f --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentExtended.cs @@ -0,0 +1,108 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Deployment information. + /// + public partial class DeploymentExtended : IResource + { + /// + /// Initializes a new instance of the DeploymentExtended class. + /// + public DeploymentExtended() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DeploymentExtended class. + /// + /// The ID of the deployment. + /// The name of the deployment. + /// The type of the deployment. + /// the location of the deployment. + /// Deployment properties. + /// Deployment tags + public DeploymentExtended(string id = default(string), string name = default(string), string type = default(string), string location = default(string), DeploymentPropertiesExtended properties = default(DeploymentPropertiesExtended), IDictionary tags = default(IDictionary)) + { + Id = id; + Name = name; + Type = type; + Location = location; + Properties = properties; + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the ID of the deployment. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the name of the deployment. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the type of the deployment. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets or sets the location of the deployment. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets deployment properties. + /// + [JsonProperty(PropertyName = "properties")] + public DeploymentPropertiesExtended Properties { get; set; } + + /// + /// Gets or sets deployment tags + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Properties != null) + { + Properties.Validate(); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentExtendedFilter.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentExtendedFilter.cs new file mode 100644 index 000000000000..d718f38e5b66 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentExtendedFilter.cs @@ -0,0 +1,51 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Deployment filter. + /// + public partial class DeploymentExtendedFilter + { + /// + /// Initializes a new instance of the DeploymentExtendedFilter class. + /// + public DeploymentExtendedFilter() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DeploymentExtendedFilter class. + /// + /// The provisioning state. + public DeploymentExtendedFilter(string provisioningState = default(string)) + { + ProvisioningState = provisioningState; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the provisioning state. + /// + [JsonProperty(PropertyName = "provisioningState")] + public string ProvisioningState { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentMode.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentMode.cs new file mode 100644 index 000000000000..75858d645dc5 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentMode.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for DeploymentMode. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum DeploymentMode + { + [EnumMember(Value = "Incremental")] + Incremental, + [EnumMember(Value = "Complete")] + Complete + } + internal static class DeploymentModeEnumExtension + { + internal static string ToSerializedValue(this DeploymentMode? value) + { + return value == null ? null : ((DeploymentMode)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this DeploymentMode value) + { + switch( value ) + { + case DeploymentMode.Incremental: + return "Incremental"; + case DeploymentMode.Complete: + return "Complete"; + } + return null; + } + + internal static DeploymentMode? ParseDeploymentMode(this string value) + { + switch( value ) + { + case "Incremental": + return DeploymentMode.Incremental; + case "Complete": + return DeploymentMode.Complete; + } + return null; + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentOperation.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentOperation.cs new file mode 100644 index 000000000000..3448f5876439 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentOperation.cs @@ -0,0 +1,67 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Deployment operation information. + /// + public partial class DeploymentOperation + { + /// + /// Initializes a new instance of the DeploymentOperation class. + /// + public DeploymentOperation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DeploymentOperation class. + /// + /// Full deployment operation ID. + /// Deployment operation ID. + /// Deployment properties. + public DeploymentOperation(string id = default(string), string operationId = default(string), DeploymentOperationProperties properties = default(DeploymentOperationProperties)) + { + Id = id; + OperationId = operationId; + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets full deployment operation ID. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets deployment operation ID. + /// + [JsonProperty(PropertyName = "operationId")] + public string OperationId { get; private set; } + + /// + /// Gets or sets deployment properties. + /// + [JsonProperty(PropertyName = "properties")] + public DeploymentOperationProperties Properties { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentOperationProperties.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentOperationProperties.cs new file mode 100644 index 000000000000..2b6bd75c2986 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentOperationProperties.cs @@ -0,0 +1,142 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Deployment operation properties. + /// + public partial class DeploymentOperationProperties + { + /// + /// Initializes a new instance of the DeploymentOperationProperties + /// class. + /// + public DeploymentOperationProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DeploymentOperationProperties + /// class. + /// + /// The name of the current + /// provisioning operation. Possible values include: 'NotSpecified', + /// 'Create', 'Delete', 'Waiting', 'AzureAsyncOperationWaiting', + /// 'ResourceCacheWaiting', 'Action', 'Read', + /// 'EvaluateDeploymentOutput', 'DeploymentCleanup' + /// The state of the + /// provisioning. + /// The date and time of the operation. + /// The duration of the operation. + /// Deployment operation service request + /// id. + /// Operation status code from the resource + /// provider. This property may not be set if a response has not yet + /// been received. + /// Operation status message from the + /// resource provider. This property is optional. It will only be + /// provided if an error was received from the resource + /// provider. + /// The target resource. + /// The HTTP request message. + /// The HTTP response message. + public DeploymentOperationProperties(ProvisioningOperation? provisioningOperation = default(ProvisioningOperation?), string provisioningState = default(string), System.DateTime? timestamp = default(System.DateTime?), string duration = default(string), string serviceRequestId = default(string), string statusCode = default(string), StatusMessage statusMessage = default(StatusMessage), TargetResource targetResource = default(TargetResource), HttpMessage request = default(HttpMessage), HttpMessage response = default(HttpMessage)) + { + ProvisioningOperation = provisioningOperation; + ProvisioningState = provisioningState; + Timestamp = timestamp; + Duration = duration; + ServiceRequestId = serviceRequestId; + StatusCode = statusCode; + StatusMessage = statusMessage; + TargetResource = targetResource; + Request = request; + Response = response; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the name of the current provisioning operation. Possible + /// values include: 'NotSpecified', 'Create', 'Delete', 'Waiting', + /// 'AzureAsyncOperationWaiting', 'ResourceCacheWaiting', 'Action', + /// 'Read', 'EvaluateDeploymentOutput', 'DeploymentCleanup' + /// + [JsonProperty(PropertyName = "provisioningOperation")] + public ProvisioningOperation? ProvisioningOperation { get; private set; } + + /// + /// Gets the state of the provisioning. + /// + [JsonProperty(PropertyName = "provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets the date and time of the operation. + /// + [JsonProperty(PropertyName = "timestamp")] + public System.DateTime? Timestamp { get; private set; } + + /// + /// Gets the duration of the operation. + /// + [JsonProperty(PropertyName = "duration")] + public string Duration { get; private set; } + + /// + /// Gets deployment operation service request id. + /// + [JsonProperty(PropertyName = "serviceRequestId")] + public string ServiceRequestId { get; private set; } + + /// + /// Gets operation status code from the resource provider. This + /// property may not be set if a response has not yet been received. + /// + [JsonProperty(PropertyName = "statusCode")] + public string StatusCode { get; private set; } + + /// + /// Gets operation status message from the resource provider. This + /// property is optional. It will only be provided if an error was + /// received from the resource provider. + /// + [JsonProperty(PropertyName = "statusMessage")] + public StatusMessage StatusMessage { get; private set; } + + /// + /// Gets the target resource. + /// + [JsonProperty(PropertyName = "targetResource")] + public TargetResource TargetResource { get; private set; } + + /// + /// Gets the HTTP request message. + /// + [JsonProperty(PropertyName = "request")] + public HttpMessage Request { get; private set; } + + /// + /// Gets the HTTP response message. + /// + [JsonProperty(PropertyName = "response")] + public HttpMessage Response { get; private set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentProperties.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentProperties.cs new file mode 100644 index 000000000000..e35cdd7b5cfc --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentProperties.cs @@ -0,0 +1,168 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Deployment properties. + /// + public partial class DeploymentProperties + { + /// + /// Initializes a new instance of the DeploymentProperties class. + /// + public DeploymentProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DeploymentProperties class. + /// + /// 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. Possible + /// values include: 'Incremental', 'Complete' + /// 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 debug setting of the + /// deployment. + /// The deployment on error + /// behavior. + /// Specifies whether + /// template expressions are evaluated within the scope of the parent + /// template or nested template. Only applicable to nested templates. + /// If not specified, default value is outer. + public DeploymentProperties(DeploymentMode mode, object template = default(object), TemplateLink templateLink = default(TemplateLink), object parameters = default(object), ParametersLink parametersLink = default(ParametersLink), DebugSetting debugSetting = default(DebugSetting), OnErrorDeployment onErrorDeployment = default(OnErrorDeployment), ExpressionEvaluationOptions expressionEvaluationOptions = default(ExpressionEvaluationOptions)) + { + Template = template; + TemplateLink = templateLink; + Parameters = parameters; + ParametersLink = parametersLink; + Mode = mode; + DebugSetting = debugSetting; + OnErrorDeployment = onErrorDeployment; + ExpressionEvaluationOptions = expressionEvaluationOptions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets 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. + /// + [JsonProperty(PropertyName = "template")] + public object Template { get; set; } + + /// + /// Gets or sets the URI of the template. Use either the templateLink + /// property or the template property, but not both. + /// + [JsonProperty(PropertyName = "templateLink")] + public TemplateLink TemplateLink { get; set; } + + /// + /// Gets or sets 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. + /// + [JsonProperty(PropertyName = "parameters")] + public object Parameters { get; set; } + + /// + /// Gets or sets 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. + /// + [JsonProperty(PropertyName = "parametersLink")] + public ParametersLink ParametersLink { get; set; } + + /// + /// Gets or sets 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. Possible + /// values include: 'Incremental', 'Complete' + /// + [JsonProperty(PropertyName = "mode")] + public DeploymentMode Mode { get; set; } + + /// + /// Gets or sets the debug setting of the deployment. + /// + [JsonProperty(PropertyName = "debugSetting")] + public DebugSetting DebugSetting { get; set; } + + /// + /// Gets or sets the deployment on error behavior. + /// + [JsonProperty(PropertyName = "onErrorDeployment")] + public OnErrorDeployment OnErrorDeployment { get; set; } + + /// + /// Gets or sets specifies whether template expressions are evaluated + /// within the scope of the parent template or nested template. Only + /// applicable to nested templates. If not specified, default value is + /// outer. + /// + [JsonProperty(PropertyName = "expressionEvaluationOptions")] + public ExpressionEvaluationOptions ExpressionEvaluationOptions { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ParametersLink != null) + { + ParametersLink.Validate(); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentPropertiesExtended.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentPropertiesExtended.cs new file mode 100644 index 000000000000..b3b8cf0c3196 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentPropertiesExtended.cs @@ -0,0 +1,218 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Deployment properties with additional details. + /// + public partial class DeploymentPropertiesExtended + { + /// + /// Initializes a new instance of the DeploymentPropertiesExtended + /// class. + /// + public DeploymentPropertiesExtended() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DeploymentPropertiesExtended + /// class. + /// + /// Denotes the state of provisioning. + /// Possible values include: 'NotSpecified', 'Accepted', 'Running', + /// 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled', + /// 'Failed', 'Succeeded', 'Updating' + /// The correlation ID of the + /// deployment. + /// The timestamp of the template + /// deployment. + /// The duration 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 URI referencing the + /// template. + /// Deployment parameters. + /// The URI referencing the parameters. + /// + /// The deployment mode. Possible values are + /// Incremental and Complete. Possible values include: 'Incremental', + /// 'Complete' + /// The debug setting of the + /// deployment. + /// The deployment on error + /// behavior. + /// The hash produced for the + /// template. + /// Array of provisioned + /// resources. + /// Array of validated + /// resources. + /// The deployment error. + public DeploymentPropertiesExtended(string provisioningState = default(string), string correlationId = default(string), System.DateTime? timestamp = default(System.DateTime?), string duration = default(string), object outputs = default(object), IList providers = default(IList), IList dependencies = default(IList), TemplateLink templateLink = default(TemplateLink), object parameters = default(object), ParametersLink parametersLink = default(ParametersLink), DeploymentMode? mode = default(DeploymentMode?), DebugSetting debugSetting = default(DebugSetting), OnErrorDeploymentExtended onErrorDeployment = default(OnErrorDeploymentExtended), string templateHash = default(string), IList outputResources = default(IList), IList validatedResources = default(IList), ErrorResponse error = default(ErrorResponse)) + { + ProvisioningState = provisioningState; + CorrelationId = correlationId; + Timestamp = timestamp; + Duration = duration; + Outputs = outputs; + Providers = providers; + Dependencies = dependencies; + TemplateLink = templateLink; + Parameters = parameters; + ParametersLink = parametersLink; + Mode = mode; + DebugSetting = debugSetting; + OnErrorDeployment = onErrorDeployment; + TemplateHash = templateHash; + OutputResources = outputResources; + ValidatedResources = validatedResources; + Error = error; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets denotes the state of provisioning. Possible values include: + /// 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', + /// 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed', + /// 'Succeeded', 'Updating' + /// + [JsonProperty(PropertyName = "provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets the correlation ID of the deployment. + /// + [JsonProperty(PropertyName = "correlationId")] + public string CorrelationId { get; private set; } + + /// + /// Gets the timestamp of the template deployment. + /// + [JsonProperty(PropertyName = "timestamp")] + public System.DateTime? Timestamp { get; private set; } + + /// + /// Gets the duration of the template deployment. + /// + [JsonProperty(PropertyName = "duration")] + public string Duration { get; private set; } + + /// + /// Gets key/value pairs that represent deployment output. + /// + [JsonProperty(PropertyName = "outputs")] + public object Outputs { get; private set; } + + /// + /// Gets the list of resource providers needed for the deployment. + /// + [JsonProperty(PropertyName = "providers")] + public IList Providers { get; private set; } + + /// + /// Gets the list of deployment dependencies. + /// + [JsonProperty(PropertyName = "dependencies")] + public IList Dependencies { get; private set; } + + /// + /// Gets the URI referencing the template. + /// + [JsonProperty(PropertyName = "templateLink")] + public TemplateLink TemplateLink { get; private set; } + + /// + /// Gets deployment parameters. + /// + [JsonProperty(PropertyName = "parameters")] + public object Parameters { get; private set; } + + /// + /// Gets the URI referencing the parameters. + /// + [JsonProperty(PropertyName = "parametersLink")] + public ParametersLink ParametersLink { get; private set; } + + /// + /// Gets the deployment mode. Possible values are Incremental and + /// Complete. Possible values include: 'Incremental', 'Complete' + /// + [JsonProperty(PropertyName = "mode")] + public DeploymentMode? Mode { get; private set; } + + /// + /// Gets the debug setting of the deployment. + /// + [JsonProperty(PropertyName = "debugSetting")] + public DebugSetting DebugSetting { get; private set; } + + /// + /// Gets the deployment on error behavior. + /// + [JsonProperty(PropertyName = "onErrorDeployment")] + public OnErrorDeploymentExtended OnErrorDeployment { get; private set; } + + /// + /// Gets the hash produced for the template. + /// + [JsonProperty(PropertyName = "templateHash")] + public string TemplateHash { get; private set; } + + /// + /// Gets array of provisioned resources. + /// + [JsonProperty(PropertyName = "outputResources")] + public IList OutputResources { get; private set; } + + /// + /// Gets array of validated resources. + /// + [JsonProperty(PropertyName = "validatedResources")] + public IList ValidatedResources { get; private set; } + + /// + /// Gets the deployment error. + /// + [JsonProperty(PropertyName = "error")] + public ErrorResponse Error { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ParametersLink != null) + { + ParametersLink.Validate(); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentScript.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentScript.cs new file mode 100644 index 000000000000..43a83c843d96 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentScript.cs @@ -0,0 +1,103 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Deployment script object. + /// + public partial class DeploymentScript : AzureResourceBase + { + /// + /// Initializes a new instance of the DeploymentScript class. + /// + public DeploymentScript() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DeploymentScript class. + /// + /// The location of the ACI and the storage + /// account for the deployment script. + /// String Id used to locate any resource on + /// Azure. + /// Name of this resource. + /// Type of this resource. + /// Optional property. Managed identity to be + /// used for this deployment script. Currently, only user-assigned MSI + /// is supported. + /// Resource tags. + /// The system metadata related to this + /// resource. + public DeploymentScript(string location, string id = default(string), string name = default(string), string type = default(string), ManagedServiceIdentity identity = default(ManagedServiceIdentity), IDictionary tags = default(IDictionary), SystemData systemData = default(SystemData)) + : base(id, name, type) + { + Identity = identity; + Location = location; + Tags = tags; + SystemData = systemData; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets optional property. Managed identity to be used for + /// this deployment script. Currently, only user-assigned MSI is + /// supported. + /// + [JsonProperty(PropertyName = "identity")] + public ManagedServiceIdentity Identity { get; set; } + + /// + /// Gets or sets the location of the ACI and the storage account for + /// the deployment script. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets resource tags. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Gets the system metadata related to this resource. + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Location"); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentScriptUpdateParameter.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentScriptUpdateParameter.cs new file mode 100644 index 000000000000..e6b83cd58962 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentScriptUpdateParameter.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Deployment script parameters to be updated. + /// + public partial class DeploymentScriptUpdateParameter : AzureResourceBase + { + /// + /// Initializes a new instance of the DeploymentScriptUpdateParameter + /// class. + /// + public DeploymentScriptUpdateParameter() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DeploymentScriptUpdateParameter + /// class. + /// + /// String Id used to locate any resource on + /// Azure. + /// Name of this resource. + /// Type of this resource. + /// Resource tags to be updated. + public DeploymentScriptUpdateParameter(string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary)) + : base(id, name, type) + { + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets resource tags to be updated. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentScriptsError.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentScriptsError.cs new file mode 100644 index 000000000000..f1c016a6b667 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentScriptsError.cs @@ -0,0 +1,49 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Deployment scripts error response. + /// + public partial class DeploymentScriptsError + { + /// + /// Initializes a new instance of the DeploymentScriptsError class. + /// + public DeploymentScriptsError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DeploymentScriptsError class. + /// + public DeploymentScriptsError(ErrorResponse error = default(ErrorResponse)) + { + Error = error; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "error")] + public ErrorResponse Error { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentScriptsErrorException.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentScriptsErrorException.cs new file mode 100644 index 000000000000..9c543639995b --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentScriptsErrorException.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + + /// + /// Exception thrown for an invalid response with DeploymentScriptsError + /// information. + /// + public partial class DeploymentScriptsErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public DeploymentScriptsError Body { get; set; } + + /// + /// Initializes a new instance of the DeploymentScriptsErrorException class. + /// + public DeploymentScriptsErrorException() + { + } + + /// + /// Initializes a new instance of the DeploymentScriptsErrorException class. + /// + /// The exception message. + public DeploymentScriptsErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the DeploymentScriptsErrorException class. + /// + /// The exception message. + /// Inner exception. + public DeploymentScriptsErrorException(string message, System.Exception innerException) + : base(message, innerException) + { + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentValidateResult.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentValidateResult.cs new file mode 100644 index 000000000000..e24a56fc7d7b --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentValidateResult.cs @@ -0,0 +1,73 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Information from validate template deployment response. + /// + public partial class DeploymentValidateResult + { + /// + /// Initializes a new instance of the DeploymentValidateResult class. + /// + public DeploymentValidateResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DeploymentValidateResult class. + /// + /// The deployment validation error. + /// The template deployment + /// properties. + public DeploymentValidateResult(ErrorResponse error = default(ErrorResponse), DeploymentPropertiesExtended properties = default(DeploymentPropertiesExtended)) + { + Error = error; + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the deployment validation error. + /// + [JsonProperty(PropertyName = "error")] + public ErrorResponse Error { get; private set; } + + /// + /// Gets or sets the template deployment properties. + /// + [JsonProperty(PropertyName = "properties")] + public DeploymentPropertiesExtended Properties { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Properties != null) + { + Properties.Validate(); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentWhatIf.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentWhatIf.cs new file mode 100644 index 000000000000..7b7006791fda --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentWhatIf.cs @@ -0,0 +1,78 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Deployment What-if operation parameters. + /// + public partial class DeploymentWhatIf + { + /// + /// Initializes a new instance of the DeploymentWhatIf class. + /// + public DeploymentWhatIf() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DeploymentWhatIf class. + /// + /// The deployment properties. + /// The location to store the deployment + /// data. + public DeploymentWhatIf(DeploymentWhatIfProperties properties, string location = default(string)) + { + Location = location; + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the location to store the deployment data. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets the deployment properties. + /// + [JsonProperty(PropertyName = "properties")] + public DeploymentWhatIfProperties Properties { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Properties == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Properties"); + } + if (Properties != null) + { + Properties.Validate(); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentWhatIfProperties.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentWhatIfProperties.cs new file mode 100644 index 000000000000..a27c9d82ce91 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentWhatIfProperties.cs @@ -0,0 +1,97 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Deployment What-if properties. + /// + public partial class DeploymentWhatIfProperties : DeploymentProperties + { + /// + /// Initializes a new instance of the DeploymentWhatIfProperties class. + /// + public DeploymentWhatIfProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DeploymentWhatIfProperties class. + /// + /// 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. Possible + /// values include: 'Incremental', 'Complete' + /// 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 debug setting of the + /// deployment. + /// The deployment on error + /// behavior. + /// Specifies whether + /// template expressions are evaluated within the scope of the parent + /// template or nested template. Only applicable to nested templates. + /// If not specified, default value is outer. + /// Optional What-If operation + /// settings. + public DeploymentWhatIfProperties(DeploymentMode mode, object template = default(object), TemplateLink templateLink = default(TemplateLink), object parameters = default(object), ParametersLink parametersLink = default(ParametersLink), DebugSetting debugSetting = default(DebugSetting), OnErrorDeployment onErrorDeployment = default(OnErrorDeployment), ExpressionEvaluationOptions expressionEvaluationOptions = default(ExpressionEvaluationOptions), DeploymentWhatIfSettings whatIfSettings = default(DeploymentWhatIfSettings)) + : base(mode, template, templateLink, parameters, parametersLink, debugSetting, onErrorDeployment, expressionEvaluationOptions) + { + WhatIfSettings = whatIfSettings; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets optional What-If operation settings. + /// + [JsonProperty(PropertyName = "whatIfSettings")] + public DeploymentWhatIfSettings WhatIfSettings { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentWhatIfSettings.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentWhatIfSettings.cs new file mode 100644 index 000000000000..f075adb81e9d --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentWhatIfSettings.cs @@ -0,0 +1,54 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Deployment What-If operation settings. + /// + public partial class DeploymentWhatIfSettings + { + /// + /// Initializes a new instance of the DeploymentWhatIfSettings class. + /// + public DeploymentWhatIfSettings() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DeploymentWhatIfSettings class. + /// + /// The format of the What-If results. + /// Possible values include: 'ResourceIdOnly', + /// 'FullResourcePayloads' + public DeploymentWhatIfSettings(WhatIfResultFormat? resultFormat = default(WhatIfResultFormat?)) + { + ResultFormat = resultFormat; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the format of the What-If results. Possible values + /// include: 'ResourceIdOnly', 'FullResourcePayloads' + /// + [JsonProperty(PropertyName = "resultFormat")] + public WhatIfResultFormat? ResultFormat { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentsWhatIfAtManagementGroupScopeHeaders.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentsWhatIfAtManagementGroupScopeHeaders.cs new file mode 100644 index 000000000000..6058c502889e --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentsWhatIfAtManagementGroupScopeHeaders.cs @@ -0,0 +1,63 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for WhatIfAtManagementGroupScope operation. + /// + public partial class DeploymentsWhatIfAtManagementGroupScopeHeaders + { + /// + /// Initializes a new instance of the + /// DeploymentsWhatIfAtManagementGroupScopeHeaders class. + /// + public DeploymentsWhatIfAtManagementGroupScopeHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// DeploymentsWhatIfAtManagementGroupScopeHeaders class. + /// + /// URL to get status of this long-running + /// operation. + /// Number of seconds to wait before polling + /// for status. + public DeploymentsWhatIfAtManagementGroupScopeHeaders(string location = default(string), string retryAfter = default(string)) + { + Location = location; + RetryAfter = retryAfter; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets URL to get status of this long-running operation. + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + /// + /// Gets or sets number of seconds to wait before polling for status. + /// + [JsonProperty(PropertyName = "Retry-After")] + public string RetryAfter { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentsWhatIfAtSubscriptionScopeHeaders.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentsWhatIfAtSubscriptionScopeHeaders.cs new file mode 100644 index 000000000000..39fb9ddba476 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentsWhatIfAtSubscriptionScopeHeaders.cs @@ -0,0 +1,63 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for WhatIfAtSubscriptionScope operation. + /// + public partial class DeploymentsWhatIfAtSubscriptionScopeHeaders + { + /// + /// Initializes a new instance of the + /// DeploymentsWhatIfAtSubscriptionScopeHeaders class. + /// + public DeploymentsWhatIfAtSubscriptionScopeHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// DeploymentsWhatIfAtSubscriptionScopeHeaders class. + /// + /// URL to get status of this long-running + /// operation. + /// Number of seconds to wait before polling + /// for status. + public DeploymentsWhatIfAtSubscriptionScopeHeaders(string location = default(string), string retryAfter = default(string)) + { + Location = location; + RetryAfter = retryAfter; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets URL to get status of this long-running operation. + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + /// + /// Gets or sets number of seconds to wait before polling for status. + /// + [JsonProperty(PropertyName = "Retry-After")] + public string RetryAfter { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentsWhatIfAtTenantScopeHeaders.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentsWhatIfAtTenantScopeHeaders.cs new file mode 100644 index 000000000000..46ee97559368 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentsWhatIfAtTenantScopeHeaders.cs @@ -0,0 +1,63 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for WhatIfAtTenantScope operation. + /// + public partial class DeploymentsWhatIfAtTenantScopeHeaders + { + /// + /// Initializes a new instance of the + /// DeploymentsWhatIfAtTenantScopeHeaders class. + /// + public DeploymentsWhatIfAtTenantScopeHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// DeploymentsWhatIfAtTenantScopeHeaders class. + /// + /// URL to get status of this long-running + /// operation. + /// Number of seconds to wait before polling + /// for status. + public DeploymentsWhatIfAtTenantScopeHeaders(string location = default(string), string retryAfter = default(string)) + { + Location = location; + RetryAfter = retryAfter; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets URL to get status of this long-running operation. + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + /// + /// Gets or sets number of seconds to wait before polling for status. + /// + [JsonProperty(PropertyName = "Retry-After")] + public string RetryAfter { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentsWhatIfHeaders.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentsWhatIfHeaders.cs new file mode 100644 index 000000000000..9c2995a12ccb --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/DeploymentsWhatIfHeaders.cs @@ -0,0 +1,61 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Defines headers for WhatIf operation. + /// + public partial class DeploymentsWhatIfHeaders + { + /// + /// Initializes a new instance of the DeploymentsWhatIfHeaders class. + /// + public DeploymentsWhatIfHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DeploymentsWhatIfHeaders class. + /// + /// URL to get status of this long-running + /// operation. + /// Number of seconds to wait before polling + /// for status. + public DeploymentsWhatIfHeaders(string location = default(string), string retryAfter = default(string)) + { + Location = location; + RetryAfter = retryAfter; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets URL to get status of this long-running operation. + /// + [JsonProperty(PropertyName = "Location")] + public string Location { get; set; } + + /// + /// Gets or sets number of seconds to wait before polling for status. + /// + [JsonProperty(PropertyName = "Retry-After")] + public string RetryAfter { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/EnforcementMode.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/EnforcementMode.cs new file mode 100644 index 000000000000..cd875a0c8703 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/EnforcementMode.cs @@ -0,0 +1,29 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + + /// + /// Defines values for EnforcementMode. + /// + public static class EnforcementMode + { + /// + /// The policy effect is enforced during resource creation or update. + /// + public const string Default = "Default"; + /// + /// The policy effect is not enforced during resource creation or + /// update. + /// + public const string DoNotEnforce = "DoNotEnforce"; + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/EnvironmentVariable.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/EnvironmentVariable.cs new file mode 100644 index 000000000000..0119e3d4939e --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/EnvironmentVariable.cs @@ -0,0 +1,83 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The environment variable to pass to the script in the container + /// instance. + /// + public partial class EnvironmentVariable + { + /// + /// Initializes a new instance of the EnvironmentVariable class. + /// + public EnvironmentVariable() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EnvironmentVariable class. + /// + /// The name of the environment variable. + /// The value of the environment variable. + /// The value of the secure environment + /// variable. + public EnvironmentVariable(string name, string value = default(string), string secureValue = default(string)) + { + Name = name; + Value = value; + SecureValue = secureValue; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the environment variable. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the value of the environment variable. + /// + [JsonProperty(PropertyName = "value")] + public string Value { get; set; } + + /// + /// Gets or sets the value of the secure environment variable. + /// + [JsonProperty(PropertyName = "secureValue")] + public string SecureValue { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ErrorAdditionalInfo.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ErrorAdditionalInfo.cs new file mode 100644 index 000000000000..87c3a1a6fd3b --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ErrorAdditionalInfo.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The resource management error additional info. + /// + public partial class ErrorAdditionalInfo + { + /// + /// Initializes a new instance of the ErrorAdditionalInfo class. + /// + public ErrorAdditionalInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ErrorAdditionalInfo class. + /// + /// The additional info type. + /// The additional info. + public ErrorAdditionalInfo(string type = default(string), object info = default(object)) + { + Type = type; + Info = info; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the additional info type. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets the additional info. + /// + [JsonProperty(PropertyName = "info")] + public object Info { get; private set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ErrorDefinition.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ErrorDefinition.cs new file mode 100644 index 000000000000..6e79fbdc028f --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ErrorDefinition.cs @@ -0,0 +1,71 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Error definition. + /// + public partial class ErrorDefinition + { + /// + /// Initializes a new instance of the ErrorDefinition class. + /// + public ErrorDefinition() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ErrorDefinition class. + /// + /// Service specific error code which serves as the + /// substatus for the HTTP error code. + /// Description of the error. + /// Internal error details. + public ErrorDefinition(string code = default(string), string message = default(string), IList details = default(IList)) + { + Code = code; + Message = message; + Details = details; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets service specific error code which serves as the substatus for + /// the HTTP error code. + /// + [JsonProperty(PropertyName = "code")] + public string Code { get; private set; } + + /// + /// Gets description of the error. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; private set; } + + /// + /// Gets or sets internal error details. + /// + [JsonProperty(PropertyName = "details")] + public IList Details { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ErrorResponse.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ErrorResponse.cs new file mode 100644 index 000000000000..831192154e4e --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ErrorResponse.cs @@ -0,0 +1,90 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Error Response + /// + /// + /// Common error response for all Azure Resource Manager APIs to return + /// error details for failed operations. (This also follows the OData error + /// response format.) + /// + public partial class ErrorResponse + { + /// + /// Initializes a new instance of the ErrorResponse class. + /// + public ErrorResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ErrorResponse class. + /// + /// The error code. + /// The error message. + /// The error target. + /// The error details. + /// The error additional info. + public ErrorResponse(string code = default(string), string message = default(string), string target = default(string), IList details = default(IList), IList additionalInfo = default(IList)) + { + Code = code; + Message = message; + Target = target; + Details = details; + AdditionalInfo = additionalInfo; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the error code. + /// + [JsonProperty(PropertyName = "code")] + public string Code { get; private set; } + + /// + /// Gets the error message. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; private set; } + + /// + /// Gets the error target. + /// + [JsonProperty(PropertyName = "target")] + public string Target { get; private set; } + + /// + /// Gets the error details. + /// + [JsonProperty(PropertyName = "details")] + public IList Details { get; private set; } + + /// + /// Gets the error additional info. + /// + [JsonProperty(PropertyName = "additionalInfo")] + public IList AdditionalInfo { get; private set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ErrorResponseException.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ErrorResponseException.cs new file mode 100644 index 000000000000..a9790c9188e7 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ErrorResponseException.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + + /// + /// Exception thrown for an invalid response with ErrorResponse + /// information. + /// + public partial class ErrorResponseException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public ErrorResponse Body { get; set; } + + /// + /// Initializes a new instance of the ErrorResponseException class. + /// + public ErrorResponseException() + { + } + + /// + /// Initializes a new instance of the ErrorResponseException class. + /// + /// The exception message. + public ErrorResponseException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorResponseException class. + /// + /// The exception message. + /// Inner exception. + public ErrorResponseException(string message, System.Exception innerException) + : base(message, innerException) + { + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ExemptionCategory.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ExemptionCategory.cs new file mode 100644 index 000000000000..dc456ca1e7f4 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ExemptionCategory.cs @@ -0,0 +1,30 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + + /// + /// Defines values for ExemptionCategory. + /// + public static class ExemptionCategory + { + /// + /// This category of exemptions usually means the scope is not + /// applicable for the policy. + /// + public const string Waiver = "Waiver"; + /// + /// This category of exemptions usually means the mitigation actions + /// have been applied to the scope. + /// + public const string Mitigated = "Mitigated"; + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ExportTemplateRequest.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ExportTemplateRequest.cs new file mode 100644 index 000000000000..2ba24000c21d --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ExportTemplateRequest.cs @@ -0,0 +1,71 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Export resource group template request parameters. + /// + public partial class ExportTemplateRequest + { + /// + /// Initializes a new instance of the ExportTemplateRequest class. + /// + public ExportTemplateRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ExportTemplateRequest class. + /// + /// 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' + public ExportTemplateRequest(IList resources = default(IList), string options = default(string)) + { + Resources = resources; + Options = options; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the IDs of the resources to filter the export by. To + /// export all resources, supply an array with single entry '*'. + /// + [JsonProperty(PropertyName = "resources")] + public IList Resources { get; set; } + + /// + /// Gets or sets the export template options. A CSV-formatted list + /// containing zero or more of the following: + /// 'IncludeParameterDefaultValue', 'IncludeComments', + /// 'SkipResourceNameParameterization', 'SkipAllParameterization' + /// + [JsonProperty(PropertyName = "options")] + public string Options { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ExpressionEvaluationOptions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ExpressionEvaluationOptions.cs new file mode 100644 index 000000000000..c4abdf4f7758 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ExpressionEvaluationOptions.cs @@ -0,0 +1,58 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Specifies whether template expressions are evaluated within the scope + /// of the parent template or nested template. + /// + public partial class ExpressionEvaluationOptions + { + /// + /// Initializes a new instance of the ExpressionEvaluationOptions + /// class. + /// + public ExpressionEvaluationOptions() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ExpressionEvaluationOptions + /// class. + /// + /// The scope to be used for evaluation of + /// parameters, variables and functions in a nested template. Possible + /// values include: 'NotSpecified', 'Outer', 'Inner' + public ExpressionEvaluationOptions(string scope = default(string)) + { + Scope = scope; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the scope to be used for evaluation of parameters, + /// variables and functions in a nested template. Possible values + /// include: 'NotSpecified', 'Outer', 'Inner' + /// + [JsonProperty(PropertyName = "scope")] + public string Scope { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ExpressionEvaluationOptionsScopeType.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ExpressionEvaluationOptionsScopeType.cs new file mode 100644 index 000000000000..b15140dfe03b --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ExpressionEvaluationOptionsScopeType.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + + /// + /// Defines values for ExpressionEvaluationOptionsScopeType. + /// + public static class ExpressionEvaluationOptionsScopeType + { + public const string NotSpecified = "NotSpecified"; + public const string Outer = "Outer"; + public const string Inner = "Inner"; + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ExtendedLocation.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ExtendedLocation.cs new file mode 100644 index 000000000000..db81c48ee293 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ExtendedLocation.cs @@ -0,0 +1,61 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Resource extended location. + /// + public partial class ExtendedLocation + { + /// + /// Initializes a new instance of the ExtendedLocation class. + /// + public ExtendedLocation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ExtendedLocation class. + /// + /// The extended location type. Possible values + /// include: 'EdgeZone' + /// The extended location name. + public ExtendedLocation(string type = default(string), string name = default(string)) + { + Type = type; + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the extended location type. Possible values include: + /// 'EdgeZone' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets the extended location name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ExtendedLocationType.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ExtendedLocationType.cs new file mode 100644 index 000000000000..263fe40a3798 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ExtendedLocationType.cs @@ -0,0 +1,21 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + + /// + /// Defines values for ExtendedLocationType. + /// + public static class ExtendedLocationType + { + public const string EdgeZone = "EdgeZone"; + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/FeatureProperties.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/FeatureProperties.cs new file mode 100644 index 000000000000..6e86168579bc --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/FeatureProperties.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Information about feature. + /// + public partial class FeatureProperties + { + /// + /// Initializes a new instance of the FeatureProperties class. + /// + public FeatureProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FeatureProperties class. + /// + /// The registration state of the feature for the + /// subscription. + public FeatureProperties(string state = default(string)) + { + State = state; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the registration state of the feature for the + /// subscription. + /// + [JsonProperty(PropertyName = "state")] + public string State { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/FeatureResult.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/FeatureResult.cs new file mode 100644 index 000000000000..56b34b019958 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/FeatureResult.cs @@ -0,0 +1,76 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Previewed feature information. + /// + public partial class FeatureResult + { + /// + /// Initializes a new instance of the FeatureResult class. + /// + public FeatureResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FeatureResult class. + /// + /// The name of the feature. + /// Properties of the previewed + /// feature. + /// The resource ID of the feature. + /// The resource type of the feature. + public FeatureResult(string name = default(string), FeatureProperties properties = default(FeatureProperties), string id = default(string), string type = default(string)) + { + Name = name; + Properties = properties; + Id = id; + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the feature. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets properties of the previewed feature. + /// + [JsonProperty(PropertyName = "properties")] + public FeatureProperties Properties { get; set; } + + /// + /// Gets or sets the resource ID of the feature. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Gets or sets the resource type of the feature. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Filter.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Filter.cs new file mode 100644 index 000000000000..143f1a28943a --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Filter.cs @@ -0,0 +1,54 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for Filter. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum Filter + { + [EnumMember(Value = "atScope()")] + AtScope + } + internal static class FilterEnumExtension + { + internal static string ToSerializedValue(this Filter? value) + { + return value == null ? null : ((Filter)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this Filter value) + { + switch( value ) + { + case Filter.AtScope: + return "atScope()"; + } + return null; + } + + internal static Filter? ParseFilter(this string value) + { + switch( value ) + { + case "atScope()": + return Filter.AtScope; + } + return null; + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/GenericResource.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/GenericResource.cs new file mode 100644 index 000000000000..f2834b15dfdb --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/GenericResource.cs @@ -0,0 +1,118 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Resource information. + /// + public partial class GenericResource : Resource + { + /// + /// Initializes a new instance of the GenericResource class. + /// + public GenericResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the GenericResource class. + /// + /// Resource ID + /// Resource name + /// Resource type + /// Resource location + /// Resource extended 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. + public GenericResource(string id = default(string), string name = default(string), string type = default(string), string location = default(string), ExtendedLocation extendedLocation = default(ExtendedLocation), IDictionary tags = default(IDictionary), Plan plan = default(Plan), object properties = default(object), string kind = default(string), string managedBy = default(string), Sku sku = default(Sku), Identity identity = default(Identity)) + : base(id, name, type, location, extendedLocation, tags) + { + Plan = plan; + Properties = properties; + Kind = kind; + ManagedBy = managedBy; + Sku = sku; + Identity = identity; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the plan of the resource. + /// + [JsonProperty(PropertyName = "plan")] + public Plan Plan { get; set; } + + /// + /// Gets or sets the resource properties. + /// + [JsonProperty(PropertyName = "properties")] + public object Properties { get; set; } + + /// + /// Gets or sets the kind of the resource. + /// + [JsonProperty(PropertyName = "kind")] + public string Kind { get; set; } + + /// + /// Gets or sets ID of the resource that manages this resource. + /// + [JsonProperty(PropertyName = "managedBy")] + public string ManagedBy { get; set; } + + /// + /// Gets or sets the SKU of the resource. + /// + [JsonProperty(PropertyName = "sku")] + public Sku Sku { get; set; } + + /// + /// Gets or sets the identity of the resource. + /// + [JsonProperty(PropertyName = "identity")] + public Identity Identity { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Kind != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(Kind, "^[-\\w\\._,\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "Kind", "^[-\\w\\._,\\(\\)]+$"); + } + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/GenericResourceExpanded.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/GenericResourceExpanded.cs new file mode 100644 index 000000000000..3300fecd2edd --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/GenericResourceExpanded.cs @@ -0,0 +1,100 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Resource information. + /// + public partial class GenericResourceExpanded : GenericResource + { + /// + /// Initializes a new instance of the GenericResourceExpanded class. + /// + public GenericResourceExpanded() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the GenericResourceExpanded class. + /// + /// Resource ID + /// Resource name + /// Resource type + /// Resource location + /// Resource extended 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. + public GenericResourceExpanded(string id = default(string), string name = default(string), string type = default(string), string location = default(string), ExtendedLocation extendedLocation = default(ExtendedLocation), IDictionary tags = default(IDictionary), Plan plan = default(Plan), object properties = default(object), string kind = default(string), string managedBy = default(string), Sku sku = default(Sku), Identity identity = default(Identity), System.DateTime? createdTime = default(System.DateTime?), System.DateTime? changedTime = default(System.DateTime?), string provisioningState = default(string)) + : base(id, name, type, location, extendedLocation, tags, plan, properties, kind, managedBy, sku, identity) + { + CreatedTime = createdTime; + ChangedTime = changedTime; + ProvisioningState = provisioningState; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the created time of the resource. This is only present if + /// requested via the $expand query parameter. + /// + [JsonProperty(PropertyName = "createdTime")] + public System.DateTime? CreatedTime { get; private set; } + + /// + /// Gets the changed time of the resource. This is only present if + /// requested via the $expand query parameter. + /// + [JsonProperty(PropertyName = "changedTime")] + public System.DateTime? ChangedTime { get; private set; } + + /// + /// Gets the provisioning state of the resource. This is only present + /// if requested via the $expand query parameter. + /// + [JsonProperty(PropertyName = "provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/GenericResourceFilter.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/GenericResourceFilter.cs new file mode 100644 index 000000000000..93dbd2d06e57 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/GenericResourceFilter.cs @@ -0,0 +1,67 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Resource filter. + /// + public partial class GenericResourceFilter + { + /// + /// Initializes a new instance of the GenericResourceFilter class. + /// + public GenericResourceFilter() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the GenericResourceFilter class. + /// + /// The resource type. + /// The tag name. + /// The tag value. + public GenericResourceFilter(string resourceType = default(string), string tagname = default(string), string tagvalue = default(string)) + { + ResourceType = resourceType; + Tagname = tagname; + Tagvalue = tagvalue; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the resource type. + /// + [JsonProperty(PropertyName = "resourceType")] + public string ResourceType { get; set; } + + /// + /// Gets or sets the tag name. + /// + [JsonProperty(PropertyName = "tagname")] + public string Tagname { get; set; } + + /// + /// Gets or sets the tag value. + /// + [JsonProperty(PropertyName = "tagvalue")] + public string Tagvalue { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/HttpMessage.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/HttpMessage.cs new file mode 100644 index 000000000000..c9622e0b67ba --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/HttpMessage.cs @@ -0,0 +1,51 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// HTTP message. + /// + public partial class HttpMessage + { + /// + /// Initializes a new instance of the HttpMessage class. + /// + public HttpMessage() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the HttpMessage class. + /// + /// HTTP message content. + public HttpMessage(object content = default(object)) + { + Content = content; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets HTTP message content. + /// + [JsonProperty(PropertyName = "content")] + public object Content { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Identity.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Identity.cs new file mode 100644 index 000000000000..dd150852c121 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Identity.cs @@ -0,0 +1,88 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Identity for the resource. + /// + public partial class Identity + { + /// + /// Initializes a new instance of the Identity class. + /// + public Identity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Identity class. + /// + /// The principal ID of resource + /// identity. + /// The tenant ID of resource. + /// The identity type. Possible values include: + /// 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', + /// 'None' + /// The list of user identities + /// associated with the resource. The user identity dictionary key + /// references will be ARM resource ids in the form: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + public Identity(string principalId = default(string), string tenantId = default(string), ResourceIdentityType? type = default(ResourceIdentityType?), IDictionary userAssignedIdentities = default(IDictionary)) + { + PrincipalId = principalId; + TenantId = tenantId; + Type = type; + UserAssignedIdentities = userAssignedIdentities; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the principal ID of resource identity. + /// + [JsonProperty(PropertyName = "principalId")] + public string PrincipalId { get; private set; } + + /// + /// Gets the tenant ID of resource. + /// + [JsonProperty(PropertyName = "tenantId")] + public string TenantId { get; private set; } + + /// + /// Gets or sets the identity type. Possible values include: + /// 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', + /// 'None' + /// + [JsonProperty(PropertyName = "type")] + public ResourceIdentityType? Type { get; set; } + + /// + /// Gets or sets the list of user identities associated with the + /// resource. The user identity dictionary key references will be ARM + /// resource ids in the form: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + /// + [JsonProperty(PropertyName = "userAssignedIdentities")] + public IDictionary UserAssignedIdentities { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/IdentityUserAssignedIdentitiesValue.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/IdentityUserAssignedIdentitiesValue.cs new file mode 100644 index 000000000000..94f992f7392b --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/IdentityUserAssignedIdentitiesValue.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + public partial class IdentityUserAssignedIdentitiesValue + { + /// + /// Initializes a new instance of the + /// IdentityUserAssignedIdentitiesValue class. + /// + public IdentityUserAssignedIdentitiesValue() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// IdentityUserAssignedIdentitiesValue class. + /// + /// The principal id of user assigned + /// identity. + /// The client id of user assigned + /// identity. + public IdentityUserAssignedIdentitiesValue(string principalId = default(string), string clientId = default(string)) + { + PrincipalId = principalId; + ClientId = clientId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the principal id of user assigned identity. + /// + [JsonProperty(PropertyName = "principalId")] + public string PrincipalId { get; private set; } + + /// + /// Gets the client id of user assigned identity. + /// + [JsonProperty(PropertyName = "clientId")] + public string ClientId { get; private set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/LinkedTemplateArtifact.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/LinkedTemplateArtifact.cs new file mode 100644 index 000000000000..6ebb80d7812e --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/LinkedTemplateArtifact.cs @@ -0,0 +1,79 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Represents a Template Spec artifact containing an embedded Azure + /// Resource Manager template for use as a linked template. + /// + public partial class LinkedTemplateArtifact + { + /// + /// Initializes a new instance of the LinkedTemplateArtifact class. + /// + public LinkedTemplateArtifact() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the LinkedTemplateArtifact class. + /// + /// A filesystem safe relative path of the + /// artifact. + /// The Azure Resource Manager template. + public LinkedTemplateArtifact(string path, object template) + { + Path = path; + Template = template; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets a filesystem safe relative path of the artifact. + /// + [JsonProperty(PropertyName = "path")] + public string Path { get; set; } + + /// + /// Gets or sets the Azure Resource Manager template. + /// + [JsonProperty(PropertyName = "template")] + public object Template { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Path == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Path"); + } + if (Template == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Template"); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Location.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Location.cs new file mode 100644 index 000000000000..598099f07a50 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Location.cs @@ -0,0 +1,107 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Location information. + /// + public partial class Location + { + /// + /// Initializes a new instance of the Location class. + /// + public Location() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Location class. + /// + /// The fully qualified ID of the location. For + /// example, + /// /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus. + /// The subscription ID. + /// The location name. + /// The location type. Possible values include: + /// 'Region', 'EdgeZone' + /// The display name of the location. + /// The display name of the location + /// and its region. + /// Metadata of the location, such as lat/long, + /// paired region, and others. + public Location(string id = default(string), string subscriptionId = default(string), string name = default(string), LocationType? type = default(LocationType?), string displayName = default(string), string regionalDisplayName = default(string), LocationMetadata metadata = default(LocationMetadata)) + { + Id = id; + SubscriptionId = subscriptionId; + Name = name; + Type = type; + DisplayName = displayName; + RegionalDisplayName = regionalDisplayName; + Metadata = metadata; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the fully qualified ID of the location. For example, + /// /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the subscription ID. + /// + [JsonProperty(PropertyName = "subscriptionId")] + public string SubscriptionId { get; private set; } + + /// + /// Gets the location name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the location type. Possible values include: 'Region', + /// 'EdgeZone' + /// + [JsonProperty(PropertyName = "type")] + public LocationType? Type { get; private set; } + + /// + /// Gets the display name of the location. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; private set; } + + /// + /// Gets the display name of the location and its region. + /// + [JsonProperty(PropertyName = "regionalDisplayName")] + public string RegionalDisplayName { get; private set; } + + /// + /// Gets or sets metadata of the location, such as lat/long, paired + /// region, and others. + /// + [JsonProperty(PropertyName = "metadata")] + public LocationMetadata Metadata { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/LocationMetadata.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/LocationMetadata.cs new file mode 100644 index 000000000000..7904ca9a0e3e --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/LocationMetadata.cs @@ -0,0 +1,117 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Location metadata information + /// + public partial class LocationMetadata + { + /// + /// Initializes a new instance of the LocationMetadata class. + /// + public LocationMetadata() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the LocationMetadata class. + /// + /// The type of the region. Possible values + /// include: 'Physical', 'Logical' + /// The category of the region. Possible + /// values include: 'Recommended', 'Extended', 'Other' + /// The geography group of the + /// location. + /// The longitude of the location. + /// The latitude of the location. + /// The physical location of the Azure + /// location. + /// The regions paired to this + /// region. + /// The home location of an edge + /// zone. + public LocationMetadata(string regionType = default(string), string regionCategory = default(string), string geographyGroup = default(string), string longitude = default(string), string latitude = default(string), string physicalLocation = default(string), IList pairedRegion = default(IList), string homeLocation = default(string)) + { + RegionType = regionType; + RegionCategory = regionCategory; + GeographyGroup = geographyGroup; + Longitude = longitude; + Latitude = latitude; + PhysicalLocation = physicalLocation; + PairedRegion = pairedRegion; + HomeLocation = homeLocation; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the type of the region. Possible values include: 'Physical', + /// 'Logical' + /// + [JsonProperty(PropertyName = "regionType")] + public string RegionType { get; private set; } + + /// + /// Gets the category of the region. Possible values include: + /// 'Recommended', 'Extended', 'Other' + /// + [JsonProperty(PropertyName = "regionCategory")] + public string RegionCategory { get; private set; } + + /// + /// Gets the geography group of the location. + /// + [JsonProperty(PropertyName = "geographyGroup")] + public string GeographyGroup { get; private set; } + + /// + /// Gets the longitude of the location. + /// + [JsonProperty(PropertyName = "longitude")] + public string Longitude { get; private set; } + + /// + /// Gets the latitude of the location. + /// + [JsonProperty(PropertyName = "latitude")] + public string Latitude { get; private set; } + + /// + /// Gets the physical location of the Azure location. + /// + [JsonProperty(PropertyName = "physicalLocation")] + public string PhysicalLocation { get; private set; } + + /// + /// Gets or sets the regions paired to this region. + /// + [JsonProperty(PropertyName = "pairedRegion")] + public IList PairedRegion { get; set; } + + /// + /// Gets the home location of an edge zone. + /// + [JsonProperty(PropertyName = "homeLocation")] + public string HomeLocation { get; private set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/LocationType.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/LocationType.cs new file mode 100644 index 000000000000..dc03102a3ca3 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/LocationType.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for LocationType. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum LocationType + { + [EnumMember(Value = "Region")] + Region, + [EnumMember(Value = "EdgeZone")] + EdgeZone + } + internal static class LocationTypeEnumExtension + { + internal static string ToSerializedValue(this LocationType? value) + { + return value == null ? null : ((LocationType)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this LocationType value) + { + switch( value ) + { + case LocationType.Region: + return "Region"; + case LocationType.EdgeZone: + return "EdgeZone"; + } + return null; + } + + internal static LocationType? ParseLocationType(this string value) + { + switch( value ) + { + case "Region": + return LocationType.Region; + case "EdgeZone": + return LocationType.EdgeZone; + } + return null; + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/LockLevel.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/LockLevel.cs new file mode 100644 index 000000000000..f57b4854103d --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/LockLevel.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + + /// + /// Defines values for LockLevel. + /// + public static class LockLevel + { + public const string NotSpecified = "NotSpecified"; + public const string CanNotDelete = "CanNotDelete"; + public const string ReadOnly = "ReadOnly"; + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ManagedByTenant.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ManagedByTenant.cs new file mode 100644 index 000000000000..8a1f42a3828f --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ManagedByTenant.cs @@ -0,0 +1,52 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Information about a tenant managing the subscription. + /// + public partial class ManagedByTenant + { + /// + /// Initializes a new instance of the ManagedByTenant class. + /// + public ManagedByTenant() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ManagedByTenant class. + /// + /// The tenant ID of the managing tenant. This + /// is a GUID. + public ManagedByTenant(string tenantId = default(string)) + { + TenantId = tenantId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the tenant ID of the managing tenant. This is a GUID. + /// + [JsonProperty(PropertyName = "tenantId")] + public string TenantId { get; private set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ManagedServiceIdentity.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ManagedServiceIdentity.cs new file mode 100644 index 000000000000..57cad4ab6991 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ManagedServiceIdentity.cs @@ -0,0 +1,75 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Managed identity generic object. + /// + public partial class ManagedServiceIdentity + { + /// + /// Initializes a new instance of the ManagedServiceIdentity class. + /// + public ManagedServiceIdentity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ManagedServiceIdentity class. + /// + /// Type of the managed identity. Possible values + /// include: 'UserAssigned' + /// ID of the Azure Active Directory. + /// The list of user-assigned + /// managed identities associated with the resource. Key is the Azure + /// resource Id of the managed identity. + public ManagedServiceIdentity(string type = default(string), string tenantId = default(string), IDictionary userAssignedIdentities = default(IDictionary)) + { + Type = type; + TenantId = tenantId; + UserAssignedIdentities = userAssignedIdentities; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets type of the managed identity. Possible values include: + /// 'UserAssigned' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets ID of the Azure Active Directory. + /// + [JsonProperty(PropertyName = "tenantId")] + public string TenantId { get; private set; } + + /// + /// Gets or sets the list of user-assigned managed identities + /// associated with the resource. Key is the Azure resource Id of the + /// managed identity. + /// + [JsonProperty(PropertyName = "userAssignedIdentities")] + public IDictionary UserAssignedIdentities { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ManagedServiceIdentityType.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ManagedServiceIdentityType.cs new file mode 100644 index 000000000000..5641636c2ecd --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ManagedServiceIdentityType.cs @@ -0,0 +1,21 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + + /// + /// Defines values for ManagedServiceIdentityType. + /// + public static class ManagedServiceIdentityType + { + public const string UserAssigned = "UserAssigned"; + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ManagementLockObject.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ManagementLockObject.cs new file mode 100644 index 000000000000..43cf308706ad --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ManagementLockObject.cs @@ -0,0 +1,122 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The lock information. + /// + [Rest.Serialization.JsonTransformation] + public partial class ManagementLockObject : IResource + { + /// + /// Initializes a new instance of the ManagementLockObject class. + /// + public ManagementLockObject() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ManagementLockObject class. + /// + /// The level of the lock. Possible values are: + /// NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized + /// users are able to read and modify the resources, but not delete. + /// ReadOnly means authorized users can only read from a resource, but + /// they can't modify or delete it. Possible values include: + /// 'NotSpecified', 'CanNotDelete', 'ReadOnly' + /// Notes about the lock. Maximum of 512 + /// characters. + /// The owners of the lock. + /// The resource ID of the lock. + /// The resource type of the lock - + /// Microsoft.Authorization/locks. + /// The name of the lock. + public ManagementLockObject(string level, string notes = default(string), IList owners = default(IList), string id = default(string), string type = default(string), string name = default(string)) + { + Level = level; + Notes = notes; + Owners = owners; + Id = id; + Type = type; + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the level of the lock. Possible values are: + /// NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized + /// users are able to read and modify the resources, but not delete. + /// ReadOnly means authorized users can only read from a resource, but + /// they can't modify or delete it. Possible values include: + /// 'NotSpecified', 'CanNotDelete', 'ReadOnly' + /// + [JsonProperty(PropertyName = "properties.level")] + public string Level { get; set; } + + /// + /// Gets or sets notes about the lock. Maximum of 512 characters. + /// + [JsonProperty(PropertyName = "properties.notes")] + public string Notes { get; set; } + + /// + /// Gets or sets the owners of the lock. + /// + [JsonProperty(PropertyName = "properties.owners")] + public IList Owners { get; set; } + + /// + /// Gets the resource ID of the lock. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the resource type of the lock - Microsoft.Authorization/locks. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets the name of the lock. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Level == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Level"); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ManagementLockOwner.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ManagementLockOwner.cs new file mode 100644 index 000000000000..3223e31ecba7 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ManagementLockOwner.cs @@ -0,0 +1,52 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Lock owner properties. + /// + public partial class ManagementLockOwner + { + /// + /// Initializes a new instance of the ManagementLockOwner class. + /// + public ManagementLockOwner() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ManagementLockOwner class. + /// + /// The application ID of the lock + /// owner. + public ManagementLockOwner(string applicationId = default(string)) + { + ApplicationId = applicationId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the application ID of the lock owner. + /// + [JsonProperty(PropertyName = "applicationId")] + public string ApplicationId { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/NonComplianceMessage.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/NonComplianceMessage.cs new file mode 100644 index 000000000000..d7c74d09cff1 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/NonComplianceMessage.cs @@ -0,0 +1,88 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// A message that describes why a resource is non-compliant with the + /// policy. This is shown in 'deny' error messages and on resource's + /// non-compliant compliance results. + /// + public partial class NonComplianceMessage + { + /// + /// Initializes a new instance of the NonComplianceMessage class. + /// + public NonComplianceMessage() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the NonComplianceMessage class. + /// + /// A message that describes why a resource is + /// non-compliant with the policy. This is shown in 'deny' error + /// messages and on resource's non-compliant compliance + /// results. + /// The policy definition + /// reference ID within a policy set definition the message is intended + /// for. This is only applicable if the policy assignment assigns a + /// policy set definition. If this is not provided the message applies + /// to all policies assigned by this policy assignment. + public NonComplianceMessage(string message, string policyDefinitionReferenceId = default(string)) + { + Message = message; + PolicyDefinitionReferenceId = policyDefinitionReferenceId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets a message that describes why a resource is + /// non-compliant with the policy. This is shown in 'deny' error + /// messages and on resource's non-compliant compliance results. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// Gets or sets the policy definition reference ID within a policy set + /// definition the message is intended for. This is only applicable if + /// the policy assignment assigns a policy set definition. If this is + /// not provided the message applies to all policies assigned by this + /// policy assignment. + /// + [JsonProperty(PropertyName = "policyDefinitionReferenceId")] + public string PolicyDefinitionReferenceId { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Message == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Message"); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/OnErrorDeployment.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/OnErrorDeployment.cs new file mode 100644 index 000000000000..bb89dd8e83bc --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/OnErrorDeployment.cs @@ -0,0 +1,64 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Deployment on error behavior. + /// + public partial class OnErrorDeployment + { + /// + /// Initializes a new instance of the OnErrorDeployment class. + /// + public OnErrorDeployment() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OnErrorDeployment class. + /// + /// The deployment on error behavior type. Possible + /// values are LastSuccessful and SpecificDeployment. Possible values + /// include: 'LastSuccessful', 'SpecificDeployment' + /// The deployment to be used on error + /// case. + public OnErrorDeployment(OnErrorDeploymentType? type = default(OnErrorDeploymentType?), string deploymentName = default(string)) + { + Type = type; + DeploymentName = deploymentName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the deployment on error behavior type. Possible values + /// are LastSuccessful and SpecificDeployment. Possible values include: + /// 'LastSuccessful', 'SpecificDeployment' + /// + [JsonProperty(PropertyName = "type")] + public OnErrorDeploymentType? Type { get; set; } + + /// + /// Gets or sets the deployment to be used on error case. + /// + [JsonProperty(PropertyName = "deploymentName")] + public string DeploymentName { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/OnErrorDeploymentExtended.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/OnErrorDeploymentExtended.cs new file mode 100644 index 000000000000..74c041f61fb7 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/OnErrorDeploymentExtended.cs @@ -0,0 +1,73 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Deployment on error behavior with additional details. + /// + public partial class OnErrorDeploymentExtended + { + /// + /// Initializes a new instance of the OnErrorDeploymentExtended class. + /// + public OnErrorDeploymentExtended() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OnErrorDeploymentExtended class. + /// + /// The state of the provisioning for + /// the on error deployment. + /// The deployment on error behavior type. Possible + /// values are LastSuccessful and SpecificDeployment. Possible values + /// include: 'LastSuccessful', 'SpecificDeployment' + /// The deployment to be used on error + /// case. + public OnErrorDeploymentExtended(string provisioningState = default(string), OnErrorDeploymentType? type = default(OnErrorDeploymentType?), string deploymentName = default(string)) + { + ProvisioningState = provisioningState; + Type = type; + DeploymentName = deploymentName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the state of the provisioning for the on error deployment. + /// + [JsonProperty(PropertyName = "provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets or sets the deployment on error behavior type. Possible values + /// are LastSuccessful and SpecificDeployment. Possible values include: + /// 'LastSuccessful', 'SpecificDeployment' + /// + [JsonProperty(PropertyName = "type")] + public OnErrorDeploymentType? Type { get; set; } + + /// + /// Gets or sets the deployment to be used on error case. + /// + [JsonProperty(PropertyName = "deploymentName")] + public string DeploymentName { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/OnErrorDeploymentType.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/OnErrorDeploymentType.cs new file mode 100644 index 000000000000..1871c20061c5 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/OnErrorDeploymentType.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for OnErrorDeploymentType. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum OnErrorDeploymentType + { + [EnumMember(Value = "LastSuccessful")] + LastSuccessful, + [EnumMember(Value = "SpecificDeployment")] + SpecificDeployment + } + internal static class OnErrorDeploymentTypeEnumExtension + { + internal static string ToSerializedValue(this OnErrorDeploymentType? value) + { + return value == null ? null : ((OnErrorDeploymentType)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this OnErrorDeploymentType value) + { + switch( value ) + { + case OnErrorDeploymentType.LastSuccessful: + return "LastSuccessful"; + case OnErrorDeploymentType.SpecificDeployment: + return "SpecificDeployment"; + } + return null; + } + + internal static OnErrorDeploymentType? ParseOnErrorDeploymentType(this string value) + { + switch( value ) + { + case "LastSuccessful": + return OnErrorDeploymentType.LastSuccessful; + case "SpecificDeployment": + return OnErrorDeploymentType.SpecificDeployment; + } + return null; + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Operation.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Operation.cs new file mode 100644 index 000000000000..fdac5ca3c8c9 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Operation.cs @@ -0,0 +1,61 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Microsoft.Resources operation + /// + public partial class Operation + { + /// + /// Initializes a new instance of the Operation class. + /// + public Operation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Operation class. + /// + /// Operation name: + /// {provider}/{resource}/{operation} + /// The object that represents the + /// operation. + public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay)) + { + Name = name; + Display = display; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets operation name: {provider}/{resource}/{operation} + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the object that represents the operation. + /// + [JsonProperty(PropertyName = "display")] + public OperationDisplay Display { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/OperationDisplay.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/OperationDisplay.cs new file mode 100644 index 000000000000..df5d9350a8b2 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/OperationDisplay.cs @@ -0,0 +1,79 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The object that represents the operation. + /// + public partial class OperationDisplay + { + /// + /// Initializes a new instance of the OperationDisplay class. + /// + public OperationDisplay() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OperationDisplay class. + /// + /// Service provider: + /// Microsoft.Resources + /// Resource on which the operation is + /// performed: Profile, endpoint, etc. + /// Operation type: Read, write, delete, + /// etc. + /// Description of the operation. + public OperationDisplay(string provider = default(string), string resource = default(string), string operation = default(string), string description = default(string)) + { + Provider = provider; + Resource = resource; + Operation = operation; + Description = description; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets service provider: Microsoft.Resources + /// + [JsonProperty(PropertyName = "provider")] + public string Provider { get; set; } + + /// + /// Gets or sets resource on which the operation is performed: Profile, + /// endpoint, etc. + /// + [JsonProperty(PropertyName = "resource")] + public string Resource { get; set; } + + /// + /// Gets or sets operation type: Read, write, delete, etc. + /// + [JsonProperty(PropertyName = "operation")] + public string Operation { get; set; } + + /// + /// Gets or sets description of the operation. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Page.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Page.cs new file mode 100644 index 000000000000..c6f2533504c2 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Page.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + + /// + /// Defines a page in Azure responses. + /// + /// Type of the page content items + [JsonObject] + public class Page : IPage + { + /// + /// Gets the link to the next page. + /// + [JsonProperty("nextLink")] + public string NextPageLink { get; private set; } + + [JsonProperty("value")] + private IList Items{ get; set; } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + public IEnumerator GetEnumerator() + { + return Items == null ? System.Linq.Enumerable.Empty().GetEnumerator() : Items.GetEnumerator(); + } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Page1.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Page1.cs new file mode 100644 index 000000000000..cd02c5c3d2c9 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Page1.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + + /// + /// Defines a page in Azure responses. + /// + /// Type of the page content items + [JsonObject] + public class Page1 : IPage + { + /// + /// Gets the link to the next page. + /// + [JsonProperty("")] + public string NextPageLink { get; private set; } + + [JsonProperty("value")] + private IList Items{ get; set; } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + public IEnumerator GetEnumerator() + { + return Items == null ? System.Linq.Enumerable.Empty().GetEnumerator() : Items.GetEnumerator(); + } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PairedRegion.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PairedRegion.cs new file mode 100644 index 000000000000..b5bf1a91097a --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PairedRegion.cs @@ -0,0 +1,70 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Information regarding paired region. + /// + public partial class PairedRegion + { + /// + /// Initializes a new instance of the PairedRegion class. + /// + public PairedRegion() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PairedRegion class. + /// + /// The name of the paired region. + /// The fully qualified ID of the location. For + /// example, + /// /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus. + /// The subscription ID. + public PairedRegion(string name = default(string), string id = default(string), string subscriptionId = default(string)) + { + Name = name; + Id = id; + SubscriptionId = subscriptionId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the name of the paired region. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the fully qualified ID of the location. For example, + /// /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the subscription ID. + /// + [JsonProperty(PropertyName = "subscriptionId")] + public string SubscriptionId { get; private set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ParameterDefinitionsValue.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ParameterDefinitionsValue.cs new file mode 100644 index 000000000000..4d27d1cf7d07 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ParameterDefinitionsValue.cs @@ -0,0 +1,84 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The definition of a parameter that can be provided to the policy. + /// + public partial class ParameterDefinitionsValue + { + /// + /// Initializes a new instance of the ParameterDefinitionsValue class. + /// + public ParameterDefinitionsValue() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ParameterDefinitionsValue class. + /// + /// The data type of the parameter. Possible values + /// include: 'String', 'Array', 'Object', 'Boolean', 'Integer', + /// 'Float', 'DateTime' + /// The allowed values for the + /// parameter. + /// The default value for the parameter if + /// no value is provided. + /// General metadata for the parameter. + public ParameterDefinitionsValue(string type = default(string), IList allowedValues = default(IList), object defaultValue = default(object), ParameterDefinitionsValueMetadata metadata = default(ParameterDefinitionsValueMetadata)) + { + Type = type; + AllowedValues = allowedValues; + DefaultValue = defaultValue; + Metadata = metadata; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the data type of the parameter. Possible values + /// include: 'String', 'Array', 'Object', 'Boolean', 'Integer', + /// 'Float', 'DateTime' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets the allowed values for the parameter. + /// + [JsonProperty(PropertyName = "allowedValues")] + public IList AllowedValues { get; set; } + + /// + /// Gets or sets the default value for the parameter if no value is + /// provided. + /// + [JsonProperty(PropertyName = "defaultValue")] + public object DefaultValue { get; set; } + + /// + /// Gets or sets general metadata for the parameter. + /// + [JsonProperty(PropertyName = "metadata")] + public ParameterDefinitionsValueMetadata Metadata { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ParameterDefinitionsValueMetadata.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ParameterDefinitionsValueMetadata.cs new file mode 100644 index 000000000000..3ae26a4239ec --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ParameterDefinitionsValueMetadata.cs @@ -0,0 +1,101 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// General metadata for the parameter. + /// + public partial class ParameterDefinitionsValueMetadata + { + /// + /// Initializes a new instance of the ParameterDefinitionsValueMetadata + /// class. + /// + public ParameterDefinitionsValueMetadata() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ParameterDefinitionsValueMetadata + /// class. + /// + /// Unmatched properties from the + /// message are deserialized this collection + /// The display name for the + /// parameter. + /// The description of the parameter. + /// Used when assigning the policy definition + /// through the portal. Provides a context aware list of values for the + /// user to choose from. + /// Set to true to have Azure portal + /// create role assignments on the resource ID or resource scope value + /// of this parameter during policy assignment. This property is useful + /// in case you wish to assign permissions outside the assignment + /// scope. + public ParameterDefinitionsValueMetadata(IDictionary additionalProperties = default(IDictionary), string displayName = default(string), string description = default(string), string strongType = default(string), bool? assignPermissions = default(bool?)) + { + AdditionalProperties = additionalProperties; + DisplayName = displayName; + Description = description; + StrongType = strongType; + AssignPermissions = assignPermissions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets unmatched properties from the message are deserialized + /// this collection + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// Gets or sets the display name for the parameter. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets the description of the parameter. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Gets or sets used when assigning the policy definition through the + /// portal. Provides a context aware list of values for the user to + /// choose from. + /// + [JsonProperty(PropertyName = "strongType")] + public string StrongType { get; set; } + + /// + /// Gets or sets set to true to have Azure portal create role + /// assignments on the resource ID or resource scope value of this + /// parameter during policy assignment. This property is useful in case + /// you wish to assign permissions outside the assignment scope. + /// + [JsonProperty(PropertyName = "assignPermissions")] + public bool? AssignPermissions { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ParameterType.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ParameterType.cs new file mode 100644 index 000000000000..f0b5f6f8e58c --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ParameterType.cs @@ -0,0 +1,27 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + + /// + /// Defines values for ParameterType. + /// + public static class ParameterType + { + public const string String = "String"; + public const string Array = "Array"; + public const string Object = "Object"; + public const string Boolean = "Boolean"; + public const string Integer = "Integer"; + public const string Float = "Float"; + public const string DateTime = "DateTime"; + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ParameterValuesValue.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ParameterValuesValue.cs new file mode 100644 index 000000000000..7997512fea45 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ParameterValuesValue.cs @@ -0,0 +1,51 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The value of a parameter. + /// + public partial class ParameterValuesValue + { + /// + /// Initializes a new instance of the ParameterValuesValue class. + /// + public ParameterValuesValue() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ParameterValuesValue class. + /// + /// The value of the parameter. + public ParameterValuesValue(object value = default(object)) + { + Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the value of the parameter. + /// + [JsonProperty(PropertyName = "value")] + public object Value { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ParametersLink.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ParametersLink.cs new file mode 100644 index 000000000000..349825db101d --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ParametersLink.cs @@ -0,0 +1,75 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Entity representing the reference to the deployment parameters. + /// + public partial class ParametersLink + { + /// + /// Initializes a new instance of the ParametersLink class. + /// + public ParametersLink() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ParametersLink class. + /// + /// The URI of the parameters file. + /// If included, must match the + /// ContentVersion in the template. + public ParametersLink(string uri, string contentVersion = default(string)) + { + Uri = uri; + ContentVersion = contentVersion; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the URI of the parameters file. + /// + [JsonProperty(PropertyName = "uri")] + public string Uri { get; set; } + + /// + /// Gets or sets if included, must match the ContentVersion in the + /// template. + /// + [JsonProperty(PropertyName = "contentVersion")] + public string ContentVersion { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Uri == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Uri"); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Permission.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Permission.cs new file mode 100644 index 000000000000..0baf8262ec85 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Permission.cs @@ -0,0 +1,77 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Role definition permissions. + /// + public partial class Permission + { + /// + /// Initializes a new instance of the Permission class. + /// + public Permission() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Permission class. + /// + /// Allowed actions. + /// Denied actions. + /// Allowed Data actions. + /// Denied Data actions. + public Permission(IList actions = default(IList), IList notActions = default(IList), IList dataActions = default(IList), IList notDataActions = default(IList)) + { + Actions = actions; + NotActions = notActions; + DataActions = dataActions; + NotDataActions = notDataActions; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets allowed actions. + /// + [JsonProperty(PropertyName = "actions")] + public IList Actions { get; set; } + + /// + /// Gets or sets denied actions. + /// + [JsonProperty(PropertyName = "notActions")] + public IList NotActions { get; set; } + + /// + /// Gets or sets allowed Data actions. + /// + [JsonProperty(PropertyName = "dataActions")] + public IList DataActions { get; set; } + + /// + /// Gets or sets denied Data actions. + /// + [JsonProperty(PropertyName = "notDataActions")] + public IList NotDataActions { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Plan.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Plan.cs new file mode 100644 index 000000000000..af9d7de799be --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Plan.cs @@ -0,0 +1,83 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Plan for the resource. + /// + public partial class Plan + { + /// + /// Initializes a new instance of the Plan class. + /// + public Plan() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Plan class. + /// + /// The plan ID. + /// The publisher ID. + /// The offer ID. + /// The promotion code. + /// The plan's version. + public Plan(string name = default(string), string publisher = default(string), string product = default(string), string promotionCode = default(string), string version = default(string)) + { + Name = name; + Publisher = publisher; + Product = product; + PromotionCode = promotionCode; + Version = version; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the plan ID. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the publisher ID. + /// + [JsonProperty(PropertyName = "publisher")] + public string Publisher { get; set; } + + /// + /// Gets or sets the offer ID. + /// + [JsonProperty(PropertyName = "product")] + public string Product { get; set; } + + /// + /// Gets or sets the promotion code. + /// + [JsonProperty(PropertyName = "promotionCode")] + public string PromotionCode { get; set; } + + /// + /// Gets or sets the plan's version. + /// + [JsonProperty(PropertyName = "version")] + public string Version { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PolicyAssignment.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PolicyAssignment.cs new file mode 100644 index 000000000000..32d568e33907 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PolicyAssignment.cs @@ -0,0 +1,181 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The policy assignment. + /// + [Rest.Serialization.JsonTransformation] + public partial class PolicyAssignment : IResource + { + /// + /// Initializes a new instance of the PolicyAssignment class. + /// + public PolicyAssignment() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PolicyAssignment class. + /// + /// The display name of the policy + /// assignment. + /// The ID of the policy definition or + /// policy set definition being assigned. + /// The scope for the policy assignment. + /// The policy's excluded scopes. + /// The parameter values for the assigned + /// policy rule. The keys are the parameter names. + /// This message will be part of response in + /// case of policy violation. + /// The policy assignment metadata. Metadata is + /// an open ended object and is typically a collection of key value + /// pairs. + /// The policy assignment enforcement + /// mode. Possible values are Default and DoNotEnforce. Possible values + /// include: 'Default', 'DoNotEnforce' + /// The messages that describe why + /// a resource is non-compliant with the policy. + /// The ID of the policy assignment. + /// The type of the policy assignment. + /// The name of the policy assignment. + /// The location of the policy assignment. Only + /// required when utilizing managed identity. + /// The managed identity associated with the + /// policy assignment. + public PolicyAssignment(string displayName = default(string), string policyDefinitionId = default(string), string scope = default(string), IList notScopes = default(IList), IDictionary parameters = default(IDictionary), string description = default(string), object metadata = default(object), string enforcementMode = default(string), IList nonComplianceMessages = default(IList), string id = default(string), string type = default(string), string name = default(string), string location = default(string), Identity identity = default(Identity)) + { + DisplayName = displayName; + PolicyDefinitionId = policyDefinitionId; + Scope = scope; + NotScopes = notScopes; + Parameters = parameters; + Description = description; + Metadata = metadata; + EnforcementMode = enforcementMode; + NonComplianceMessages = nonComplianceMessages; + Id = id; + Type = type; + Name = name; + Location = location; + Identity = identity; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the display name of the policy assignment. + /// + [JsonProperty(PropertyName = "properties.displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets the ID of the policy definition or policy set + /// definition being assigned. + /// + [JsonProperty(PropertyName = "properties.policyDefinitionId")] + public string PolicyDefinitionId { get; set; } + + /// + /// Gets the scope for the policy assignment. + /// + [JsonProperty(PropertyName = "properties.scope")] + public string Scope { get; private set; } + + /// + /// Gets or sets the policy's excluded scopes. + /// + [JsonProperty(PropertyName = "properties.notScopes")] + public IList NotScopes { get; set; } + + /// + /// Gets or sets the parameter values for the assigned policy rule. The + /// keys are the parameter names. + /// + [JsonProperty(PropertyName = "properties.parameters")] + public IDictionary Parameters { get; set; } + + /// + /// Gets or sets this message will be part of response in case of + /// policy violation. + /// + [JsonProperty(PropertyName = "properties.description")] + public string Description { get; set; } + + /// + /// Gets or sets the policy assignment metadata. Metadata is an open + /// ended object and is typically a collection of key value pairs. + /// + [JsonProperty(PropertyName = "properties.metadata")] + public object Metadata { get; set; } + + /// + /// Gets or sets the policy assignment enforcement mode. Possible + /// values are Default and DoNotEnforce. Possible values include: + /// 'Default', 'DoNotEnforce' + /// + [JsonProperty(PropertyName = "properties.enforcementMode")] + public string EnforcementMode { get; set; } + + /// + /// Gets or sets the messages that describe why a resource is + /// non-compliant with the policy. + /// + [JsonProperty(PropertyName = "properties.nonComplianceMessages")] + public IList NonComplianceMessages { get; set; } + + /// + /// Gets the ID of the policy assignment. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the type of the policy assignment. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets the name of the policy assignment. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets or sets the location of the policy assignment. Only required + /// when utilizing managed identity. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets the managed identity associated with the policy + /// assignment. + /// + [JsonProperty(PropertyName = "identity")] + public Identity Identity { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PolicyDefinition.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PolicyDefinition.cs new file mode 100644 index 000000000000..e94bb2a724a7 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PolicyDefinition.cs @@ -0,0 +1,145 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The policy definition. + /// + [Rest.Serialization.JsonTransformation] + public partial class PolicyDefinition : IResource + { + /// + /// Initializes a new instance of the PolicyDefinition class. + /// + public PolicyDefinition() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PolicyDefinition class. + /// + /// The type of policy definition. Possible + /// values are NotSpecified, BuiltIn, Custom, and Static. Possible + /// values include: 'NotSpecified', 'BuiltIn', 'Custom', + /// 'Static' + /// The policy definition mode. Some examples are + /// All, Indexed, Microsoft.KeyVault.Data. + /// The display name of the policy + /// definition. + /// The policy definition + /// description. + /// The policy rule. + /// The policy definition metadata. Metadata is + /// an open ended object and is typically a collection of key value + /// pairs. + /// The parameter definitions for parameters + /// used in the policy rule. The keys are the parameter names. + /// The ID of the policy definition. + /// The name of the policy definition. + /// The type of the resource + /// (Microsoft.Authorization/policyDefinitions). + public PolicyDefinition(string policyType = default(string), string mode = default(string), string displayName = default(string), string description = default(string), object policyRule = default(object), object metadata = default(object), IDictionary parameters = default(IDictionary), string id = default(string), string name = default(string), string type = default(string)) + { + PolicyType = policyType; + Mode = mode; + DisplayName = displayName; + Description = description; + PolicyRule = policyRule; + Metadata = metadata; + Parameters = parameters; + Id = id; + Name = name; + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the type of policy definition. Possible values are + /// NotSpecified, BuiltIn, Custom, and Static. Possible values include: + /// 'NotSpecified', 'BuiltIn', 'Custom', 'Static' + /// + [JsonProperty(PropertyName = "properties.policyType")] + public string PolicyType { get; set; } + + /// + /// Gets or sets the policy definition mode. Some examples are All, + /// Indexed, Microsoft.KeyVault.Data. + /// + [JsonProperty(PropertyName = "properties.mode")] + public string Mode { get; set; } + + /// + /// Gets or sets the display name of the policy definition. + /// + [JsonProperty(PropertyName = "properties.displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets the policy definition description. + /// + [JsonProperty(PropertyName = "properties.description")] + public string Description { get; set; } + + /// + /// Gets or sets the policy rule. + /// + [JsonProperty(PropertyName = "properties.policyRule")] + public object PolicyRule { get; set; } + + /// + /// Gets or sets the policy definition metadata. Metadata is an open + /// ended object and is typically a collection of key value pairs. + /// + [JsonProperty(PropertyName = "properties.metadata")] + public object Metadata { get; set; } + + /// + /// Gets or sets the parameter definitions for parameters used in the + /// policy rule. The keys are the parameter names. + /// + [JsonProperty(PropertyName = "properties.parameters")] + public IDictionary Parameters { get; set; } + + /// + /// Gets the ID of the policy definition. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the name of the policy definition. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the type of the resource + /// (Microsoft.Authorization/policyDefinitions). + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PolicyDefinitionGroup.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PolicyDefinitionGroup.cs new file mode 100644 index 000000000000..06cecef62a53 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PolicyDefinitionGroup.cs @@ -0,0 +1,99 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The policy definition group. + /// + public partial class PolicyDefinitionGroup + { + /// + /// Initializes a new instance of the PolicyDefinitionGroup class. + /// + public PolicyDefinitionGroup() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PolicyDefinitionGroup class. + /// + /// The name of the group. + /// The group's display name. + /// The group's category. + /// The group's description. + /// A resource ID of a resource that + /// contains additional metadata about the group. + public PolicyDefinitionGroup(string name, string displayName = default(string), string category = default(string), string description = default(string), string additionalMetadataId = default(string)) + { + Name = name; + DisplayName = displayName; + Category = category; + Description = description; + AdditionalMetadataId = additionalMetadataId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the group. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the group's display name. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets the group's category. + /// + [JsonProperty(PropertyName = "category")] + public string Category { get; set; } + + /// + /// Gets or sets the group's description. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Gets or sets a resource ID of a resource that contains additional + /// metadata about the group. + /// + [JsonProperty(PropertyName = "additionalMetadataId")] + public string AdditionalMetadataId { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PolicyDefinitionReference.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PolicyDefinitionReference.cs new file mode 100644 index 000000000000..89c7b1af2cb0 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PolicyDefinitionReference.cs @@ -0,0 +1,100 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The policy definition reference. + /// + public partial class PolicyDefinitionReference + { + /// + /// Initializes a new instance of the PolicyDefinitionReference class. + /// + public PolicyDefinitionReference() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PolicyDefinitionReference class. + /// + /// The ID of the policy definition or + /// policy set definition. + /// The parameter values for the referenced + /// policy rule. The keys are the parameter names. + /// A unique id (within the + /// policy set definition) for this policy definition + /// reference. + /// The name of the groups that this policy + /// definition reference belongs to. + public PolicyDefinitionReference(string policyDefinitionId, IDictionary parameters = default(IDictionary), string policyDefinitionReferenceId = default(string), IList groupNames = default(IList)) + { + PolicyDefinitionId = policyDefinitionId; + Parameters = parameters; + PolicyDefinitionReferenceId = policyDefinitionReferenceId; + GroupNames = groupNames; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the ID of the policy definition or policy set + /// definition. + /// + [JsonProperty(PropertyName = "policyDefinitionId")] + public string PolicyDefinitionId { get; set; } + + /// + /// Gets or sets the parameter values for the referenced policy rule. + /// The keys are the parameter names. + /// + [JsonProperty(PropertyName = "parameters")] + public IDictionary Parameters { get; set; } + + /// + /// Gets or sets a unique id (within the policy set definition) for + /// this policy definition reference. + /// + [JsonProperty(PropertyName = "policyDefinitionReferenceId")] + public string PolicyDefinitionReferenceId { get; set; } + + /// + /// Gets or sets the name of the groups that this policy definition + /// reference belongs to. + /// + [JsonProperty(PropertyName = "groupNames")] + public IList GroupNames { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (PolicyDefinitionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PolicyDefinitionId"); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PolicyExemption.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PolicyExemption.cs new file mode 100644 index 000000000000..b73b71abdf01 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PolicyExemption.cs @@ -0,0 +1,175 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The policy exemption. + /// + [Rest.Serialization.JsonTransformation] + public partial class PolicyExemption : IResource + { + /// + /// Initializes a new instance of the PolicyExemption class. + /// + public PolicyExemption() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PolicyExemption class. + /// + /// The ID of the policy assignment + /// that is being exempted. + /// The policy exemption category. + /// Possible values are Waiver and Mitigated. Possible values include: + /// 'Waiver', 'Mitigated' + /// The policy definition + /// reference ID list when the associated policy assignment is an + /// assignment of a policy set definition. + /// The expiration date and time (in UTC ISO + /// 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption. + /// The display name of the policy + /// exemption. + /// The description of the policy + /// exemption. + /// The policy exemption metadata. Metadata is + /// an open ended object and is typically a collection of key value + /// pairs. + /// Azure Resource Manager metadata containing + /// createdBy and modifiedBy information. + /// The ID of the policy exemption. + /// The name of the policy exemption. + /// The type of the resource + /// (Microsoft.Authorization/policyExemptions). + public PolicyExemption(string policyAssignmentId, string exemptionCategory, IList policyDefinitionReferenceIds = default(IList), System.DateTime? expiresOn = default(System.DateTime?), string displayName = default(string), string description = default(string), object metadata = default(object), SystemData systemData = default(SystemData), string id = default(string), string name = default(string), string type = default(string)) + { + PolicyAssignmentId = policyAssignmentId; + PolicyDefinitionReferenceIds = policyDefinitionReferenceIds; + ExemptionCategory = exemptionCategory; + ExpiresOn = expiresOn; + DisplayName = displayName; + Description = description; + Metadata = metadata; + SystemData = systemData; + Id = id; + Name = name; + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the ID of the policy assignment that is being + /// exempted. + /// + [JsonProperty(PropertyName = "properties.policyAssignmentId")] + public string PolicyAssignmentId { get; set; } + + /// + /// Gets or sets the policy definition reference ID list when the + /// associated policy assignment is an assignment of a policy set + /// definition. + /// + [JsonProperty(PropertyName = "properties.policyDefinitionReferenceIds")] + public IList PolicyDefinitionReferenceIds { get; set; } + + /// + /// Gets or sets the policy exemption category. Possible values are + /// Waiver and Mitigated. Possible values include: 'Waiver', + /// 'Mitigated' + /// + [JsonProperty(PropertyName = "properties.exemptionCategory")] + public string ExemptionCategory { get; set; } + + /// + /// Gets or sets the expiration date and time (in UTC ISO 8601 format + /// yyyy-MM-ddTHH:mm:ssZ) of the policy exemption. + /// + [JsonProperty(PropertyName = "properties.expiresOn")] + public System.DateTime? ExpiresOn { get; set; } + + /// + /// Gets or sets the display name of the policy exemption. + /// + [JsonProperty(PropertyName = "properties.displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets the description of the policy exemption. + /// + [JsonProperty(PropertyName = "properties.description")] + public string Description { get; set; } + + /// + /// Gets or sets the policy exemption metadata. Metadata is an open + /// ended object and is typically a collection of key value pairs. + /// + [JsonProperty(PropertyName = "properties.metadata")] + public object Metadata { get; set; } + + /// + /// Gets azure Resource Manager metadata containing createdBy and + /// modifiedBy information. + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + + /// + /// Gets the ID of the policy exemption. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the name of the policy exemption. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the type of the resource + /// (Microsoft.Authorization/policyExemptions). + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (PolicyAssignmentId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PolicyAssignmentId"); + } + if (ExemptionCategory == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ExemptionCategory"); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PolicySetDefinition.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PolicySetDefinition.cs new file mode 100644 index 000000000000..88b92fa32823 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PolicySetDefinition.cs @@ -0,0 +1,180 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The policy set definition. + /// + [Rest.Serialization.JsonTransformation] + public partial class PolicySetDefinition : IResource + { + /// + /// Initializes a new instance of the PolicySetDefinition class. + /// + public PolicySetDefinition() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PolicySetDefinition class. + /// + /// An array of policy definition + /// references. + /// The type of policy definition. Possible + /// values are NotSpecified, BuiltIn, Custom, and Static. Possible + /// values include: 'NotSpecified', 'BuiltIn', 'Custom', + /// 'Static' + /// The display name of the policy set + /// definition. + /// The policy set definition + /// description. + /// The policy set definition metadata. + /// Metadata is an open ended object and is typically a collection of + /// key value pairs. + /// The policy set definition parameters that + /// can be used in policy definition references. + /// The metadata describing groups + /// of policy definition references within the policy set + /// definition. + /// The ID of the policy set definition. + /// The name of the policy set definition. + /// The type of the resource + /// (Microsoft.Authorization/policySetDefinitions). + public PolicySetDefinition(IList policyDefinitions, string policyType = default(string), string displayName = default(string), string description = default(string), object metadata = default(object), IDictionary parameters = default(IDictionary), IList policyDefinitionGroups = default(IList), string id = default(string), string name = default(string), string type = default(string)) + { + PolicyType = policyType; + DisplayName = displayName; + Description = description; + Metadata = metadata; + Parameters = parameters; + PolicyDefinitions = policyDefinitions; + PolicyDefinitionGroups = policyDefinitionGroups; + Id = id; + Name = name; + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the type of policy definition. Possible values are + /// NotSpecified, BuiltIn, Custom, and Static. Possible values include: + /// 'NotSpecified', 'BuiltIn', 'Custom', 'Static' + /// + [JsonProperty(PropertyName = "properties.policyType")] + public string PolicyType { get; set; } + + /// + /// Gets or sets the display name of the policy set definition. + /// + [JsonProperty(PropertyName = "properties.displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets the policy set definition description. + /// + [JsonProperty(PropertyName = "properties.description")] + public string Description { get; set; } + + /// + /// Gets or sets the policy set definition metadata. Metadata is an + /// open ended object and is typically a collection of key value pairs. + /// + [JsonProperty(PropertyName = "properties.metadata")] + public object Metadata { get; set; } + + /// + /// Gets or sets the policy set definition parameters that can be used + /// in policy definition references. + /// + [JsonProperty(PropertyName = "properties.parameters")] + public IDictionary Parameters { get; set; } + + /// + /// Gets or sets an array of policy definition references. + /// + [JsonProperty(PropertyName = "properties.policyDefinitions")] + public IList PolicyDefinitions { get; set; } + + /// + /// Gets or sets the metadata describing groups of policy definition + /// references within the policy set definition. + /// + [JsonProperty(PropertyName = "properties.policyDefinitionGroups")] + public IList PolicyDefinitionGroups { get; set; } + + /// + /// Gets the ID of the policy set definition. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the name of the policy set definition. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the type of the resource + /// (Microsoft.Authorization/policySetDefinitions). + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (PolicyDefinitions == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PolicyDefinitions"); + } + if (PolicyDefinitions != null) + { + foreach (var element in PolicyDefinitions) + { + if (element != null) + { + element.Validate(); + } + } + } + if (PolicyDefinitionGroups != null) + { + foreach (var element1 in PolicyDefinitionGroups) + { + if (element1 != null) + { + element1.Validate(); + } + } + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PolicyType.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PolicyType.cs new file mode 100644 index 000000000000..89cf1c16732f --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PolicyType.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + + /// + /// Defines values for PolicyType. + /// + public static class PolicyType + { + public const string NotSpecified = "NotSpecified"; + public const string BuiltIn = "BuiltIn"; + public const string Custom = "Custom"; + public const string Static = "Static"; + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PropertyChangeType.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PropertyChangeType.cs new file mode 100644 index 000000000000..bef9416ab982 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/PropertyChangeType.cs @@ -0,0 +1,98 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for PropertyChangeType. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum PropertyChangeType + { + /// + /// The property does not exist in the current state but is present in + /// the desired state. The property will be created when the deployment + /// is executed. + /// + [EnumMember(Value = "Create")] + Create, + /// + /// The property exists in the current state and is missing from the + /// desired state. It will be deleted when the deployment is executed. + /// + [EnumMember(Value = "Delete")] + Delete, + /// + /// The property exists in both current and desired state and is + /// different. The value of the property will change when the + /// deployment is executed. + /// + [EnumMember(Value = "Modify")] + Modify, + /// + /// The property is an array and contains nested changes. + /// + [EnumMember(Value = "Array")] + Array, + /// + /// The property will not be set or updated. + /// + [EnumMember(Value = "NoEffect")] + NoEffect + } + internal static class PropertyChangeTypeEnumExtension + { + internal static string ToSerializedValue(this PropertyChangeType? value) + { + return value == null ? null : ((PropertyChangeType)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this PropertyChangeType value) + { + switch( value ) + { + case PropertyChangeType.Create: + return "Create"; + case PropertyChangeType.Delete: + return "Delete"; + case PropertyChangeType.Modify: + return "Modify"; + case PropertyChangeType.Array: + return "Array"; + case PropertyChangeType.NoEffect: + return "NoEffect"; + } + return null; + } + + internal static PropertyChangeType? ParsePropertyChangeType(this string value) + { + switch( value ) + { + case "Create": + return PropertyChangeType.Create; + case "Delete": + return PropertyChangeType.Delete; + case "Modify": + return PropertyChangeType.Modify; + case "Array": + return PropertyChangeType.Array; + case "NoEffect": + return PropertyChangeType.NoEffect; + } + return null; + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Provider.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Provider.cs new file mode 100644 index 000000000000..bcb0401fcbb4 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Provider.cs @@ -0,0 +1,101 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Resource provider information. + /// + public partial class Provider + { + /// + /// Initializes a new instance of the Provider class. + /// + public Provider() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Provider class. + /// + /// The provider ID. + /// The namespace of the resource + /// provider. + /// The registration state of the + /// resource provider. + /// The registration policy of the + /// resource provider. + /// The collection of provider resource + /// types. + /// The provider + /// authorization consent state. Possible values include: + /// 'NotSpecified', 'Required', 'NotRequired', 'Consented' + public Provider(string id = default(string), string namespaceProperty = default(string), string registrationState = default(string), string registrationPolicy = default(string), IList resourceTypes = default(IList), string providerAuthorizationConsentState = default(string)) + { + Id = id; + NamespaceProperty = namespaceProperty; + RegistrationState = registrationState; + RegistrationPolicy = registrationPolicy; + ResourceTypes = resourceTypes; + ProviderAuthorizationConsentState = providerAuthorizationConsentState; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the provider ID. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets or sets the namespace of the resource provider. + /// + [JsonProperty(PropertyName = "namespace")] + public string NamespaceProperty { get; set; } + + /// + /// Gets the registration state of the resource provider. + /// + [JsonProperty(PropertyName = "registrationState")] + public string RegistrationState { get; private set; } + + /// + /// Gets the registration policy of the resource provider. + /// + [JsonProperty(PropertyName = "registrationPolicy")] + public string RegistrationPolicy { get; private set; } + + /// + /// Gets the collection of provider resource types. + /// + [JsonProperty(PropertyName = "resourceTypes")] + public IList ResourceTypes { get; private set; } + + /// + /// Gets or sets the provider authorization consent state. Possible + /// values include: 'NotSpecified', 'Required', 'NotRequired', + /// 'Consented' + /// + [JsonProperty(PropertyName = "providerAuthorizationConsentState")] + public string ProviderAuthorizationConsentState { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProviderAuthorizationConsentState.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProviderAuthorizationConsentState.cs new file mode 100644 index 000000000000..c44db847e4e2 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProviderAuthorizationConsentState.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + + /// + /// Defines values for ProviderAuthorizationConsentState. + /// + public static class ProviderAuthorizationConsentState + { + public const string NotSpecified = "NotSpecified"; + public const string Required = "Required"; + public const string NotRequired = "NotRequired"; + public const string Consented = "Consented"; + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProviderConsentDefinition.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProviderConsentDefinition.cs new file mode 100644 index 000000000000..22733e8d9de7 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProviderConsentDefinition.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The provider consent. + /// + public partial class ProviderConsentDefinition + { + /// + /// Initializes a new instance of the ProviderConsentDefinition class. + /// + public ProviderConsentDefinition() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ProviderConsentDefinition class. + /// + /// A value indicating whether + /// authorization is consented or not. + public ProviderConsentDefinition(bool? consentToAuthorization = default(bool?)) + { + ConsentToAuthorization = consentToAuthorization; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets a value indicating whether authorization is consented + /// or not. + /// + [JsonProperty(PropertyName = "consentToAuthorization")] + public bool? ConsentToAuthorization { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProviderExtendedLocation.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProviderExtendedLocation.cs new file mode 100644 index 000000000000..f7fae58826d2 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProviderExtendedLocation.cs @@ -0,0 +1,70 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The provider extended location. + /// + public partial class ProviderExtendedLocation + { + /// + /// Initializes a new instance of the ProviderExtendedLocation class. + /// + public ProviderExtendedLocation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ProviderExtendedLocation class. + /// + /// The azure location. + /// The extended location type. + /// The extended locations for the + /// azure location. + public ProviderExtendedLocation(string location = default(string), string type = default(string), IList extendedLocations = default(IList)) + { + Location = location; + Type = type; + ExtendedLocations = extendedLocations; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the azure location. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets the extended location type. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets the extended locations for the azure location. + /// + [JsonProperty(PropertyName = "extendedLocations")] + public IList ExtendedLocations { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProviderPermission.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProviderPermission.cs new file mode 100644 index 000000000000..fb490630d5aa --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProviderPermission.cs @@ -0,0 +1,80 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The provider permission + /// + public partial class ProviderPermission + { + /// + /// Initializes a new instance of the ProviderPermission class. + /// + public ProviderPermission() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ProviderPermission class. + /// + /// The application id. + /// Role definition properties. + /// Role definition + /// properties. + /// The provider + /// authorization consent state. Possible values include: + /// 'NotSpecified', 'Required', 'NotRequired', 'Consented' + public ProviderPermission(string applicationId = default(string), RoleDefinition roleDefinition = default(RoleDefinition), RoleDefinition managedByRoleDefinition = default(RoleDefinition), string providerAuthorizationConsentState = default(string)) + { + ApplicationId = applicationId; + RoleDefinition = roleDefinition; + ManagedByRoleDefinition = managedByRoleDefinition; + ProviderAuthorizationConsentState = providerAuthorizationConsentState; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the application id. + /// + [JsonProperty(PropertyName = "applicationId")] + public string ApplicationId { get; set; } + + /// + /// Gets or sets role definition properties. + /// + [JsonProperty(PropertyName = "roleDefinition")] + public RoleDefinition RoleDefinition { get; set; } + + /// + /// Gets or sets role definition properties. + /// + [JsonProperty(PropertyName = "managedByRoleDefinition")] + public RoleDefinition ManagedByRoleDefinition { get; set; } + + /// + /// Gets or sets the provider authorization consent state. Possible + /// values include: 'NotSpecified', 'Required', 'NotRequired', + /// 'Consented' + /// + [JsonProperty(PropertyName = "providerAuthorizationConsentState")] + public string ProviderAuthorizationConsentState { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProviderPermissionListResult.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProviderPermissionListResult.cs new file mode 100644 index 000000000000..a85f988ee99f --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProviderPermissionListResult.cs @@ -0,0 +1,64 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// List of provider permissions. + /// + public partial class ProviderPermissionListResult + { + /// + /// Initializes a new instance of the ProviderPermissionListResult + /// class. + /// + public ProviderPermissionListResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ProviderPermissionListResult + /// class. + /// + /// An array of provider permissions. + /// The URL to use for getting the next set of + /// results. + public ProviderPermissionListResult(IList value = default(IList), string nextLink = default(string)) + { + Value = value; + NextLink = nextLink; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets an array of provider permissions. + /// + [JsonProperty(PropertyName = "value")] + public IList Value { get; set; } + + /// + /// Gets the URL to use for getting the next set of results. + /// + [JsonProperty(PropertyName = "nextLink")] + public string NextLink { get; private set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProviderRegistrationRequest.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProviderRegistrationRequest.cs new file mode 100644 index 000000000000..39bcdadfa5ec --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProviderRegistrationRequest.cs @@ -0,0 +1,54 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The provider registration definition. + /// + public partial class ProviderRegistrationRequest + { + /// + /// Initializes a new instance of the ProviderRegistrationRequest + /// class. + /// + public ProviderRegistrationRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ProviderRegistrationRequest + /// class. + /// + /// The provider + /// consent. + public ProviderRegistrationRequest(ProviderConsentDefinition thirdPartyProviderConsent = default(ProviderConsentDefinition)) + { + ThirdPartyProviderConsent = thirdPartyProviderConsent; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the provider consent. + /// + [JsonProperty(PropertyName = "thirdPartyProviderConsent")] + public ProviderConsentDefinition ThirdPartyProviderConsent { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProviderResourceType.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProviderResourceType.cs new file mode 100644 index 000000000000..ff9b3ba1eb5d --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProviderResourceType.cs @@ -0,0 +1,125 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Resource type managed by the resource provider. + /// + public partial class ProviderResourceType + { + /// + /// Initializes a new instance of the ProviderResourceType class. + /// + public ProviderResourceType() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ProviderResourceType class. + /// + /// The resource type. + /// The collection of locations where this + /// resource type can be created. + /// The location mappings that are + /// supported by this resource type. + /// The aliases that are supported by this + /// resource type. + /// The API version. + /// The default API version. + /// The API profiles for the resource + /// provider. + /// The additional capabilities offered by + /// this resource type. + /// The properties. + public ProviderResourceType(string resourceType = default(string), IList locations = default(IList), IList locationMappings = default(IList), IList aliases = default(IList), IList apiVersions = default(IList), string defaultApiVersion = default(string), IList apiProfiles = default(IList), string capabilities = default(string), IDictionary properties = default(IDictionary)) + { + ResourceType = resourceType; + Locations = locations; + LocationMappings = locationMappings; + Aliases = aliases; + ApiVersions = apiVersions; + DefaultApiVersion = defaultApiVersion; + ApiProfiles = apiProfiles; + Capabilities = capabilities; + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the resource type. + /// + [JsonProperty(PropertyName = "resourceType")] + public string ResourceType { get; set; } + + /// + /// Gets or sets the collection of locations where this resource type + /// can be created. + /// + [JsonProperty(PropertyName = "locations")] + public IList Locations { get; set; } + + /// + /// Gets or sets the location mappings that are supported by this + /// resource type. + /// + [JsonProperty(PropertyName = "locationMappings")] + public IList LocationMappings { get; set; } + + /// + /// Gets or sets the aliases that are supported by this resource type. + /// + [JsonProperty(PropertyName = "aliases")] + public IList Aliases { get; set; } + + /// + /// Gets or sets the API version. + /// + [JsonProperty(PropertyName = "apiVersions")] + public IList ApiVersions { get; set; } + + /// + /// Gets the default API version. + /// + [JsonProperty(PropertyName = "defaultApiVersion")] + public string DefaultApiVersion { get; private set; } + + /// + /// Gets the API profiles for the resource provider. + /// + [JsonProperty(PropertyName = "apiProfiles")] + public IList ApiProfiles { get; private set; } + + /// + /// Gets or sets the additional capabilities offered by this resource + /// type. + /// + [JsonProperty(PropertyName = "capabilities")] + public string Capabilities { get; set; } + + /// + /// Gets or sets the properties. + /// + [JsonProperty(PropertyName = "properties")] + public IDictionary Properties { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProviderResourceTypeListResult.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProviderResourceTypeListResult.cs new file mode 100644 index 000000000000..1cfbf3a0dfb1 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProviderResourceTypeListResult.cs @@ -0,0 +1,64 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// List of resource types of a resource provider. + /// + public partial class ProviderResourceTypeListResult + { + /// + /// Initializes a new instance of the ProviderResourceTypeListResult + /// class. + /// + public ProviderResourceTypeListResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ProviderResourceTypeListResult + /// class. + /// + /// An array of resource types. + /// The URL to use for getting the next set of + /// results. + public ProviderResourceTypeListResult(IList value = default(IList), string nextLink = default(string)) + { + Value = value; + NextLink = nextLink; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets an array of resource types. + /// + [JsonProperty(PropertyName = "value")] + public IList Value { get; set; } + + /// + /// Gets the URL to use for getting the next set of results. + /// + [JsonProperty(PropertyName = "nextLink")] + public string NextLink { get; private set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProvisioningOperation.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProvisioningOperation.cs new file mode 100644 index 000000000000..7085942fbe33 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProvisioningOperation.cs @@ -0,0 +1,139 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for ProvisioningOperation. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ProvisioningOperation + { + /// + /// The provisioning operation is not specified. + /// + [EnumMember(Value = "NotSpecified")] + NotSpecified, + /// + /// The provisioning operation is create. + /// + [EnumMember(Value = "Create")] + Create, + /// + /// The provisioning operation is delete. + /// + [EnumMember(Value = "Delete")] + Delete, + /// + /// The provisioning operation is waiting. + /// + [EnumMember(Value = "Waiting")] + Waiting, + /// + /// The provisioning operation is waiting Azure async operation. + /// + [EnumMember(Value = "AzureAsyncOperationWaiting")] + AzureAsyncOperationWaiting, + /// + /// The provisioning operation is waiting for resource cache. + /// + [EnumMember(Value = "ResourceCacheWaiting")] + ResourceCacheWaiting, + /// + /// The provisioning operation is action. + /// + [EnumMember(Value = "Action")] + Action, + /// + /// The provisioning operation is read. + /// + [EnumMember(Value = "Read")] + Read, + /// + /// The provisioning operation is evaluate output. + /// + [EnumMember(Value = "EvaluateDeploymentOutput")] + EvaluateDeploymentOutput, + /// + /// The provisioning operation is cleanup. This operation is part of + /// the 'complete' mode deployment. + /// + [EnumMember(Value = "DeploymentCleanup")] + DeploymentCleanup + } + internal static class ProvisioningOperationEnumExtension + { + internal static string ToSerializedValue(this ProvisioningOperation? value) + { + return value == null ? null : ((ProvisioningOperation)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this ProvisioningOperation value) + { + switch( value ) + { + case ProvisioningOperation.NotSpecified: + return "NotSpecified"; + case ProvisioningOperation.Create: + return "Create"; + case ProvisioningOperation.Delete: + return "Delete"; + case ProvisioningOperation.Waiting: + return "Waiting"; + case ProvisioningOperation.AzureAsyncOperationWaiting: + return "AzureAsyncOperationWaiting"; + case ProvisioningOperation.ResourceCacheWaiting: + return "ResourceCacheWaiting"; + case ProvisioningOperation.Action: + return "Action"; + case ProvisioningOperation.Read: + return "Read"; + case ProvisioningOperation.EvaluateDeploymentOutput: + return "EvaluateDeploymentOutput"; + case ProvisioningOperation.DeploymentCleanup: + return "DeploymentCleanup"; + } + return null; + } + + internal static ProvisioningOperation? ParseProvisioningOperation(this string value) + { + switch( value ) + { + case "NotSpecified": + return ProvisioningOperation.NotSpecified; + case "Create": + return ProvisioningOperation.Create; + case "Delete": + return ProvisioningOperation.Delete; + case "Waiting": + return ProvisioningOperation.Waiting; + case "AzureAsyncOperationWaiting": + return ProvisioningOperation.AzureAsyncOperationWaiting; + case "ResourceCacheWaiting": + return ProvisioningOperation.ResourceCacheWaiting; + case "Action": + return ProvisioningOperation.Action; + case "Read": + return ProvisioningOperation.Read; + case "EvaluateDeploymentOutput": + return ProvisioningOperation.EvaluateDeploymentOutput; + case "DeploymentCleanup": + return ProvisioningOperation.DeploymentCleanup; + } + return null; + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProvisioningState.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProvisioningState.cs new file mode 100644 index 000000000000..bbc2e9705c0e --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProvisioningState.cs @@ -0,0 +1,32 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + + /// + /// Defines values for ProvisioningState. + /// + public static class ProvisioningState + { + public const string NotSpecified = "NotSpecified"; + public const string Accepted = "Accepted"; + public const string Running = "Running"; + public const string Ready = "Ready"; + public const string Creating = "Creating"; + public const string Created = "Created"; + public const string Deleting = "Deleting"; + public const string Deleted = "Deleted"; + public const string Canceled = "Canceled"; + public const string Failed = "Failed"; + public const string Succeeded = "Succeeded"; + public const string Updating = "Updating"; + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProxyResource.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProxyResource.cs new file mode 100644 index 000000000000..ab288fd901bc --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ProxyResource.cs @@ -0,0 +1,69 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Linq; + + /// + /// An Azure proxy resource. + /// + public partial class ProxyResource : IResource + { + /// + /// Initializes a new instance of the ProxyResource class. + /// + public ProxyResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ProxyResource class. + /// + /// Azure resource Id. + /// Azure resource name. + /// Azure resource type. + public ProxyResource(string id = default(string), string name = default(string), string type = default(string)) + { + Id = id; + Name = name; + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets azure resource Id. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets azure resource name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets azure resource type. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/RegionCategory.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/RegionCategory.cs new file mode 100644 index 000000000000..9c63b1e310f9 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/RegionCategory.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + + /// + /// Defines values for RegionCategory. + /// + public static class RegionCategory + { + public const string Recommended = "Recommended"; + public const string Extended = "Extended"; + public const string Other = "Other"; + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/RegionType.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/RegionType.cs new file mode 100644 index 000000000000..5ff325008365 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/RegionType.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + + /// + /// Defines values for RegionType. + /// + public static class RegionType + { + public const string Physical = "Physical"; + public const string Logical = "Logical"; + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Resource.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Resource.cs new file mode 100644 index 000000000000..456b5a05b5b9 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Resource.cs @@ -0,0 +1,95 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Specified resource. + /// + public partial class Resource : IResource + { + /// + /// Initializes a new instance of the Resource class. + /// + public Resource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Resource class. + /// + /// Resource ID + /// Resource name + /// Resource type + /// Resource location + /// Resource extended location. + /// Resource tags + public Resource(string id = default(string), string name = default(string), string type = default(string), string location = default(string), ExtendedLocation extendedLocation = default(ExtendedLocation), IDictionary tags = default(IDictionary)) + { + Id = id; + Name = name; + Type = type; + Location = location; + ExtendedLocation = extendedLocation; + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets resource ID + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets resource name + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets resource type + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets or sets resource location + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets resource extended location. + /// + [JsonProperty(PropertyName = "extendedLocation")] + public ExtendedLocation ExtendedLocation { get; set; } + + /// + /// Gets or sets resource tags + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceGroup.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceGroup.cs new file mode 100644 index 000000000000..23273f227166 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceGroup.cs @@ -0,0 +1,122 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Resource group information. + /// + public partial class ResourceGroup : IResource + { + /// + /// Initializes a new instance of the ResourceGroup class. + /// + public ResourceGroup() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceGroup class. + /// + /// 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 group. + /// The name of the resource group. + /// The type 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. + public ResourceGroup(string location, string id = default(string), string name = default(string), string type = default(string), ResourceGroupProperties properties = default(ResourceGroupProperties), string managedBy = default(string), IDictionary tags = default(IDictionary)) + { + Id = id; + Name = name; + Type = type; + Properties = properties; + Location = location; + ManagedBy = managedBy; + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the ID of the resource group. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the name of the resource group. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the type of the resource group. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets or sets the resource group properties. + /// + [JsonProperty(PropertyName = "properties")] + public ResourceGroupProperties Properties { get; set; } + + /// + /// Gets or sets 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. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets the ID of the resource that manages this resource + /// group. + /// + [JsonProperty(PropertyName = "managedBy")] + public string ManagedBy { get; set; } + + /// + /// Gets or sets the tags attached to the resource group. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Location"); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceGroupExportResult.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceGroupExportResult.cs new file mode 100644 index 000000000000..482acb38db85 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceGroupExportResult.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Resource group export result. + /// + public partial class ResourceGroupExportResult + { + /// + /// Initializes a new instance of the ResourceGroupExportResult class. + /// + public ResourceGroupExportResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceGroupExportResult class. + /// + /// The template content. + /// The template export error. + public ResourceGroupExportResult(object template = default(object), ErrorResponse error = default(ErrorResponse)) + { + Template = template; + Error = error; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the template content. + /// + [JsonProperty(PropertyName = "template")] + public object Template { get; set; } + + /// + /// Gets or sets the template export error. + /// + [JsonProperty(PropertyName = "error")] + public ErrorResponse Error { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceGroupFilter.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceGroupFilter.cs new file mode 100644 index 000000000000..fbac36f76492 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceGroupFilter.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Resource group filter. + /// + public partial class ResourceGroupFilter + { + /// + /// Initializes a new instance of the ResourceGroupFilter class. + /// + public ResourceGroupFilter() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceGroupFilter class. + /// + /// The tag name. + /// The tag value. + public ResourceGroupFilter(string tagName = default(string), string tagValue = default(string)) + { + TagName = tagName; + TagValue = tagValue; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the tag name. + /// + [JsonProperty(PropertyName = "tagName")] + public string TagName { get; set; } + + /// + /// Gets or sets the tag value. + /// + [JsonProperty(PropertyName = "tagValue")] + public string TagValue { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceGroupPatchable.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceGroupPatchable.cs new file mode 100644 index 000000000000..43a724e3411e --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceGroupPatchable.cs @@ -0,0 +1,79 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Resource group information. + /// + public partial class ResourceGroupPatchable + { + /// + /// Initializes a new instance of the ResourceGroupPatchable class. + /// + public ResourceGroupPatchable() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceGroupPatchable class. + /// + /// 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. + public ResourceGroupPatchable(string name = default(string), ResourceGroupProperties properties = default(ResourceGroupProperties), string managedBy = default(string), IDictionary tags = default(IDictionary)) + { + Name = name; + Properties = properties; + ManagedBy = managedBy; + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the resource group. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the resource group properties. + /// + [JsonProperty(PropertyName = "properties")] + public ResourceGroupProperties Properties { get; set; } + + /// + /// Gets or sets the ID of the resource that manages this resource + /// group. + /// + [JsonProperty(PropertyName = "managedBy")] + public string ManagedBy { get; set; } + + /// + /// Gets or sets the tags attached to the resource group. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceGroupProperties.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceGroupProperties.cs new file mode 100644 index 000000000000..ca4be497ba04 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceGroupProperties.cs @@ -0,0 +1,51 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The resource group properties. + /// + public partial class ResourceGroupProperties + { + /// + /// Initializes a new instance of the ResourceGroupProperties class. + /// + public ResourceGroupProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceGroupProperties class. + /// + /// The provisioning state. + public ResourceGroupProperties(string provisioningState = default(string)) + { + ProvisioningState = provisioningState; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the provisioning state. + /// + [JsonProperty(PropertyName = "provisioningState")] + public string ProvisioningState { get; private set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceIdentityType.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceIdentityType.cs new file mode 100644 index 000000000000..e5b35fa10e5c --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceIdentityType.cs @@ -0,0 +1,72 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for ResourceIdentityType. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ResourceIdentityType + { + [EnumMember(Value = "SystemAssigned")] + SystemAssigned, + [EnumMember(Value = "UserAssigned")] + UserAssigned, + [EnumMember(Value = "SystemAssigned, UserAssigned")] + SystemAssignedUserAssigned, + [EnumMember(Value = "None")] + None + } + internal static class ResourceIdentityTypeEnumExtension + { + internal static string ToSerializedValue(this ResourceIdentityType? value) + { + return value == null ? null : ((ResourceIdentityType)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this ResourceIdentityType value) + { + switch( value ) + { + case ResourceIdentityType.SystemAssigned: + return "SystemAssigned"; + case ResourceIdentityType.UserAssigned: + return "UserAssigned"; + case ResourceIdentityType.SystemAssignedUserAssigned: + return "SystemAssigned, UserAssigned"; + case ResourceIdentityType.None: + return "None"; + } + return null; + } + + internal static ResourceIdentityType? ParseResourceIdentityType(this string value) + { + switch( value ) + { + case "SystemAssigned": + return ResourceIdentityType.SystemAssigned; + case "UserAssigned": + return ResourceIdentityType.UserAssigned; + case "SystemAssigned, UserAssigned": + return ResourceIdentityType.SystemAssignedUserAssigned; + case "None": + return ResourceIdentityType.None; + } + return null; + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceLink.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceLink.cs new file mode 100644 index 000000000000..e89c853f8d6e --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceLink.cs @@ -0,0 +1,91 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The resource link. + /// + public partial class ResourceLink : IResource + { + /// + /// Initializes a new instance of the ResourceLink class. + /// + public ResourceLink() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceLink class. + /// + /// The fully qualified ID of the resource + /// link. + /// The name of the resource link. + /// The resource link object. + /// Properties for resource link. + public ResourceLink(string id = default(string), string name = default(string), object type = default(object), ResourceLinkProperties properties = default(ResourceLinkProperties)) + { + Id = id; + Name = name; + Type = type; + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the fully qualified ID of the resource link. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the name of the resource link. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the resource link object. + /// + [JsonProperty(PropertyName = "type")] + public object Type { get; private set; } + + /// + /// Gets or sets properties for resource link. + /// + [JsonProperty(PropertyName = "properties")] + public ResourceLinkProperties Properties { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Properties != null) + { + Properties.Validate(); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceLinkFilter.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceLinkFilter.cs new file mode 100644 index 000000000000..ac38b654ad12 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceLinkFilter.cs @@ -0,0 +1,65 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Resource link filter. + /// + public partial class ResourceLinkFilter + { + /// + /// Initializes a new instance of the ResourceLinkFilter class. + /// + public ResourceLinkFilter() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceLinkFilter class. + /// + /// The ID of the target resource. + public ResourceLinkFilter(string targetId) + { + TargetId = targetId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the ID of the target resource. + /// + [JsonProperty(PropertyName = "targetId")] + public string TargetId { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (TargetId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "TargetId"); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceLinkProperties.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceLinkProperties.cs new file mode 100644 index 000000000000..e6bbfbcc6dac --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceLinkProperties.cs @@ -0,0 +1,84 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The resource link properties. + /// + public partial class ResourceLinkProperties + { + /// + /// Initializes a new instance of the ResourceLinkProperties class. + /// + public ResourceLinkProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceLinkProperties class. + /// + /// The fully qualified ID of the target + /// resource in the link. + /// The fully qualified ID of the source + /// resource in the link. + /// Notes about the resource link. + public ResourceLinkProperties(string targetId, string sourceId = default(string), string notes = default(string)) + { + SourceId = sourceId; + TargetId = targetId; + Notes = notes; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the fully qualified ID of the source resource in the link. + /// + [JsonProperty(PropertyName = "sourceId")] + public string SourceId { get; private set; } + + /// + /// Gets or sets the fully qualified ID of the target resource in the + /// link. + /// + [JsonProperty(PropertyName = "targetId")] + public string TargetId { get; set; } + + /// + /// Gets or sets notes about the resource link. + /// + [JsonProperty(PropertyName = "notes")] + public string Notes { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (TargetId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "TargetId"); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceName.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceName.cs new file mode 100644 index 000000000000..ca2591d89888 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceName.cs @@ -0,0 +1,77 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Name and Type of the Resource + /// + public partial class ResourceName + { + /// + /// Initializes a new instance of the ResourceName class. + /// + public ResourceName() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceName class. + /// + /// Name of the resource + /// The type of the resource + public ResourceName(string name, string type) + { + Name = name; + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets name of the resource + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the type of the resource + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + if (Type == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Type"); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceNameStatus.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceNameStatus.cs new file mode 100644 index 000000000000..367ba715abef --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceNameStatus.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + + /// + /// Defines values for ResourceNameStatus. + /// + public static class ResourceNameStatus + { + public const string Allowed = "Allowed"; + public const string Reserved = "Reserved"; + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceProviderOperationDisplayProperties.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceProviderOperationDisplayProperties.cs new file mode 100644 index 000000000000..2a035a13eb86 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceProviderOperationDisplayProperties.cs @@ -0,0 +1,85 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Resource provider operation's display properties. + /// + public partial class ResourceProviderOperationDisplayProperties + { + /// + /// Initializes a new instance of the + /// ResourceProviderOperationDisplayProperties class. + /// + public ResourceProviderOperationDisplayProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// ResourceProviderOperationDisplayProperties class. + /// + /// Operation description. + /// Operation provider. + /// Operation resource. + /// Resource provider operation. + /// Operation description. + public ResourceProviderOperationDisplayProperties(string publisher = default(string), string provider = default(string), string resource = default(string), string operation = default(string), string description = default(string)) + { + Publisher = publisher; + Provider = provider; + Resource = resource; + Operation = operation; + Description = description; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets operation description. + /// + [JsonProperty(PropertyName = "publisher")] + public string Publisher { get; set; } + + /// + /// Gets or sets operation provider. + /// + [JsonProperty(PropertyName = "provider")] + public string Provider { get; set; } + + /// + /// Gets or sets operation resource. + /// + [JsonProperty(PropertyName = "resource")] + public string Resource { get; set; } + + /// + /// Gets or sets resource provider operation. + /// + [JsonProperty(PropertyName = "operation")] + public string Operation { get; set; } + + /// + /// Gets or sets operation description. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceReference.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceReference.cs new file mode 100644 index 000000000000..9f469ac96285 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceReference.cs @@ -0,0 +1,51 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The resource Id model. + /// + public partial class ResourceReference + { + /// + /// Initializes a new instance of the ResourceReference class. + /// + public ResourceReference() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceReference class. + /// + /// The fully qualified resource Id. + public ResourceReference(string id = default(string)) + { + Id = id; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the fully qualified resource Id. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceTypeAliases.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceTypeAliases.cs new file mode 100644 index 000000000000..f45eb11d398d --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourceTypeAliases.cs @@ -0,0 +1,61 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The resource type aliases definition. + /// + public partial class ResourceTypeAliases + { + /// + /// Initializes a new instance of the ResourceTypeAliases class. + /// + public ResourceTypeAliases() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourceTypeAliases class. + /// + /// The resource type name. + /// The aliases for property names. + public ResourceTypeAliases(string resourceType = default(string), IList aliases = default(IList)) + { + ResourceType = resourceType; + Aliases = aliases; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the resource type name. + /// + [JsonProperty(PropertyName = "resourceType")] + public string ResourceType { get; set; } + + /// + /// Gets or sets the aliases for property names. + /// + [JsonProperty(PropertyName = "aliases")] + public IList Aliases { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourcesMoveInfo.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourcesMoveInfo.cs new file mode 100644 index 000000000000..486ec8f4481c --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ResourcesMoveInfo.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Parameters of move resources. + /// + public partial class ResourcesMoveInfo + { + /// + /// Initializes a new instance of the ResourcesMoveInfo class. + /// + public ResourcesMoveInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ResourcesMoveInfo class. + /// + /// The IDs of the resources. + /// The target resource + /// group. + public ResourcesMoveInfo(IList resources = default(IList), string targetResourceGroup = default(string)) + { + Resources = resources; + TargetResourceGroup = targetResourceGroup; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the IDs of the resources. + /// + [JsonProperty(PropertyName = "resources")] + public IList Resources { get; set; } + + /// + /// Gets or sets the target resource group. + /// + [JsonProperty(PropertyName = "targetResourceGroup")] + public string TargetResourceGroup { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/RoleDefinition.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/RoleDefinition.cs new file mode 100644 index 000000000000..7800d695cb67 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/RoleDefinition.cs @@ -0,0 +1,85 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Role definition properties. + /// + public partial class RoleDefinition + { + /// + /// Initializes a new instance of the RoleDefinition class. + /// + public RoleDefinition() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the RoleDefinition class. + /// + /// The role definition ID. + /// The role definition name. + /// If this is a service role. + /// Role definition permissions. + /// Role definition assignable scopes. + public RoleDefinition(string id = default(string), string name = default(string), bool? isServiceRole = default(bool?), IList permissions = default(IList), IList scopes = default(IList)) + { + Id = id; + Name = name; + IsServiceRole = isServiceRole; + Permissions = permissions; + Scopes = scopes; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the role definition ID. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Gets or sets the role definition name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets if this is a service role. + /// + [JsonProperty(PropertyName = "isServiceRole")] + public bool? IsServiceRole { get; set; } + + /// + /// Gets or sets role definition permissions. + /// + [JsonProperty(PropertyName = "permissions")] + public IList Permissions { get; set; } + + /// + /// Gets or sets role definition assignable scopes. + /// + [JsonProperty(PropertyName = "scopes")] + public IList Scopes { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ScopedDeployment.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ScopedDeployment.cs new file mode 100644 index 000000000000..194b17227587 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ScopedDeployment.cs @@ -0,0 +1,92 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Deployment operation parameters. + /// + public partial class ScopedDeployment + { + /// + /// Initializes a new instance of the ScopedDeployment class. + /// + public ScopedDeployment() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ScopedDeployment class. + /// + /// The location to store the deployment + /// data. + /// The deployment properties. + /// Deployment tags + public ScopedDeployment(string location, DeploymentProperties properties, IDictionary tags = default(IDictionary)) + { + Location = location; + Properties = properties; + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the location to store the deployment data. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets the deployment properties. + /// + [JsonProperty(PropertyName = "properties")] + public DeploymentProperties Properties { get; set; } + + /// + /// Gets or sets deployment tags + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Location"); + } + if (Properties == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Properties"); + } + if (Properties != null) + { + Properties.Validate(); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ScopedDeploymentWhatIf.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ScopedDeploymentWhatIf.cs new file mode 100644 index 000000000000..80ca6a56b0fc --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ScopedDeploymentWhatIf.cs @@ -0,0 +1,82 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Deployment What-if operation parameters. + /// + public partial class ScopedDeploymentWhatIf + { + /// + /// Initializes a new instance of the ScopedDeploymentWhatIf class. + /// + public ScopedDeploymentWhatIf() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ScopedDeploymentWhatIf class. + /// + /// The location to store the deployment + /// data. + /// The deployment properties. + public ScopedDeploymentWhatIf(string location, DeploymentWhatIfProperties properties) + { + Location = location; + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the location to store the deployment data. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets the deployment properties. + /// + [JsonProperty(PropertyName = "properties")] + public DeploymentWhatIfProperties Properties { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Location"); + } + if (Properties == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Properties"); + } + if (Properties != null) + { + Properties.Validate(); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ScriptLog.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ScriptLog.cs new file mode 100644 index 000000000000..68e5443e9b84 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ScriptLog.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Script execution log object. + /// + [Rest.Serialization.JsonTransformation] + public partial class ScriptLog : AzureResourceBase + { + /// + /// Initializes a new instance of the ScriptLog class. + /// + public ScriptLog() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ScriptLog class. + /// + /// String Id used to locate any resource on + /// Azure. + /// Name of this resource. + /// Type of this resource. + /// Script execution logs in text format. + public ScriptLog(string id = default(string), string name = default(string), string type = default(string), string log = default(string)) + : base(id, name, type) + { + Log = log; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets script execution logs in text format. + /// + [JsonProperty(PropertyName = "properties.log")] + public string Log { get; private set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ScriptLogsList.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ScriptLogsList.cs new file mode 100644 index 000000000000..018a175efbce --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ScriptLogsList.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Deployment script execution logs. + /// + public partial class ScriptLogsList + { + /// + /// Initializes a new instance of the ScriptLogsList class. + /// + public ScriptLogsList() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ScriptLogsList class. + /// + /// Deployment scripts logs. + public ScriptLogsList(IList value = default(IList)) + { + Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets deployment scripts logs. + /// + [JsonProperty(PropertyName = "value")] + public IList Value { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ScriptProvisioningState.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ScriptProvisioningState.cs new file mode 100644 index 000000000000..9d90ff698d3b --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ScriptProvisioningState.cs @@ -0,0 +1,26 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + + /// + /// Defines values for ScriptProvisioningState. + /// + public static class ScriptProvisioningState + { + public const string Creating = "Creating"; + public const string ProvisioningResources = "ProvisioningResources"; + public const string Running = "Running"; + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string Canceled = "Canceled"; + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ScriptStatus.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ScriptStatus.cs new file mode 100644 index 000000000000..c976f9f28e06 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/ScriptStatus.cs @@ -0,0 +1,93 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Generic object modeling results of script execution. + /// + public partial class ScriptStatus + { + /// + /// Initializes a new instance of the ScriptStatus class. + /// + public ScriptStatus() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ScriptStatus class. + /// + /// ACI resource Id. + /// Storage account resource Id. + /// Start time of the script execution. + /// End time of the script execution. + /// Time the deployment script resource + /// will expire. + /// Error that is relayed from the script + /// execution. + public ScriptStatus(string containerInstanceId = default(string), string storageAccountId = default(string), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), System.DateTime? expirationTime = default(System.DateTime?), ErrorResponse error = default(ErrorResponse)) + { + ContainerInstanceId = containerInstanceId; + StorageAccountId = storageAccountId; + StartTime = startTime; + EndTime = endTime; + ExpirationTime = expirationTime; + Error = error; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets ACI resource Id. + /// + [JsonProperty(PropertyName = "containerInstanceId")] + public string ContainerInstanceId { get; private set; } + + /// + /// Gets storage account resource Id. + /// + [JsonProperty(PropertyName = "storageAccountId")] + public string StorageAccountId { get; private set; } + + /// + /// Gets start time of the script execution. + /// + [JsonProperty(PropertyName = "startTime")] + public System.DateTime? StartTime { get; private set; } + + /// + /// Gets end time of the script execution. + /// + [JsonProperty(PropertyName = "endTime")] + public System.DateTime? EndTime { get; private set; } + + /// + /// Gets time the deployment script resource will expire. + /// + [JsonProperty(PropertyName = "expirationTime")] + public System.DateTime? ExpirationTime { get; private set; } + + /// + /// Gets or sets error that is relayed from the script execution. + /// + [JsonProperty(PropertyName = "error")] + public ErrorResponse Error { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Sku.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Sku.cs new file mode 100644 index 000000000000..c61194047f1d --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Sku.cs @@ -0,0 +1,91 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// SKU for the resource. + /// + public partial class Sku + { + /// + /// Initializes a new instance of the Sku class. + /// + public Sku() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Sku class. + /// + /// The SKU name. + /// The SKU tier. + /// The SKU size. + /// The SKU family. + /// The SKU model. + /// The SKU capacity. + public Sku(string name = default(string), string tier = default(string), string size = default(string), string family = default(string), string model = default(string), int? capacity = default(int?)) + { + Name = name; + Tier = tier; + Size = size; + Family = family; + Model = model; + Capacity = capacity; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the SKU name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the SKU tier. + /// + [JsonProperty(PropertyName = "tier")] + public string Tier { get; set; } + + /// + /// Gets or sets the SKU size. + /// + [JsonProperty(PropertyName = "size")] + public string Size { get; set; } + + /// + /// Gets or sets the SKU family. + /// + [JsonProperty(PropertyName = "family")] + public string Family { get; set; } + + /// + /// Gets or sets the SKU model. + /// + [JsonProperty(PropertyName = "model")] + public string Model { get; set; } + + /// + /// Gets or sets the SKU capacity. + /// + [JsonProperty(PropertyName = "capacity")] + public int? Capacity { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SpendingLimit.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SpendingLimit.cs new file mode 100644 index 000000000000..e839fbd1afda --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SpendingLimit.cs @@ -0,0 +1,66 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for SpendingLimit. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SpendingLimit + { + [EnumMember(Value = "On")] + On, + [EnumMember(Value = "Off")] + Off, + [EnumMember(Value = "CurrentPeriodOff")] + CurrentPeriodOff + } + internal static class SpendingLimitEnumExtension + { + internal static string ToSerializedValue(this SpendingLimit? value) + { + return value == null ? null : ((SpendingLimit)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this SpendingLimit value) + { + switch( value ) + { + case SpendingLimit.On: + return "On"; + case SpendingLimit.Off: + return "Off"; + case SpendingLimit.CurrentPeriodOff: + return "CurrentPeriodOff"; + } + return null; + } + + internal static SpendingLimit? ParseSpendingLimit(this string value) + { + switch( value ) + { + case "On": + return SpendingLimit.On; + case "Off": + return SpendingLimit.Off; + case "CurrentPeriodOff": + return SpendingLimit.CurrentPeriodOff; + } + return null; + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/StatusMessage.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/StatusMessage.cs new file mode 100644 index 000000000000..36164b1c507b --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/StatusMessage.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Operation status message object. + /// + public partial class StatusMessage + { + /// + /// Initializes a new instance of the StatusMessage class. + /// + public StatusMessage() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the StatusMessage class. + /// + /// Status of the deployment operation. + /// The error reported by the operation. + public StatusMessage(string status = default(string), ErrorResponse error = default(ErrorResponse)) + { + Status = status; + Error = error; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets status of the deployment operation. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets the error reported by the operation. + /// + [JsonProperty(PropertyName = "error")] + public ErrorResponse Error { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/StorageAccountConfiguration.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/StorageAccountConfiguration.cs new file mode 100644 index 000000000000..dbe18c41803c --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/StorageAccountConfiguration.cs @@ -0,0 +1,63 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Settings to use an existing storage account. Valid storage account + /// kinds are: Storage, StorageV2 and FileStorage + /// + public partial class StorageAccountConfiguration + { + /// + /// Initializes a new instance of the StorageAccountConfiguration + /// class. + /// + public StorageAccountConfiguration() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the StorageAccountConfiguration + /// class. + /// + /// The storage account name. + /// The storage account access + /// key. + public StorageAccountConfiguration(string storageAccountName = default(string), string storageAccountKey = default(string)) + { + StorageAccountName = storageAccountName; + StorageAccountKey = storageAccountKey; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the storage account name. + /// + [JsonProperty(PropertyName = "storageAccountName")] + public string StorageAccountName { get; set; } + + /// + /// Gets or sets the storage account access key. + /// + [JsonProperty(PropertyName = "storageAccountKey")] + public string StorageAccountKey { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SubResource.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SubResource.cs new file mode 100644 index 000000000000..f193d2772aa6 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SubResource.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Sub-resource. + /// + public partial class SubResource : IResource + { + /// + /// Initializes a new instance of the SubResource class. + /// + public SubResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SubResource class. + /// + /// Resource ID + public SubResource(string id = default(string)) + { + Id = id; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets resource ID + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Subscription.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Subscription.cs new file mode 100644 index 000000000000..5aa0e57d36b9 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Subscription.cs @@ -0,0 +1,133 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Subscription information. + /// + public partial class Subscription + { + /// + /// Initializes a new instance of the Subscription class. + /// + public Subscription() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Subscription class. + /// + /// The fully qualified ID for the subscription. For + /// example, + /// /subscriptions/00000000-0000-0000-0000-000000000000. + /// The subscription ID. + /// The subscription display name. + /// The subscription tenant ID. + /// The subscription state. Possible values are + /// Enabled, Warned, PastDue, Disabled, and Deleted. Possible values + /// include: 'Enabled', 'Warned', 'PastDue', 'Disabled', + /// 'Deleted' + /// The subscription + /// policies. + /// The authorization source of the + /// request. Valid values are one or more combinations of Legacy, + /// RoleBased, Bypassed, Direct and Management. For example, 'Legacy, + /// RoleBased'. + /// An array containing the tenants + /// managing the subscription. + /// The tags attached to the subscription. + public Subscription(string id = default(string), string subscriptionId = default(string), string displayName = default(string), string tenantId = default(string), SubscriptionState? state = default(SubscriptionState?), SubscriptionPolicies subscriptionPolicies = default(SubscriptionPolicies), string authorizationSource = default(string), IList managedByTenants = default(IList), IDictionary tags = default(IDictionary)) + { + Id = id; + SubscriptionId = subscriptionId; + DisplayName = displayName; + TenantId = tenantId; + State = state; + SubscriptionPolicies = subscriptionPolicies; + AuthorizationSource = authorizationSource; + ManagedByTenants = managedByTenants; + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the fully qualified ID for the subscription. For example, + /// /subscriptions/00000000-0000-0000-0000-000000000000. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the subscription ID. + /// + [JsonProperty(PropertyName = "subscriptionId")] + public string SubscriptionId { get; private set; } + + /// + /// Gets the subscription display name. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; private set; } + + /// + /// Gets the subscription tenant ID. + /// + [JsonProperty(PropertyName = "tenantId")] + public string TenantId { get; private set; } + + /// + /// Gets the subscription state. Possible values are Enabled, Warned, + /// PastDue, Disabled, and Deleted. Possible values include: 'Enabled', + /// 'Warned', 'PastDue', 'Disabled', 'Deleted' + /// + [JsonProperty(PropertyName = "state")] + public SubscriptionState? State { get; private set; } + + /// + /// Gets or sets the subscription policies. + /// + [JsonProperty(PropertyName = "subscriptionPolicies")] + public SubscriptionPolicies SubscriptionPolicies { get; set; } + + /// + /// Gets or sets the authorization source of the request. Valid values + /// are one or more combinations of Legacy, RoleBased, Bypassed, Direct + /// and Management. For example, 'Legacy, RoleBased'. + /// + [JsonProperty(PropertyName = "authorizationSource")] + public string AuthorizationSource { get; set; } + + /// + /// Gets or sets an array containing the tenants managing the + /// subscription. + /// + [JsonProperty(PropertyName = "managedByTenants")] + public IList ManagedByTenants { get; set; } + + /// + /// Gets or sets the tags attached to the subscription. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SubscriptionFeatureRegistration.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SubscriptionFeatureRegistration.cs new file mode 100644 index 000000000000..7718967318c0 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SubscriptionFeatureRegistration.cs @@ -0,0 +1,68 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Subscription feature registration details + /// + public partial class SubscriptionFeatureRegistration : ProxyResource + { + /// + /// Initializes a new instance of the SubscriptionFeatureRegistration + /// class. + /// + public SubscriptionFeatureRegistration() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SubscriptionFeatureRegistration + /// class. + /// + /// Azure resource Id. + /// Azure resource name. + /// Azure resource type. + public SubscriptionFeatureRegistration(string id = default(string), string name = default(string), string type = default(string), SubscriptionFeatureRegistrationProperties properties = default(SubscriptionFeatureRegistrationProperties)) + : base(id, name, type) + { + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "properties")] + public SubscriptionFeatureRegistrationProperties Properties { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Properties != null) + { + Properties.Validate(); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SubscriptionFeatureRegistrationApprovalType.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SubscriptionFeatureRegistrationApprovalType.cs new file mode 100644 index 000000000000..57183fc5dc29 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SubscriptionFeatureRegistrationApprovalType.cs @@ -0,0 +1,23 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + + /// + /// Defines values for SubscriptionFeatureRegistrationApprovalType. + /// + public static class SubscriptionFeatureRegistrationApprovalType + { + public const string NotSpecified = "NotSpecified"; + public const string ApprovalRequired = "ApprovalRequired"; + public const string AutoApproval = "AutoApproval"; + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SubscriptionFeatureRegistrationProperties.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SubscriptionFeatureRegistrationProperties.cs new file mode 100644 index 000000000000..c237a81eca8d --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SubscriptionFeatureRegistrationProperties.cs @@ -0,0 +1,189 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + public partial class SubscriptionFeatureRegistrationProperties + { + /// + /// Initializes a new instance of the + /// SubscriptionFeatureRegistrationProperties class. + /// + public SubscriptionFeatureRegistrationProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// SubscriptionFeatureRegistrationProperties class. + /// + /// The tenantId. + /// The subscriptionId. + /// The featureName. + /// The featureDisplayName. + /// The providerNamespace. + /// The state. Possible values include: + /// 'NotSpecified', 'NotRegistered', 'Pending', 'Registering', + /// 'Registered', 'Unregistering', 'Unregistered' + /// Key-value pairs for meta data. + /// The feature release date. + /// The feature registration + /// date. + /// The feature documentation + /// link. + /// The feature approval type. Possible + /// values include: 'NotSpecified', 'ApprovalRequired', + /// 'AutoApproval' + /// Indicates whether + /// feature should be displayed in Portal. + /// The feature description. + public SubscriptionFeatureRegistrationProperties(string tenantId = default(string), string subscriptionId = default(string), string featureName = default(string), string displayName = default(string), string providerNamespace = default(string), string state = default(string), AuthorizationProfile authorizationProfile = default(AuthorizationProfile), IDictionary metadata = default(IDictionary), System.DateTime? releaseDate = default(System.DateTime?), System.DateTime? registrationDate = default(System.DateTime?), string documentationLink = default(string), string approvalType = default(string), bool? shouldFeatureDisplayInPortal = default(bool?), string description = default(string)) + { + TenantId = tenantId; + SubscriptionId = subscriptionId; + FeatureName = featureName; + DisplayName = displayName; + ProviderNamespace = providerNamespace; + State = state; + AuthorizationProfile = authorizationProfile; + Metadata = metadata; + ReleaseDate = releaseDate; + RegistrationDate = registrationDate; + DocumentationLink = documentationLink; + ApprovalType = approvalType; + ShouldFeatureDisplayInPortal = shouldFeatureDisplayInPortal; + Description = description; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the tenantId. + /// + [JsonProperty(PropertyName = "tenantId")] + public string TenantId { get; private set; } + + /// + /// Gets the subscriptionId. + /// + [JsonProperty(PropertyName = "subscriptionId")] + public string SubscriptionId { get; private set; } + + /// + /// Gets the featureName. + /// + [JsonProperty(PropertyName = "featureName")] + public string FeatureName { get; private set; } + + /// + /// Gets the featureDisplayName. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; private set; } + + /// + /// Gets the providerNamespace. + /// + [JsonProperty(PropertyName = "providerNamespace")] + public string ProviderNamespace { get; private set; } + + /// + /// Gets or sets the state. Possible values include: 'NotSpecified', + /// 'NotRegistered', 'Pending', 'Registering', 'Registered', + /// 'Unregistering', 'Unregistered' + /// + [JsonProperty(PropertyName = "state")] + public string State { get; set; } + + /// + /// + [JsonProperty(PropertyName = "authorizationProfile")] + public AuthorizationProfile AuthorizationProfile { get; set; } + + /// + /// Gets or sets key-value pairs for meta data. + /// + [JsonProperty(PropertyName = "metadata")] + public IDictionary Metadata { get; set; } + + /// + /// Gets the feature release date. + /// + [JsonProperty(PropertyName = "releaseDate")] + public System.DateTime? ReleaseDate { get; private set; } + + /// + /// Gets the feature registration date. + /// + [JsonProperty(PropertyName = "registrationDate")] + public System.DateTime? RegistrationDate { get; private set; } + + /// + /// Gets the feature documentation link. + /// + [JsonProperty(PropertyName = "documentationLink")] + public string DocumentationLink { get; private set; } + + /// + /// Gets the feature approval type. Possible values include: + /// 'NotSpecified', 'ApprovalRequired', 'AutoApproval' + /// + [JsonProperty(PropertyName = "approvalType")] + public string ApprovalType { get; private set; } + + /// + /// Gets or sets indicates whether feature should be displayed in + /// Portal. + /// + [JsonProperty(PropertyName = "shouldFeatureDisplayInPortal")] + public bool? ShouldFeatureDisplayInPortal { get; set; } + + /// + /// Gets or sets the feature description. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (DocumentationLink != null) + { + if (DocumentationLink.Length > 1000) + { + throw new ValidationException(ValidationRules.MaxLength, "DocumentationLink", 1000); + } + } + if (Description != null) + { + if (Description.Length > 1000) + { + throw new ValidationException(ValidationRules.MaxLength, "Description", 1000); + } + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SubscriptionFeatureRegistrationState.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SubscriptionFeatureRegistrationState.cs new file mode 100644 index 000000000000..269d56a31158 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SubscriptionFeatureRegistrationState.cs @@ -0,0 +1,27 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + + /// + /// Defines values for SubscriptionFeatureRegistrationState. + /// + public static class SubscriptionFeatureRegistrationState + { + public const string NotSpecified = "NotSpecified"; + public const string NotRegistered = "NotRegistered"; + public const string Pending = "Pending"; + public const string Registering = "Registering"; + public const string Registered = "Registered"; + public const string Unregistering = "Unregistering"; + public const string Unregistered = "Unregistered"; + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SubscriptionPolicies.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SubscriptionPolicies.cs new file mode 100644 index 000000000000..b98fb80edd07 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SubscriptionPolicies.cs @@ -0,0 +1,75 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Subscription policies. + /// + public partial class SubscriptionPolicies + { + /// + /// Initializes a new instance of the SubscriptionPolicies class. + /// + public SubscriptionPolicies() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SubscriptionPolicies class. + /// + /// The subscription location + /// placement ID. The ID indicates which regions are visible for a + /// subscription. For example, a subscription with a location placement + /// Id of Public_2014-09-01 has access to Azure public regions. + /// The subscription quota ID. + /// The subscription spending limit. + /// Possible values include: 'On', 'Off', 'CurrentPeriodOff' + public SubscriptionPolicies(string locationPlacementId = default(string), string quotaId = default(string), SpendingLimit? spendingLimit = default(SpendingLimit?)) + { + LocationPlacementId = locationPlacementId; + QuotaId = quotaId; + SpendingLimit = spendingLimit; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the subscription location placement ID. The ID indicates which + /// regions are visible for a subscription. For example, a subscription + /// with a location placement Id of Public_2014-09-01 has access to + /// Azure public regions. + /// + [JsonProperty(PropertyName = "locationPlacementId")] + public string LocationPlacementId { get; private set; } + + /// + /// Gets the subscription quota ID. + /// + [JsonProperty(PropertyName = "quotaId")] + public string QuotaId { get; private set; } + + /// + /// Gets the subscription spending limit. Possible values include: + /// 'On', 'Off', 'CurrentPeriodOff' + /// + [JsonProperty(PropertyName = "spendingLimit")] + public SpendingLimit? SpendingLimit { get; private set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SubscriptionState.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SubscriptionState.cs new file mode 100644 index 000000000000..7f5f21e56aca --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SubscriptionState.cs @@ -0,0 +1,78 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for SubscriptionState. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SubscriptionState + { + [EnumMember(Value = "Enabled")] + Enabled, + [EnumMember(Value = "Warned")] + Warned, + [EnumMember(Value = "PastDue")] + PastDue, + [EnumMember(Value = "Disabled")] + Disabled, + [EnumMember(Value = "Deleted")] + Deleted + } + internal static class SubscriptionStateEnumExtension + { + internal static string ToSerializedValue(this SubscriptionState? value) + { + return value == null ? null : ((SubscriptionState)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this SubscriptionState value) + { + switch( value ) + { + case SubscriptionState.Enabled: + return "Enabled"; + case SubscriptionState.Warned: + return "Warned"; + case SubscriptionState.PastDue: + return "PastDue"; + case SubscriptionState.Disabled: + return "Disabled"; + case SubscriptionState.Deleted: + return "Deleted"; + } + return null; + } + + internal static SubscriptionState? ParseSubscriptionState(this string value) + { + switch( value ) + { + case "Enabled": + return SubscriptionState.Enabled; + case "Warned": + return SubscriptionState.Warned; + case "PastDue": + return SubscriptionState.PastDue; + case "Disabled": + return SubscriptionState.Disabled; + case "Deleted": + return SubscriptionState.Deleted; + } + return null; + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SystemData.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SystemData.cs new file mode 100644 index 000000000000..e0f9fafbac84 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/SystemData.cs @@ -0,0 +1,103 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Metadata pertaining to creation and last modification of the resource. + /// + public partial class SystemData + { + /// + /// Initializes a new instance of the SystemData class. + /// + public SystemData() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SystemData class. + /// + /// The identity that created the + /// resource. + /// The type of identity that created the + /// resource. Possible values include: 'User', 'Application', + /// 'ManagedIdentity', 'Key' + /// The timestamp of resource creation + /// (UTC). + /// The identity that last modified the + /// resource. + /// The type of identity that last + /// modified the resource. Possible values include: 'User', + /// 'Application', 'ManagedIdentity', 'Key' + /// The timestamp of resource last + /// modification (UTC) + public SystemData(string createdBy = default(string), string createdByType = default(string), System.DateTime? createdAt = default(System.DateTime?), string lastModifiedBy = default(string), string lastModifiedByType = default(string), System.DateTime? lastModifiedAt = default(System.DateTime?)) + { + CreatedBy = createdBy; + CreatedByType = createdByType; + CreatedAt = createdAt; + LastModifiedBy = lastModifiedBy; + LastModifiedByType = lastModifiedByType; + LastModifiedAt = lastModifiedAt; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the identity that created the resource. + /// + [JsonProperty(PropertyName = "createdBy")] + public string CreatedBy { get; set; } + + /// + /// Gets or sets the type of identity that created the resource. + /// Possible values include: 'User', 'Application', 'ManagedIdentity', + /// 'Key' + /// + [JsonProperty(PropertyName = "createdByType")] + public string CreatedByType { get; set; } + + /// + /// Gets or sets the timestamp of resource creation (UTC). + /// + [JsonProperty(PropertyName = "createdAt")] + public System.DateTime? CreatedAt { get; set; } + + /// + /// Gets or sets the identity that last modified the resource. + /// + [JsonProperty(PropertyName = "lastModifiedBy")] + public string LastModifiedBy { get; set; } + + /// + /// Gets or sets the type of identity that last modified the resource. + /// Possible values include: 'User', 'Application', 'ManagedIdentity', + /// 'Key' + /// + [JsonProperty(PropertyName = "lastModifiedByType")] + public string LastModifiedByType { get; set; } + + /// + /// Gets or sets the timestamp of resource last modification (UTC) + /// + [JsonProperty(PropertyName = "lastModifiedAt")] + public System.DateTime? LastModifiedAt { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TagCount.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TagCount.cs new file mode 100644 index 000000000000..fdcb67a3c80f --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TagCount.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Tag count. + /// + public partial class TagCount + { + /// + /// Initializes a new instance of the TagCount class. + /// + public TagCount() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TagCount class. + /// + /// Type of count. + /// Value of count. + public TagCount(string type = default(string), int? value = default(int?)) + { + Type = type; + Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets type of count. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Gets or sets value of count. + /// + [JsonProperty(PropertyName = "value")] + public int? Value { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TagDetails.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TagDetails.cs new file mode 100644 index 000000000000..1d9c42db425f --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TagDetails.cs @@ -0,0 +1,83 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Tag details. + /// + public partial class TagDetails : IResource + { + /// + /// Initializes a new instance of the TagDetails class. + /// + public TagDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TagDetails class. + /// + /// The tag name 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. + public TagDetails(string id = default(string), string tagName = default(string), TagCount count = default(TagCount), IList values = default(IList)) + { + Id = id; + TagName = tagName; + Count = count; + Values = values; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the tag name ID. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets or sets the tag name. + /// + [JsonProperty(PropertyName = "tagName")] + public string TagName { get; set; } + + /// + /// Gets or sets 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. + /// + [JsonProperty(PropertyName = "count")] + public TagCount Count { get; set; } + + /// + /// Gets or sets the list of tag values. + /// + [JsonProperty(PropertyName = "values")] + public IList Values { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TagValue.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TagValue.cs new file mode 100644 index 000000000000..35960ee7ffc6 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TagValue.cs @@ -0,0 +1,69 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Tag information. + /// + public partial class TagValue : IResource + { + /// + /// Initializes a new instance of the TagValue class. + /// + public TagValue() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TagValue class. + /// + /// The tag value ID. + /// The tag value. + /// The tag value count. + public TagValue(string id = default(string), string tagValueProperty = default(string), TagCount count = default(TagCount)) + { + Id = id; + TagValueProperty = tagValueProperty; + Count = count; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the tag value ID. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets or sets the tag value. + /// + [JsonProperty(PropertyName = "tagValue")] + public string TagValueProperty { get; set; } + + /// + /// Gets or sets the tag value count. + /// + [JsonProperty(PropertyName = "count")] + public TagCount Count { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Tags.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Tags.cs new file mode 100644 index 000000000000..6d439197602c --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/Tags.cs @@ -0,0 +1,51 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A dictionary of name and value pairs. + /// + public partial class Tags + { + /// + /// Initializes a new instance of the Tags class. + /// + public Tags() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Tags class. + /// + public Tags(IDictionary tagsProperty = default(IDictionary)) + { + TagsProperty = tagsProperty; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary TagsProperty { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TagsPatchOperation.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TagsPatchOperation.cs new file mode 100644 index 000000000000..1b5268a74c23 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TagsPatchOperation.cs @@ -0,0 +1,35 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + + /// + /// Defines values for TagsPatchOperation. + /// + public static class TagsPatchOperation + { + /// + /// The 'replace' option replaces the entire set of existing tags with + /// a new set. + /// + public const string Replace = "Replace"; + /// + /// The 'merge' option allows adding tags with new names and updating + /// the values of tags with existing names. + /// + public const string Merge = "Merge"; + /// + /// The 'delete' option allows selectively deleting tags based on given + /// names or name/value pairs. + /// + public const string Delete = "Delete"; + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TagsPatchResource.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TagsPatchResource.cs new file mode 100644 index 000000000000..5eed4fa2b62c --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TagsPatchResource.cs @@ -0,0 +1,61 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Wrapper resource for tags patch API request only. + /// + public partial class TagsPatchResource + { + /// + /// Initializes a new instance of the TagsPatchResource class. + /// + public TagsPatchResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TagsPatchResource class. + /// + /// The operation type for the patch API. + /// Possible values include: 'Replace', 'Merge', 'Delete' + /// The set of tags. + public TagsPatchResource(string operation = default(string), Tags properties = default(Tags)) + { + Operation = operation; + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the operation type for the patch API. Possible values + /// include: 'Replace', 'Merge', 'Delete' + /// + [JsonProperty(PropertyName = "operation")] + public string Operation { get; set; } + + /// + /// Gets or sets the set of tags. + /// + [JsonProperty(PropertyName = "properties")] + public Tags Properties { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TagsResource.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TagsResource.cs new file mode 100644 index 000000000000..d7e77a34645b --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TagsResource.cs @@ -0,0 +1,90 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Wrapper resource for tags API requests and responses. + /// + public partial class TagsResource : IResource + { + /// + /// Initializes a new instance of the TagsResource class. + /// + public TagsResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TagsResource class. + /// + /// The set of tags. + /// The ID of the tags wrapper resource. + /// The name of the tags wrapper resource. + /// The type of the tags wrapper resource. + public TagsResource(Tags properties, string id = default(string), string name = default(string), string type = default(string)) + { + Id = id; + Name = name; + Type = type; + Properties = properties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the ID of the tags wrapper resource. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the name of the tags wrapper resource. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the type of the tags wrapper resource. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets or sets the set of tags. + /// + [JsonProperty(PropertyName = "properties")] + public Tags Properties { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Properties == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Properties"); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TargetResource.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TargetResource.cs new file mode 100644 index 000000000000..7e6640cb5831 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TargetResource.cs @@ -0,0 +1,67 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Target resource. + /// + public partial class TargetResource + { + /// + /// Initializes a new instance of the TargetResource class. + /// + public TargetResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TargetResource class. + /// + /// The ID of the resource. + /// The name of the resource. + /// The type of the resource. + public TargetResource(string id = default(string), string resourceName = default(string), string resourceType = default(string)) + { + Id = id; + ResourceName = resourceName; + ResourceType = resourceType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the ID of the resource. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Gets or sets the name of the resource. + /// + [JsonProperty(PropertyName = "resourceName")] + public string ResourceName { get; set; } + + /// + /// Gets or sets the type of the resource. + /// + [JsonProperty(PropertyName = "resourceType")] + public string ResourceType { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateHashResult.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateHashResult.cs new file mode 100644 index 000000000000..4470f57a0b65 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateHashResult.cs @@ -0,0 +1,61 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// 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 the TemplateHashResult class. + /// + public TemplateHashResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TemplateHashResult class. + /// + /// The minified template + /// string. + /// The template hash. + public TemplateHashResult(string minifiedTemplate = default(string), string templateHash = default(string)) + { + MinifiedTemplate = minifiedTemplate; + TemplateHash = templateHash; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the minified template string. + /// + [JsonProperty(PropertyName = "minifiedTemplate")] + public string MinifiedTemplate { get; set; } + + /// + /// Gets or sets the template hash. + /// + [JsonProperty(PropertyName = "templateHash")] + public string TemplateHash { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateLink.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateLink.cs new file mode 100644 index 000000000000..614823222a15 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateLink.cs @@ -0,0 +1,101 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Entity representing the reference to the template. + /// + public partial class TemplateLink + { + /// + /// Initializes a new instance of the TemplateLink class. + /// + public TemplateLink() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TemplateLink class. + /// + /// The URI of the template to deploy. Use either the + /// uri or id property, but not both. + /// The resource id of a Template Spec. Use either the + /// id or uri property, but not both. + /// The relativePath property can be used to + /// deploy a linked template at a location relative to the parent. If + /// the parent template was linked with a TemplateSpec, this will + /// reference an artifact in the TemplateSpec. If the parent was + /// linked with a URI, the child deployment will be a combination of + /// the parent and relativePath URIs + /// If included, must match the + /// ContentVersion in the template. + /// The query string (for example, a SAS + /// token) to be used with the templateLink URI. + public TemplateLink(string uri = default(string), string id = default(string), string relativePath = default(string), string contentVersion = default(string), string queryString = default(string)) + { + Uri = uri; + Id = id; + RelativePath = relativePath; + ContentVersion = contentVersion; + QueryString = queryString; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the URI of the template to deploy. Use either the uri + /// or id property, but not both. + /// + [JsonProperty(PropertyName = "uri")] + public string Uri { get; set; } + + /// + /// Gets or sets the resource id of a Template Spec. Use either the id + /// or uri property, but not both. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Gets or sets the relativePath property can be used to deploy a + /// linked template at a location relative to the parent. If the parent + /// template was linked with a TemplateSpec, this will reference an + /// artifact in the TemplateSpec. If the parent was linked with a URI, + /// the child deployment will be a combination of the parent and + /// relativePath URIs + /// + [JsonProperty(PropertyName = "relativePath")] + public string RelativePath { get; set; } + + /// + /// Gets or sets if included, must match the ContentVersion in the + /// template. + /// + [JsonProperty(PropertyName = "contentVersion")] + public string ContentVersion { get; set; } + + /// + /// Gets or sets the query string (for example, a SAS token) to be used + /// with the templateLink URI. + /// + [JsonProperty(PropertyName = "queryString")] + public string QueryString { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateSpec.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateSpec.cs new file mode 100644 index 000000000000..1dfab791d11d --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateSpec.cs @@ -0,0 +1,142 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Template Spec object. + /// + [Rest.Serialization.JsonTransformation] + public partial class TemplateSpec : AzureResourceBase + { + /// + /// Initializes a new instance of the TemplateSpec class. + /// + public TemplateSpec() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TemplateSpec class. + /// + /// The location of the Template Spec. It cannot + /// be changed after Template Spec creation. It must be one of the + /// supported Azure locations. + /// String Id used to locate any resource on + /// Azure. + /// Name of this resource. + /// Type of this resource. + /// Azure Resource Manager metadata containing + /// createdBy and modifiedBy information. + /// Template Spec description. + /// Template Spec display name. + /// The Template Spec metadata. Metadata is an + /// open-ended object and is typically a collection of key-value + /// pairs. + /// High-level information about the versions + /// within this Template Spec. The keys are the version names. Only + /// populated if the $expand query parameter is set to + /// 'versions'. + /// Resource tags. + public TemplateSpec(string location, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string description = default(string), string displayName = default(string), object metadata = default(object), IDictionary versions = default(IDictionary), IDictionary tags = default(IDictionary)) + : base(id, name, type, systemData) + { + Location = location; + Description = description; + DisplayName = displayName; + Metadata = metadata; + Versions = versions; + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the location of the Template Spec. It cannot be + /// changed after Template Spec creation. It must be one of the + /// supported Azure locations. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets template Spec description. + /// + [JsonProperty(PropertyName = "properties.description")] + public string Description { get; set; } + + /// + /// Gets or sets template Spec display name. + /// + [JsonProperty(PropertyName = "properties.displayName")] + public string DisplayName { get; set; } + + /// + /// Gets or sets the Template Spec metadata. Metadata is an open-ended + /// object and is typically a collection of key-value pairs. + /// + [JsonProperty(PropertyName = "properties.metadata")] + public object Metadata { get; set; } + + /// + /// Gets high-level information about the versions within this Template + /// Spec. The keys are the version names. Only populated if the $expand + /// query parameter is set to 'versions'. + /// + [JsonProperty(PropertyName = "properties.versions")] + public IDictionary Versions { get; private set; } + + /// + /// Gets or sets resource tags. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Location"); + } + if (Description != null) + { + if (Description.Length > 4096) + { + throw new ValidationException(ValidationRules.MaxLength, "Description", 4096); + } + } + if (DisplayName != null) + { + if (DisplayName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "DisplayName", 64); + } + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateSpecExpandKind.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateSpecExpandKind.cs new file mode 100644 index 000000000000..1599db4ff547 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateSpecExpandKind.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + + /// + /// Defines values for TemplateSpecExpandKind. + /// + public static class TemplateSpecExpandKind + { + /// + /// Includes version information with the Template Spec. + /// + public const string Versions = "versions"; + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateSpecUpdateModel.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateSpecUpdateModel.cs new file mode 100644 index 000000000000..0b1cd2c0c256 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateSpecUpdateModel.cs @@ -0,0 +1,61 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Template Spec properties to be updated (only tags are currently + /// supported). + /// + public partial class TemplateSpecUpdateModel : AzureResourceBase + { + /// + /// Initializes a new instance of the TemplateSpecUpdateModel class. + /// + public TemplateSpecUpdateModel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TemplateSpecUpdateModel class. + /// + /// String Id used to locate any resource on + /// Azure. + /// Name of this resource. + /// Type of this resource. + /// Azure Resource Manager metadata containing + /// createdBy and modifiedBy information. + /// Resource tags. + public TemplateSpecUpdateModel(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), IDictionary tags = default(IDictionary)) + : base(id, name, type, systemData) + { + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets resource tags. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateSpecVersion.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateSpecVersion.cs new file mode 100644 index 000000000000..81537a820e1a --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateSpecVersion.cs @@ -0,0 +1,151 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Template Spec Version object. + /// + [Rest.Serialization.JsonTransformation] + public partial class TemplateSpecVersion : AzureResourceBase + { + /// + /// Initializes a new instance of the TemplateSpecVersion class. + /// + public TemplateSpecVersion() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TemplateSpecVersion class. + /// + /// The location of the Template Spec Version. + /// It must match the location of the parent Template Spec. + /// String Id used to locate any resource on + /// Azure. + /// Name of this resource. + /// Type of this resource. + /// Azure Resource Manager metadata containing + /// createdBy and modifiedBy information. + /// Template Spec version + /// description. + /// An array of linked template + /// artifacts. + /// The version metadata. Metadata is an + /// open-ended object and is typically a collection of key-value + /// pairs. + /// The main Azure Resource Manager template + /// content. + /// The Azure Resource Manager template + /// UI definition content. + /// Resource tags. + public TemplateSpecVersion(string location, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), string description = default(string), IList linkedTemplates = default(IList), object metadata = default(object), object mainTemplate = default(object), object uiFormDefinition = default(object), IDictionary tags = default(IDictionary)) + : base(id, name, type, systemData) + { + Location = location; + Description = description; + LinkedTemplates = linkedTemplates; + Metadata = metadata; + MainTemplate = mainTemplate; + UiFormDefinition = uiFormDefinition; + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the location of the Template Spec Version. It must + /// match the location of the parent Template Spec. + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets or sets template Spec version description. + /// + [JsonProperty(PropertyName = "properties.description")] + public string Description { get; set; } + + /// + /// Gets or sets an array of linked template artifacts. + /// + [JsonProperty(PropertyName = "properties.linkedTemplates")] + public IList LinkedTemplates { get; set; } + + /// + /// Gets or sets the version metadata. Metadata is an open-ended object + /// and is typically a collection of key-value pairs. + /// + [JsonProperty(PropertyName = "properties.metadata")] + public object Metadata { get; set; } + + /// + /// Gets or sets the main Azure Resource Manager template content. + /// + [JsonProperty(PropertyName = "properties.mainTemplate")] + public object MainTemplate { get; set; } + + /// + /// Gets or sets the Azure Resource Manager template UI definition + /// content. + /// + [JsonProperty(PropertyName = "properties.uiFormDefinition")] + public object UiFormDefinition { get; set; } + + /// + /// Gets or sets resource tags. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Location"); + } + if (Description != null) + { + if (Description.Length > 4096) + { + throw new ValidationException(ValidationRules.MaxLength, "Description", 4096); + } + } + if (LinkedTemplates != null) + { + foreach (var element in LinkedTemplates) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateSpecVersionInfo.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateSpecVersionInfo.cs new file mode 100644 index 000000000000..d3d82e2dbe7d --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateSpecVersionInfo.cs @@ -0,0 +1,70 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// High-level information about a Template Spec version. + /// + public partial class TemplateSpecVersionInfo + { + /// + /// Initializes a new instance of the TemplateSpecVersionInfo class. + /// + public TemplateSpecVersionInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TemplateSpecVersionInfo class. + /// + /// Template Spec version + /// description. + /// The timestamp of when the version was + /// created. + /// The timestamp of when the version was + /// last modified. + public TemplateSpecVersionInfo(string description = default(string), System.DateTime? timeCreated = default(System.DateTime?), System.DateTime? timeModified = default(System.DateTime?)) + { + Description = description; + TimeCreated = timeCreated; + TimeModified = timeModified; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets template Spec version description. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; private set; } + + /// + /// Gets the timestamp of when the version was created. + /// + [JsonProperty(PropertyName = "timeCreated")] + public System.DateTime? TimeCreated { get; private set; } + + /// + /// Gets the timestamp of when the version was last modified. + /// + [JsonProperty(PropertyName = "timeModified")] + public System.DateTime? TimeModified { get; private set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateSpecVersionUpdateModel.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateSpecVersionUpdateModel.cs new file mode 100644 index 000000000000..e359edac1017 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateSpecVersionUpdateModel.cs @@ -0,0 +1,63 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Template Spec Version properties to be updated (only tags are currently + /// supported). + /// + public partial class TemplateSpecVersionUpdateModel : AzureResourceBase + { + /// + /// Initializes a new instance of the TemplateSpecVersionUpdateModel + /// class. + /// + public TemplateSpecVersionUpdateModel() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TemplateSpecVersionUpdateModel + /// class. + /// + /// String Id used to locate any resource on + /// Azure. + /// Name of this resource. + /// Type of this resource. + /// Azure Resource Manager metadata containing + /// createdBy and modifiedBy information. + /// Resource tags. + public TemplateSpecVersionUpdateModel(string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), IDictionary tags = default(IDictionary)) + : base(id, name, type, systemData) + { + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets resource tags. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateSpecsError.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateSpecsError.cs new file mode 100644 index 000000000000..f9e6a3de0652 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateSpecsError.cs @@ -0,0 +1,49 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Template Specs error response. + /// + public partial class TemplateSpecsError + { + /// + /// Initializes a new instance of the TemplateSpecsError class. + /// + public TemplateSpecsError() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TemplateSpecsError class. + /// + public TemplateSpecsError(ErrorResponse error = default(ErrorResponse)) + { + Error = error; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "error")] + public ErrorResponse Error { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateSpecsErrorException.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateSpecsErrorException.cs new file mode 100644 index 000000000000..071c2e524716 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TemplateSpecsErrorException.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + + /// + /// Exception thrown for an invalid response with TemplateSpecsError + /// information. + /// + public partial class TemplateSpecsErrorException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public TemplateSpecsError Body { get; set; } + + /// + /// Initializes a new instance of the TemplateSpecsErrorException class. + /// + public TemplateSpecsErrorException() + { + } + + /// + /// Initializes a new instance of the TemplateSpecsErrorException class. + /// + /// The exception message. + public TemplateSpecsErrorException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the TemplateSpecsErrorException class. + /// + /// The exception message. + /// Inner exception. + public TemplateSpecsErrorException(string message, System.Exception innerException) + : base(message, innerException) + { + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TenantCategory.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TenantCategory.cs new file mode 100644 index 000000000000..1d6f7dc343df --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TenantCategory.cs @@ -0,0 +1,66 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for TenantCategory. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum TenantCategory + { + [EnumMember(Value = "Home")] + Home, + [EnumMember(Value = "ProjectedBy")] + ProjectedBy, + [EnumMember(Value = "ManagedBy")] + ManagedBy + } + internal static class TenantCategoryEnumExtension + { + internal static string ToSerializedValue(this TenantCategory? value) + { + return value == null ? null : ((TenantCategory)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this TenantCategory value) + { + switch( value ) + { + case TenantCategory.Home: + return "Home"; + case TenantCategory.ProjectedBy: + return "ProjectedBy"; + case TenantCategory.ManagedBy: + return "ManagedBy"; + } + return null; + } + + internal static TenantCategory? ParseTenantCategory(this string value) + { + switch( value ) + { + case "Home": + return TenantCategory.Home; + case "ProjectedBy": + return TenantCategory.ProjectedBy; + case "ManagedBy": + return TenantCategory.ManagedBy; + } + return null; + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TenantIdDescription.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TenantIdDescription.cs new file mode 100644 index 000000000000..c2d84fc0cdb3 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/TenantIdDescription.cs @@ -0,0 +1,137 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Tenant Id information. + /// + public partial class TenantIdDescription + { + /// + /// Initializes a new instance of the TenantIdDescription class. + /// + public TenantIdDescription() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TenantIdDescription class. + /// + /// The fully qualified ID of the tenant. For example, + /// /tenants/00000000-0000-0000-0000-000000000000. + /// The tenant ID. For example, + /// 00000000-0000-0000-0000-000000000000. + /// Category of the tenant. Possible + /// values include: 'Home', 'ProjectedBy', 'ManagedBy' + /// Country/region name of the address for the + /// tenant. + /// Country/region abbreviation for the + /// tenant. + /// The display name of the tenant. + /// The list of domains for the tenant. + /// The default domain for the + /// tenant. + /// The tenant type. Only available for 'Home' + /// tenant category. + /// The tenant's branding logo URL. + /// Only available for 'Home' tenant category. + public TenantIdDescription(string id = default(string), string tenantId = default(string), TenantCategory? tenantCategory = default(TenantCategory?), string country = default(string), string countryCode = default(string), string displayName = default(string), IList domains = default(IList), string defaultDomain = default(string), string tenantType = default(string), string tenantBrandingLogoUrl = default(string)) + { + Id = id; + TenantId = tenantId; + TenantCategory = tenantCategory; + Country = country; + CountryCode = countryCode; + DisplayName = displayName; + Domains = domains; + DefaultDomain = defaultDomain; + TenantType = tenantType; + TenantBrandingLogoUrl = tenantBrandingLogoUrl; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the fully qualified ID of the tenant. For example, + /// /tenants/00000000-0000-0000-0000-000000000000. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the tenant ID. For example, + /// 00000000-0000-0000-0000-000000000000. + /// + [JsonProperty(PropertyName = "tenantId")] + public string TenantId { get; private set; } + + /// + /// Gets category of the tenant. Possible values include: 'Home', + /// 'ProjectedBy', 'ManagedBy' + /// + [JsonProperty(PropertyName = "tenantCategory")] + public TenantCategory? TenantCategory { get; private set; } + + /// + /// Gets country/region name of the address for the tenant. + /// + [JsonProperty(PropertyName = "country")] + public string Country { get; private set; } + + /// + /// Gets country/region abbreviation for the tenant. + /// + [JsonProperty(PropertyName = "countryCode")] + public string CountryCode { get; private set; } + + /// + /// Gets the display name of the tenant. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; private set; } + + /// + /// Gets the list of domains for the tenant. + /// + [JsonProperty(PropertyName = "domains")] + public IList Domains { get; private set; } + + /// + /// Gets the default domain for the tenant. + /// + [JsonProperty(PropertyName = "defaultDomain")] + public string DefaultDomain { get; private set; } + + /// + /// Gets the tenant type. Only available for 'Home' tenant category. + /// + [JsonProperty(PropertyName = "tenantType")] + public string TenantType { get; private set; } + + /// + /// Gets the tenant's branding logo URL. Only available for 'Home' + /// tenant category. + /// + [JsonProperty(PropertyName = "tenantBrandingLogoUrl")] + public string TenantBrandingLogoUrl { get; private set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/UserAssignedIdentity.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/UserAssignedIdentity.cs new file mode 100644 index 000000000000..bbbd58dd0a9b --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/UserAssignedIdentity.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// User-assigned managed identity. + /// + public partial class UserAssignedIdentity + { + /// + /// Initializes a new instance of the UserAssignedIdentity class. + /// + public UserAssignedIdentity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the UserAssignedIdentity class. + /// + /// Azure Active Directory principal ID + /// associated with this identity. + /// Client App Id associated with this + /// identity. + public UserAssignedIdentity(string principalId = default(string), string clientId = default(string)) + { + PrincipalId = principalId; + ClientId = clientId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets azure Active Directory principal ID associated with this + /// identity. + /// + [JsonProperty(PropertyName = "principalId")] + public string PrincipalId { get; private set; } + + /// + /// Gets client App Id associated with this identity. + /// + [JsonProperty(PropertyName = "clientId")] + public string ClientId { get; private set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/WhatIfChange.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/WhatIfChange.cs new file mode 100644 index 000000000000..7a71e354bfa2 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/WhatIfChange.cs @@ -0,0 +1,130 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Information about a single resource change predicted by What-If + /// operation. + /// + public partial class WhatIfChange + { + /// + /// Initializes a new instance of the WhatIfChange class. + /// + public WhatIfChange() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WhatIfChange class. + /// + /// Resource ID + /// Type of change that will be made to the + /// resource when the deployment is executed. Possible values include: + /// 'Create', 'Delete', 'Ignore', 'Deploy', 'NoChange', 'Modify', + /// 'Unsupported' + /// The explanation about why the + /// resource is unsupported by What-If. + /// The snapshot of the resource before the + /// deployment is executed. + /// The predicted snapshot of the resource after + /// the deployment is executed. + /// The predicted changes to resource + /// properties. + public WhatIfChange(string resourceId, ChangeType changeType, string unsupportedReason = default(string), object before = default(object), object after = default(object), IList delta = default(IList)) + { + ResourceId = resourceId; + ChangeType = changeType; + UnsupportedReason = unsupportedReason; + Before = before; + After = after; + Delta = delta; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets resource ID + /// + [JsonProperty(PropertyName = "resourceId")] + public string ResourceId { get; set; } + + /// + /// Gets or sets type of change that will be made to the resource when + /// the deployment is executed. Possible values include: 'Create', + /// 'Delete', 'Ignore', 'Deploy', 'NoChange', 'Modify', 'Unsupported' + /// + [JsonProperty(PropertyName = "changeType")] + public ChangeType ChangeType { get; set; } + + /// + /// Gets or sets the explanation about why the resource is unsupported + /// by What-If. + /// + [JsonProperty(PropertyName = "unsupportedReason")] + public string UnsupportedReason { get; set; } + + /// + /// Gets or sets the snapshot of the resource before the deployment is + /// executed. + /// + [JsonProperty(PropertyName = "before")] + public object Before { get; set; } + + /// + /// Gets or sets the predicted snapshot of the resource after the + /// deployment is executed. + /// + [JsonProperty(PropertyName = "after")] + public object After { get; set; } + + /// + /// Gets or sets the predicted changes to resource properties. + /// + [JsonProperty(PropertyName = "delta")] + public IList Delta { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (ResourceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ResourceId"); + } + if (Delta != null) + { + foreach (var element in Delta) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/WhatIfOperationResult.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/WhatIfOperationResult.cs new file mode 100644 index 000000000000..228dda9b7e85 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/WhatIfOperationResult.cs @@ -0,0 +1,75 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Result of the What-If operation. Contains a list of predicted changes + /// and a URL link to get to the next set of results. + /// + [Rest.Serialization.JsonTransformation] + public partial class WhatIfOperationResult + { + /// + /// Initializes a new instance of the WhatIfOperationResult class. + /// + public WhatIfOperationResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WhatIfOperationResult class. + /// + /// Status of the What-If operation. + /// List of resource changes predicted by What-If + /// operation. + /// Error when What-If operation fails. + public WhatIfOperationResult(string status = default(string), IList changes = default(IList), ErrorResponse error = default(ErrorResponse)) + { + Status = status; + Changes = changes; + Error = error; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets status of the What-If operation. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets list of resource changes predicted by What-If + /// operation. + /// + [JsonProperty(PropertyName = "properties.changes")] + public IList Changes { get; set; } + + /// + /// Gets or sets error when What-If operation fails. + /// + [JsonProperty(PropertyName = "error")] + public ErrorResponse Error { get; set; } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/WhatIfPropertyChange.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/WhatIfPropertyChange.cs new file mode 100644 index 000000000000..23c13817b193 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/WhatIfPropertyChange.cs @@ -0,0 +1,116 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The predicted change to the resource property. + /// + public partial class WhatIfPropertyChange + { + /// + /// Initializes a new instance of the WhatIfPropertyChange class. + /// + public WhatIfPropertyChange() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the WhatIfPropertyChange class. + /// + /// The path of the property. + /// The type of property change. + /// Possible values include: 'Create', 'Delete', 'Modify', 'Array', + /// 'NoEffect' + /// The value of the property before the + /// deployment is executed. + /// The value of the property after the deployment + /// is executed. + /// Nested property changes. + public WhatIfPropertyChange(string path, PropertyChangeType propertyChangeType, object before = default(object), object after = default(object), IList children = default(IList)) + { + Path = path; + PropertyChangeType = propertyChangeType; + Before = before; + After = after; + Children = children; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the path of the property. + /// + [JsonProperty(PropertyName = "path")] + public string Path { get; set; } + + /// + /// Gets or sets the type of property change. Possible values include: + /// 'Create', 'Delete', 'Modify', 'Array', 'NoEffect' + /// + [JsonProperty(PropertyName = "propertyChangeType")] + public PropertyChangeType PropertyChangeType { get; set; } + + /// + /// Gets or sets the value of the property before the deployment is + /// executed. + /// + [JsonProperty(PropertyName = "before")] + public object Before { get; set; } + + /// + /// Gets or sets the value of the property after the deployment is + /// executed. + /// + [JsonProperty(PropertyName = "after")] + public object After { get; set; } + + /// + /// Gets or sets nested property changes. + /// + [JsonProperty(PropertyName = "children")] + public IList Children { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Path == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Path"); + } + if (Children != null) + { + foreach (var element in Children) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/WhatIfResultFormat.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/WhatIfResultFormat.cs new file mode 100644 index 000000000000..90b203230afe --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Models/WhatIfResultFormat.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for WhatIfResultFormat. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum WhatIfResultFormat + { + [EnumMember(Value = "ResourceIdOnly")] + ResourceIdOnly, + [EnumMember(Value = "FullResourcePayloads")] + FullResourcePayloads + } + internal static class WhatIfResultFormatEnumExtension + { + internal static string ToSerializedValue(this WhatIfResultFormat? value) + { + return value == null ? null : ((WhatIfResultFormat)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this WhatIfResultFormat value) + { + switch( value ) + { + case WhatIfResultFormat.ResourceIdOnly: + return "ResourceIdOnly"; + case WhatIfResultFormat.FullResourcePayloads: + return "FullResourcePayloads"; + } + return null; + } + + internal static WhatIfResultFormat? ParseWhatIfResultFormat(this string value) + { + switch( value ) + { + case "ResourceIdOnly": + return WhatIfResultFormat.ResourceIdOnly; + case "FullResourcePayloads": + return WhatIfResultFormat.FullResourcePayloads; + } + return null; + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Operations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Operations.cs new file mode 100644 index 000000000000..fe52289b96c7 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/Operations.cs @@ -0,0 +1,400 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Operations operations. + /// + internal partial class Operations : IServiceOperations, IOperations + { + /// + /// Initializes a new instance of the Operations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal Operations(ManagementLinkClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the ManagementLinkClient + /// + public ManagementLinkClient Client { get; private set; } + + /// + /// Lists all of the available Microsoft.Resources REST API operations. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Resources/operations").ToString(); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all of the available Microsoft.Resources REST API operations. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/OperationsExtensions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/OperationsExtensions.cs new file mode 100644 index 000000000000..ac83409fa4dc --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/OperationsExtensions.cs @@ -0,0 +1,87 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for Operations. + /// + public static partial class OperationsExtensions + { + /// + /// Lists all of the available Microsoft.Resources REST API operations. + /// + /// + /// The operations group for this extension method. + /// + public static IPage List(this IOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Lists all of the available Microsoft.Resources REST API operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all of the available Microsoft.Resources REST API operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all of the available Microsoft.Resources REST API operations. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicyAssignmentsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicyAssignmentsOperations.cs new file mode 100644 index 000000000000..f822a6604454 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicyAssignmentsOperations.cs @@ -0,0 +1,3002 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// PolicyAssignmentsOperations operations. + /// + internal partial class PolicyAssignmentsOperations : IServiceOperations, IPolicyAssignmentsOperations + { + /// + /// Initializes a new instance of the PolicyAssignmentsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal PolicyAssignmentsOperations(PolicyClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the PolicyClient + /// + public PolicyClient Client { get; private set; } + + /// + /// Deletes a policy assignment. + /// + /// + /// This operation deletes a policy assignment, given its name and the scope it + /// was created in. The scope of a policy assignment is the part of its ID + /// preceding + /// '/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// + /// + /// The scope of the policy assignment. Valid scopes are: management group + /// (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource group + /// (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or + /// resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + /// + /// The name of the policy assignment to delete. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> DeleteWithHttpMessagesAsync(string scope, string policyAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (policyAssignmentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "policyAssignmentName"); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("scope", scope); + tracingParameters.Add("policyAssignmentName", policyAssignmentName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}").ToString(); + _url = _url.Replace("{scope}", scope); + _url = _url.Replace("{policyAssignmentName}", System.Uri.EscapeDataString(policyAssignmentName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates a policy assignment. + /// + /// + /// This operation creates or updates a policy assignment with the given scope + /// and name. Policy assignments apply to all resources contained within their + /// scope. For example, when you assign a policy at resource group scope, that + /// policy applies to all resources in the group. + /// + /// + /// The scope of the policy assignment. Valid scopes are: management group + /// (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource group + /// (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or + /// resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + /// + /// The name of the policy assignment. + /// + /// + /// Parameters for the policy assignment. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateWithHttpMessagesAsync(string scope, string policyAssignmentName, PolicyAssignment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (policyAssignmentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "policyAssignmentName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("scope", scope); + tracingParameters.Add("policyAssignmentName", policyAssignmentName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Create", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}").ToString(); + _url = _url.Replace("{scope}", scope); + _url = _url.Replace("{policyAssignmentName}", System.Uri.EscapeDataString(policyAssignmentName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves a policy assignment. + /// + /// + /// This operation retrieves a single policy assignment, given its name and the + /// scope it was created at. + /// + /// + /// The scope of the policy assignment. Valid scopes are: management group + /// (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource group + /// (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or + /// resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + /// + /// The name of the policy assignment to get. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string scope, string policyAssignmentName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (policyAssignmentName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "policyAssignmentName"); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("scope", scope); + tracingParameters.Add("policyAssignmentName", policyAssignmentName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}").ToString(); + _url = _url.Replace("{scope}", scope); + _url = _url.Replace("{policyAssignmentName}", System.Uri.EscapeDataString(policyAssignmentName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves all policy assignments that apply to a resource group. + /// + /// + /// This operation retrieves the list of all policy assignments associated with + /// the given resource group in the given subscription that match the optional + /// given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()' + /// or 'policyDefinitionId eq '{value}''. If $filter is not provided, the + /// unfiltered list includes all policy assignments associated with the + /// resource group, including those that apply directly or apply from + /// containing scopes, as well as any applied to resources contained within the + /// resource group. If $filter=atScope() is provided, the returned list + /// includes all policy assignments that apply to the resource group, which is + /// everything in the unfiltered list except those applied to resources + /// contained within the resource group. If $filter=atExactScope() is provided, + /// the returned list only includes all policy assignments that at the resource + /// group. If $filter=policyDefinitionId eq '{value}' is provided, the returned + /// list includes all policy assignments of the policy definition whose id is + /// {value} that apply to the resource group. + /// + /// + /// The name of the resource group that contains policy assignments. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If + /// $filter is not provided, no filtering is performed. If $filter=atScope() is + /// provided, the returned list only includes all policy assignments that apply + /// to the scope, which is everything in the unfiltered list except those + /// applied to sub scopes contained within the given scope. If + /// $filter=atExactScope() is provided, the returned list only includes all + /// policy assignments that at the given scope. If $filter=policyDefinitionId + /// eq '{value}' is provided, the returned list includes all policy assignments + /// of the policy definition whose id is {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not provided, + /// it will return 500 records. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListForResourceGroupWithHttpMessagesAsync(string resourceGroupName, string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (top > 1000) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "top", 1000); + } + if (top < 1) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("filter", filter); + tracingParameters.Add("top", top); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListForResourceGroup", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", filter)); + } + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves all policy assignments that apply to a resource. + /// + /// + /// This operation retrieves the list of all policy assignments associated with + /// the specified resource in the given resource group and subscription that + /// match the optional given $filter. Valid values for $filter are: + /// 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If + /// $filter is not provided, the unfiltered list includes all policy + /// assignments associated with the resource, including those that apply + /// directly or from all containing scopes, as well as any applied to resources + /// contained within the resource. If $filter=atScope() is provided, the + /// returned list includes all policy assignments that apply to the resource, + /// which is everything in the unfiltered list except those applied to + /// resources contained within the resource. If $filter=atExactScope() is + /// provided, the returned list only includes all policy assignments that at + /// the resource level. If $filter=policyDefinitionId eq '{value}' is provided, + /// the returned list includes all policy assignments of the policy definition + /// whose id is {value} that apply to the resource. Three parameters plus the + /// resource name are used to identify a specific resource. If the resource is + /// not part of a parent resource (the more common case), the parent resource + /// path should not be provided (or provided as ''). For example a web app + /// could be specified as ({resourceProviderNamespace} == 'Microsoft.Web', + /// {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == + /// 'MyWebApp'). If the resource is part of a parent resource, then all + /// parameters should be provided. For example a virtual machine DNS name could + /// be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', + /// {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} + /// == 'domainNames', {resourceName} == 'MyComputerName'). A convenient + /// alternative to providing the namespace and type name separately is to + /// provide both in the {resourceType} parameter, format: + /// ({resourceProviderNamespace} == '', {parentResourcePath} == '', + /// {resourceType} == 'Microsoft.Web/sites', {resourceName} == 'MyWebApp'). + /// + /// + /// The name of the resource group containing the resource. + /// + /// + /// The namespace of the resource provider. For example, the namespace of a + /// virtual machine is Microsoft.Compute (from + /// Microsoft.Compute/virtualMachines) + /// + /// + /// The parent resource path. Use empty string if there is none. + /// + /// + /// The resource type name. For example the type name of a web app is 'sites' + /// (from Microsoft.Web/sites). + /// + /// + /// The name of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListForResourceWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (resourceProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceProviderNamespace"); + } + if (parentResourcePath == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parentResourcePath"); + } + if (resourceType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceType"); + } + if (resourceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("resourceProviderNamespace", resourceProviderNamespace); + tracingParameters.Add("parentResourcePath", parentResourcePath); + tracingParameters.Add("resourceType", resourceType); + tracingParameters.Add("resourceName", resourceName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListForResource", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyAssignments").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceProviderNamespace}", System.Uri.EscapeDataString(resourceProviderNamespace)); + _url = _url.Replace("{parentResourcePath}", parentResourcePath); + _url = _url.Replace("{resourceType}", resourceType); + _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves all policy assignments that apply to a management group. + /// + /// + /// This operation retrieves the list of all policy assignments applicable to + /// the management group that match the given $filter. Valid values for $filter + /// are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If + /// $filter=atScope() is provided, the returned list includes all policy + /// assignments that are assigned to the management group or the management + /// group's ancestors. If $filter=atExactScope() is provided, the returned list + /// only includes all policy assignments that at the management group. If + /// $filter=policyDefinitionId eq '{value}' is provided, the returned list + /// includes all policy assignments of the policy definition whose id is + /// {value} that apply to the management group. + /// + /// + /// The ID of the management group. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If + /// $filter is not provided, no filtering is performed. If $filter=atScope() is + /// provided, the returned list only includes all policy assignments that apply + /// to the scope, which is everything in the unfiltered list except those + /// applied to sub scopes contained within the given scope. If + /// $filter=atExactScope() is provided, the returned list only includes all + /// policy assignments that at the given scope. If $filter=policyDefinitionId + /// eq '{value}' is provided, the returned list includes all policy assignments + /// of the policy definition whose id is {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not provided, + /// it will return 500 records. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListForManagementGroupWithHttpMessagesAsync(string managementGroupId, string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (managementGroupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managementGroupId"); + } + if (top > 1000) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "top", 1000); + } + if (top < 1) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("managementGroupId", managementGroupId); + tracingParameters.Add("filter", filter); + tracingParameters.Add("top", top); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListForManagementGroup", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyAssignments").ToString(); + _url = _url.Replace("{managementGroupId}", System.Uri.EscapeDataString(managementGroupId)); + List _queryParameters = new List(); + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", filter)); + } + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves all policy assignments that apply to a subscription. + /// + /// + /// This operation retrieves the list of all policy assignments associated with + /// the given subscription that match the optional given $filter. Valid values + /// for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy assignments associated with the subscription, including those that + /// apply directly or from management groups that contain the given + /// subscription, as well as any applied to objects contained within the + /// subscription. If $filter=atScope() is provided, the returned list includes + /// all policy assignments that apply to the subscription, which is everything + /// in the unfiltered list except those applied to objects contained within the + /// subscription. If $filter=atExactScope() is provided, the returned list only + /// includes all policy assignments that at the subscription. If + /// $filter=policyDefinitionId eq '{value}' is provided, the returned list + /// includes all policy assignments of the policy definition whose id is + /// {value}. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyAssignments").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a policy assignment. + /// + /// + /// This operation deletes the policy with the given ID. Policy assignment IDs + /// have this format: + /// '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// Valid formats for {scope} are: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}' + /// (management group), '/subscriptions/{subscriptionId}' (subscription), + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' + /// (resource group), or + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// (resource). + /// + /// + /// The ID of the policy assignment to delete. Use the format + /// '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> DeleteByIdWithHttpMessagesAsync(string policyAssignmentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (policyAssignmentId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "policyAssignmentId"); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("policyAssignmentId", policyAssignmentId); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "DeleteById", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{policyAssignmentId}").ToString(); + _url = _url.Replace("{policyAssignmentId}", policyAssignmentId); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates a policy assignment. + /// + /// + /// This operation creates or updates the policy assignment with the given ID. + /// Policy assignments made on a scope apply to all resources contained in that + /// scope. For example, when you assign a policy to a resource group that + /// policy applies to all resources in the group. Policy assignment IDs have + /// this format: + /// '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// Valid scopes are: management group (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource group + /// (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or + /// resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. + /// + /// + /// The ID of the policy assignment to create. Use the format + /// '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// + /// + /// Parameters for policy assignment. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateByIdWithHttpMessagesAsync(string policyAssignmentId, PolicyAssignment parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (policyAssignmentId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "policyAssignmentId"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("policyAssignmentId", policyAssignmentId); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateById", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{policyAssignmentId}").ToString(); + _url = _url.Replace("{policyAssignmentId}", policyAssignmentId); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves the policy assignment with the given ID. + /// + /// + /// The operation retrieves the policy assignment with the given ID. Policy + /// assignment IDs have this format: + /// '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// Valid scopes are: management group (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource group + /// (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or + /// resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. + /// + /// + /// The ID of the policy assignment to get. Use the format + /// '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetByIdWithHttpMessagesAsync(string policyAssignmentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (policyAssignmentId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "policyAssignmentId"); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("policyAssignmentId", policyAssignmentId); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetById", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{policyAssignmentId}").ToString(); + _url = _url.Replace("{policyAssignmentId}", policyAssignmentId); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves all policy assignments that apply to a resource group. + /// + /// + /// This operation retrieves the list of all policy assignments associated with + /// the given resource group in the given subscription that match the optional + /// given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()' + /// or 'policyDefinitionId eq '{value}''. If $filter is not provided, the + /// unfiltered list includes all policy assignments associated with the + /// resource group, including those that apply directly or apply from + /// containing scopes, as well as any applied to resources contained within the + /// resource group. If $filter=atScope() is provided, the returned list + /// includes all policy assignments that apply to the resource group, which is + /// everything in the unfiltered list except those applied to resources + /// contained within the resource group. If $filter=atExactScope() is provided, + /// the returned list only includes all policy assignments that at the resource + /// group. If $filter=policyDefinitionId eq '{value}' is provided, the returned + /// list includes all policy assignments of the policy definition whose id is + /// {value} that apply to the resource group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListForResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListForResourceGroupNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves all policy assignments that apply to a resource. + /// + /// + /// This operation retrieves the list of all policy assignments associated with + /// the specified resource in the given resource group and subscription that + /// match the optional given $filter. Valid values for $filter are: + /// 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If + /// $filter is not provided, the unfiltered list includes all policy + /// assignments associated with the resource, including those that apply + /// directly or from all containing scopes, as well as any applied to resources + /// contained within the resource. If $filter=atScope() is provided, the + /// returned list includes all policy assignments that apply to the resource, + /// which is everything in the unfiltered list except those applied to + /// resources contained within the resource. If $filter=atExactScope() is + /// provided, the returned list only includes all policy assignments that at + /// the resource level. If $filter=policyDefinitionId eq '{value}' is provided, + /// the returned list includes all policy assignments of the policy definition + /// whose id is {value} that apply to the resource. Three parameters plus the + /// resource name are used to identify a specific resource. If the resource is + /// not part of a parent resource (the more common case), the parent resource + /// path should not be provided (or provided as ''). For example a web app + /// could be specified as ({resourceProviderNamespace} == 'Microsoft.Web', + /// {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == + /// 'MyWebApp'). If the resource is part of a parent resource, then all + /// parameters should be provided. For example a virtual machine DNS name could + /// be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', + /// {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} + /// == 'domainNames', {resourceName} == 'MyComputerName'). A convenient + /// alternative to providing the namespace and type name separately is to + /// provide both in the {resourceType} parameter, format: + /// ({resourceProviderNamespace} == '', {parentResourcePath} == '', + /// {resourceType} == 'Microsoft.Web/sites', {resourceName} == 'MyWebApp'). + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListForResourceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListForResourceNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves all policy assignments that apply to a management group. + /// + /// + /// This operation retrieves the list of all policy assignments applicable to + /// the management group that match the given $filter. Valid values for $filter + /// are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If + /// $filter=atScope() is provided, the returned list includes all policy + /// assignments that are assigned to the management group or the management + /// group's ancestors. If $filter=atExactScope() is provided, the returned list + /// only includes all policy assignments that at the management group. If + /// $filter=policyDefinitionId eq '{value}' is provided, the returned list + /// includes all policy assignments of the policy definition whose id is + /// {value} that apply to the management group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListForManagementGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListForManagementGroupNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves all policy assignments that apply to a subscription. + /// + /// + /// This operation retrieves the list of all policy assignments associated with + /// the given subscription that match the optional given $filter. Valid values + /// for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy assignments associated with the subscription, including those that + /// apply directly or from management groups that contain the given + /// subscription, as well as any applied to objects contained within the + /// subscription. If $filter=atScope() is provided, the returned list includes + /// all policy assignments that apply to the subscription, which is everything + /// in the unfiltered list except those applied to objects contained within the + /// subscription. If $filter=atExactScope() is provided, the returned list only + /// includes all policy assignments that at the subscription. If + /// $filter=policyDefinitionId eq '{value}' is provided, the returned list + /// includes all policy assignments of the policy definition whose id is + /// {value}. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicyAssignmentsOperationsExtensions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicyAssignmentsOperationsExtensions.cs new file mode 100644 index 000000000000..5433cf6e473b --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicyAssignmentsOperationsExtensions.cs @@ -0,0 +1,1098 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for PolicyAssignmentsOperations. + /// + public static partial class PolicyAssignmentsOperationsExtensions + { + /// + /// Deletes a policy assignment. + /// + /// + /// This operation deletes a policy assignment, given its name and the scope it + /// was created in. The scope of a policy assignment is the part of its ID + /// preceding + /// '/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The scope of the policy assignment. Valid scopes are: management group + /// (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource group + /// (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or + /// resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + /// + /// The name of the policy assignment to delete. + /// + public static PolicyAssignment Delete(this IPolicyAssignmentsOperations operations, string scope, string policyAssignmentName) + { + return operations.DeleteAsync(scope, policyAssignmentName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a policy assignment. + /// + /// + /// This operation deletes a policy assignment, given its name and the scope it + /// was created in. The scope of a policy assignment is the part of its ID + /// preceding + /// '/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The scope of the policy assignment. Valid scopes are: management group + /// (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource group + /// (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or + /// resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + /// + /// The name of the policy assignment to delete. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IPolicyAssignmentsOperations operations, string scope, string policyAssignmentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeleteWithHttpMessagesAsync(scope, policyAssignmentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a policy assignment. + /// + /// + /// This operation creates or updates a policy assignment with the given scope + /// and name. Policy assignments apply to all resources contained within their + /// scope. For example, when you assign a policy at resource group scope, that + /// policy applies to all resources in the group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The scope of the policy assignment. Valid scopes are: management group + /// (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource group + /// (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or + /// resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + /// + /// The name of the policy assignment. + /// + /// + /// Parameters for the policy assignment. + /// + public static PolicyAssignment Create(this IPolicyAssignmentsOperations operations, string scope, string policyAssignmentName, PolicyAssignment parameters) + { + return operations.CreateAsync(scope, policyAssignmentName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a policy assignment. + /// + /// + /// This operation creates or updates a policy assignment with the given scope + /// and name. Policy assignments apply to all resources contained within their + /// scope. For example, when you assign a policy at resource group scope, that + /// policy applies to all resources in the group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The scope of the policy assignment. Valid scopes are: management group + /// (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource group + /// (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or + /// resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + /// + /// The name of the policy assignment. + /// + /// + /// Parameters for the policy assignment. + /// + /// + /// The cancellation token. + /// + public static async Task CreateAsync(this IPolicyAssignmentsOperations operations, string scope, string policyAssignmentName, PolicyAssignment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateWithHttpMessagesAsync(scope, policyAssignmentName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves a policy assignment. + /// + /// + /// This operation retrieves a single policy assignment, given its name and the + /// scope it was created at. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The scope of the policy assignment. Valid scopes are: management group + /// (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource group + /// (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or + /// resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + /// + /// The name of the policy assignment to get. + /// + public static PolicyAssignment Get(this IPolicyAssignmentsOperations operations, string scope, string policyAssignmentName) + { + return operations.GetAsync(scope, policyAssignmentName).GetAwaiter().GetResult(); + } + + /// + /// Retrieves a policy assignment. + /// + /// + /// This operation retrieves a single policy assignment, given its name and the + /// scope it was created at. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The scope of the policy assignment. Valid scopes are: management group + /// (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource group + /// (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or + /// resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + /// + /// The name of the policy assignment to get. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IPolicyAssignmentsOperations operations, string scope, string policyAssignmentName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(scope, policyAssignmentName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves all policy assignments that apply to a resource group. + /// + /// + /// This operation retrieves the list of all policy assignments associated with + /// the given resource group in the given subscription that match the optional + /// given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()' + /// or 'policyDefinitionId eq '{value}''. If $filter is not provided, the + /// unfiltered list includes all policy assignments associated with the + /// resource group, including those that apply directly or apply from + /// containing scopes, as well as any applied to resources contained within the + /// resource group. If $filter=atScope() is provided, the returned list + /// includes all policy assignments that apply to the resource group, which is + /// everything in the unfiltered list except those applied to resources + /// contained within the resource group. If $filter=atExactScope() is provided, + /// the returned list only includes all policy assignments that at the resource + /// group. If $filter=policyDefinitionId eq '{value}' is provided, the returned + /// list includes all policy assignments of the policy definition whose id is + /// {value} that apply to the resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains policy assignments. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If + /// $filter is not provided, no filtering is performed. If $filter=atScope() is + /// provided, the returned list only includes all policy assignments that apply + /// to the scope, which is everything in the unfiltered list except those + /// applied to sub scopes contained within the given scope. If + /// $filter=atExactScope() is provided, the returned list only includes all + /// policy assignments that at the given scope. If $filter=policyDefinitionId + /// eq '{value}' is provided, the returned list includes all policy assignments + /// of the policy definition whose id is {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not provided, + /// it will return 500 records. + /// + public static IPage ListForResourceGroup(this IPolicyAssignmentsOperations operations, string resourceGroupName, string filter = default(string), int? top = default(int?)) + { + return operations.ListForResourceGroupAsync(resourceGroupName, filter, top).GetAwaiter().GetResult(); + } + + /// + /// Retrieves all policy assignments that apply to a resource group. + /// + /// + /// This operation retrieves the list of all policy assignments associated with + /// the given resource group in the given subscription that match the optional + /// given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()' + /// or 'policyDefinitionId eq '{value}''. If $filter is not provided, the + /// unfiltered list includes all policy assignments associated with the + /// resource group, including those that apply directly or apply from + /// containing scopes, as well as any applied to resources contained within the + /// resource group. If $filter=atScope() is provided, the returned list + /// includes all policy assignments that apply to the resource group, which is + /// everything in the unfiltered list except those applied to resources + /// contained within the resource group. If $filter=atExactScope() is provided, + /// the returned list only includes all policy assignments that at the resource + /// group. If $filter=policyDefinitionId eq '{value}' is provided, the returned + /// list includes all policy assignments of the policy definition whose id is + /// {value} that apply to the resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains policy assignments. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If + /// $filter is not provided, no filtering is performed. If $filter=atScope() is + /// provided, the returned list only includes all policy assignments that apply + /// to the scope, which is everything in the unfiltered list except those + /// applied to sub scopes contained within the given scope. If + /// $filter=atExactScope() is provided, the returned list only includes all + /// policy assignments that at the given scope. If $filter=policyDefinitionId + /// eq '{value}' is provided, the returned list includes all policy assignments + /// of the policy definition whose id is {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not provided, + /// it will return 500 records. + /// + /// + /// The cancellation token. + /// + public static async Task> ListForResourceGroupAsync(this IPolicyAssignmentsOperations operations, string resourceGroupName, string filter = default(string), int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListForResourceGroupWithHttpMessagesAsync(resourceGroupName, filter, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves all policy assignments that apply to a resource. + /// + /// + /// This operation retrieves the list of all policy assignments associated with + /// the specified resource in the given resource group and subscription that + /// match the optional given $filter. Valid values for $filter are: + /// 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If + /// $filter is not provided, the unfiltered list includes all policy + /// assignments associated with the resource, including those that apply + /// directly or from all containing scopes, as well as any applied to resources + /// contained within the resource. If $filter=atScope() is provided, the + /// returned list includes all policy assignments that apply to the resource, + /// which is everything in the unfiltered list except those applied to + /// resources contained within the resource. If $filter=atExactScope() is + /// provided, the returned list only includes all policy assignments that at + /// the resource level. If $filter=policyDefinitionId eq '{value}' is provided, + /// the returned list includes all policy assignments of the policy definition + /// whose id is {value} that apply to the resource. Three parameters plus the + /// resource name are used to identify a specific resource. If the resource is + /// not part of a parent resource (the more common case), the parent resource + /// path should not be provided (or provided as ''). For example a web app + /// could be specified as ({resourceProviderNamespace} == 'Microsoft.Web', + /// {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == + /// 'MyWebApp'). If the resource is part of a parent resource, then all + /// parameters should be provided. For example a virtual machine DNS name could + /// be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', + /// {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} + /// == 'domainNames', {resourceName} == 'MyComputerName'). A convenient + /// alternative to providing the namespace and type name separately is to + /// provide both in the {resourceType} parameter, format: + /// ({resourceProviderNamespace} == '', {parentResourcePath} == '', + /// {resourceType} == 'Microsoft.Web/sites', {resourceName} == 'MyWebApp'). + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group containing the resource. + /// + /// + /// The namespace of the resource provider. For example, the namespace of a + /// virtual machine is Microsoft.Compute (from + /// Microsoft.Compute/virtualMachines) + /// + /// + /// The parent resource path. Use empty string if there is none. + /// + /// + /// The resource type name. For example the type name of a web app is 'sites' + /// (from Microsoft.Web/sites). + /// + /// + /// The name of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage ListForResource(this IPolicyAssignmentsOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, ODataQuery odataQuery = default(ODataQuery)) + { + return operations.ListForResourceAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Retrieves all policy assignments that apply to a resource. + /// + /// + /// This operation retrieves the list of all policy assignments associated with + /// the specified resource in the given resource group and subscription that + /// match the optional given $filter. Valid values for $filter are: + /// 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If + /// $filter is not provided, the unfiltered list includes all policy + /// assignments associated with the resource, including those that apply + /// directly or from all containing scopes, as well as any applied to resources + /// contained within the resource. If $filter=atScope() is provided, the + /// returned list includes all policy assignments that apply to the resource, + /// which is everything in the unfiltered list except those applied to + /// resources contained within the resource. If $filter=atExactScope() is + /// provided, the returned list only includes all policy assignments that at + /// the resource level. If $filter=policyDefinitionId eq '{value}' is provided, + /// the returned list includes all policy assignments of the policy definition + /// whose id is {value} that apply to the resource. Three parameters plus the + /// resource name are used to identify a specific resource. If the resource is + /// not part of a parent resource (the more common case), the parent resource + /// path should not be provided (or provided as ''). For example a web app + /// could be specified as ({resourceProviderNamespace} == 'Microsoft.Web', + /// {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == + /// 'MyWebApp'). If the resource is part of a parent resource, then all + /// parameters should be provided. For example a virtual machine DNS name could + /// be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', + /// {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} + /// == 'domainNames', {resourceName} == 'MyComputerName'). A convenient + /// alternative to providing the namespace and type name separately is to + /// provide both in the {resourceType} parameter, format: + /// ({resourceProviderNamespace} == '', {parentResourcePath} == '', + /// {resourceType} == 'Microsoft.Web/sites', {resourceName} == 'MyWebApp'). + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group containing the resource. + /// + /// + /// The namespace of the resource provider. For example, the namespace of a + /// virtual machine is Microsoft.Compute (from + /// Microsoft.Compute/virtualMachines) + /// + /// + /// The parent resource path. Use empty string if there is none. + /// + /// + /// The resource type name. For example the type name of a web app is 'sites' + /// (from Microsoft.Web/sites). + /// + /// + /// The name of the resource. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListForResourceAsync(this IPolicyAssignmentsOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListForResourceWithHttpMessagesAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves all policy assignments that apply to a management group. + /// + /// + /// This operation retrieves the list of all policy assignments applicable to + /// the management group that match the given $filter. Valid values for $filter + /// are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If + /// $filter=atScope() is provided, the returned list includes all policy + /// assignments that are assigned to the management group or the management + /// group's ancestors. If $filter=atExactScope() is provided, the returned list + /// only includes all policy assignments that at the management group. If + /// $filter=policyDefinitionId eq '{value}' is provided, the returned list + /// includes all policy assignments of the policy definition whose id is + /// {value} that apply to the management group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The ID of the management group. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If + /// $filter is not provided, no filtering is performed. If $filter=atScope() is + /// provided, the returned list only includes all policy assignments that apply + /// to the scope, which is everything in the unfiltered list except those + /// applied to sub scopes contained within the given scope. If + /// $filter=atExactScope() is provided, the returned list only includes all + /// policy assignments that at the given scope. If $filter=policyDefinitionId + /// eq '{value}' is provided, the returned list includes all policy assignments + /// of the policy definition whose id is {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not provided, + /// it will return 500 records. + /// + public static IPage ListForManagementGroup(this IPolicyAssignmentsOperations operations, string managementGroupId, string filter = default(string), int? top = default(int?)) + { + return operations.ListForManagementGroupAsync(managementGroupId, filter, top).GetAwaiter().GetResult(); + } + + /// + /// Retrieves all policy assignments that apply to a management group. + /// + /// + /// This operation retrieves the list of all policy assignments applicable to + /// the management group that match the given $filter. Valid values for $filter + /// are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If + /// $filter=atScope() is provided, the returned list includes all policy + /// assignments that are assigned to the management group or the management + /// group's ancestors. If $filter=atExactScope() is provided, the returned list + /// only includes all policy assignments that at the management group. If + /// $filter=policyDefinitionId eq '{value}' is provided, the returned list + /// includes all policy assignments of the policy definition whose id is + /// {value} that apply to the management group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The ID of the management group. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If + /// $filter is not provided, no filtering is performed. If $filter=atScope() is + /// provided, the returned list only includes all policy assignments that apply + /// to the scope, which is everything in the unfiltered list except those + /// applied to sub scopes contained within the given scope. If + /// $filter=atExactScope() is provided, the returned list only includes all + /// policy assignments that at the given scope. If $filter=policyDefinitionId + /// eq '{value}' is provided, the returned list includes all policy assignments + /// of the policy definition whose id is {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not provided, + /// it will return 500 records. + /// + /// + /// The cancellation token. + /// + public static async Task> ListForManagementGroupAsync(this IPolicyAssignmentsOperations operations, string managementGroupId, string filter = default(string), int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListForManagementGroupWithHttpMessagesAsync(managementGroupId, filter, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves all policy assignments that apply to a subscription. + /// + /// + /// This operation retrieves the list of all policy assignments associated with + /// the given subscription that match the optional given $filter. Valid values + /// for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy assignments associated with the subscription, including those that + /// apply directly or from management groups that contain the given + /// subscription, as well as any applied to objects contained within the + /// subscription. If $filter=atScope() is provided, the returned list includes + /// all policy assignments that apply to the subscription, which is everything + /// in the unfiltered list except those applied to objects contained within the + /// subscription. If $filter=atExactScope() is provided, the returned list only + /// includes all policy assignments that at the subscription. If + /// $filter=policyDefinitionId eq '{value}' is provided, the returned list + /// includes all policy assignments of the policy definition whose id is + /// {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage List(this IPolicyAssignmentsOperations operations, ODataQuery odataQuery = default(ODataQuery)) + { + return operations.ListAsync(odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Retrieves all policy assignments that apply to a subscription. + /// + /// + /// This operation retrieves the list of all policy assignments associated with + /// the given subscription that match the optional given $filter. Valid values + /// for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy assignments associated with the subscription, including those that + /// apply directly or from management groups that contain the given + /// subscription, as well as any applied to objects contained within the + /// subscription. If $filter=atScope() is provided, the returned list includes + /// all policy assignments that apply to the subscription, which is everything + /// in the unfiltered list except those applied to objects contained within the + /// subscription. If $filter=atExactScope() is provided, the returned list only + /// includes all policy assignments that at the subscription. If + /// $filter=policyDefinitionId eq '{value}' is provided, the returned list + /// includes all policy assignments of the policy definition whose id is + /// {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IPolicyAssignmentsOperations operations, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a policy assignment. + /// + /// + /// This operation deletes the policy with the given ID. Policy assignment IDs + /// have this format: + /// '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// Valid formats for {scope} are: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}' + /// (management group), '/subscriptions/{subscriptionId}' (subscription), + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' + /// (resource group), or + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// (resource). + /// + /// + /// The operations group for this extension method. + /// + /// + /// The ID of the policy assignment to delete. Use the format + /// '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// + public static PolicyAssignment DeleteById(this IPolicyAssignmentsOperations operations, string policyAssignmentId) + { + return operations.DeleteByIdAsync(policyAssignmentId).GetAwaiter().GetResult(); + } + + /// + /// Deletes a policy assignment. + /// + /// + /// This operation deletes the policy with the given ID. Policy assignment IDs + /// have this format: + /// '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// Valid formats for {scope} are: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}' + /// (management group), '/subscriptions/{subscriptionId}' (subscription), + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' + /// (resource group), or + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// (resource). + /// + /// + /// The operations group for this extension method. + /// + /// + /// The ID of the policy assignment to delete. Use the format + /// '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteByIdAsync(this IPolicyAssignmentsOperations operations, string policyAssignmentId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.DeleteByIdWithHttpMessagesAsync(policyAssignmentId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a policy assignment. + /// + /// + /// This operation creates or updates the policy assignment with the given ID. + /// Policy assignments made on a scope apply to all resources contained in that + /// scope. For example, when you assign a policy to a resource group that + /// policy applies to all resources in the group. Policy assignment IDs have + /// this format: + /// '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// Valid scopes are: management group (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource group + /// (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or + /// resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The ID of the policy assignment to create. Use the format + /// '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// + /// + /// Parameters for policy assignment. + /// + public static PolicyAssignment CreateById(this IPolicyAssignmentsOperations operations, string policyAssignmentId, PolicyAssignment parameters) + { + return operations.CreateByIdAsync(policyAssignmentId, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a policy assignment. + /// + /// + /// This operation creates or updates the policy assignment with the given ID. + /// Policy assignments made on a scope apply to all resources contained in that + /// scope. For example, when you assign a policy to a resource group that + /// policy applies to all resources in the group. Policy assignment IDs have + /// this format: + /// '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// Valid scopes are: management group (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource group + /// (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or + /// resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The ID of the policy assignment to create. Use the format + /// '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// + /// + /// Parameters for policy assignment. + /// + /// + /// The cancellation token. + /// + public static async Task CreateByIdAsync(this IPolicyAssignmentsOperations operations, string policyAssignmentId, PolicyAssignment parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateByIdWithHttpMessagesAsync(policyAssignmentId, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves the policy assignment with the given ID. + /// + /// + /// The operation retrieves the policy assignment with the given ID. Policy + /// assignment IDs have this format: + /// '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// Valid scopes are: management group (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource group + /// (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or + /// resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The ID of the policy assignment to get. Use the format + /// '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// + public static PolicyAssignment GetById(this IPolicyAssignmentsOperations operations, string policyAssignmentId) + { + return operations.GetByIdAsync(policyAssignmentId).GetAwaiter().GetResult(); + } + + /// + /// Retrieves the policy assignment with the given ID. + /// + /// + /// The operation retrieves the policy assignment with the given ID. Policy + /// assignment IDs have this format: + /// '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// Valid scopes are: management group (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource group + /// (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or + /// resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The ID of the policy assignment to get. Use the format + /// '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. + /// + /// + /// The cancellation token. + /// + public static async Task GetByIdAsync(this IPolicyAssignmentsOperations operations, string policyAssignmentId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetByIdWithHttpMessagesAsync(policyAssignmentId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves all policy assignments that apply to a resource group. + /// + /// + /// This operation retrieves the list of all policy assignments associated with + /// the given resource group in the given subscription that match the optional + /// given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()' + /// or 'policyDefinitionId eq '{value}''. If $filter is not provided, the + /// unfiltered list includes all policy assignments associated with the + /// resource group, including those that apply directly or apply from + /// containing scopes, as well as any applied to resources contained within the + /// resource group. If $filter=atScope() is provided, the returned list + /// includes all policy assignments that apply to the resource group, which is + /// everything in the unfiltered list except those applied to resources + /// contained within the resource group. If $filter=atExactScope() is provided, + /// the returned list only includes all policy assignments that at the resource + /// group. If $filter=policyDefinitionId eq '{value}' is provided, the returned + /// list includes all policy assignments of the policy definition whose id is + /// {value} that apply to the resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListForResourceGroupNext(this IPolicyAssignmentsOperations operations, string nextPageLink) + { + return operations.ListForResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Retrieves all policy assignments that apply to a resource group. + /// + /// + /// This operation retrieves the list of all policy assignments associated with + /// the given resource group in the given subscription that match the optional + /// given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()' + /// or 'policyDefinitionId eq '{value}''. If $filter is not provided, the + /// unfiltered list includes all policy assignments associated with the + /// resource group, including those that apply directly or apply from + /// containing scopes, as well as any applied to resources contained within the + /// resource group. If $filter=atScope() is provided, the returned list + /// includes all policy assignments that apply to the resource group, which is + /// everything in the unfiltered list except those applied to resources + /// contained within the resource group. If $filter=atExactScope() is provided, + /// the returned list only includes all policy assignments that at the resource + /// group. If $filter=policyDefinitionId eq '{value}' is provided, the returned + /// list includes all policy assignments of the policy definition whose id is + /// {value} that apply to the resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListForResourceGroupNextAsync(this IPolicyAssignmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListForResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves all policy assignments that apply to a resource. + /// + /// + /// This operation retrieves the list of all policy assignments associated with + /// the specified resource in the given resource group and subscription that + /// match the optional given $filter. Valid values for $filter are: + /// 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If + /// $filter is not provided, the unfiltered list includes all policy + /// assignments associated with the resource, including those that apply + /// directly or from all containing scopes, as well as any applied to resources + /// contained within the resource. If $filter=atScope() is provided, the + /// returned list includes all policy assignments that apply to the resource, + /// which is everything in the unfiltered list except those applied to + /// resources contained within the resource. If $filter=atExactScope() is + /// provided, the returned list only includes all policy assignments that at + /// the resource level. If $filter=policyDefinitionId eq '{value}' is provided, + /// the returned list includes all policy assignments of the policy definition + /// whose id is {value} that apply to the resource. Three parameters plus the + /// resource name are used to identify a specific resource. If the resource is + /// not part of a parent resource (the more common case), the parent resource + /// path should not be provided (or provided as ''). For example a web app + /// could be specified as ({resourceProviderNamespace} == 'Microsoft.Web', + /// {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == + /// 'MyWebApp'). If the resource is part of a parent resource, then all + /// parameters should be provided. For example a virtual machine DNS name could + /// be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', + /// {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} + /// == 'domainNames', {resourceName} == 'MyComputerName'). A convenient + /// alternative to providing the namespace and type name separately is to + /// provide both in the {resourceType} parameter, format: + /// ({resourceProviderNamespace} == '', {parentResourcePath} == '', + /// {resourceType} == 'Microsoft.Web/sites', {resourceName} == 'MyWebApp'). + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListForResourceNext(this IPolicyAssignmentsOperations operations, string nextPageLink) + { + return operations.ListForResourceNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Retrieves all policy assignments that apply to a resource. + /// + /// + /// This operation retrieves the list of all policy assignments associated with + /// the specified resource in the given resource group and subscription that + /// match the optional given $filter. Valid values for $filter are: + /// 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If + /// $filter is not provided, the unfiltered list includes all policy + /// assignments associated with the resource, including those that apply + /// directly or from all containing scopes, as well as any applied to resources + /// contained within the resource. If $filter=atScope() is provided, the + /// returned list includes all policy assignments that apply to the resource, + /// which is everything in the unfiltered list except those applied to + /// resources contained within the resource. If $filter=atExactScope() is + /// provided, the returned list only includes all policy assignments that at + /// the resource level. If $filter=policyDefinitionId eq '{value}' is provided, + /// the returned list includes all policy assignments of the policy definition + /// whose id is {value} that apply to the resource. Three parameters plus the + /// resource name are used to identify a specific resource. If the resource is + /// not part of a parent resource (the more common case), the parent resource + /// path should not be provided (or provided as ''). For example a web app + /// could be specified as ({resourceProviderNamespace} == 'Microsoft.Web', + /// {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == + /// 'MyWebApp'). If the resource is part of a parent resource, then all + /// parameters should be provided. For example a virtual machine DNS name could + /// be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', + /// {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} + /// == 'domainNames', {resourceName} == 'MyComputerName'). A convenient + /// alternative to providing the namespace and type name separately is to + /// provide both in the {resourceType} parameter, format: + /// ({resourceProviderNamespace} == '', {parentResourcePath} == '', + /// {resourceType} == 'Microsoft.Web/sites', {resourceName} == 'MyWebApp'). + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListForResourceNextAsync(this IPolicyAssignmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListForResourceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves all policy assignments that apply to a management group. + /// + /// + /// This operation retrieves the list of all policy assignments applicable to + /// the management group that match the given $filter. Valid values for $filter + /// are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If + /// $filter=atScope() is provided, the returned list includes all policy + /// assignments that are assigned to the management group or the management + /// group's ancestors. If $filter=atExactScope() is provided, the returned list + /// only includes all policy assignments that at the management group. If + /// $filter=policyDefinitionId eq '{value}' is provided, the returned list + /// includes all policy assignments of the policy definition whose id is + /// {value} that apply to the management group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListForManagementGroupNext(this IPolicyAssignmentsOperations operations, string nextPageLink) + { + return operations.ListForManagementGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Retrieves all policy assignments that apply to a management group. + /// + /// + /// This operation retrieves the list of all policy assignments applicable to + /// the management group that match the given $filter. Valid values for $filter + /// are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If + /// $filter=atScope() is provided, the returned list includes all policy + /// assignments that are assigned to the management group or the management + /// group's ancestors. If $filter=atExactScope() is provided, the returned list + /// only includes all policy assignments that at the management group. If + /// $filter=policyDefinitionId eq '{value}' is provided, the returned list + /// includes all policy assignments of the policy definition whose id is + /// {value} that apply to the management group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListForManagementGroupNextAsync(this IPolicyAssignmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListForManagementGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves all policy assignments that apply to a subscription. + /// + /// + /// This operation retrieves the list of all policy assignments associated with + /// the given subscription that match the optional given $filter. Valid values + /// for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy assignments associated with the subscription, including those that + /// apply directly or from management groups that contain the given + /// subscription, as well as any applied to objects contained within the + /// subscription. If $filter=atScope() is provided, the returned list includes + /// all policy assignments that apply to the subscription, which is everything + /// in the unfiltered list except those applied to objects contained within the + /// subscription. If $filter=atExactScope() is provided, the returned list only + /// includes all policy assignments that at the subscription. If + /// $filter=policyDefinitionId eq '{value}' is provided, the returned list + /// includes all policy assignments of the policy definition whose id is + /// {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IPolicyAssignmentsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Retrieves all policy assignments that apply to a subscription. + /// + /// + /// This operation retrieves the list of all policy assignments associated with + /// the given subscription that match the optional given $filter. Valid values + /// for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy assignments associated with the subscription, including those that + /// apply directly or from management groups that contain the given + /// subscription, as well as any applied to objects contained within the + /// subscription. If $filter=atScope() is provided, the returned list includes + /// all policy assignments that apply to the subscription, which is everything + /// in the unfiltered list except those applied to objects contained within the + /// subscription. If $filter=atExactScope() is provided, the returned list only + /// includes all policy assignments that at the subscription. If + /// $filter=policyDefinitionId eq '{value}' is provided, the returned list + /// includes all policy assignments of the policy definition whose id is + /// {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IPolicyAssignmentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicyClient.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicyClient.cs new file mode 100644 index 000000000000..23185f10a2ba --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicyClient.cs @@ -0,0 +1,375 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + + public partial class PolicyClient : ServiceClient, IPolicyClient, IAzureClient + { + /// + /// The base URI of the service. + /// + public System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + public JsonSerializerSettings SerializationSettings { get; private set; } + + /// + /// Gets or sets json deserialization settings. + /// + public JsonSerializerSettings DeserializationSettings { get; private set; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + public ServiceClientCredentials Credentials { get; private set; } + + /// + /// The ID of the target subscription. + /// + public string SubscriptionId { get; set; } + + /// + /// The preferred language for the response. + /// + public string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default value is + /// 30. + /// + public int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. When set to + /// true a unique x-ms-client-request-id value is generated and included in + /// each request. Default is true. + /// + public bool? GenerateClientRequestId { get; set; } + + /// + /// Gets the IDataPolicyManifestsOperations. + /// + public virtual IDataPolicyManifestsOperations DataPolicyManifests { get; private set; } + + /// + /// Gets the IPolicyAssignmentsOperations. + /// + public virtual IPolicyAssignmentsOperations PolicyAssignments { get; private set; } + + /// + /// Gets the IPolicyDefinitionsOperations. + /// + public virtual IPolicyDefinitionsOperations PolicyDefinitions { get; private set; } + + /// + /// Gets the IPolicySetDefinitionsOperations. + /// + public virtual IPolicySetDefinitionsOperations PolicySetDefinitions { get; private set; } + + /// + /// Gets the IPolicyExemptionsOperations. + /// + public virtual IPolicyExemptionsOperations PolicyExemptions { get; private set; } + + /// + /// Initializes a new instance of the PolicyClient class. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling PolicyClient.Dispose(). False: will not dispose provided httpClient + protected PolicyClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient) + { + Initialize(); + } + + /// + /// Initializes a new instance of the PolicyClient class. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected PolicyClient(params DelegatingHandler[] handlers) : base(handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the PolicyClient class. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected PolicyClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the PolicyClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected PolicyClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the PolicyClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected PolicyClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the PolicyClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public PolicyClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the PolicyClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling PolicyClient.Dispose(). False: will not dispose provided httpClient + /// + /// Thrown when a required parameter is null + /// + public PolicyClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the PolicyClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public PolicyClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the PolicyClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public PolicyClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the PolicyClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public PolicyClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// An optional partial-method to perform custom initialization. + /// + partial void CustomInitialize(); + /// + /// Initializes client properties. + /// + private void Initialize() + { + DataPolicyManifests = new DataPolicyManifestsOperations(this); + PolicyAssignments = new PolicyAssignmentsOperations(this); + PolicyDefinitions = new PolicyDefinitionsOperations(this); + PolicySetDefinitions = new PolicySetDefinitionsOperations(this); + PolicyExemptions = new PolicyExemptionsOperations(this); + BaseUri = new System.Uri("https://management.azure.com"); + AcceptLanguage = "en-US"; + LongRunningOperationRetryTimeout = 30; + GenerateClientRequestId = true; + SerializationSettings = new JsonSerializerSettings + { + Formatting = Newtonsoft.Json.Formatting.Indented, + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + SerializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings = new JsonSerializerSettings + { + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + CustomInitialize(); + DeserializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicyDefinitionsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicyDefinitionsOperations.cs new file mode 100644 index 000000000000..648a7de7bcb3 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicyDefinitionsOperations.cs @@ -0,0 +1,2590 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// PolicyDefinitionsOperations operations. + /// + internal partial class PolicyDefinitionsOperations : IServiceOperations, IPolicyDefinitionsOperations + { + /// + /// Initializes a new instance of the PolicyDefinitionsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal PolicyDefinitionsOperations(PolicyClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the PolicyClient + /// + public PolicyClient Client { get; private set; } + + /// + /// Creates or updates a policy definition in a subscription. + /// + /// + /// This operation creates or updates a policy definition in the given + /// subscription with the given name. + /// + /// + /// The name of the policy definition to create. + /// + /// + /// The policy definition properties. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string policyDefinitionName, PolicyDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (policyDefinitionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "policyDefinitionName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("policyDefinitionName", policyDefinitionName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}").ToString(); + _url = _url.Replace("{policyDefinitionName}", System.Uri.EscapeDataString(policyDefinitionName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a policy definition in a subscription. + /// + /// + /// This operation deletes the policy definition in the given subscription with + /// the given name. + /// + /// + /// The name of the policy definition to delete. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteWithHttpMessagesAsync(string policyDefinitionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (policyDefinitionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "policyDefinitionName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("policyDefinitionName", policyDefinitionName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}").ToString(); + _url = _url.Replace("{policyDefinitionName}", System.Uri.EscapeDataString(policyDefinitionName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves a policy definition in a subscription. + /// + /// + /// This operation retrieves the policy definition in the given subscription + /// with the given name. + /// + /// + /// The name of the policy definition to get. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string policyDefinitionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (policyDefinitionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "policyDefinitionName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("policyDefinitionName", policyDefinitionName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}").ToString(); + _url = _url.Replace("{policyDefinitionName}", System.Uri.EscapeDataString(policyDefinitionName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves a built-in policy definition. + /// + /// + /// This operation retrieves the built-in policy definition with the given + /// name. + /// + /// + /// The name of the built-in policy definition to get. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetBuiltInWithHttpMessagesAsync(string policyDefinitionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (policyDefinitionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "policyDefinitionName"); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("policyDefinitionName", policyDefinitionName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetBuiltIn", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}").ToString(); + _url = _url.Replace("{policyDefinitionName}", System.Uri.EscapeDataString(policyDefinitionName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates a policy definition in a management group. + /// + /// + /// This operation creates or updates a policy definition in the given + /// management group with the given name. + /// + /// + /// The name of the policy definition to create. + /// + /// + /// The policy definition properties. + /// + /// + /// The ID of the management group. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateOrUpdateAtManagementGroupWithHttpMessagesAsync(string policyDefinitionName, PolicyDefinition parameters, string managementGroupId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (policyDefinitionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "policyDefinitionName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (managementGroupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managementGroupId"); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("policyDefinitionName", policyDefinitionName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("managementGroupId", managementGroupId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdateAtManagementGroup", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}").ToString(); + _url = _url.Replace("{policyDefinitionName}", System.Uri.EscapeDataString(policyDefinitionName)); + _url = _url.Replace("{managementGroupId}", System.Uri.EscapeDataString(managementGroupId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a policy definition in a management group. + /// + /// + /// This operation deletes the policy definition in the given management group + /// with the given name. + /// + /// + /// The name of the policy definition to delete. + /// + /// + /// The ID of the management group. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteAtManagementGroupWithHttpMessagesAsync(string policyDefinitionName, string managementGroupId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (policyDefinitionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "policyDefinitionName"); + } + if (managementGroupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managementGroupId"); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("policyDefinitionName", policyDefinitionName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("managementGroupId", managementGroupId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "DeleteAtManagementGroup", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}").ToString(); + _url = _url.Replace("{policyDefinitionName}", System.Uri.EscapeDataString(policyDefinitionName)); + _url = _url.Replace("{managementGroupId}", System.Uri.EscapeDataString(managementGroupId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieve a policy definition in a management group. + /// + /// + /// This operation retrieves the policy definition in the given management + /// group with the given name. + /// + /// + /// The name of the policy definition to get. + /// + /// + /// The ID of the management group. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetAtManagementGroupWithHttpMessagesAsync(string policyDefinitionName, string managementGroupId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (policyDefinitionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "policyDefinitionName"); + } + if (managementGroupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managementGroupId"); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("policyDefinitionName", policyDefinitionName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("managementGroupId", managementGroupId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetAtManagementGroup", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}").ToString(); + _url = _url.Replace("{policyDefinitionName}", System.Uri.EscapeDataString(policyDefinitionName)); + _url = _url.Replace("{managementGroupId}", System.Uri.EscapeDataString(managementGroupId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves policy definitions in a subscription + /// + /// + /// This operation retrieves a list of all the policy definitions in a given + /// subscription that match the optional given $filter. Valid values for + /// $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy definitions associated with the subscription, including those that + /// apply directly or from management groups that contain the given + /// subscription. If $filter=atExactScope() is provided, the returned list only + /// includes all policy definitions that at the given subscription. If + /// $filter='policyType -eq {value}' is provided, the returned list only + /// includes all policy definitions whose type match the {value}. Possible + /// policyType values are NotSpecified, BuiltIn, Custom, and Static. If + /// $filter='category -eq {value}' is provided, the returned list only includes + /// all policy definitions whose category match the {value}. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If + /// $filter is not provided, no filtering is performed. If + /// $filter=atExactScope() is provided, the returned list only includes all + /// policy definitions that at the given scope. If $filter='policyType -eq + /// {value}' is provided, the returned list only includes all policy + /// definitions whose type match the {value}. Possible policyType values are + /// NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq + /// {value}' is provided, the returned list only includes all policy + /// definitions whose category match the {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not provided, + /// it will return 500 records. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (top > 1000) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "top", 1000); + } + if (top < 1) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("filter", filter); + tracingParameters.Add("top", top); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", filter)); + } + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieve built-in policy definitions + /// + /// + /// This operation retrieves a list of all the built-in policy definitions that + /// match the optional given $filter. If $filter='policyType -eq {value}' is + /// provided, the returned list only includes all built-in policy definitions + /// whose type match the {value}. Possible policyType values are NotSpecified, + /// BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, + /// the returned list only includes all built-in policy definitions whose + /// category match the {value}. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If + /// $filter is not provided, no filtering is performed. If + /// $filter=atExactScope() is provided, the returned list only includes all + /// policy definitions that at the given scope. If $filter='policyType -eq + /// {value}' is provided, the returned list only includes all policy + /// definitions whose type match the {value}. Possible policyType values are + /// NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq + /// {value}' is provided, the returned list only includes all policy + /// definitions whose category match the {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not provided, + /// it will return 500 records. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListBuiltInWithHttpMessagesAsync(string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (top > 1000) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "top", 1000); + } + if (top < 1) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("filter", filter); + tracingParameters.Add("top", top); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListBuiltIn", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Authorization/policyDefinitions").ToString(); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", filter)); + } + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieve policy definitions in a management group + /// + /// + /// This operation retrieves a list of all the policy definitions in a given + /// management group that match the optional given $filter. Valid values for + /// $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy definitions associated with the management group, including those + /// that apply directly or from management groups that contain the given + /// management group. If $filter=atExactScope() is provided, the returned list + /// only includes all policy definitions that at the given management group. If + /// $filter='policyType -eq {value}' is provided, the returned list only + /// includes all policy definitions whose type match the {value}. Possible + /// policyType values are NotSpecified, BuiltIn, Custom, and Static. If + /// $filter='category -eq {value}' is provided, the returned list only includes + /// all policy definitions whose category match the {value}. + /// + /// + /// The ID of the management group. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If + /// $filter is not provided, no filtering is performed. If + /// $filter=atExactScope() is provided, the returned list only includes all + /// policy definitions that at the given scope. If $filter='policyType -eq + /// {value}' is provided, the returned list only includes all policy + /// definitions whose type match the {value}. Possible policyType values are + /// NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq + /// {value}' is provided, the returned list only includes all policy + /// definitions whose category match the {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not provided, + /// it will return 500 records. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByManagementGroupWithHttpMessagesAsync(string managementGroupId, string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (managementGroupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managementGroupId"); + } + if (top > 1000) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "top", 1000); + } + if (top < 1) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("managementGroupId", managementGroupId); + tracingParameters.Add("filter", filter); + tracingParameters.Add("top", top); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByManagementGroup", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions").ToString(); + _url = _url.Replace("{managementGroupId}", System.Uri.EscapeDataString(managementGroupId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", filter)); + } + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves policy definitions in a subscription + /// + /// + /// This operation retrieves a list of all the policy definitions in a given + /// subscription that match the optional given $filter. Valid values for + /// $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy definitions associated with the subscription, including those that + /// apply directly or from management groups that contain the given + /// subscription. If $filter=atExactScope() is provided, the returned list only + /// includes all policy definitions that at the given subscription. If + /// $filter='policyType -eq {value}' is provided, the returned list only + /// includes all policy definitions whose type match the {value}. Possible + /// policyType values are NotSpecified, BuiltIn, Custom, and Static. If + /// $filter='category -eq {value}' is provided, the returned list only includes + /// all policy definitions whose category match the {value}. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieve built-in policy definitions + /// + /// + /// This operation retrieves a list of all the built-in policy definitions that + /// match the optional given $filter. If $filter='policyType -eq {value}' is + /// provided, the returned list only includes all built-in policy definitions + /// whose type match the {value}. Possible policyType values are NotSpecified, + /// BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, + /// the returned list only includes all built-in policy definitions whose + /// category match the {value}. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListBuiltInNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListBuiltInNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieve policy definitions in a management group + /// + /// + /// This operation retrieves a list of all the policy definitions in a given + /// management group that match the optional given $filter. Valid values for + /// $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy definitions associated with the management group, including those + /// that apply directly or from management groups that contain the given + /// management group. If $filter=atExactScope() is provided, the returned list + /// only includes all policy definitions that at the given management group. If + /// $filter='policyType -eq {value}' is provided, the returned list only + /// includes all policy definitions whose type match the {value}. Possible + /// policyType values are NotSpecified, BuiltIn, Custom, and Static. If + /// $filter='category -eq {value}' is provided, the returned list only includes + /// all policy definitions whose category match the {value}. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByManagementGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByManagementGroupNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicyDefinitionsOperationsExtensions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicyDefinitionsOperationsExtensions.cs new file mode 100644 index 000000000000..582ce3393981 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicyDefinitionsOperationsExtensions.cs @@ -0,0 +1,787 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for PolicyDefinitionsOperations. + /// + public static partial class PolicyDefinitionsOperationsExtensions + { + /// + /// Creates or updates a policy definition in a subscription. + /// + /// + /// This operation creates or updates a policy definition in the given + /// subscription with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy definition to create. + /// + /// + /// The policy definition properties. + /// + public static PolicyDefinition CreateOrUpdate(this IPolicyDefinitionsOperations operations, string policyDefinitionName, PolicyDefinition parameters) + { + return operations.CreateOrUpdateAsync(policyDefinitionName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a policy definition in a subscription. + /// + /// + /// This operation creates or updates a policy definition in the given + /// subscription with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy definition to create. + /// + /// + /// The policy definition properties. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IPolicyDefinitionsOperations operations, string policyDefinitionName, PolicyDefinition parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(policyDefinitionName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a policy definition in a subscription. + /// + /// + /// This operation deletes the policy definition in the given subscription with + /// the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy definition to delete. + /// + public static void Delete(this IPolicyDefinitionsOperations operations, string policyDefinitionName) + { + operations.DeleteAsync(policyDefinitionName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a policy definition in a subscription. + /// + /// + /// This operation deletes the policy definition in the given subscription with + /// the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy definition to delete. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IPolicyDefinitionsOperations operations, string policyDefinitionName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(policyDefinitionName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Retrieves a policy definition in a subscription. + /// + /// + /// This operation retrieves the policy definition in the given subscription + /// with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy definition to get. + /// + public static PolicyDefinition Get(this IPolicyDefinitionsOperations operations, string policyDefinitionName) + { + return operations.GetAsync(policyDefinitionName).GetAwaiter().GetResult(); + } + + /// + /// Retrieves a policy definition in a subscription. + /// + /// + /// This operation retrieves the policy definition in the given subscription + /// with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy definition to get. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IPolicyDefinitionsOperations operations, string policyDefinitionName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(policyDefinitionName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves a built-in policy definition. + /// + /// + /// This operation retrieves the built-in policy definition with the given + /// name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the built-in policy definition to get. + /// + public static PolicyDefinition GetBuiltIn(this IPolicyDefinitionsOperations operations, string policyDefinitionName) + { + return operations.GetBuiltInAsync(policyDefinitionName).GetAwaiter().GetResult(); + } + + /// + /// Retrieves a built-in policy definition. + /// + /// + /// This operation retrieves the built-in policy definition with the given + /// name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the built-in policy definition to get. + /// + /// + /// The cancellation token. + /// + public static async Task GetBuiltInAsync(this IPolicyDefinitionsOperations operations, string policyDefinitionName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetBuiltInWithHttpMessagesAsync(policyDefinitionName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a policy definition in a management group. + /// + /// + /// This operation creates or updates a policy definition in the given + /// management group with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy definition to create. + /// + /// + /// The policy definition properties. + /// + /// + /// The ID of the management group. + /// + public static PolicyDefinition CreateOrUpdateAtManagementGroup(this IPolicyDefinitionsOperations operations, string policyDefinitionName, PolicyDefinition parameters, string managementGroupId) + { + return operations.CreateOrUpdateAtManagementGroupAsync(policyDefinitionName, parameters, managementGroupId).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a policy definition in a management group. + /// + /// + /// This operation creates or updates a policy definition in the given + /// management group with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy definition to create. + /// + /// + /// The policy definition properties. + /// + /// + /// The ID of the management group. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAtManagementGroupAsync(this IPolicyDefinitionsOperations operations, string policyDefinitionName, PolicyDefinition parameters, string managementGroupId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateAtManagementGroupWithHttpMessagesAsync(policyDefinitionName, parameters, managementGroupId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a policy definition in a management group. + /// + /// + /// This operation deletes the policy definition in the given management group + /// with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy definition to delete. + /// + /// + /// The ID of the management group. + /// + public static void DeleteAtManagementGroup(this IPolicyDefinitionsOperations operations, string policyDefinitionName, string managementGroupId) + { + operations.DeleteAtManagementGroupAsync(policyDefinitionName, managementGroupId).GetAwaiter().GetResult(); + } + + /// + /// Deletes a policy definition in a management group. + /// + /// + /// This operation deletes the policy definition in the given management group + /// with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy definition to delete. + /// + /// + /// The ID of the management group. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAtManagementGroupAsync(this IPolicyDefinitionsOperations operations, string policyDefinitionName, string managementGroupId, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteAtManagementGroupWithHttpMessagesAsync(policyDefinitionName, managementGroupId, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Retrieve a policy definition in a management group. + /// + /// + /// This operation retrieves the policy definition in the given management + /// group with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy definition to get. + /// + /// + /// The ID of the management group. + /// + public static PolicyDefinition GetAtManagementGroup(this IPolicyDefinitionsOperations operations, string policyDefinitionName, string managementGroupId) + { + return operations.GetAtManagementGroupAsync(policyDefinitionName, managementGroupId).GetAwaiter().GetResult(); + } + + /// + /// Retrieve a policy definition in a management group. + /// + /// + /// This operation retrieves the policy definition in the given management + /// group with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy definition to get. + /// + /// + /// The ID of the management group. + /// + /// + /// The cancellation token. + /// + public static async Task GetAtManagementGroupAsync(this IPolicyDefinitionsOperations operations, string policyDefinitionName, string managementGroupId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetAtManagementGroupWithHttpMessagesAsync(policyDefinitionName, managementGroupId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves policy definitions in a subscription + /// + /// + /// This operation retrieves a list of all the policy definitions in a given + /// subscription that match the optional given $filter. Valid values for + /// $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy definitions associated with the subscription, including those that + /// apply directly or from management groups that contain the given + /// subscription. If $filter=atExactScope() is provided, the returned list only + /// includes all policy definitions that at the given subscription. If + /// $filter='policyType -eq {value}' is provided, the returned list only + /// includes all policy definitions whose type match the {value}. Possible + /// policyType values are NotSpecified, BuiltIn, Custom, and Static. If + /// $filter='category -eq {value}' is provided, the returned list only includes + /// all policy definitions whose category match the {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If + /// $filter is not provided, no filtering is performed. If + /// $filter=atExactScope() is provided, the returned list only includes all + /// policy definitions that at the given scope. If $filter='policyType -eq + /// {value}' is provided, the returned list only includes all policy + /// definitions whose type match the {value}. Possible policyType values are + /// NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq + /// {value}' is provided, the returned list only includes all policy + /// definitions whose category match the {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not provided, + /// it will return 500 records. + /// + public static IPage List(this IPolicyDefinitionsOperations operations, string filter = default(string), int? top = default(int?)) + { + return operations.ListAsync(filter, top).GetAwaiter().GetResult(); + } + + /// + /// Retrieves policy definitions in a subscription + /// + /// + /// This operation retrieves a list of all the policy definitions in a given + /// subscription that match the optional given $filter. Valid values for + /// $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy definitions associated with the subscription, including those that + /// apply directly or from management groups that contain the given + /// subscription. If $filter=atExactScope() is provided, the returned list only + /// includes all policy definitions that at the given subscription. If + /// $filter='policyType -eq {value}' is provided, the returned list only + /// includes all policy definitions whose type match the {value}. Possible + /// policyType values are NotSpecified, BuiltIn, Custom, and Static. If + /// $filter='category -eq {value}' is provided, the returned list only includes + /// all policy definitions whose category match the {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If + /// $filter is not provided, no filtering is performed. If + /// $filter=atExactScope() is provided, the returned list only includes all + /// policy definitions that at the given scope. If $filter='policyType -eq + /// {value}' is provided, the returned list only includes all policy + /// definitions whose type match the {value}. Possible policyType values are + /// NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq + /// {value}' is provided, the returned list only includes all policy + /// definitions whose category match the {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not provided, + /// it will return 500 records. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IPolicyDefinitionsOperations operations, string filter = default(string), int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(filter, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieve built-in policy definitions + /// + /// + /// This operation retrieves a list of all the built-in policy definitions that + /// match the optional given $filter. If $filter='policyType -eq {value}' is + /// provided, the returned list only includes all built-in policy definitions + /// whose type match the {value}. Possible policyType values are NotSpecified, + /// BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, + /// the returned list only includes all built-in policy definitions whose + /// category match the {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If + /// $filter is not provided, no filtering is performed. If + /// $filter=atExactScope() is provided, the returned list only includes all + /// policy definitions that at the given scope. If $filter='policyType -eq + /// {value}' is provided, the returned list only includes all policy + /// definitions whose type match the {value}. Possible policyType values are + /// NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq + /// {value}' is provided, the returned list only includes all policy + /// definitions whose category match the {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not provided, + /// it will return 500 records. + /// + public static IPage ListBuiltIn(this IPolicyDefinitionsOperations operations, string filter = default(string), int? top = default(int?)) + { + return operations.ListBuiltInAsync(filter, top).GetAwaiter().GetResult(); + } + + /// + /// Retrieve built-in policy definitions + /// + /// + /// This operation retrieves a list of all the built-in policy definitions that + /// match the optional given $filter. If $filter='policyType -eq {value}' is + /// provided, the returned list only includes all built-in policy definitions + /// whose type match the {value}. Possible policyType values are NotSpecified, + /// BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, + /// the returned list only includes all built-in policy definitions whose + /// category match the {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If + /// $filter is not provided, no filtering is performed. If + /// $filter=atExactScope() is provided, the returned list only includes all + /// policy definitions that at the given scope. If $filter='policyType -eq + /// {value}' is provided, the returned list only includes all policy + /// definitions whose type match the {value}. Possible policyType values are + /// NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq + /// {value}' is provided, the returned list only includes all policy + /// definitions whose category match the {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not provided, + /// it will return 500 records. + /// + /// + /// The cancellation token. + /// + public static async Task> ListBuiltInAsync(this IPolicyDefinitionsOperations operations, string filter = default(string), int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListBuiltInWithHttpMessagesAsync(filter, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieve policy definitions in a management group + /// + /// + /// This operation retrieves a list of all the policy definitions in a given + /// management group that match the optional given $filter. Valid values for + /// $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy definitions associated with the management group, including those + /// that apply directly or from management groups that contain the given + /// management group. If $filter=atExactScope() is provided, the returned list + /// only includes all policy definitions that at the given management group. If + /// $filter='policyType -eq {value}' is provided, the returned list only + /// includes all policy definitions whose type match the {value}. Possible + /// policyType values are NotSpecified, BuiltIn, Custom, and Static. If + /// $filter='category -eq {value}' is provided, the returned list only includes + /// all policy definitions whose category match the {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The ID of the management group. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If + /// $filter is not provided, no filtering is performed. If + /// $filter=atExactScope() is provided, the returned list only includes all + /// policy definitions that at the given scope. If $filter='policyType -eq + /// {value}' is provided, the returned list only includes all policy + /// definitions whose type match the {value}. Possible policyType values are + /// NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq + /// {value}' is provided, the returned list only includes all policy + /// definitions whose category match the {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not provided, + /// it will return 500 records. + /// + public static IPage ListByManagementGroup(this IPolicyDefinitionsOperations operations, string managementGroupId, string filter = default(string), int? top = default(int?)) + { + return operations.ListByManagementGroupAsync(managementGroupId, filter, top).GetAwaiter().GetResult(); + } + + /// + /// Retrieve policy definitions in a management group + /// + /// + /// This operation retrieves a list of all the policy definitions in a given + /// management group that match the optional given $filter. Valid values for + /// $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy definitions associated with the management group, including those + /// that apply directly or from management groups that contain the given + /// management group. If $filter=atExactScope() is provided, the returned list + /// only includes all policy definitions that at the given management group. If + /// $filter='policyType -eq {value}' is provided, the returned list only + /// includes all policy definitions whose type match the {value}. Possible + /// policyType values are NotSpecified, BuiltIn, Custom, and Static. If + /// $filter='category -eq {value}' is provided, the returned list only includes + /// all policy definitions whose category match the {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The ID of the management group. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If + /// $filter is not provided, no filtering is performed. If + /// $filter=atExactScope() is provided, the returned list only includes all + /// policy definitions that at the given scope. If $filter='policyType -eq + /// {value}' is provided, the returned list only includes all policy + /// definitions whose type match the {value}. Possible policyType values are + /// NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq + /// {value}' is provided, the returned list only includes all policy + /// definitions whose category match the {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not provided, + /// it will return 500 records. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByManagementGroupAsync(this IPolicyDefinitionsOperations operations, string managementGroupId, string filter = default(string), int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByManagementGroupWithHttpMessagesAsync(managementGroupId, filter, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves policy definitions in a subscription + /// + /// + /// This operation retrieves a list of all the policy definitions in a given + /// subscription that match the optional given $filter. Valid values for + /// $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy definitions associated with the subscription, including those that + /// apply directly or from management groups that contain the given + /// subscription. If $filter=atExactScope() is provided, the returned list only + /// includes all policy definitions that at the given subscription. If + /// $filter='policyType -eq {value}' is provided, the returned list only + /// includes all policy definitions whose type match the {value}. Possible + /// policyType values are NotSpecified, BuiltIn, Custom, and Static. If + /// $filter='category -eq {value}' is provided, the returned list only includes + /// all policy definitions whose category match the {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IPolicyDefinitionsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Retrieves policy definitions in a subscription + /// + /// + /// This operation retrieves a list of all the policy definitions in a given + /// subscription that match the optional given $filter. Valid values for + /// $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy definitions associated with the subscription, including those that + /// apply directly or from management groups that contain the given + /// subscription. If $filter=atExactScope() is provided, the returned list only + /// includes all policy definitions that at the given subscription. If + /// $filter='policyType -eq {value}' is provided, the returned list only + /// includes all policy definitions whose type match the {value}. Possible + /// policyType values are NotSpecified, BuiltIn, Custom, and Static. If + /// $filter='category -eq {value}' is provided, the returned list only includes + /// all policy definitions whose category match the {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IPolicyDefinitionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieve built-in policy definitions + /// + /// + /// This operation retrieves a list of all the built-in policy definitions that + /// match the optional given $filter. If $filter='policyType -eq {value}' is + /// provided, the returned list only includes all built-in policy definitions + /// whose type match the {value}. Possible policyType values are NotSpecified, + /// BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, + /// the returned list only includes all built-in policy definitions whose + /// category match the {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListBuiltInNext(this IPolicyDefinitionsOperations operations, string nextPageLink) + { + return operations.ListBuiltInNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Retrieve built-in policy definitions + /// + /// + /// This operation retrieves a list of all the built-in policy definitions that + /// match the optional given $filter. If $filter='policyType -eq {value}' is + /// provided, the returned list only includes all built-in policy definitions + /// whose type match the {value}. Possible policyType values are NotSpecified, + /// BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, + /// the returned list only includes all built-in policy definitions whose + /// category match the {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListBuiltInNextAsync(this IPolicyDefinitionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListBuiltInNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieve policy definitions in a management group + /// + /// + /// This operation retrieves a list of all the policy definitions in a given + /// management group that match the optional given $filter. Valid values for + /// $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy definitions associated with the management group, including those + /// that apply directly or from management groups that contain the given + /// management group. If $filter=atExactScope() is provided, the returned list + /// only includes all policy definitions that at the given management group. If + /// $filter='policyType -eq {value}' is provided, the returned list only + /// includes all policy definitions whose type match the {value}. Possible + /// policyType values are NotSpecified, BuiltIn, Custom, and Static. If + /// $filter='category -eq {value}' is provided, the returned list only includes + /// all policy definitions whose category match the {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByManagementGroupNext(this IPolicyDefinitionsOperations operations, string nextPageLink) + { + return operations.ListByManagementGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Retrieve policy definitions in a management group + /// + /// + /// This operation retrieves a list of all the policy definitions in a given + /// management group that match the optional given $filter. Valid values for + /// $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy definitions associated with the management group, including those + /// that apply directly or from management groups that contain the given + /// management group. If $filter=atExactScope() is provided, the returned list + /// only includes all policy definitions that at the given management group. If + /// $filter='policyType -eq {value}' is provided, the returned list only + /// includes all policy definitions whose type match the {value}. Possible + /// policyType values are NotSpecified, BuiltIn, Custom, and Static. If + /// $filter='category -eq {value}' is provided, the returned list only includes + /// all policy definitions whose category match the {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByManagementGroupNextAsync(this IPolicyDefinitionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByManagementGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicyExemptionsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicyExemptionsOperations.cs new file mode 100644 index 000000000000..4ce0e3bd4a77 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicyExemptionsOperations.cs @@ -0,0 +1,2353 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// PolicyExemptionsOperations operations. + /// + internal partial class PolicyExemptionsOperations : IServiceOperations, IPolicyExemptionsOperations + { + /// + /// Initializes a new instance of the PolicyExemptionsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal PolicyExemptionsOperations(PolicyClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the PolicyClient + /// + public PolicyClient Client { get; private set; } + + /// + /// Deletes a policy exemption. + /// + /// + /// This operation deletes a policy exemption, given its name and the scope it + /// was created in. The scope of a policy exemption is the part of its ID + /// preceding + /// '/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}'. + /// + /// + /// The scope of the policy exemption. Valid scopes are: management group + /// (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource group + /// (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or + /// resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + /// + /// The name of the policy exemption to delete. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteWithHttpMessagesAsync(string scope, string policyExemptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (policyExemptionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "policyExemptionName"); + } + string apiVersion = "2020-07-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("scope", scope); + tracingParameters.Add("policyExemptionName", policyExemptionName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}").ToString(); + _url = _url.Replace("{scope}", scope); + _url = _url.Replace("{policyExemptionName}", System.Uri.EscapeDataString(policyExemptionName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates a policy exemption. + /// + /// + /// This operation creates or updates a policy exemption with the given scope + /// and name. Policy exemptions apply to all resources contained within their + /// scope. For example, when you create a policy exemption at resource group + /// scope for a policy assignment at the same or above level, the exemption + /// exempts to all applicable resources in the resource group. + /// + /// + /// The scope of the policy exemption. Valid scopes are: management group + /// (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource group + /// (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or + /// resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + /// + /// The name of the policy exemption to delete. + /// + /// + /// Parameters for the policy exemption. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string scope, string policyExemptionName, PolicyExemption parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (policyExemptionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "policyExemptionName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + string apiVersion = "2020-07-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("scope", scope); + tracingParameters.Add("policyExemptionName", policyExemptionName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}").ToString(); + _url = _url.Replace("{scope}", scope); + _url = _url.Replace("{policyExemptionName}", System.Uri.EscapeDataString(policyExemptionName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves a policy exemption. + /// + /// + /// This operation retrieves a single policy exemption, given its name and the + /// scope it was created at. + /// + /// + /// The scope of the policy exemption. Valid scopes are: management group + /// (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource group + /// (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or + /// resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + /// + /// The name of the policy exemption to delete. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string scope, string policyExemptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (policyExemptionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "policyExemptionName"); + } + string apiVersion = "2020-07-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("scope", scope); + tracingParameters.Add("policyExemptionName", policyExemptionName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}").ToString(); + _url = _url.Replace("{scope}", scope); + _url = _url.Replace("{policyExemptionName}", System.Uri.EscapeDataString(policyExemptionName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves all policy exemptions that apply to a subscription. + /// + /// + /// This operation retrieves the list of all policy exemptions associated with + /// the given subscription that match the optional given $filter. Valid values + /// for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or + /// 'policyAssignmentId eq '{value}''. If $filter is not provided, the + /// unfiltered list includes all policy exemptions associated with the + /// subscription, including those that apply directly or from management groups + /// that contain the given subscription, as well as any applied to objects + /// contained within the subscription. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq + /// '{value}''. If $filter is not provided, no filtering is performed. If + /// $filter is not provided, the unfiltered list includes all policy exemptions + /// associated with the scope, including those that apply directly or apply + /// from containing scopes. If $filter=atScope() is provided, the returned list + /// only includes all policy exemptions that apply to the scope, which is + /// everything in the unfiltered list except those applied to sub scopes + /// contained within the given scope. If $filter=atExactScope() is provided, + /// the returned list only includes all policy exemptions that at the given + /// scope. If $filter=excludeExpired() is provided, the returned list only + /// includes all policy exemptions that either haven't expired or didn't set + /// expiration date. If $filter=policyAssignmentId eq '{value}' is provided. + /// the returned list only includes all policy exemptions that are associated + /// with the give policyAssignmentId. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2020-07-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("filter", filter); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyExemptions").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", filter)); + } + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves all policy exemptions that apply to a resource group. + /// + /// + /// This operation retrieves the list of all policy exemptions associated with + /// the given resource group in the given subscription that match the optional + /// given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', + /// 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not + /// provided, the unfiltered list includes all policy exemptions associated + /// with the resource group, including those that apply directly or apply from + /// containing scopes, as well as any applied to resources contained within the + /// resource group. + /// + /// + /// The name of the resource group containing the resource. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq + /// '{value}''. If $filter is not provided, no filtering is performed. If + /// $filter is not provided, the unfiltered list includes all policy exemptions + /// associated with the scope, including those that apply directly or apply + /// from containing scopes. If $filter=atScope() is provided, the returned list + /// only includes all policy exemptions that apply to the scope, which is + /// everything in the unfiltered list except those applied to sub scopes + /// contained within the given scope. If $filter=atExactScope() is provided, + /// the returned list only includes all policy exemptions that at the given + /// scope. If $filter=excludeExpired() is provided, the returned list only + /// includes all policy exemptions that either haven't expired or didn't set + /// expiration date. If $filter=policyAssignmentId eq '{value}' is provided. + /// the returned list only includes all policy exemptions that are associated + /// with the give policyAssignmentId. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListForResourceGroupWithHttpMessagesAsync(string resourceGroupName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + string apiVersion = "2020-07-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("filter", filter); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListForResourceGroup", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyExemptions").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", filter)); + } + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves all policy exemptions that apply to a resource. + /// + /// + /// This operation retrieves the list of all policy exemptions associated with + /// the specified resource in the given resource group and subscription that + /// match the optional given $filter. Valid values for $filter are: + /// 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy exemptions associated with the resource, including those that apply + /// directly or from all containing scopes, as well as any applied to resources + /// contained within the resource. Three parameters plus the resource name are + /// used to identify a specific resource. If the resource is not part of a + /// parent resource (the more common case), the parent resource path should not + /// be provided (or provided as ''). For example a web app could be specified + /// as ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == + /// '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the + /// resource is part of a parent resource, then all parameters should be + /// provided. For example a virtual machine DNS name could be specified as + /// ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} + /// == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', + /// {resourceName} == 'MyComputerName'). A convenient alternative to providing + /// the namespace and type name separately is to provide both in the + /// {resourceType} parameter, format: ({resourceProviderNamespace} == '', + /// {parentResourcePath} == '', {resourceType} == 'Microsoft.Web/sites', + /// {resourceName} == 'MyWebApp'). + /// + /// + /// The name of the resource group containing the resource. + /// + /// + /// The namespace of the resource provider. For example, the namespace of a + /// virtual machine is Microsoft.Compute (from + /// Microsoft.Compute/virtualMachines) + /// + /// + /// The parent resource path. Use empty string if there is none. + /// + /// + /// The resource type name. For example the type name of a web app is 'sites' + /// (from Microsoft.Web/sites). + /// + /// + /// The name of the resource. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq + /// '{value}''. If $filter is not provided, no filtering is performed. If + /// $filter is not provided, the unfiltered list includes all policy exemptions + /// associated with the scope, including those that apply directly or apply + /// from containing scopes. If $filter=atScope() is provided, the returned list + /// only includes all policy exemptions that apply to the scope, which is + /// everything in the unfiltered list except those applied to sub scopes + /// contained within the given scope. If $filter=atExactScope() is provided, + /// the returned list only includes all policy exemptions that at the given + /// scope. If $filter=excludeExpired() is provided, the returned list only + /// includes all policy exemptions that either haven't expired or didn't set + /// expiration date. If $filter=policyAssignmentId eq '{value}' is provided. + /// the returned list only includes all policy exemptions that are associated + /// with the give policyAssignmentId. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListForResourceWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (resourceProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceProviderNamespace"); + } + if (parentResourcePath == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parentResourcePath"); + } + if (resourceType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceType"); + } + if (resourceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceName"); + } + string apiVersion = "2020-07-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("resourceProviderNamespace", resourceProviderNamespace); + tracingParameters.Add("parentResourcePath", parentResourcePath); + tracingParameters.Add("resourceType", resourceType); + tracingParameters.Add("resourceName", resourceName); + tracingParameters.Add("filter", filter); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListForResource", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyExemptions").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceProviderNamespace}", System.Uri.EscapeDataString(resourceProviderNamespace)); + _url = _url.Replace("{parentResourcePath}", parentResourcePath); + _url = _url.Replace("{resourceType}", resourceType); + _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName)); + List _queryParameters = new List(); + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", filter)); + } + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves all policy exemptions that apply to a management group. + /// + /// + /// This operation retrieves the list of all policy exemptions applicable to + /// the management group that match the given $filter. Valid values for $filter + /// are: 'atScope()', 'atExactScope()', 'excludeExpired()' or + /// 'policyAssignmentId eq '{value}''. If $filter=atScope() is provided, the + /// returned list includes all policy exemptions that are assigned to the + /// management group or the management group's ancestors. + /// + /// + /// The ID of the management group. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq + /// '{value}''. If $filter is not provided, no filtering is performed. If + /// $filter is not provided, the unfiltered list includes all policy exemptions + /// associated with the scope, including those that apply directly or apply + /// from containing scopes. If $filter=atScope() is provided, the returned list + /// only includes all policy exemptions that apply to the scope, which is + /// everything in the unfiltered list except those applied to sub scopes + /// contained within the given scope. If $filter=atExactScope() is provided, + /// the returned list only includes all policy exemptions that at the given + /// scope. If $filter=excludeExpired() is provided, the returned list only + /// includes all policy exemptions that either haven't expired or didn't set + /// expiration date. If $filter=policyAssignmentId eq '{value}' is provided. + /// the returned list only includes all policy exemptions that are associated + /// with the give policyAssignmentId. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListForManagementGroupWithHttpMessagesAsync(string managementGroupId, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (managementGroupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managementGroupId"); + } + string apiVersion = "2020-07-01-preview"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("managementGroupId", managementGroupId); + tracingParameters.Add("filter", filter); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListForManagementGroup", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyExemptions").ToString(); + _url = _url.Replace("{managementGroupId}", System.Uri.EscapeDataString(managementGroupId)); + List _queryParameters = new List(); + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", filter)); + } + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves all policy exemptions that apply to a subscription. + /// + /// + /// This operation retrieves the list of all policy exemptions associated with + /// the given subscription that match the optional given $filter. Valid values + /// for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or + /// 'policyAssignmentId eq '{value}''. If $filter is not provided, the + /// unfiltered list includes all policy exemptions associated with the + /// subscription, including those that apply directly or from management groups + /// that contain the given subscription, as well as any applied to objects + /// contained within the subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves all policy exemptions that apply to a resource group. + /// + /// + /// This operation retrieves the list of all policy exemptions associated with + /// the given resource group in the given subscription that match the optional + /// given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', + /// 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not + /// provided, the unfiltered list includes all policy exemptions associated + /// with the resource group, including those that apply directly or apply from + /// containing scopes, as well as any applied to resources contained within the + /// resource group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListForResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListForResourceGroupNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves all policy exemptions that apply to a resource. + /// + /// + /// This operation retrieves the list of all policy exemptions associated with + /// the specified resource in the given resource group and subscription that + /// match the optional given $filter. Valid values for $filter are: + /// 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy exemptions associated with the resource, including those that apply + /// directly or from all containing scopes, as well as any applied to resources + /// contained within the resource. Three parameters plus the resource name are + /// used to identify a specific resource. If the resource is not part of a + /// parent resource (the more common case), the parent resource path should not + /// be provided (or provided as ''). For example a web app could be specified + /// as ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == + /// '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the + /// resource is part of a parent resource, then all parameters should be + /// provided. For example a virtual machine DNS name could be specified as + /// ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} + /// == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', + /// {resourceName} == 'MyComputerName'). A convenient alternative to providing + /// the namespace and type name separately is to provide both in the + /// {resourceType} parameter, format: ({resourceProviderNamespace} == '', + /// {parentResourcePath} == '', {resourceType} == 'Microsoft.Web/sites', + /// {resourceName} == 'MyWebApp'). + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListForResourceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListForResourceNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves all policy exemptions that apply to a management group. + /// + /// + /// This operation retrieves the list of all policy exemptions applicable to + /// the management group that match the given $filter. Valid values for $filter + /// are: 'atScope()', 'atExactScope()', 'excludeExpired()' or + /// 'policyAssignmentId eq '{value}''. If $filter=atScope() is provided, the + /// returned list includes all policy exemptions that are assigned to the + /// management group or the management group's ancestors. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListForManagementGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListForManagementGroupNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicyExemptionsOperationsExtensions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicyExemptionsOperationsExtensions.cs new file mode 100644 index 000000000000..250cb6d468ef --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicyExemptionsOperationsExtensions.cs @@ -0,0 +1,864 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for PolicyExemptionsOperations. + /// + public static partial class PolicyExemptionsOperationsExtensions + { + /// + /// Deletes a policy exemption. + /// + /// + /// This operation deletes a policy exemption, given its name and the scope it + /// was created in. The scope of a policy exemption is the part of its ID + /// preceding + /// '/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}'. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The scope of the policy exemption. Valid scopes are: management group + /// (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource group + /// (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or + /// resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + /// + /// The name of the policy exemption to delete. + /// + public static void Delete(this IPolicyExemptionsOperations operations, string scope, string policyExemptionName) + { + operations.DeleteAsync(scope, policyExemptionName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a policy exemption. + /// + /// + /// This operation deletes a policy exemption, given its name and the scope it + /// was created in. The scope of a policy exemption is the part of its ID + /// preceding + /// '/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}'. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The scope of the policy exemption. Valid scopes are: management group + /// (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource group + /// (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or + /// resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + /// + /// The name of the policy exemption to delete. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IPolicyExemptionsOperations operations, string scope, string policyExemptionName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(scope, policyExemptionName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Creates or updates a policy exemption. + /// + /// + /// This operation creates or updates a policy exemption with the given scope + /// and name. Policy exemptions apply to all resources contained within their + /// scope. For example, when you create a policy exemption at resource group + /// scope for a policy assignment at the same or above level, the exemption + /// exempts to all applicable resources in the resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The scope of the policy exemption. Valid scopes are: management group + /// (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource group + /// (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or + /// resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + /// + /// The name of the policy exemption to delete. + /// + /// + /// Parameters for the policy exemption. + /// + public static PolicyExemption CreateOrUpdate(this IPolicyExemptionsOperations operations, string scope, string policyExemptionName, PolicyExemption parameters) + { + return operations.CreateOrUpdateAsync(scope, policyExemptionName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a policy exemption. + /// + /// + /// This operation creates or updates a policy exemption with the given scope + /// and name. Policy exemptions apply to all resources contained within their + /// scope. For example, when you create a policy exemption at resource group + /// scope for a policy assignment at the same or above level, the exemption + /// exempts to all applicable resources in the resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The scope of the policy exemption. Valid scopes are: management group + /// (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource group + /// (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or + /// resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + /// + /// The name of the policy exemption to delete. + /// + /// + /// Parameters for the policy exemption. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IPolicyExemptionsOperations operations, string scope, string policyExemptionName, PolicyExemption parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(scope, policyExemptionName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves a policy exemption. + /// + /// + /// This operation retrieves a single policy exemption, given its name and the + /// scope it was created at. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The scope of the policy exemption. Valid scopes are: management group + /// (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource group + /// (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or + /// resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + /// + /// The name of the policy exemption to delete. + /// + public static PolicyExemption Get(this IPolicyExemptionsOperations operations, string scope, string policyExemptionName) + { + return operations.GetAsync(scope, policyExemptionName).GetAwaiter().GetResult(); + } + + /// + /// Retrieves a policy exemption. + /// + /// + /// This operation retrieves a single policy exemption, given its name and the + /// scope it was created at. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The scope of the policy exemption. Valid scopes are: management group + /// (format: + /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), + /// subscription (format: '/subscriptions/{subscriptionId}'), resource group + /// (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or + /// resource (format: + /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' + /// + /// + /// The name of the policy exemption to delete. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IPolicyExemptionsOperations operations, string scope, string policyExemptionName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(scope, policyExemptionName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves all policy exemptions that apply to a subscription. + /// + /// + /// This operation retrieves the list of all policy exemptions associated with + /// the given subscription that match the optional given $filter. Valid values + /// for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or + /// 'policyAssignmentId eq '{value}''. If $filter is not provided, the + /// unfiltered list includes all policy exemptions associated with the + /// subscription, including those that apply directly or from management groups + /// that contain the given subscription, as well as any applied to objects + /// contained within the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq + /// '{value}''. If $filter is not provided, no filtering is performed. If + /// $filter is not provided, the unfiltered list includes all policy exemptions + /// associated with the scope, including those that apply directly or apply + /// from containing scopes. If $filter=atScope() is provided, the returned list + /// only includes all policy exemptions that apply to the scope, which is + /// everything in the unfiltered list except those applied to sub scopes + /// contained within the given scope. If $filter=atExactScope() is provided, + /// the returned list only includes all policy exemptions that at the given + /// scope. If $filter=excludeExpired() is provided, the returned list only + /// includes all policy exemptions that either haven't expired or didn't set + /// expiration date. If $filter=policyAssignmentId eq '{value}' is provided. + /// the returned list only includes all policy exemptions that are associated + /// with the give policyAssignmentId. + /// + public static IPage List(this IPolicyExemptionsOperations operations, string filter = default(string)) + { + return operations.ListAsync(filter).GetAwaiter().GetResult(); + } + + /// + /// Retrieves all policy exemptions that apply to a subscription. + /// + /// + /// This operation retrieves the list of all policy exemptions associated with + /// the given subscription that match the optional given $filter. Valid values + /// for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or + /// 'policyAssignmentId eq '{value}''. If $filter is not provided, the + /// unfiltered list includes all policy exemptions associated with the + /// subscription, including those that apply directly or from management groups + /// that contain the given subscription, as well as any applied to objects + /// contained within the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq + /// '{value}''. If $filter is not provided, no filtering is performed. If + /// $filter is not provided, the unfiltered list includes all policy exemptions + /// associated with the scope, including those that apply directly or apply + /// from containing scopes. If $filter=atScope() is provided, the returned list + /// only includes all policy exemptions that apply to the scope, which is + /// everything in the unfiltered list except those applied to sub scopes + /// contained within the given scope. If $filter=atExactScope() is provided, + /// the returned list only includes all policy exemptions that at the given + /// scope. If $filter=excludeExpired() is provided, the returned list only + /// includes all policy exemptions that either haven't expired or didn't set + /// expiration date. If $filter=policyAssignmentId eq '{value}' is provided. + /// the returned list only includes all policy exemptions that are associated + /// with the give policyAssignmentId. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IPolicyExemptionsOperations operations, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(filter, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves all policy exemptions that apply to a resource group. + /// + /// + /// This operation retrieves the list of all policy exemptions associated with + /// the given resource group in the given subscription that match the optional + /// given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', + /// 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not + /// provided, the unfiltered list includes all policy exemptions associated + /// with the resource group, including those that apply directly or apply from + /// containing scopes, as well as any applied to resources contained within the + /// resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group containing the resource. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq + /// '{value}''. If $filter is not provided, no filtering is performed. If + /// $filter is not provided, the unfiltered list includes all policy exemptions + /// associated with the scope, including those that apply directly or apply + /// from containing scopes. If $filter=atScope() is provided, the returned list + /// only includes all policy exemptions that apply to the scope, which is + /// everything in the unfiltered list except those applied to sub scopes + /// contained within the given scope. If $filter=atExactScope() is provided, + /// the returned list only includes all policy exemptions that at the given + /// scope. If $filter=excludeExpired() is provided, the returned list only + /// includes all policy exemptions that either haven't expired or didn't set + /// expiration date. If $filter=policyAssignmentId eq '{value}' is provided. + /// the returned list only includes all policy exemptions that are associated + /// with the give policyAssignmentId. + /// + public static IPage ListForResourceGroup(this IPolicyExemptionsOperations operations, string resourceGroupName, string filter = default(string)) + { + return operations.ListForResourceGroupAsync(resourceGroupName, filter).GetAwaiter().GetResult(); + } + + /// + /// Retrieves all policy exemptions that apply to a resource group. + /// + /// + /// This operation retrieves the list of all policy exemptions associated with + /// the given resource group in the given subscription that match the optional + /// given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', + /// 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not + /// provided, the unfiltered list includes all policy exemptions associated + /// with the resource group, including those that apply directly or apply from + /// containing scopes, as well as any applied to resources contained within the + /// resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group containing the resource. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq + /// '{value}''. If $filter is not provided, no filtering is performed. If + /// $filter is not provided, the unfiltered list includes all policy exemptions + /// associated with the scope, including those that apply directly or apply + /// from containing scopes. If $filter=atScope() is provided, the returned list + /// only includes all policy exemptions that apply to the scope, which is + /// everything in the unfiltered list except those applied to sub scopes + /// contained within the given scope. If $filter=atExactScope() is provided, + /// the returned list only includes all policy exemptions that at the given + /// scope. If $filter=excludeExpired() is provided, the returned list only + /// includes all policy exemptions that either haven't expired or didn't set + /// expiration date. If $filter=policyAssignmentId eq '{value}' is provided. + /// the returned list only includes all policy exemptions that are associated + /// with the give policyAssignmentId. + /// + /// + /// The cancellation token. + /// + public static async Task> ListForResourceGroupAsync(this IPolicyExemptionsOperations operations, string resourceGroupName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListForResourceGroupWithHttpMessagesAsync(resourceGroupName, filter, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves all policy exemptions that apply to a resource. + /// + /// + /// This operation retrieves the list of all policy exemptions associated with + /// the specified resource in the given resource group and subscription that + /// match the optional given $filter. Valid values for $filter are: + /// 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy exemptions associated with the resource, including those that apply + /// directly or from all containing scopes, as well as any applied to resources + /// contained within the resource. Three parameters plus the resource name are + /// used to identify a specific resource. If the resource is not part of a + /// parent resource (the more common case), the parent resource path should not + /// be provided (or provided as ''). For example a web app could be specified + /// as ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == + /// '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the + /// resource is part of a parent resource, then all parameters should be + /// provided. For example a virtual machine DNS name could be specified as + /// ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} + /// == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', + /// {resourceName} == 'MyComputerName'). A convenient alternative to providing + /// the namespace and type name separately is to provide both in the + /// {resourceType} parameter, format: ({resourceProviderNamespace} == '', + /// {parentResourcePath} == '', {resourceType} == 'Microsoft.Web/sites', + /// {resourceName} == 'MyWebApp'). + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group containing the resource. + /// + /// + /// The namespace of the resource provider. For example, the namespace of a + /// virtual machine is Microsoft.Compute (from + /// Microsoft.Compute/virtualMachines) + /// + /// + /// The parent resource path. Use empty string if there is none. + /// + /// + /// The resource type name. For example the type name of a web app is 'sites' + /// (from Microsoft.Web/sites). + /// + /// + /// The name of the resource. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq + /// '{value}''. If $filter is not provided, no filtering is performed. If + /// $filter is not provided, the unfiltered list includes all policy exemptions + /// associated with the scope, including those that apply directly or apply + /// from containing scopes. If $filter=atScope() is provided, the returned list + /// only includes all policy exemptions that apply to the scope, which is + /// everything in the unfiltered list except those applied to sub scopes + /// contained within the given scope. If $filter=atExactScope() is provided, + /// the returned list only includes all policy exemptions that at the given + /// scope. If $filter=excludeExpired() is provided, the returned list only + /// includes all policy exemptions that either haven't expired or didn't set + /// expiration date. If $filter=policyAssignmentId eq '{value}' is provided. + /// the returned list only includes all policy exemptions that are associated + /// with the give policyAssignmentId. + /// + public static IPage ListForResource(this IPolicyExemptionsOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string filter = default(string)) + { + return operations.ListForResourceAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, filter).GetAwaiter().GetResult(); + } + + /// + /// Retrieves all policy exemptions that apply to a resource. + /// + /// + /// This operation retrieves the list of all policy exemptions associated with + /// the specified resource in the given resource group and subscription that + /// match the optional given $filter. Valid values for $filter are: + /// 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy exemptions associated with the resource, including those that apply + /// directly or from all containing scopes, as well as any applied to resources + /// contained within the resource. Three parameters plus the resource name are + /// used to identify a specific resource. If the resource is not part of a + /// parent resource (the more common case), the parent resource path should not + /// be provided (or provided as ''). For example a web app could be specified + /// as ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == + /// '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the + /// resource is part of a parent resource, then all parameters should be + /// provided. For example a virtual machine DNS name could be specified as + /// ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} + /// == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', + /// {resourceName} == 'MyComputerName'). A convenient alternative to providing + /// the namespace and type name separately is to provide both in the + /// {resourceType} parameter, format: ({resourceProviderNamespace} == '', + /// {parentResourcePath} == '', {resourceType} == 'Microsoft.Web/sites', + /// {resourceName} == 'MyWebApp'). + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group containing the resource. + /// + /// + /// The namespace of the resource provider. For example, the namespace of a + /// virtual machine is Microsoft.Compute (from + /// Microsoft.Compute/virtualMachines) + /// + /// + /// The parent resource path. Use empty string if there is none. + /// + /// + /// The resource type name. For example the type name of a web app is 'sites' + /// (from Microsoft.Web/sites). + /// + /// + /// The name of the resource. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq + /// '{value}''. If $filter is not provided, no filtering is performed. If + /// $filter is not provided, the unfiltered list includes all policy exemptions + /// associated with the scope, including those that apply directly or apply + /// from containing scopes. If $filter=atScope() is provided, the returned list + /// only includes all policy exemptions that apply to the scope, which is + /// everything in the unfiltered list except those applied to sub scopes + /// contained within the given scope. If $filter=atExactScope() is provided, + /// the returned list only includes all policy exemptions that at the given + /// scope. If $filter=excludeExpired() is provided, the returned list only + /// includes all policy exemptions that either haven't expired or didn't set + /// expiration date. If $filter=policyAssignmentId eq '{value}' is provided. + /// the returned list only includes all policy exemptions that are associated + /// with the give policyAssignmentId. + /// + /// + /// The cancellation token. + /// + public static async Task> ListForResourceAsync(this IPolicyExemptionsOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListForResourceWithHttpMessagesAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, filter, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves all policy exemptions that apply to a management group. + /// + /// + /// This operation retrieves the list of all policy exemptions applicable to + /// the management group that match the given $filter. Valid values for $filter + /// are: 'atScope()', 'atExactScope()', 'excludeExpired()' or + /// 'policyAssignmentId eq '{value}''. If $filter=atScope() is provided, the + /// returned list includes all policy exemptions that are assigned to the + /// management group or the management group's ancestors. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The ID of the management group. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq + /// '{value}''. If $filter is not provided, no filtering is performed. If + /// $filter is not provided, the unfiltered list includes all policy exemptions + /// associated with the scope, including those that apply directly or apply + /// from containing scopes. If $filter=atScope() is provided, the returned list + /// only includes all policy exemptions that apply to the scope, which is + /// everything in the unfiltered list except those applied to sub scopes + /// contained within the given scope. If $filter=atExactScope() is provided, + /// the returned list only includes all policy exemptions that at the given + /// scope. If $filter=excludeExpired() is provided, the returned list only + /// includes all policy exemptions that either haven't expired or didn't set + /// expiration date. If $filter=policyAssignmentId eq '{value}' is provided. + /// the returned list only includes all policy exemptions that are associated + /// with the give policyAssignmentId. + /// + public static IPage ListForManagementGroup(this IPolicyExemptionsOperations operations, string managementGroupId, string filter = default(string)) + { + return operations.ListForManagementGroupAsync(managementGroupId, filter).GetAwaiter().GetResult(); + } + + /// + /// Retrieves all policy exemptions that apply to a management group. + /// + /// + /// This operation retrieves the list of all policy exemptions applicable to + /// the management group that match the given $filter. Valid values for $filter + /// are: 'atScope()', 'atExactScope()', 'excludeExpired()' or + /// 'policyAssignmentId eq '{value}''. If $filter=atScope() is provided, the + /// returned list includes all policy exemptions that are assigned to the + /// management group or the management group's ancestors. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The ID of the management group. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq + /// '{value}''. If $filter is not provided, no filtering is performed. If + /// $filter is not provided, the unfiltered list includes all policy exemptions + /// associated with the scope, including those that apply directly or apply + /// from containing scopes. If $filter=atScope() is provided, the returned list + /// only includes all policy exemptions that apply to the scope, which is + /// everything in the unfiltered list except those applied to sub scopes + /// contained within the given scope. If $filter=atExactScope() is provided, + /// the returned list only includes all policy exemptions that at the given + /// scope. If $filter=excludeExpired() is provided, the returned list only + /// includes all policy exemptions that either haven't expired or didn't set + /// expiration date. If $filter=policyAssignmentId eq '{value}' is provided. + /// the returned list only includes all policy exemptions that are associated + /// with the give policyAssignmentId. + /// + /// + /// The cancellation token. + /// + public static async Task> ListForManagementGroupAsync(this IPolicyExemptionsOperations operations, string managementGroupId, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListForManagementGroupWithHttpMessagesAsync(managementGroupId, filter, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves all policy exemptions that apply to a subscription. + /// + /// + /// This operation retrieves the list of all policy exemptions associated with + /// the given subscription that match the optional given $filter. Valid values + /// for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or + /// 'policyAssignmentId eq '{value}''. If $filter is not provided, the + /// unfiltered list includes all policy exemptions associated with the + /// subscription, including those that apply directly or from management groups + /// that contain the given subscription, as well as any applied to objects + /// contained within the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IPolicyExemptionsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Retrieves all policy exemptions that apply to a subscription. + /// + /// + /// This operation retrieves the list of all policy exemptions associated with + /// the given subscription that match the optional given $filter. Valid values + /// for $filter are: 'atScope()', 'atExactScope()', 'excludeExpired()' or + /// 'policyAssignmentId eq '{value}''. If $filter is not provided, the + /// unfiltered list includes all policy exemptions associated with the + /// subscription, including those that apply directly or from management groups + /// that contain the given subscription, as well as any applied to objects + /// contained within the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IPolicyExemptionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves all policy exemptions that apply to a resource group. + /// + /// + /// This operation retrieves the list of all policy exemptions associated with + /// the given resource group in the given subscription that match the optional + /// given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', + /// 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not + /// provided, the unfiltered list includes all policy exemptions associated + /// with the resource group, including those that apply directly or apply from + /// containing scopes, as well as any applied to resources contained within the + /// resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListForResourceGroupNext(this IPolicyExemptionsOperations operations, string nextPageLink) + { + return operations.ListForResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Retrieves all policy exemptions that apply to a resource group. + /// + /// + /// This operation retrieves the list of all policy exemptions associated with + /// the given resource group in the given subscription that match the optional + /// given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()', + /// 'excludeExpired()' or 'policyAssignmentId eq '{value}''. If $filter is not + /// provided, the unfiltered list includes all policy exemptions associated + /// with the resource group, including those that apply directly or apply from + /// containing scopes, as well as any applied to resources contained within the + /// resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListForResourceGroupNextAsync(this IPolicyExemptionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListForResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves all policy exemptions that apply to a resource. + /// + /// + /// This operation retrieves the list of all policy exemptions associated with + /// the specified resource in the given resource group and subscription that + /// match the optional given $filter. Valid values for $filter are: + /// 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy exemptions associated with the resource, including those that apply + /// directly or from all containing scopes, as well as any applied to resources + /// contained within the resource. Three parameters plus the resource name are + /// used to identify a specific resource. If the resource is not part of a + /// parent resource (the more common case), the parent resource path should not + /// be provided (or provided as ''). For example a web app could be specified + /// as ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == + /// '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the + /// resource is part of a parent resource, then all parameters should be + /// provided. For example a virtual machine DNS name could be specified as + /// ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} + /// == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', + /// {resourceName} == 'MyComputerName'). A convenient alternative to providing + /// the namespace and type name separately is to provide both in the + /// {resourceType} parameter, format: ({resourceProviderNamespace} == '', + /// {parentResourcePath} == '', {resourceType} == 'Microsoft.Web/sites', + /// {resourceName} == 'MyWebApp'). + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListForResourceNext(this IPolicyExemptionsOperations operations, string nextPageLink) + { + return operations.ListForResourceNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Retrieves all policy exemptions that apply to a resource. + /// + /// + /// This operation retrieves the list of all policy exemptions associated with + /// the specified resource in the given resource group and subscription that + /// match the optional given $filter. Valid values for $filter are: + /// 'atScope()', 'atExactScope()', 'excludeExpired()' or 'policyAssignmentId eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy exemptions associated with the resource, including those that apply + /// directly or from all containing scopes, as well as any applied to resources + /// contained within the resource. Three parameters plus the resource name are + /// used to identify a specific resource. If the resource is not part of a + /// parent resource (the more common case), the parent resource path should not + /// be provided (or provided as ''). For example a web app could be specified + /// as ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == + /// '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the + /// resource is part of a parent resource, then all parameters should be + /// provided. For example a virtual machine DNS name could be specified as + /// ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} + /// == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', + /// {resourceName} == 'MyComputerName'). A convenient alternative to providing + /// the namespace and type name separately is to provide both in the + /// {resourceType} parameter, format: ({resourceProviderNamespace} == '', + /// {parentResourcePath} == '', {resourceType} == 'Microsoft.Web/sites', + /// {resourceName} == 'MyWebApp'). + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListForResourceNextAsync(this IPolicyExemptionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListForResourceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves all policy exemptions that apply to a management group. + /// + /// + /// This operation retrieves the list of all policy exemptions applicable to + /// the management group that match the given $filter. Valid values for $filter + /// are: 'atScope()', 'atExactScope()', 'excludeExpired()' or + /// 'policyAssignmentId eq '{value}''. If $filter=atScope() is provided, the + /// returned list includes all policy exemptions that are assigned to the + /// management group or the management group's ancestors. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListForManagementGroupNext(this IPolicyExemptionsOperations operations, string nextPageLink) + { + return operations.ListForManagementGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Retrieves all policy exemptions that apply to a management group. + /// + /// + /// This operation retrieves the list of all policy exemptions applicable to + /// the management group that match the given $filter. Valid values for $filter + /// are: 'atScope()', 'atExactScope()', 'excludeExpired()' or + /// 'policyAssignmentId eq '{value}''. If $filter=atScope() is provided, the + /// returned list includes all policy exemptions that are assigned to the + /// management group or the management group's ancestors. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListForManagementGroupNextAsync(this IPolicyExemptionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListForManagementGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicySetDefinitionsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicySetDefinitionsOperations.cs new file mode 100644 index 000000000000..7ad12bd49737 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicySetDefinitionsOperations.cs @@ -0,0 +1,2628 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// PolicySetDefinitionsOperations operations. + /// + internal partial class PolicySetDefinitionsOperations : IServiceOperations, IPolicySetDefinitionsOperations + { + /// + /// Initializes a new instance of the PolicySetDefinitionsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal PolicySetDefinitionsOperations(PolicyClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the PolicyClient + /// + public PolicyClient Client { get; private set; } + + /// + /// Creates or updates a policy set definition. + /// + /// + /// This operation creates or updates a policy set definition in the given + /// subscription with the given name. + /// + /// + /// The name of the policy set definition to create. + /// + /// + /// The policy set definition properties. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string policySetDefinitionName, PolicySetDefinition parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (policySetDefinitionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "policySetDefinitionName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("policySetDefinitionName", policySetDefinitionName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}").ToString(); + _url = _url.Replace("{policySetDefinitionName}", System.Uri.EscapeDataString(policySetDefinitionName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a policy set definition. + /// + /// + /// This operation deletes the policy set definition in the given subscription + /// with the given name. + /// + /// + /// The name of the policy set definition to delete. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteWithHttpMessagesAsync(string policySetDefinitionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (policySetDefinitionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "policySetDefinitionName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("policySetDefinitionName", policySetDefinitionName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}").ToString(); + _url = _url.Replace("{policySetDefinitionName}", System.Uri.EscapeDataString(policySetDefinitionName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves a policy set definition. + /// + /// + /// This operation retrieves the policy set definition in the given + /// subscription with the given name. + /// + /// + /// The name of the policy set definition to get. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string policySetDefinitionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (policySetDefinitionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "policySetDefinitionName"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("policySetDefinitionName", policySetDefinitionName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}").ToString(); + _url = _url.Replace("{policySetDefinitionName}", System.Uri.EscapeDataString(policySetDefinitionName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves a built in policy set definition. + /// + /// + /// This operation retrieves the built-in policy set definition with the given + /// name. + /// + /// + /// The name of the policy set definition to get. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetBuiltInWithHttpMessagesAsync(string policySetDefinitionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (policySetDefinitionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "policySetDefinitionName"); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("policySetDefinitionName", policySetDefinitionName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetBuiltIn", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}").ToString(); + _url = _url.Replace("{policySetDefinitionName}", System.Uri.EscapeDataString(policySetDefinitionName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves the policy set definitions for a subscription. + /// + /// + /// This operation retrieves a list of all the policy set definitions in a + /// given subscription that match the optional given $filter. Valid values for + /// $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy set definitions associated with the subscription, including those + /// that apply directly or from management groups that contain the given + /// subscription. If $filter=atExactScope() is provided, the returned list only + /// includes all policy set definitions that at the given subscription. If + /// $filter='policyType -eq {value}' is provided, the returned list only + /// includes all policy set definitions whose type match the {value}. Possible + /// policyType values are NotSpecified, BuiltIn and Custom. If + /// $filter='category -eq {value}' is provided, the returned list only includes + /// all policy set definitions whose category match the {value}. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If + /// $filter is not provided, no filtering is performed. If + /// $filter=atExactScope() is provided, the returned list only includes all + /// policy set definitions that at the given scope. If $filter='policyType -eq + /// {value}' is provided, the returned list only includes all policy set + /// definitions whose type match the {value}. Possible policyType values are + /// NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq + /// {value}' is provided, the returned list only includes all policy set + /// definitions whose category match the {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not provided, + /// it will return 500 records. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (top > 1000) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "top", 1000); + } + if (top < 1) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("filter", filter); + tracingParameters.Add("top", top); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", filter)); + } + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves built-in policy set definitions. + /// + /// + /// This operation retrieves a list of all the built-in policy set definitions + /// that match the optional given $filter. If $filter='category -eq {value}' is + /// provided, the returned list only includes all built-in policy set + /// definitions whose category match the {value}. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If + /// $filter is not provided, no filtering is performed. If + /// $filter=atExactScope() is provided, the returned list only includes all + /// policy set definitions that at the given scope. If $filter='policyType -eq + /// {value}' is provided, the returned list only includes all policy set + /// definitions whose type match the {value}. Possible policyType values are + /// NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq + /// {value}' is provided, the returned list only includes all policy set + /// definitions whose category match the {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not provided, + /// it will return 500 records. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListBuiltInWithHttpMessagesAsync(string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (top > 1000) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "top", 1000); + } + if (top < 1) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("filter", filter); + tracingParameters.Add("top", top); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListBuiltIn", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Authorization/policySetDefinitions").ToString(); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", filter)); + } + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates a policy set definition. + /// + /// + /// This operation creates or updates a policy set definition in the given + /// management group with the given name. + /// + /// + /// The name of the policy set definition to create. + /// + /// + /// The policy set definition properties. + /// + /// + /// The ID of the management group. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateOrUpdateAtManagementGroupWithHttpMessagesAsync(string policySetDefinitionName, PolicySetDefinition parameters, string managementGroupId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (policySetDefinitionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "policySetDefinitionName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (managementGroupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managementGroupId"); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("policySetDefinitionName", policySetDefinitionName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("managementGroupId", managementGroupId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdateAtManagementGroup", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}").ToString(); + _url = _url.Replace("{policySetDefinitionName}", System.Uri.EscapeDataString(policySetDefinitionName)); + _url = _url.Replace("{managementGroupId}", System.Uri.EscapeDataString(managementGroupId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a policy set definition. + /// + /// + /// This operation deletes the policy set definition in the given management + /// group with the given name. + /// + /// + /// The name of the policy set definition to delete. + /// + /// + /// The ID of the management group. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteAtManagementGroupWithHttpMessagesAsync(string policySetDefinitionName, string managementGroupId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (policySetDefinitionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "policySetDefinitionName"); + } + if (managementGroupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managementGroupId"); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("policySetDefinitionName", policySetDefinitionName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("managementGroupId", managementGroupId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "DeleteAtManagementGroup", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}").ToString(); + _url = _url.Replace("{policySetDefinitionName}", System.Uri.EscapeDataString(policySetDefinitionName)); + _url = _url.Replace("{managementGroupId}", System.Uri.EscapeDataString(managementGroupId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves a policy set definition. + /// + /// + /// This operation retrieves the policy set definition in the given management + /// group with the given name. + /// + /// + /// The name of the policy set definition to get. + /// + /// + /// The ID of the management group. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetAtManagementGroupWithHttpMessagesAsync(string policySetDefinitionName, string managementGroupId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (policySetDefinitionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "policySetDefinitionName"); + } + if (managementGroupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managementGroupId"); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("policySetDefinitionName", policySetDefinitionName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("managementGroupId", managementGroupId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetAtManagementGroup", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}").ToString(); + _url = _url.Replace("{policySetDefinitionName}", System.Uri.EscapeDataString(policySetDefinitionName)); + _url = _url.Replace("{managementGroupId}", System.Uri.EscapeDataString(managementGroupId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves all policy set definitions in management group. + /// + /// + /// This operation retrieves a list of all the policy set definitions in a + /// given management group that match the optional given $filter. Valid values + /// for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy set definitions associated with the management group, including + /// those that apply directly or from management groups that contain the given + /// management group. If $filter=atExactScope() is provided, the returned list + /// only includes all policy set definitions that at the given management + /// group. If $filter='policyType -eq {value}' is provided, the returned list + /// only includes all policy set definitions whose type match the {value}. + /// Possible policyType values are NotSpecified, BuiltIn and Custom. If + /// $filter='category -eq {value}' is provided, the returned list only includes + /// all policy set definitions whose category match the {value}. + /// + /// + /// The ID of the management group. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If + /// $filter is not provided, no filtering is performed. If + /// $filter=atExactScope() is provided, the returned list only includes all + /// policy set definitions that at the given scope. If $filter='policyType -eq + /// {value}' is provided, the returned list only includes all policy set + /// definitions whose type match the {value}. Possible policyType values are + /// NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq + /// {value}' is provided, the returned list only includes all policy set + /// definitions whose category match the {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not provided, + /// it will return 500 records. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByManagementGroupWithHttpMessagesAsync(string managementGroupId, string filter = default(string), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (managementGroupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "managementGroupId"); + } + if (top > 1000) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "top", 1000); + } + if (top < 1) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1); + } + string apiVersion = "2020-09-01"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("managementGroupId", managementGroupId); + tracingParameters.Add("filter", filter); + tracingParameters.Add("top", top); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByManagementGroup", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions").ToString(); + _url = _url.Replace("{managementGroupId}", System.Uri.EscapeDataString(managementGroupId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", filter)); + } + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves the policy set definitions for a subscription. + /// + /// + /// This operation retrieves a list of all the policy set definitions in a + /// given subscription that match the optional given $filter. Valid values for + /// $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy set definitions associated with the subscription, including those + /// that apply directly or from management groups that contain the given + /// subscription. If $filter=atExactScope() is provided, the returned list only + /// includes all policy set definitions that at the given subscription. If + /// $filter='policyType -eq {value}' is provided, the returned list only + /// includes all policy set definitions whose type match the {value}. Possible + /// policyType values are NotSpecified, BuiltIn and Custom. If + /// $filter='category -eq {value}' is provided, the returned list only includes + /// all policy set definitions whose category match the {value}. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves built-in policy set definitions. + /// + /// + /// This operation retrieves a list of all the built-in policy set definitions + /// that match the optional given $filter. If $filter='category -eq {value}' is + /// provided, the returned list only includes all built-in policy set + /// definitions whose category match the {value}. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListBuiltInNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListBuiltInNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Retrieves all policy set definitions in management group. + /// + /// + /// This operation retrieves a list of all the policy set definitions in a + /// given management group that match the optional given $filter. Valid values + /// for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy set definitions associated with the management group, including + /// those that apply directly or from management groups that contain the given + /// management group. If $filter=atExactScope() is provided, the returned list + /// only includes all policy set definitions that at the given management + /// group. If $filter='policyType -eq {value}' is provided, the returned list + /// only includes all policy set definitions whose type match the {value}. + /// Possible policyType values are NotSpecified, BuiltIn and Custom. If + /// $filter='category -eq {value}' is provided, the returned list only includes + /// all policy set definitions whose category match the {value}. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByManagementGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByManagementGroupNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicySetDefinitionsOperationsExtensions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicySetDefinitionsOperationsExtensions.cs new file mode 100644 index 000000000000..c978d5991be6 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/PolicySetDefinitionsOperationsExtensions.cs @@ -0,0 +1,775 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for PolicySetDefinitionsOperations. + /// + public static partial class PolicySetDefinitionsOperationsExtensions + { + /// + /// Creates or updates a policy set definition. + /// + /// + /// This operation creates or updates a policy set definition in the given + /// subscription with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy set definition to create. + /// + /// + /// The policy set definition properties. + /// + public static PolicySetDefinition CreateOrUpdate(this IPolicySetDefinitionsOperations operations, string policySetDefinitionName, PolicySetDefinition parameters) + { + return operations.CreateOrUpdateAsync(policySetDefinitionName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a policy set definition. + /// + /// + /// This operation creates or updates a policy set definition in the given + /// subscription with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy set definition to create. + /// + /// + /// The policy set definition properties. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IPolicySetDefinitionsOperations operations, string policySetDefinitionName, PolicySetDefinition parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(policySetDefinitionName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a policy set definition. + /// + /// + /// This operation deletes the policy set definition in the given subscription + /// with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy set definition to delete. + /// + public static void Delete(this IPolicySetDefinitionsOperations operations, string policySetDefinitionName) + { + operations.DeleteAsync(policySetDefinitionName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a policy set definition. + /// + /// + /// This operation deletes the policy set definition in the given subscription + /// with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy set definition to delete. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IPolicySetDefinitionsOperations operations, string policySetDefinitionName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(policySetDefinitionName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Retrieves a policy set definition. + /// + /// + /// This operation retrieves the policy set definition in the given + /// subscription with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy set definition to get. + /// + public static PolicySetDefinition Get(this IPolicySetDefinitionsOperations operations, string policySetDefinitionName) + { + return operations.GetAsync(policySetDefinitionName).GetAwaiter().GetResult(); + } + + /// + /// Retrieves a policy set definition. + /// + /// + /// This operation retrieves the policy set definition in the given + /// subscription with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy set definition to get. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IPolicySetDefinitionsOperations operations, string policySetDefinitionName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(policySetDefinitionName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves a built in policy set definition. + /// + /// + /// This operation retrieves the built-in policy set definition with the given + /// name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy set definition to get. + /// + public static PolicySetDefinition GetBuiltIn(this IPolicySetDefinitionsOperations operations, string policySetDefinitionName) + { + return operations.GetBuiltInAsync(policySetDefinitionName).GetAwaiter().GetResult(); + } + + /// + /// Retrieves a built in policy set definition. + /// + /// + /// This operation retrieves the built-in policy set definition with the given + /// name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy set definition to get. + /// + /// + /// The cancellation token. + /// + public static async Task GetBuiltInAsync(this IPolicySetDefinitionsOperations operations, string policySetDefinitionName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetBuiltInWithHttpMessagesAsync(policySetDefinitionName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves the policy set definitions for a subscription. + /// + /// + /// This operation retrieves a list of all the policy set definitions in a + /// given subscription that match the optional given $filter. Valid values for + /// $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy set definitions associated with the subscription, including those + /// that apply directly or from management groups that contain the given + /// subscription. If $filter=atExactScope() is provided, the returned list only + /// includes all policy set definitions that at the given subscription. If + /// $filter='policyType -eq {value}' is provided, the returned list only + /// includes all policy set definitions whose type match the {value}. Possible + /// policyType values are NotSpecified, BuiltIn and Custom. If + /// $filter='category -eq {value}' is provided, the returned list only includes + /// all policy set definitions whose category match the {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If + /// $filter is not provided, no filtering is performed. If + /// $filter=atExactScope() is provided, the returned list only includes all + /// policy set definitions that at the given scope. If $filter='policyType -eq + /// {value}' is provided, the returned list only includes all policy set + /// definitions whose type match the {value}. Possible policyType values are + /// NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq + /// {value}' is provided, the returned list only includes all policy set + /// definitions whose category match the {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not provided, + /// it will return 500 records. + /// + public static IPage List(this IPolicySetDefinitionsOperations operations, string filter = default(string), int? top = default(int?)) + { + return operations.ListAsync(filter, top).GetAwaiter().GetResult(); + } + + /// + /// Retrieves the policy set definitions for a subscription. + /// + /// + /// This operation retrieves a list of all the policy set definitions in a + /// given subscription that match the optional given $filter. Valid values for + /// $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy set definitions associated with the subscription, including those + /// that apply directly or from management groups that contain the given + /// subscription. If $filter=atExactScope() is provided, the returned list only + /// includes all policy set definitions that at the given subscription. If + /// $filter='policyType -eq {value}' is provided, the returned list only + /// includes all policy set definitions whose type match the {value}. Possible + /// policyType values are NotSpecified, BuiltIn and Custom. If + /// $filter='category -eq {value}' is provided, the returned list only includes + /// all policy set definitions whose category match the {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If + /// $filter is not provided, no filtering is performed. If + /// $filter=atExactScope() is provided, the returned list only includes all + /// policy set definitions that at the given scope. If $filter='policyType -eq + /// {value}' is provided, the returned list only includes all policy set + /// definitions whose type match the {value}. Possible policyType values are + /// NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq + /// {value}' is provided, the returned list only includes all policy set + /// definitions whose category match the {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not provided, + /// it will return 500 records. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IPolicySetDefinitionsOperations operations, string filter = default(string), int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(filter, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves built-in policy set definitions. + /// + /// + /// This operation retrieves a list of all the built-in policy set definitions + /// that match the optional given $filter. If $filter='category -eq {value}' is + /// provided, the returned list only includes all built-in policy set + /// definitions whose category match the {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If + /// $filter is not provided, no filtering is performed. If + /// $filter=atExactScope() is provided, the returned list only includes all + /// policy set definitions that at the given scope. If $filter='policyType -eq + /// {value}' is provided, the returned list only includes all policy set + /// definitions whose type match the {value}. Possible policyType values are + /// NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq + /// {value}' is provided, the returned list only includes all policy set + /// definitions whose category match the {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not provided, + /// it will return 500 records. + /// + public static IPage ListBuiltIn(this IPolicySetDefinitionsOperations operations, string filter = default(string), int? top = default(int?)) + { + return operations.ListBuiltInAsync(filter, top).GetAwaiter().GetResult(); + } + + /// + /// Retrieves built-in policy set definitions. + /// + /// + /// This operation retrieves a list of all the built-in policy set definitions + /// that match the optional given $filter. If $filter='category -eq {value}' is + /// provided, the returned list only includes all built-in policy set + /// definitions whose category match the {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If + /// $filter is not provided, no filtering is performed. If + /// $filter=atExactScope() is provided, the returned list only includes all + /// policy set definitions that at the given scope. If $filter='policyType -eq + /// {value}' is provided, the returned list only includes all policy set + /// definitions whose type match the {value}. Possible policyType values are + /// NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq + /// {value}' is provided, the returned list only includes all policy set + /// definitions whose category match the {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not provided, + /// it will return 500 records. + /// + /// + /// The cancellation token. + /// + public static async Task> ListBuiltInAsync(this IPolicySetDefinitionsOperations operations, string filter = default(string), int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListBuiltInWithHttpMessagesAsync(filter, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a policy set definition. + /// + /// + /// This operation creates or updates a policy set definition in the given + /// management group with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy set definition to create. + /// + /// + /// The policy set definition properties. + /// + /// + /// The ID of the management group. + /// + public static PolicySetDefinition CreateOrUpdateAtManagementGroup(this IPolicySetDefinitionsOperations operations, string policySetDefinitionName, PolicySetDefinition parameters, string managementGroupId) + { + return operations.CreateOrUpdateAtManagementGroupAsync(policySetDefinitionName, parameters, managementGroupId).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a policy set definition. + /// + /// + /// This operation creates or updates a policy set definition in the given + /// management group with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy set definition to create. + /// + /// + /// The policy set definition properties. + /// + /// + /// The ID of the management group. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAtManagementGroupAsync(this IPolicySetDefinitionsOperations operations, string policySetDefinitionName, PolicySetDefinition parameters, string managementGroupId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateAtManagementGroupWithHttpMessagesAsync(policySetDefinitionName, parameters, managementGroupId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a policy set definition. + /// + /// + /// This operation deletes the policy set definition in the given management + /// group with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy set definition to delete. + /// + /// + /// The ID of the management group. + /// + public static void DeleteAtManagementGroup(this IPolicySetDefinitionsOperations operations, string policySetDefinitionName, string managementGroupId) + { + operations.DeleteAtManagementGroupAsync(policySetDefinitionName, managementGroupId).GetAwaiter().GetResult(); + } + + /// + /// Deletes a policy set definition. + /// + /// + /// This operation deletes the policy set definition in the given management + /// group with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy set definition to delete. + /// + /// + /// The ID of the management group. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAtManagementGroupAsync(this IPolicySetDefinitionsOperations operations, string policySetDefinitionName, string managementGroupId, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteAtManagementGroupWithHttpMessagesAsync(policySetDefinitionName, managementGroupId, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Retrieves a policy set definition. + /// + /// + /// This operation retrieves the policy set definition in the given management + /// group with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy set definition to get. + /// + /// + /// The ID of the management group. + /// + public static PolicySetDefinition GetAtManagementGroup(this IPolicySetDefinitionsOperations operations, string policySetDefinitionName, string managementGroupId) + { + return operations.GetAtManagementGroupAsync(policySetDefinitionName, managementGroupId).GetAwaiter().GetResult(); + } + + /// + /// Retrieves a policy set definition. + /// + /// + /// This operation retrieves the policy set definition in the given management + /// group with the given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the policy set definition to get. + /// + /// + /// The ID of the management group. + /// + /// + /// The cancellation token. + /// + public static async Task GetAtManagementGroupAsync(this IPolicySetDefinitionsOperations operations, string policySetDefinitionName, string managementGroupId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetAtManagementGroupWithHttpMessagesAsync(policySetDefinitionName, managementGroupId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves all policy set definitions in management group. + /// + /// + /// This operation retrieves a list of all the policy set definitions in a + /// given management group that match the optional given $filter. Valid values + /// for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy set definitions associated with the management group, including + /// those that apply directly or from management groups that contain the given + /// management group. If $filter=atExactScope() is provided, the returned list + /// only includes all policy set definitions that at the given management + /// group. If $filter='policyType -eq {value}' is provided, the returned list + /// only includes all policy set definitions whose type match the {value}. + /// Possible policyType values are NotSpecified, BuiltIn and Custom. If + /// $filter='category -eq {value}' is provided, the returned list only includes + /// all policy set definitions whose category match the {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The ID of the management group. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If + /// $filter is not provided, no filtering is performed. If + /// $filter=atExactScope() is provided, the returned list only includes all + /// policy set definitions that at the given scope. If $filter='policyType -eq + /// {value}' is provided, the returned list only includes all policy set + /// definitions whose type match the {value}. Possible policyType values are + /// NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq + /// {value}' is provided, the returned list only includes all policy set + /// definitions whose category match the {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not provided, + /// it will return 500 records. + /// + public static IPage ListByManagementGroup(this IPolicySetDefinitionsOperations operations, string managementGroupId, string filter = default(string), int? top = default(int?)) + { + return operations.ListByManagementGroupAsync(managementGroupId, filter, top).GetAwaiter().GetResult(); + } + + /// + /// Retrieves all policy set definitions in management group. + /// + /// + /// This operation retrieves a list of all the policy set definitions in a + /// given management group that match the optional given $filter. Valid values + /// for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy set definitions associated with the management group, including + /// those that apply directly or from management groups that contain the given + /// management group. If $filter=atExactScope() is provided, the returned list + /// only includes all policy set definitions that at the given management + /// group. If $filter='policyType -eq {value}' is provided, the returned list + /// only includes all policy set definitions whose type match the {value}. + /// Possible policyType values are NotSpecified, BuiltIn and Custom. If + /// $filter='category -eq {value}' is provided, the returned list only includes + /// all policy set definitions whose category match the {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The ID of the management group. + /// + /// + /// The filter to apply on the operation. Valid values for $filter are: + /// 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If + /// $filter is not provided, no filtering is performed. If + /// $filter=atExactScope() is provided, the returned list only includes all + /// policy set definitions that at the given scope. If $filter='policyType -eq + /// {value}' is provided, the returned list only includes all policy set + /// definitions whose type match the {value}. Possible policyType values are + /// NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq + /// {value}' is provided, the returned list only includes all policy set + /// definitions whose category match the {value}. + /// + /// + /// Maximum number of records to return. When the $top filter is not provided, + /// it will return 500 records. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByManagementGroupAsync(this IPolicySetDefinitionsOperations operations, string managementGroupId, string filter = default(string), int? top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByManagementGroupWithHttpMessagesAsync(managementGroupId, filter, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves the policy set definitions for a subscription. + /// + /// + /// This operation retrieves a list of all the policy set definitions in a + /// given subscription that match the optional given $filter. Valid values for + /// $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy set definitions associated with the subscription, including those + /// that apply directly or from management groups that contain the given + /// subscription. If $filter=atExactScope() is provided, the returned list only + /// includes all policy set definitions that at the given subscription. If + /// $filter='policyType -eq {value}' is provided, the returned list only + /// includes all policy set definitions whose type match the {value}. Possible + /// policyType values are NotSpecified, BuiltIn and Custom. If + /// $filter='category -eq {value}' is provided, the returned list only includes + /// all policy set definitions whose category match the {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IPolicySetDefinitionsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Retrieves the policy set definitions for a subscription. + /// + /// + /// This operation retrieves a list of all the policy set definitions in a + /// given subscription that match the optional given $filter. Valid values for + /// $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy set definitions associated with the subscription, including those + /// that apply directly or from management groups that contain the given + /// subscription. If $filter=atExactScope() is provided, the returned list only + /// includes all policy set definitions that at the given subscription. If + /// $filter='policyType -eq {value}' is provided, the returned list only + /// includes all policy set definitions whose type match the {value}. Possible + /// policyType values are NotSpecified, BuiltIn and Custom. If + /// $filter='category -eq {value}' is provided, the returned list only includes + /// all policy set definitions whose category match the {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IPolicySetDefinitionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves built-in policy set definitions. + /// + /// + /// This operation retrieves a list of all the built-in policy set definitions + /// that match the optional given $filter. If $filter='category -eq {value}' is + /// provided, the returned list only includes all built-in policy set + /// definitions whose category match the {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListBuiltInNext(this IPolicySetDefinitionsOperations operations, string nextPageLink) + { + return operations.ListBuiltInNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Retrieves built-in policy set definitions. + /// + /// + /// This operation retrieves a list of all the built-in policy set definitions + /// that match the optional given $filter. If $filter='category -eq {value}' is + /// provided, the returned list only includes all built-in policy set + /// definitions whose category match the {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListBuiltInNextAsync(this IPolicySetDefinitionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListBuiltInNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Retrieves all policy set definitions in management group. + /// + /// + /// This operation retrieves a list of all the policy set definitions in a + /// given management group that match the optional given $filter. Valid values + /// for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy set definitions associated with the management group, including + /// those that apply directly or from management groups that contain the given + /// management group. If $filter=atExactScope() is provided, the returned list + /// only includes all policy set definitions that at the given management + /// group. If $filter='policyType -eq {value}' is provided, the returned list + /// only includes all policy set definitions whose type match the {value}. + /// Possible policyType values are NotSpecified, BuiltIn and Custom. If + /// $filter='category -eq {value}' is provided, the returned list only includes + /// all policy set definitions whose category match the {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByManagementGroupNext(this IPolicySetDefinitionsOperations operations, string nextPageLink) + { + return operations.ListByManagementGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Retrieves all policy set definitions in management group. + /// + /// + /// This operation retrieves a list of all the policy set definitions in a + /// given management group that match the optional given $filter. Valid values + /// for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq + /// '{value}''. If $filter is not provided, the unfiltered list includes all + /// policy set definitions associated with the management group, including + /// those that apply directly or from management groups that contain the given + /// management group. If $filter=atExactScope() is provided, the returned list + /// only includes all policy set definitions that at the given management + /// group. If $filter='policyType -eq {value}' is provided, the returned list + /// only includes all policy set definitions whose type match the {value}. + /// Possible policyType values are NotSpecified, BuiltIn and Custom. If + /// $filter='category -eq {value}' is provided, the returned list only includes + /// all policy set definitions whose category match the {value}. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByManagementGroupNextAsync(this IPolicySetDefinitionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByManagementGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ProviderResourceTypesOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ProviderResourceTypesOperations.cs new file mode 100644 index 000000000000..495dd4be0e9c --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ProviderResourceTypesOperations.cs @@ -0,0 +1,250 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ProviderResourceTypesOperations operations. + /// + internal partial class ProviderResourceTypesOperations : IServiceOperations, IProviderResourceTypesOperations + { + /// + /// Initializes a new instance of the ProviderResourceTypesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ProviderResourceTypesOperations(ResourceManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the ResourceManagementClient + /// + public ResourceManagementClient Client { get; private set; } + + /// + /// List the resource types for a 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. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> ListWithHttpMessagesAsync(string resourceProviderNamespace, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceProviderNamespace"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("expand", expand); + tracingParameters.Add("resourceProviderNamespace", resourceProviderNamespace); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/resourceTypes").ToString(); + _url = _url.Replace("{resourceProviderNamespace}", System.Uri.EscapeDataString(resourceProviderNamespace)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (expand != null) + { + _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand))); + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ProviderResourceTypesOperationsExtensions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ProviderResourceTypesOperationsExtensions.cs new file mode 100644 index 000000000000..cf6f5f0b2033 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ProviderResourceTypesOperationsExtensions.cs @@ -0,0 +1,67 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for ProviderResourceTypesOperations. + /// + public static partial class ProviderResourceTypesOperationsExtensions + { + /// + /// List the resource types for a specified resource provider. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The namespace of the resource provider. + /// + /// + /// The $expand query parameter. For example, to include property aliases in + /// response, use $expand=resourceTypes/aliases. + /// + public static ProviderResourceTypeListResult List(this IProviderResourceTypesOperations operations, string resourceProviderNamespace, string expand = default(string)) + { + return operations.ListAsync(resourceProviderNamespace, expand).GetAwaiter().GetResult(); + } + + /// + /// List the resource types for a specified resource provider. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + public static async Task ListAsync(this IProviderResourceTypesOperations operations, string resourceProviderNamespace, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(resourceProviderNamespace, expand, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ProvidersOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ProvidersOperations.cs new file mode 100644 index 000000000000..a794aa22ec47 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ProvidersOperations.cs @@ -0,0 +1,1928 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ProvidersOperations operations. + /// + internal partial class ProvidersOperations : IServiceOperations, IProvidersOperations + { + /// + /// Initializes a new instance of the ProvidersOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ProvidersOperations(ResourceManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the ResourceManagementClient + /// + public ResourceManagementClient Client { get; private set; } + + /// + /// Unregisters a subscription from a resource provider. + /// + /// + /// The namespace of the resource provider to unregister. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> UnregisterWithHttpMessagesAsync(string resourceProviderNamespace, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceProviderNamespace"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceProviderNamespace", resourceProviderNamespace); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Unregister", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/unregister").ToString(); + _url = _url.Replace("{resourceProviderNamespace}", System.Uri.EscapeDataString(resourceProviderNamespace)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Registers a management group with a resource provider. + /// + /// + /// The namespace of the resource provider to register. + /// + /// + /// The management group ID. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task RegisterAtManagementGroupScopeWithHttpMessagesAsync(string resourceProviderNamespace, string groupId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceProviderNamespace"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (groupId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "groupId"); + } + if (groupId != null) + { + if (groupId.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "groupId", 90); + } + if (groupId.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "groupId", 1); + } + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceProviderNamespace", resourceProviderNamespace); + tracingParameters.Add("groupId", groupId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "RegisterAtManagementGroupScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Management/managementGroups/{groupId}/providers/{resourceProviderNamespace}/register").ToString(); + _url = _url.Replace("{resourceProviderNamespace}", System.Uri.EscapeDataString(resourceProviderNamespace)); + _url = _url.Replace("{groupId}", System.Uri.EscapeDataString(groupId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get the provider permissions. + /// + /// + /// The namespace of the resource provider. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> ProviderPermissionsWithHttpMessagesAsync(string resourceProviderNamespace, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceProviderNamespace"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceProviderNamespace", resourceProviderNamespace); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ProviderPermissions", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/providerPermissions").ToString(); + _url = _url.Replace("{resourceProviderNamespace}", System.Uri.EscapeDataString(resourceProviderNamespace)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Registers a subscription with a resource provider. + /// + /// + /// The namespace of the resource provider to register. + /// + /// + /// The third party consent for S2S. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> RegisterWithHttpMessagesAsync(string resourceProviderNamespace, ProviderRegistrationRequest properties = default(ProviderRegistrationRequest), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceProviderNamespace"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceProviderNamespace", resourceProviderNamespace); + tracingParameters.Add("properties", properties); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Register", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register").ToString(); + _url = _url.Replace("{resourceProviderNamespace}", System.Uri.EscapeDataString(resourceProviderNamespace)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(properties != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(properties, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// 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. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(int? top = default(int?), string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("top", top); + tracingParameters.Add("expand", expand); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + if (expand != null) + { + _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand))); + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all resource providers for the tenant. + /// + /// + /// The number of results to return. If null is passed returns all providers. + /// + /// + /// 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. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtTenantScopeWithHttpMessagesAsync(int? top = default(int?), string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("top", top); + tracingParameters.Add("expand", expand); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtTenantScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers").ToString(); + List _queryParameters = new List(); + if (top != null) + { + _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"')))); + } + if (expand != null) + { + _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand))); + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// 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. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceProviderNamespace, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceProviderNamespace"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("expand", expand); + tracingParameters.Add("resourceProviderNamespace", resourceProviderNamespace); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}").ToString(); + _url = _url.Replace("{resourceProviderNamespace}", System.Uri.EscapeDataString(resourceProviderNamespace)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (expand != null) + { + _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand))); + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the specified resource provider at the tenant level. + /// + /// + /// The namespace of the resource provider. + /// + /// + /// The $expand query parameter. For example, to include property aliases in + /// response, use $expand=resourceTypes/aliases. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetAtTenantScopeWithHttpMessagesAsync(string resourceProviderNamespace, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceProviderNamespace"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("expand", expand); + tracingParameters.Add("resourceProviderNamespace", resourceProviderNamespace); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetAtTenantScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/{resourceProviderNamespace}").ToString(); + _url = _url.Replace("{resourceProviderNamespace}", System.Uri.EscapeDataString(resourceProviderNamespace)); + List _queryParameters = new List(); + if (expand != null) + { + _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand))); + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all resource providers for a subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all resource providers for the tenant. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtTenantScopeNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtTenantScopeNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ProvidersOperationsExtensions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ProvidersOperationsExtensions.cs new file mode 100644 index 000000000000..13fe3e592fdf --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ProvidersOperationsExtensions.cs @@ -0,0 +1,414 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for ProvidersOperations. + /// + public static partial class ProvidersOperationsExtensions + { + /// + /// Unregisters a subscription from a resource provider. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The namespace of the resource provider to unregister. + /// + public static Provider Unregister(this IProvidersOperations operations, string resourceProviderNamespace) + { + return operations.UnregisterAsync(resourceProviderNamespace).GetAwaiter().GetResult(); + } + + /// + /// Unregisters a subscription from a resource provider. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The namespace of the resource provider to unregister. + /// + /// + /// The cancellation token. + /// + public static async Task UnregisterAsync(this IProvidersOperations operations, string resourceProviderNamespace, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UnregisterWithHttpMessagesAsync(resourceProviderNamespace, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Registers a management group with a resource provider. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The namespace of the resource provider to register. + /// + /// + /// The management group ID. + /// + public static void RegisterAtManagementGroupScope(this IProvidersOperations operations, string resourceProviderNamespace, string groupId) + { + operations.RegisterAtManagementGroupScopeAsync(resourceProviderNamespace, groupId).GetAwaiter().GetResult(); + } + + /// + /// Registers a management group with a resource provider. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The namespace of the resource provider to register. + /// + /// + /// The management group ID. + /// + /// + /// The cancellation token. + /// + public static async Task RegisterAtManagementGroupScopeAsync(this IProvidersOperations operations, string resourceProviderNamespace, string groupId, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.RegisterAtManagementGroupScopeWithHttpMessagesAsync(resourceProviderNamespace, groupId, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Get the provider permissions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The namespace of the resource provider. + /// + public static ProviderPermissionListResult ProviderPermissions(this IProvidersOperations operations, string resourceProviderNamespace) + { + return operations.ProviderPermissionsAsync(resourceProviderNamespace).GetAwaiter().GetResult(); + } + + /// + /// Get the provider permissions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The namespace of the resource provider. + /// + /// + /// The cancellation token. + /// + public static async Task ProviderPermissionsAsync(this IProvidersOperations operations, string resourceProviderNamespace, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ProviderPermissionsWithHttpMessagesAsync(resourceProviderNamespace, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Registers a subscription with a resource provider. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The namespace of the resource provider to register. + /// + /// + /// The third party consent for S2S. + /// + public static Provider Register(this IProvidersOperations operations, string resourceProviderNamespace, ProviderRegistrationRequest properties = default(ProviderRegistrationRequest)) + { + return operations.RegisterAsync(resourceProviderNamespace, properties).GetAwaiter().GetResult(); + } + + /// + /// Registers a subscription with a resource provider. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The namespace of the resource provider to register. + /// + /// + /// The third party consent for S2S. + /// + /// + /// The cancellation token. + /// + public static async Task RegisterAsync(this IProvidersOperations operations, string resourceProviderNamespace, ProviderRegistrationRequest properties = default(ProviderRegistrationRequest), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.RegisterWithHttpMessagesAsync(resourceProviderNamespace, properties, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all resource providers for a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + public static IPage List(this IProvidersOperations operations, int? top = default(int?), string expand = default(string)) + { + return operations.ListAsync(top, expand).GetAwaiter().GetResult(); + } + + /// + /// Gets all resource providers for a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + public static async Task> ListAsync(this IProvidersOperations operations, int? top = default(int?), string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(top, expand, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all resource providers for the tenant. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The number of results to return. If null is passed returns all providers. + /// + /// + /// 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. + /// + public static IPage ListAtTenantScope(this IProvidersOperations operations, int? top = default(int?), string expand = default(string)) + { + return operations.ListAtTenantScopeAsync(top, expand).GetAwaiter().GetResult(); + } + + /// + /// Gets all resource providers for the tenant. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The number of results to return. If null is passed returns all providers. + /// + /// + /// 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. + /// + public static async Task> ListAtTenantScopeAsync(this IProvidersOperations operations, int? top = default(int?), string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtTenantScopeWithHttpMessagesAsync(top, expand, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the specified resource provider. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The namespace of the resource provider. + /// + /// + /// The $expand query parameter. For example, to include property aliases in + /// response, use $expand=resourceTypes/aliases. + /// + public static Provider Get(this IProvidersOperations operations, string resourceProviderNamespace, string expand = default(string)) + { + return operations.GetAsync(resourceProviderNamespace, expand).GetAwaiter().GetResult(); + } + + /// + /// Gets the specified resource provider. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + public static async Task GetAsync(this IProvidersOperations operations, string resourceProviderNamespace, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceProviderNamespace, expand, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the specified resource provider at the tenant level. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The namespace of the resource provider. + /// + /// + /// The $expand query parameter. For example, to include property aliases in + /// response, use $expand=resourceTypes/aliases. + /// + public static Provider GetAtTenantScope(this IProvidersOperations operations, string resourceProviderNamespace, string expand = default(string)) + { + return operations.GetAtTenantScopeAsync(resourceProviderNamespace, expand).GetAwaiter().GetResult(); + } + + /// + /// Gets the specified resource provider at the tenant level. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + public static async Task GetAtTenantScopeAsync(this IProvidersOperations operations, string resourceProviderNamespace, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetAtTenantScopeWithHttpMessagesAsync(resourceProviderNamespace, expand, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all resource providers for a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IProvidersOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all resource providers for a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IProvidersOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all resource providers for the tenant. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListAtTenantScopeNext(this IProvidersOperations operations, string nextPageLink) + { + return operations.ListAtTenantScopeNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all resource providers for the tenant. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtTenantScopeNextAsync(this IProvidersOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtTenantScopeNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ResourceGroupsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ResourceGroupsOperations.cs new file mode 100644 index 000000000000..dbf5f667ad6a --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ResourceGroupsOperations.cs @@ -0,0 +1,1722 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ResourceGroupsOperations operations. + /// + internal partial class ResourceGroupsOperations : IServiceOperations, IResourceGroupsOperations + { + /// + /// Initializes a new instance of the ResourceGroupsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ResourceGroupsOperations(ResourceManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the ResourceManagementClient + /// + public ResourceManagementClient Client { get; private set; } + + /// + /// Checks whether a resource group exists. + /// + /// + /// The name of the resource group to check. The name is case insensitive. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CheckExistenceWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CheckExistence", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("HEAD"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 204 && (int)_statusCode != 404) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + _result.Body = _statusCode == System.Net.HttpStatusCode.NoContent; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates a resource group. + /// + /// + /// The name of the resource group to create or update. Can include + /// alphanumeric, underscore, parentheses, hyphen, period (except at end), and + /// Unicode characters that match the allowed characters. + /// + /// + /// Parameters supplied to the create or update a resource group. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, ResourceGroup parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a resource group. + /// + /// + /// 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 resource types you want to force delete. Currently, only the following + /// is supported: + /// forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string forceDeletionTypes = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, forceDeletionTypes, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a resource group. + /// + /// + /// The name of the resource group to get. The name is case insensitive. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Updates a resource group. + /// + /// + /// 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. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, ResourceGroupPatchable parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Captures the specified resource group as a template. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Parameters for exporting the template. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> ExportTemplateWithHttpMessagesAsync(string resourceGroupName, ExportTemplateRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginExportTemplateWithHttpMessagesAsync(resourceGroupName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets all the resource groups for a subscription. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a resource group. + /// + /// + /// 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 resource types you want to force delete. Currently, only the following + /// is supported: + /// forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string forceDeletionTypes = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("forceDeletionTypes", forceDeletionTypes); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (forceDeletionTypes != null) + { + _queryParameters.Add(string.Format("forceDeletionTypes={0}", System.Uri.EscapeDataString(forceDeletionTypes))); + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Captures the specified resource group as a template. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Parameters for exporting the template. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginExportTemplateWithHttpMessagesAsync(string resourceGroupName, ExportTemplateRequest parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginExportTemplate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/exportTemplate").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all the resource groups for a subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ResourceGroupsOperationsExtensions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ResourceGroupsOperationsExtensions.cs new file mode 100644 index 000000000000..e0b1aad6ea6f --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ResourceGroupsOperationsExtensions.cs @@ -0,0 +1,438 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for ResourceGroupsOperations. + /// + public static partial class ResourceGroupsOperationsExtensions + { + /// + /// Checks whether a resource group exists. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to check. The name is case insensitive. + /// + public static bool CheckExistence(this IResourceGroupsOperations operations, string resourceGroupName) + { + return operations.CheckExistenceAsync(resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Checks whether a resource group exists. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to check. The name is case insensitive. + /// + /// + /// The cancellation token. + /// + public static async Task CheckExistenceAsync(this IResourceGroupsOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CheckExistenceWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to create or update. Can include + /// alphanumeric, underscore, parentheses, hyphen, period (except at end), and + /// Unicode characters that match the allowed characters. + /// + /// + /// Parameters supplied to the create or update a resource group. + /// + public static ResourceGroup CreateOrUpdate(this IResourceGroupsOperations operations, string resourceGroupName, ResourceGroup parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to create or update. Can include + /// alphanumeric, underscore, parentheses, hyphen, period (except at end), and + /// Unicode characters that match the allowed characters. + /// + /// + /// Parameters supplied to the create or update a resource group. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IResourceGroupsOperations operations, string resourceGroupName, ResourceGroup parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a resource group. + /// + /// + /// 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 operations group for this extension method. + /// + /// + /// The name of the resource group to delete. The name is case insensitive. + /// + /// + /// The resource types you want to force delete. Currently, only the following + /// is supported: + /// forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets + /// + public static void Delete(this IResourceGroupsOperations operations, string resourceGroupName, string forceDeletionTypes = default(string)) + { + operations.DeleteAsync(resourceGroupName, forceDeletionTypes).GetAwaiter().GetResult(); + } + + /// + /// Deletes a resource group. + /// + /// + /// 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 operations group for this extension method. + /// + /// + /// The name of the resource group to delete. The name is case insensitive. + /// + /// + /// The resource types you want to force delete. Currently, only the following + /// is supported: + /// forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IResourceGroupsOperations operations, string resourceGroupName, string forceDeletionTypes = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, forceDeletionTypes, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to get. The name is case insensitive. + /// + public static ResourceGroup Get(this IResourceGroupsOperations operations, string resourceGroupName) + { + return operations.GetAsync(resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Gets a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group to get. The name is case insensitive. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IResourceGroupsOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates a resource group. + /// + /// + /// 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 operations group for this extension method. + /// + /// + /// The name of the resource group to update. The name is case insensitive. + /// + /// + /// Parameters supplied to update a resource group. + /// + public static ResourceGroup Update(this IResourceGroupsOperations operations, string resourceGroupName, ResourceGroupPatchable parameters) + { + return operations.UpdateAsync(resourceGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a resource group. + /// + /// + /// 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 operations group for this extension method. + /// + /// + /// The name of the resource group to update. The name is case insensitive. + /// + /// + /// Parameters supplied to update a resource group. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IResourceGroupsOperations operations, string resourceGroupName, ResourceGroupPatchable parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Captures the specified resource group as a template. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Parameters for exporting the template. + /// + public static ResourceGroupExportResult ExportTemplate(this IResourceGroupsOperations operations, string resourceGroupName, ExportTemplateRequest parameters) + { + return operations.ExportTemplateAsync(resourceGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Captures the specified resource group as a template. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Parameters for exporting the template. + /// + /// + /// The cancellation token. + /// + public static async Task ExportTemplateAsync(this IResourceGroupsOperations operations, string resourceGroupName, ExportTemplateRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ExportTemplateWithHttpMessagesAsync(resourceGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the resource groups for a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage List(this IResourceGroupsOperations operations, ODataQuery odataQuery = default(ODataQuery)) + { + return operations.ListAsync(odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Gets all the resource groups for a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IResourceGroupsOperations operations, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a resource group. + /// + /// + /// 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 operations group for this extension method. + /// + /// + /// The name of the resource group to delete. The name is case insensitive. + /// + /// + /// The resource types you want to force delete. Currently, only the following + /// is supported: + /// forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets + /// + public static void BeginDelete(this IResourceGroupsOperations operations, string resourceGroupName, string forceDeletionTypes = default(string)) + { + operations.BeginDeleteAsync(resourceGroupName, forceDeletionTypes).GetAwaiter().GetResult(); + } + + /// + /// Deletes a resource group. + /// + /// + /// 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 operations group for this extension method. + /// + /// + /// The name of the resource group to delete. The name is case insensitive. + /// + /// + /// The resource types you want to force delete. Currently, only the following + /// is supported: + /// forceDeletionTypes=Microsoft.Compute/virtualMachines,Microsoft.Compute/virtualMachineScaleSets + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IResourceGroupsOperations operations, string resourceGroupName, string forceDeletionTypes = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, forceDeletionTypes, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Captures the specified resource group as a template. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Parameters for exporting the template. + /// + public static ResourceGroupExportResult BeginExportTemplate(this IResourceGroupsOperations operations, string resourceGroupName, ExportTemplateRequest parameters) + { + return operations.BeginExportTemplateAsync(resourceGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Captures the specified resource group as a template. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Parameters for exporting the template. + /// + /// + /// The cancellation token. + /// + public static async Task BeginExportTemplateAsync(this IResourceGroupsOperations operations, string resourceGroupName, ExportTemplateRequest parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginExportTemplateWithHttpMessagesAsync(resourceGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the resource groups for a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IResourceGroupsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all the resource groups for a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IResourceGroupsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ResourceLinksOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ResourceLinksOperations.cs new file mode 100644 index 000000000000..a11bf997da2f --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ResourceLinksOperations.cs @@ -0,0 +1,1356 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ResourceLinksOperations operations. + /// + internal partial class ResourceLinksOperations : IServiceOperations, IResourceLinksOperations + { + /// + /// Initializes a new instance of the ResourceLinksOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ResourceLinksOperations(ManagementLinkClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the ManagementLinkClient + /// + public ManagementLinkClient Client { get; private set; } + + /// + /// Deletes a resource link with the specified ID. + /// + /// + /// The fully qualified ID of the resource link. Use the format, + /// /subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/{provider-namespace}/{resource-type}/{resource-name}/Microsoft.Resources/links/{link-name}. + /// For example, + /// /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteWithHttpMessagesAsync(string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (linkId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "linkId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("linkId", linkId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{linkId}").ToString(); + _url = _url.Replace("{linkId}", linkId); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates a resource link between the specified resources. + /// + /// + /// The fully qualified ID of the resource link. Use the format, + /// /subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/{provider-namespace}/{resource-type}/{resource-name}/Microsoft.Resources/links/{link-name}. + /// For example, + /// /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink + /// + /// + /// Parameters for creating or updating a resource link. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string linkId, ResourceLink parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (linkId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "linkId"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("linkId", linkId); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{linkId}").ToString(); + _url = _url.Replace("{linkId}", linkId); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a resource link with the specified ID. + /// + /// + /// The fully qualified Id of the resource link. For example, + /// /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (linkId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "linkId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("linkId", linkId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{linkId}").ToString(); + _url = _url.Replace("{linkId}", linkId); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all the linked resources for the subscription. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtSubscriptionWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtSubscription", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Resources/links").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a list of resource links at and below the specified source scope. + /// + /// + /// The fully qualified ID of the scope for getting the resource links. For + /// example, to list resource links at and under a resource group, set the + /// scope to + /// /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtSourceScopeWithHttpMessagesAsync(string scope, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("scope", scope); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtSourceScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Resources/links").ToString(); + _url = _url.Replace("{scope}", scope); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all the linked resources for the subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtSubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtSubscriptionNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a list of resource links at and below the specified source scope. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAtSourceScopeNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAtSourceScopeNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ResourceLinksOperationsExtensions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ResourceLinksOperationsExtensions.cs new file mode 100644 index 000000000000..0f8d42239e7c --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ResourceLinksOperationsExtensions.cs @@ -0,0 +1,293 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for ResourceLinksOperations. + /// + public static partial class ResourceLinksOperationsExtensions + { + /// + /// Deletes a resource link with the specified ID. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The fully qualified ID of the resource link. Use the format, + /// /subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/{provider-namespace}/{resource-type}/{resource-name}/Microsoft.Resources/links/{link-name}. + /// For example, + /// /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink + /// + public static void Delete(this IResourceLinksOperations operations, string linkId) + { + operations.DeleteAsync(linkId).GetAwaiter().GetResult(); + } + + /// + /// Deletes a resource link with the specified ID. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The fully qualified ID of the resource link. Use the format, + /// /subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/{provider-namespace}/{resource-type}/{resource-name}/Microsoft.Resources/links/{link-name}. + /// For example, + /// /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IResourceLinksOperations operations, string linkId, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(linkId, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Creates or updates a resource link between the specified resources. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The fully qualified ID of the resource link. Use the format, + /// /subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/{provider-namespace}/{resource-type}/{resource-name}/Microsoft.Resources/links/{link-name}. + /// For example, + /// /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink + /// + /// + /// Parameters for creating or updating a resource link. + /// + public static ResourceLink CreateOrUpdate(this IResourceLinksOperations operations, string linkId, ResourceLink parameters) + { + return operations.CreateOrUpdateAsync(linkId, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a resource link between the specified resources. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The fully qualified ID of the resource link. Use the format, + /// /subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/{provider-namespace}/{resource-type}/{resource-name}/Microsoft.Resources/links/{link-name}. + /// For example, + /// /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink + /// + /// + /// Parameters for creating or updating a resource link. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IResourceLinksOperations operations, string linkId, ResourceLink parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(linkId, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a resource link with the specified ID. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The fully qualified Id of the resource link. For example, + /// /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink + /// + public static ResourceLink Get(this IResourceLinksOperations operations, string linkId) + { + return operations.GetAsync(linkId).GetAwaiter().GetResult(); + } + + /// + /// Gets a resource link with the specified ID. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The fully qualified Id of the resource link. For example, + /// /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IResourceLinksOperations operations, string linkId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(linkId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the linked resources for the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage ListAtSubscription(this IResourceLinksOperations operations, ODataQuery odataQuery = default(ODataQuery)) + { + return operations.ListAtSubscriptionAsync(odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Gets all the linked resources for the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtSubscriptionAsync(this IResourceLinksOperations operations, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtSubscriptionWithHttpMessagesAsync(odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a list of resource links at and below the specified source scope. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The fully qualified ID of the scope for getting the resource links. For + /// example, to list resource links at and under a resource group, set the + /// scope to + /// /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage ListAtSourceScope(this IResourceLinksOperations operations, string scope, ODataQuery odataQuery = default(ODataQuery)) + { + return operations.ListAtSourceScopeAsync(scope, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of resource links at and below the specified source scope. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The fully qualified ID of the scope for getting the resource links. For + /// example, to list resource links at and under a resource group, set the + /// scope to + /// /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtSourceScopeAsync(this IResourceLinksOperations operations, string scope, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtSourceScopeWithHttpMessagesAsync(scope, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all the linked resources for the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListAtSubscriptionNext(this IResourceLinksOperations operations, string nextPageLink) + { + return operations.ListAtSubscriptionNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all the linked resources for the subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtSubscriptionNextAsync(this IResourceLinksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtSubscriptionNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a list of resource links at and below the specified source scope. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListAtSourceScopeNext(this IResourceLinksOperations operations, string nextPageLink) + { + return operations.ListAtSourceScopeNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of resource links at and below the specified source scope. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAtSourceScopeNextAsync(this IResourceLinksOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAtSourceScopeNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ResourceManagementClient.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ResourceManagementClient.cs new file mode 100644 index 000000000000..abcaa04fcf16 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ResourceManagementClient.cs @@ -0,0 +1,402 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + + /// + /// Provides operations for working with resources and resource groups. + /// + public partial class ResourceManagementClient : ServiceClient, IResourceManagementClient, IAzureClient + { + /// + /// The base URI of the service. + /// + public System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + public JsonSerializerSettings SerializationSettings { get; private set; } + + /// + /// Gets or sets json deserialization settings. + /// + public JsonSerializerSettings DeserializationSettings { get; private set; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + public ServiceClientCredentials Credentials { get; private set; } + + /// + /// The Microsoft Azure subscription ID. + /// + public string SubscriptionId { get; set; } + + /// + /// The API version to use for this operation. + /// + public string ApiVersion { get; private set; } + + /// + /// The preferred language for the response. + /// + public string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default value is + /// 30. + /// + public int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. When set to + /// true a unique x-ms-client-request-id value is generated and included in + /// each request. Default is true. + /// + public bool? GenerateClientRequestId { get; set; } + + /// + /// Gets the IOperations. + /// + public virtual IOperations Operations { get; private set; } + + /// + /// Gets the IDeploymentsOperations. + /// + public virtual IDeploymentsOperations Deployments { get; private set; } + + /// + /// Gets the IProvidersOperations. + /// + public virtual IProvidersOperations Providers { get; private set; } + + /// + /// Gets the IProviderResourceTypesOperations. + /// + public virtual IProviderResourceTypesOperations ProviderResourceTypes { get; private set; } + + /// + /// Gets the IResourcesOperations. + /// + public virtual IResourcesOperations Resources { get; private set; } + + /// + /// Gets the IResourceGroupsOperations. + /// + public virtual IResourceGroupsOperations ResourceGroups { get; private set; } + + /// + /// Gets the ITagsOperations. + /// + public virtual ITagsOperations Tags { get; private set; } + + /// + /// Gets the IDeploymentOperations. + /// + public virtual IDeploymentOperations DeploymentOperations { get; private set; } + + /// + /// Initializes a new instance of the ResourceManagementClient class. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling ResourceManagementClient.Dispose(). False: will not dispose provided httpClient + protected ResourceManagementClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient) + { + Initialize(); + } + + /// + /// Initializes a new instance of the ResourceManagementClient class. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected ResourceManagementClient(params DelegatingHandler[] handlers) : base(handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the ResourceManagementClient class. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected ResourceManagementClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the ResourceManagementClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected ResourceManagementClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the ResourceManagementClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected ResourceManagementClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the ResourceManagementClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public ResourceManagementClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the ResourceManagementClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling ResourceManagementClient.Dispose(). False: will not dispose provided httpClient + /// + /// Thrown when a required parameter is null + /// + public ResourceManagementClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the ResourceManagementClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public ResourceManagementClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the ResourceManagementClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public ResourceManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the ResourceManagementClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public ResourceManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// An optional partial-method to perform custom initialization. + /// + partial void CustomInitialize(); + /// + /// Initializes client properties. + /// + private void Initialize() + { + Operations = new Operations(this); + Deployments = new DeploymentsOperations(this); + Providers = new ProvidersOperations(this); + ProviderResourceTypes = new ProviderResourceTypesOperations(this); + Resources = new ResourcesOperations(this); + ResourceGroups = new ResourceGroupsOperations(this); + Tags = new TagsOperations(this); + DeploymentOperations = new DeploymentOperations(this); + BaseUri = new System.Uri("https://management.azure.com"); + ApiVersion = "2021-04-01"; + AcceptLanguage = "en-US"; + LongRunningOperationRetryTimeout = 30; + GenerateClientRequestId = true; + SerializationSettings = new JsonSerializerSettings + { + Formatting = Newtonsoft.Json.Formatting.Indented, + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + SerializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings = new JsonSerializerSettings + { + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + CustomInitialize(); + DeserializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ResourcesOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ResourcesOperations.cs new file mode 100644 index 000000000000..1ae244d478eb --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ResourcesOperations.cs @@ -0,0 +1,3639 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// ResourcesOperations operations. + /// + internal partial class ResourcesOperations : IServiceOperations, IResourcesOperations + { + /// + /// Initializes a new instance of the ResourcesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal ResourcesOperations(ResourceManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the ResourceManagementClient + /// + public ResourceManagementClient Client { get; private set; } + + /// + /// Get all the resources for a resource group. + /// + /// + /// The resource group with the resources to get. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Moves resources from one resource group to another resource group. + /// + /// + /// The resources to be moved must be in the same source resource group in the + /// source subscription being used. 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 from the source subscription containing the + /// resources to be moved. + /// + /// + /// Parameters for moving resources. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task MoveResourcesWithHttpMessagesAsync(string sourceResourceGroupName, ResourcesMoveInfo parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginMoveResourcesWithHttpMessagesAsync(sourceResourceGroupName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Validates whether resources can be moved from one resource group to another + /// resource group. + /// + /// + /// This operation checks whether the specified resources can be moved to the + /// target. The resources to be moved must be in the same source resource group + /// in the source subscription being used. 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 from the source subscription containing the + /// resources to be validated for move. + /// + /// + /// Parameters for moving resources. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task ValidateMoveResourcesWithHttpMessagesAsync(string sourceResourceGroupName, ResourcesMoveInfo parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginValidateMoveResourcesWithHttpMessagesAsync(sourceResourceGroupName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get all the resources in a subscription. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("odataQuery", odataQuery); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resources").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (odataQuery != null) + { + var _odataFilter = odataQuery.ToString(); + if (!string.IsNullOrEmpty(_odataFilter)) + { + _queryParameters.Add(_odataFilter); + } + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// 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 API version to use for the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CheckExistenceWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (resourceProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceProviderNamespace"); + } + if (parentResourcePath == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parentResourcePath"); + } + if (resourceType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceType"); + } + if (resourceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceName"); + } + if (apiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "apiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("resourceProviderNamespace", resourceProviderNamespace); + tracingParameters.Add("parentResourcePath", parentResourcePath); + tracingParameters.Add("resourceType", resourceType); + tracingParameters.Add("resourceName", resourceName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CheckExistence", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceProviderNamespace}", System.Uri.EscapeDataString(resourceProviderNamespace)); + _url = _url.Replace("{parentResourcePath}", parentResourcePath); + _url = _url.Replace("{resourceType}", resourceType); + _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("HEAD"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 204 && (int)_statusCode != 404) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + _result.Body = _statusCode == System.Net.HttpStatusCode.NoContent; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// 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 API version to use for the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).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. + /// + /// + /// The API version to use for the operation. + /// + /// + /// Parameters for creating or updating the resource. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, GenericResource parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).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. + /// + /// + /// The API version to use for the operation. + /// + /// + /// Parameters for updating the resource. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, GenericResource parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).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 API version to use for the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (resourceProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceProviderNamespace"); + } + if (parentResourcePath == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parentResourcePath"); + } + if (resourceType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceType"); + } + if (resourceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceName"); + } + if (apiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "apiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("resourceProviderNamespace", resourceProviderNamespace); + tracingParameters.Add("parentResourcePath", parentResourcePath); + tracingParameters.Add("resourceType", resourceType); + tracingParameters.Add("resourceName", resourceName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceProviderNamespace}", System.Uri.EscapeDataString(resourceProviderNamespace)); + _url = _url.Replace("{parentResourcePath}", parentResourcePath); + _url = _url.Replace("{resourceType}", resourceType); + _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// 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 API version to use for the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CheckExistenceByIdWithHttpMessagesAsync(string resourceId, string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceId"); + } + if (apiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "apiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceId", resourceId); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CheckExistenceById", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{resourceId}").ToString(); + _url = _url.Replace("{resourceId}", resourceId); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("HEAD"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 204 && (int)_statusCode != 404) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + _result.Body = _statusCode == System.Net.HttpStatusCode.NoContent; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// 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 API version to use for the operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteByIdWithHttpMessagesAsync(string resourceId, string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteByIdWithHttpMessagesAsync(resourceId, apiVersion, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).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} + /// + /// + /// The API version to use for the operation. + /// + /// + /// Create or update resource parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateOrUpdateByIdWithHttpMessagesAsync(string resourceId, string apiVersion, GenericResource parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateOrUpdateByIdWithHttpMessagesAsync(resourceId, apiVersion, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).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} + /// + /// + /// The API version to use for the operation. + /// + /// + /// Update resource parameters. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateByIdWithHttpMessagesAsync(string resourceId, string apiVersion, GenericResource parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateByIdWithHttpMessagesAsync(resourceId, apiVersion, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).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 API version to use for the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetByIdWithHttpMessagesAsync(string resourceId, string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceId"); + } + if (apiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "apiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceId", resourceId); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetById", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{resourceId}").ToString(); + _url = _url.Replace("{resourceId}", resourceId); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Moves resources from one resource group to another resource group. + /// + /// + /// The resources to be moved must be in the same source resource group in the + /// source subscription being used. 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 from the source subscription containing the + /// resources to be moved. + /// + /// + /// Parameters for moving resources. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginMoveResourcesWithHttpMessagesAsync(string sourceResourceGroupName, ResourcesMoveInfo parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (sourceResourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "sourceResourceGroupName"); + } + if (sourceResourceGroupName != null) + { + if (sourceResourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "sourceResourceGroupName", 90); + } + if (sourceResourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "sourceResourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(sourceResourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "sourceResourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("sourceResourceGroupName", sourceResourceGroupName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginMoveResources", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/moveResources").ToString(); + _url = _url.Replace("{sourceResourceGroupName}", System.Uri.EscapeDataString(sourceResourceGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Validates whether resources can be moved from one resource group to another + /// resource group. + /// + /// + /// This operation checks whether the specified resources can be moved to the + /// target. The resources to be moved must be in the same source resource group + /// in the source subscription being used. 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 from the source subscription containing the + /// resources to be validated for move. + /// + /// + /// Parameters for moving resources. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginValidateMoveResourcesWithHttpMessagesAsync(string sourceResourceGroupName, ResourcesMoveInfo parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (sourceResourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "sourceResourceGroupName"); + } + if (sourceResourceGroupName != null) + { + if (sourceResourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "sourceResourceGroupName", 90); + } + if (sourceResourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "sourceResourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(sourceResourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "sourceResourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("sourceResourceGroupName", sourceResourceGroupName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginValidateMoveResources", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{sourceResourceGroupName}/validateMoveResources").ToString(); + _url = _url.Replace("{sourceResourceGroupName}", System.Uri.EscapeDataString(sourceResourceGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// 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 API version to use for the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (resourceProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceProviderNamespace"); + } + if (parentResourcePath == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parentResourcePath"); + } + if (resourceType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceType"); + } + if (resourceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceName"); + } + if (apiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "apiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("resourceProviderNamespace", resourceProviderNamespace); + tracingParameters.Add("parentResourcePath", parentResourcePath); + tracingParameters.Add("resourceType", resourceType); + tracingParameters.Add("resourceName", resourceName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceProviderNamespace}", System.Uri.EscapeDataString(resourceProviderNamespace)); + _url = _url.Replace("{parentResourcePath}", parentResourcePath); + _url = _url.Replace("{resourceType}", resourceType); + _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// 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. + /// + /// + /// The API version to use for the operation. + /// + /// + /// Parameters for creating or updating the resource. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, GenericResource parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (resourceProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceProviderNamespace"); + } + if (parentResourcePath == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parentResourcePath"); + } + if (resourceType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceType"); + } + if (resourceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceName"); + } + if (apiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "apiVersion"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("resourceProviderNamespace", resourceProviderNamespace); + tracingParameters.Add("parentResourcePath", parentResourcePath); + tracingParameters.Add("resourceType", resourceType); + tracingParameters.Add("resourceName", resourceName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceProviderNamespace}", System.Uri.EscapeDataString(resourceProviderNamespace)); + _url = _url.Replace("{parentResourcePath}", parentResourcePath); + _url = _url.Replace("{resourceType}", resourceType); + _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// 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. + /// + /// + /// The API version to use for the operation. + /// + /// + /// Parameters for updating the resource. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, GenericResource parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (resourceProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceProviderNamespace"); + } + if (parentResourcePath == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parentResourcePath"); + } + if (resourceType == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceType"); + } + if (resourceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceName"); + } + if (apiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "apiVersion"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("resourceProviderNamespace", resourceProviderNamespace); + tracingParameters.Add("parentResourcePath", parentResourcePath); + tracingParameters.Add("resourceType", resourceType); + tracingParameters.Add("resourceName", resourceName); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceProviderNamespace}", System.Uri.EscapeDataString(resourceProviderNamespace)); + _url = _url.Replace("{parentResourcePath}", parentResourcePath); + _url = _url.Replace("{resourceType}", resourceType); + _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// 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 API version to use for the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginDeleteByIdWithHttpMessagesAsync(string resourceId, string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceId"); + } + if (apiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "apiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceId", resourceId); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDeleteById", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{resourceId}").ToString(); + _url = _url.Replace("{resourceId}", resourceId); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// 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} + /// + /// + /// The API version to use for the operation. + /// + /// + /// Create or update resource parameters. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginCreateOrUpdateByIdWithHttpMessagesAsync(string resourceId, string apiVersion, GenericResource parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceId"); + } + if (apiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "apiVersion"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceId", resourceId); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdateById", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{resourceId}").ToString(); + _url = _url.Replace("{resourceId}", resourceId); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// 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} + /// + /// + /// The API version to use for the operation. + /// + /// + /// Update resource parameters. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginUpdateByIdWithHttpMessagesAsync(string resourceId, string apiVersion, GenericResource parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceId"); + } + if (apiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "apiVersion"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceId", resourceId); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdateById", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{resourceId}").ToString(); + _url = _url.Replace("{resourceId}", resourceId); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get all the resources for a resource group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get all the resources in a subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ResourcesOperationsExtensions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ResourcesOperationsExtensions.cs new file mode 100644 index 000000000000..bafe0c72b45e --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/ResourcesOperationsExtensions.cs @@ -0,0 +1,1308 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Azure.OData; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for ResourcesOperations. + /// + public static partial class ResourcesOperationsExtensions + { + /// + /// Get all the resources for a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group with the resources to get. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage ListByResourceGroup(this IResourcesOperations operations, string resourceGroupName, ODataQuery odataQuery = default(ODataQuery)) + { + return operations.ListByResourceGroupAsync(resourceGroupName, odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get all the resources for a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group with the resources to get. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupAsync(this IResourcesOperations operations, string resourceGroupName, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Moves resources from one resource group to another resource group. + /// + /// + /// The resources to be moved must be in the same source resource group in the + /// source subscription being used. 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 operations group for this extension method. + /// + /// + /// The name of the resource group from the source subscription containing the + /// resources to be moved. + /// + /// + /// Parameters for moving resources. + /// + public static void MoveResources(this IResourcesOperations operations, string sourceResourceGroupName, ResourcesMoveInfo parameters) + { + operations.MoveResourcesAsync(sourceResourceGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Moves resources from one resource group to another resource group. + /// + /// + /// The resources to be moved must be in the same source resource group in the + /// source subscription being used. 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 operations group for this extension method. + /// + /// + /// The name of the resource group from the source subscription containing the + /// resources to be moved. + /// + /// + /// Parameters for moving resources. + /// + /// + /// The cancellation token. + /// + public static async Task MoveResourcesAsync(this IResourcesOperations operations, string sourceResourceGroupName, ResourcesMoveInfo parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.MoveResourcesWithHttpMessagesAsync(sourceResourceGroupName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Validates whether resources can be moved from one resource group to another + /// resource group. + /// + /// + /// This operation checks whether the specified resources can be moved to the + /// target. The resources to be moved must be in the same source resource group + /// in the source subscription being used. 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 operations group for this extension method. + /// + /// + /// The name of the resource group from the source subscription containing the + /// resources to be validated for move. + /// + /// + /// Parameters for moving resources. + /// + public static void ValidateMoveResources(this IResourcesOperations operations, string sourceResourceGroupName, ResourcesMoveInfo parameters) + { + operations.ValidateMoveResourcesAsync(sourceResourceGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Validates whether resources can be moved from one resource group to another + /// resource group. + /// + /// + /// This operation checks whether the specified resources can be moved to the + /// target. The resources to be moved must be in the same source resource group + /// in the source subscription being used. 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 operations group for this extension method. + /// + /// + /// The name of the resource group from the source subscription containing the + /// resources to be validated for move. + /// + /// + /// Parameters for moving resources. + /// + /// + /// The cancellation token. + /// + public static async Task ValidateMoveResourcesAsync(this IResourcesOperations operations, string sourceResourceGroupName, ResourcesMoveInfo parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.ValidateMoveResourcesWithHttpMessagesAsync(sourceResourceGroupName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Get all the resources in a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// OData parameters to apply to the operation. + /// + public static IPage List(this IResourcesOperations operations, ODataQuery odataQuery = default(ODataQuery)) + { + return operations.ListAsync(odataQuery).GetAwaiter().GetResult(); + } + + /// + /// Get all the resources in a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// OData parameters to apply to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IResourcesOperations operations, ODataQuery odataQuery = default(ODataQuery), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(odataQuery, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Checks whether a resource exists. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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 API version to use for the operation. + /// + public static bool CheckExistence(this IResourcesOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion) + { + return operations.CheckExistenceAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion).GetAwaiter().GetResult(); + } + + /// + /// Checks whether a resource exists. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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 API version to use for the operation. + /// + /// + /// The cancellation token. + /// + public static async Task CheckExistenceAsync(this IResourcesOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CheckExistenceWithHttpMessagesAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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 API version to use for the operation. + /// + public static void Delete(this IResourcesOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion) + { + operations.DeleteAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion).GetAwaiter().GetResult(); + } + + /// + /// Deletes a resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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 API version to use for the operation. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IResourcesOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Creates a resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + /// + /// The API version to use for the operation. + /// + /// + /// Parameters for creating or updating the resource. + /// + public static GenericResource CreateOrUpdate(this IResourcesOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, GenericResource parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates a resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + /// + /// The API version to use for the operation. + /// + /// + /// Parameters for creating or updating the resource. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IResourcesOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, GenericResource parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates a resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + /// + /// The API version to use for the operation. + /// + /// + /// Parameters for updating the resource. + /// + public static GenericResource Update(this IResourcesOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, GenericResource parameters) + { + return operations.UpdateAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + /// + /// The API version to use for the operation. + /// + /// + /// Parameters for updating the resource. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IResourcesOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, GenericResource parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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 API version to use for the operation. + /// + public static GenericResource Get(this IResourcesOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion) + { + return operations.GetAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion).GetAwaiter().GetResult(); + } + + /// + /// Gets a resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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 API version to use for the operation. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IResourcesOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Checks by ID whether a resource exists. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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 API version to use for the operation. + /// + public static bool CheckExistenceById(this IResourcesOperations operations, string resourceId, string apiVersion) + { + return operations.CheckExistenceByIdAsync(resourceId, apiVersion).GetAwaiter().GetResult(); + } + + /// + /// Checks by ID whether a resource exists. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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 API version to use for the operation. + /// + /// + /// The cancellation token. + /// + public static async Task CheckExistenceByIdAsync(this IResourcesOperations operations, string resourceId, string apiVersion, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CheckExistenceByIdWithHttpMessagesAsync(resourceId, apiVersion, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a resource by ID. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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 API version to use for the operation. + /// + public static void DeleteById(this IResourcesOperations operations, string resourceId, string apiVersion) + { + operations.DeleteByIdAsync(resourceId, apiVersion).GetAwaiter().GetResult(); + } + + /// + /// Deletes a resource by ID. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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 API version to use for the operation. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteByIdAsync(this IResourcesOperations operations, string resourceId, string apiVersion, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteByIdWithHttpMessagesAsync(resourceId, apiVersion, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Create a resource by ID. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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 API version to use for the operation. + /// + /// + /// Create or update resource parameters. + /// + public static GenericResource CreateOrUpdateById(this IResourcesOperations operations, string resourceId, string apiVersion, GenericResource parameters) + { + return operations.CreateOrUpdateByIdAsync(resourceId, apiVersion, parameters).GetAwaiter().GetResult(); + } + + /// + /// Create a resource by ID. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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 API version to use for the operation. + /// + /// + /// Create or update resource parameters. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateByIdAsync(this IResourcesOperations operations, string resourceId, string apiVersion, GenericResource parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateByIdWithHttpMessagesAsync(resourceId, apiVersion, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates a resource by ID. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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 API version to use for the operation. + /// + /// + /// Update resource parameters. + /// + public static GenericResource UpdateById(this IResourcesOperations operations, string resourceId, string apiVersion, GenericResource parameters) + { + return operations.UpdateByIdAsync(resourceId, apiVersion, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a resource by ID. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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 API version to use for the operation. + /// + /// + /// Update resource parameters. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateByIdAsync(this IResourcesOperations operations, string resourceId, string apiVersion, GenericResource parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateByIdWithHttpMessagesAsync(resourceId, apiVersion, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a resource by ID. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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 API version to use for the operation. + /// + public static GenericResource GetById(this IResourcesOperations operations, string resourceId, string apiVersion) + { + return operations.GetByIdAsync(resourceId, apiVersion).GetAwaiter().GetResult(); + } + + /// + /// Gets a resource by ID. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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 API version to use for the operation. + /// + /// + /// The cancellation token. + /// + public static async Task GetByIdAsync(this IResourcesOperations operations, string resourceId, string apiVersion, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetByIdWithHttpMessagesAsync(resourceId, apiVersion, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Moves resources from one resource group to another resource group. + /// + /// + /// The resources to be moved must be in the same source resource group in the + /// source subscription being used. 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 operations group for this extension method. + /// + /// + /// The name of the resource group from the source subscription containing the + /// resources to be moved. + /// + /// + /// Parameters for moving resources. + /// + public static void BeginMoveResources(this IResourcesOperations operations, string sourceResourceGroupName, ResourcesMoveInfo parameters) + { + operations.BeginMoveResourcesAsync(sourceResourceGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Moves resources from one resource group to another resource group. + /// + /// + /// The resources to be moved must be in the same source resource group in the + /// source subscription being used. 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 operations group for this extension method. + /// + /// + /// The name of the resource group from the source subscription containing the + /// resources to be moved. + /// + /// + /// Parameters for moving resources. + /// + /// + /// The cancellation token. + /// + public static async Task BeginMoveResourcesAsync(this IResourcesOperations operations, string sourceResourceGroupName, ResourcesMoveInfo parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginMoveResourcesWithHttpMessagesAsync(sourceResourceGroupName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Validates whether resources can be moved from one resource group to another + /// resource group. + /// + /// + /// This operation checks whether the specified resources can be moved to the + /// target. The resources to be moved must be in the same source resource group + /// in the source subscription being used. 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 operations group for this extension method. + /// + /// + /// The name of the resource group from the source subscription containing the + /// resources to be validated for move. + /// + /// + /// Parameters for moving resources. + /// + public static void BeginValidateMoveResources(this IResourcesOperations operations, string sourceResourceGroupName, ResourcesMoveInfo parameters) + { + operations.BeginValidateMoveResourcesAsync(sourceResourceGroupName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Validates whether resources can be moved from one resource group to another + /// resource group. + /// + /// + /// This operation checks whether the specified resources can be moved to the + /// target. The resources to be moved must be in the same source resource group + /// in the source subscription being used. 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 operations group for this extension method. + /// + /// + /// The name of the resource group from the source subscription containing the + /// resources to be validated for move. + /// + /// + /// Parameters for moving resources. + /// + /// + /// The cancellation token. + /// + public static async Task BeginValidateMoveResourcesAsync(this IResourcesOperations operations, string sourceResourceGroupName, ResourcesMoveInfo parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginValidateMoveResourcesWithHttpMessagesAsync(sourceResourceGroupName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Deletes a resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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 API version to use for the operation. + /// + public static void BeginDelete(this IResourcesOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion) + { + operations.BeginDeleteAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion).GetAwaiter().GetResult(); + } + + /// + /// Deletes a resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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 API version to use for the operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IResourcesOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Creates a resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + /// + /// The API version to use for the operation. + /// + /// + /// Parameters for creating or updating the resource. + /// + public static GenericResource BeginCreateOrUpdate(this IResourcesOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, GenericResource parameters) + { + return operations.BeginCreateOrUpdateAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates a resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + /// + /// The API version to use for the operation. + /// + /// + /// Parameters for creating or updating the resource. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateAsync(this IResourcesOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, GenericResource parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates a resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + /// + /// The API version to use for the operation. + /// + /// + /// Parameters for updating the resource. + /// + public static GenericResource BeginUpdate(this IResourcesOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, GenericResource parameters) + { + return operations.BeginUpdateAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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. + /// + /// + /// The API version to use for the operation. + /// + /// + /// Parameters for updating the resource. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IResourcesOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion, GenericResource parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a resource by ID. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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 API version to use for the operation. + /// + public static void BeginDeleteById(this IResourcesOperations operations, string resourceId, string apiVersion) + { + operations.BeginDeleteByIdAsync(resourceId, apiVersion).GetAwaiter().GetResult(); + } + + /// + /// Deletes a resource by ID. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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 API version to use for the operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteByIdAsync(this IResourcesOperations operations, string resourceId, string apiVersion, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteByIdWithHttpMessagesAsync(resourceId, apiVersion, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Create a resource by ID. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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 API version to use for the operation. + /// + /// + /// Create or update resource parameters. + /// + public static GenericResource BeginCreateOrUpdateById(this IResourcesOperations operations, string resourceId, string apiVersion, GenericResource parameters) + { + return operations.BeginCreateOrUpdateByIdAsync(resourceId, apiVersion, parameters).GetAwaiter().GetResult(); + } + + /// + /// Create a resource by ID. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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 API version to use for the operation. + /// + /// + /// Create or update resource parameters. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateOrUpdateByIdAsync(this IResourcesOperations operations, string resourceId, string apiVersion, GenericResource parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateOrUpdateByIdWithHttpMessagesAsync(resourceId, apiVersion, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates a resource by ID. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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 API version to use for the operation. + /// + /// + /// Update resource parameters. + /// + public static GenericResource BeginUpdateById(this IResourcesOperations operations, string resourceId, string apiVersion, GenericResource parameters) + { + return operations.BeginUpdateByIdAsync(resourceId, apiVersion, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a resource by ID. + /// + /// + /// The operations group for this extension method. + /// + /// + /// 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 API version to use for the operation. + /// + /// + /// Update resource parameters. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateByIdAsync(this IResourcesOperations operations, string resourceId, string apiVersion, GenericResource parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateByIdWithHttpMessagesAsync(resourceId, apiVersion, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get all the resources for a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByResourceGroupNext(this IResourcesOperations operations, string nextPageLink) + { + return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get all the resources for a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupNextAsync(this IResourcesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get all the resources in a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IResourcesOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Get all the resources in a subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IResourcesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SdkInfo_DeploymentScriptsClient.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SdkInfo_DeploymentScriptsClient.cs new file mode 100644 index 000000000000..f30f968a6e28 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SdkInfo_DeploymentScriptsClient.cs @@ -0,0 +1,27 @@ + +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using System; + using System.Collections.Generic; + using System.Linq; + + internal static partial class SdkInfo + { + public static IEnumerable> ApiInfo_DeploymentScriptsClient + { + get + { + return new Tuple[] + { + new Tuple("Resources", "DeploymentScripts", "2020-10-01"), + }.AsEnumerable(); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SdkInfo_FeatureClient.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SdkInfo_FeatureClient.cs new file mode 100644 index 000000000000..16b90d9298ec --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SdkInfo_FeatureClient.cs @@ -0,0 +1,29 @@ + +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using System; + using System.Collections.Generic; + using System.Linq; + + internal static partial class SdkInfo + { + public static IEnumerable> ApiInfo_FeatureClient + { + get + { + return new Tuple[] + { + new Tuple("Features", "Features", "2021-07-01"), + new Tuple("Features", "ListOperations", "2021-07-01"), + new Tuple("Features", "SubscriptionFeatureRegistrations", "2021-07-01"), + }.AsEnumerable(); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SdkInfo_ManagementLinkClient.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SdkInfo_ManagementLinkClient.cs new file mode 100644 index 000000000000..e1479f25f8c4 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SdkInfo_ManagementLinkClient.cs @@ -0,0 +1,29 @@ + +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using System; + using System.Collections.Generic; + using System.Linq; + + internal static partial class SdkInfo + { + public static IEnumerable> ApiInfo_ManagementLinkClient + { + get + { + return new Tuple[] + { + new Tuple("ManagementLinkClient", "ResourceLinks", "2016-09-01"), + new Tuple("Resources", "Operations", "2016-09-01"), + new Tuple("Resources", "ResourceLinks", "2016-09-01"), + }.AsEnumerable(); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SdkInfo_ManagementLockClient.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SdkInfo_ManagementLockClient.cs new file mode 100644 index 000000000000..e8d02f367f40 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SdkInfo_ManagementLockClient.cs @@ -0,0 +1,28 @@ + +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using System; + using System.Collections.Generic; + using System.Linq; + + internal static partial class SdkInfo + { + public static IEnumerable> ApiInfo_ManagementLockClient + { + get + { + return new Tuple[] + { + new Tuple("Authorization", "AuthorizationOperations", "2016-09-01"), + new Tuple("Authorization", "ManagementLocks", "2016-09-01"), + }.AsEnumerable(); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SdkInfo_PolicyClient.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SdkInfo_PolicyClient.cs new file mode 100644 index 000000000000..3fda36ab8868 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SdkInfo_PolicyClient.cs @@ -0,0 +1,36 @@ + +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using System; + using System.Collections.Generic; + using System.Linq; + + internal static partial class SdkInfo + { + public static IEnumerable> ApiInfo_PolicyClient + { + get + { + return new Tuple[] + { + new Tuple("Authorization", "DataPolicyManifests", "2020-09-01"), + new Tuple("Authorization", "PolicyAssignments", "2020-09-01"), + new Tuple("Authorization", "PolicyDefinitions", "2020-09-01"), + new Tuple("Authorization", "PolicyExemptions", "2020-07-01-preview"), + new Tuple("Authorization", "PolicySetDefinitions", "2020-09-01"), + new Tuple("Management", "PolicyAssignments", "2020-09-01"), + new Tuple("Management", "PolicyDefinitions", "2020-09-01"), + new Tuple("Management", "PolicyExemptions", "2020-07-01-preview"), + new Tuple("Management", "PolicySetDefinitions", "2020-09-01"), + new Tuple("PolicyClient", "PolicyAssignments", "2020-09-01"), + }.AsEnumerable(); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SdkInfo_ResourceManagementClient.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SdkInfo_ResourceManagementClient.cs new file mode 100644 index 000000000000..1b869c613da4 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SdkInfo_ResourceManagementClient.cs @@ -0,0 +1,39 @@ + +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using System; + using System.Collections.Generic; + using System.Linq; + + internal static partial class SdkInfo + { + public static IEnumerable> ApiInfo_ResourceManagementClient + { + get + { + return new Tuple[] + { + new Tuple("Management", "DeploymentOperations", "2021-04-01"), + new Tuple("Management", "Deployments", "2021-04-01"), + new Tuple("Management", "Providers", "2021-04-01"), + new Tuple("ResourceManagementClient", "DeploymentOperations", "2021-04-01"), + new Tuple("ResourceManagementClient", "ProviderResourceTypes", "2021-04-01"), + new Tuple("ResourceManagementClient", "Providers", "2021-04-01"), + new Tuple("ResourceManagementClient", "ResourceGroups", "2021-04-01"), + new Tuple("ResourceManagementClient", "Resources", "2021-04-01"), + new Tuple("ResourceManagementClient", "Tags", "2021-04-01"), + new Tuple("Resources", "DeploymentOperations", "2021-04-01"), + new Tuple("Resources", "Deployments", "2021-04-01"), + new Tuple("Resources", "Operations", "2021-04-01"), + new Tuple("Resources", "Tags", "2021-04-01"), + }.AsEnumerable(); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SdkInfo_SubscriptionClient.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SdkInfo_SubscriptionClient.cs new file mode 100644 index 000000000000..f41a8e74c9ff --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SdkInfo_SubscriptionClient.cs @@ -0,0 +1,30 @@ + +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using System; + using System.Collections.Generic; + using System.Linq; + + internal static partial class SdkInfo + { + public static IEnumerable> ApiInfo_SubscriptionClient + { + get + { + return new Tuple[] + { + new Tuple("Resources", "Operations", "2021-01-01"), + new Tuple("Resources", "checkResourceName", "2021-01-01"), + new Tuple("SubscriptionClient", "Subscriptions", "2021-01-01"), + new Tuple("SubscriptionClient", "Tenants", "2021-01-01"), + }.AsEnumerable(); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SdkInfo_TemplateSpecsClient.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SdkInfo_TemplateSpecsClient.cs new file mode 100644 index 000000000000..36c2985042de --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SdkInfo_TemplateSpecsClient.cs @@ -0,0 +1,28 @@ + +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using System; + using System.Collections.Generic; + using System.Linq; + + internal static partial class SdkInfo + { + public static IEnumerable> ApiInfo_TemplateSpecsClient + { + get + { + return new Tuple[] + { + new Tuple("Resources", "TemplateSpecVersions", "2021-03-01-preview"), + new Tuple("Resources", "TemplateSpecs", "2021-03-01-preview"), + }.AsEnumerable(); + } + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SubscriptionClient.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SubscriptionClient.cs new file mode 100644 index 000000000000..a10b4849d373 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SubscriptionClient.cs @@ -0,0 +1,561 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// All resource groups and resources exist within subscriptions. These + /// operation enable you get information about your subscriptions and + /// tenants. A tenant is a dedicated instance of Azure Active Directory + /// (Azure AD) for your organization. + /// + public partial class SubscriptionClient : ServiceClient, ISubscriptionClient, IAzureClient + { + /// + /// The base URI of the service. + /// + public System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + public JsonSerializerSettings SerializationSettings { get; private set; } + + /// + /// Gets or sets json deserialization settings. + /// + public JsonSerializerSettings DeserializationSettings { get; private set; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + public ServiceClientCredentials Credentials { get; private set; } + + /// + /// The API version to use for the operation. + /// + public string ApiVersion { get; private set; } + + /// + /// The preferred language for the response. + /// + public string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default value is + /// 30. + /// + public int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. When set to + /// true a unique x-ms-client-request-id value is generated and included in + /// each request. Default is true. + /// + public bool? GenerateClientRequestId { get; set; } + + /// + /// Gets the IOperations. + /// + public virtual IOperations Operations { get; private set; } + + /// + /// Gets the ISubscriptionsOperations. + /// + public virtual ISubscriptionsOperations Subscriptions { get; private set; } + + /// + /// Gets the ITenantsOperations. + /// + public virtual ITenantsOperations Tenants { get; private set; } + + /// + /// Initializes a new instance of the SubscriptionClient class. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling SubscriptionClient.Dispose(). False: will not dispose provided httpClient + protected SubscriptionClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient) + { + Initialize(); + } + + /// + /// Initializes a new instance of the SubscriptionClient class. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected SubscriptionClient(params DelegatingHandler[] handlers) : base(handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the SubscriptionClient class. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected SubscriptionClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the SubscriptionClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected SubscriptionClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the SubscriptionClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected SubscriptionClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the SubscriptionClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public SubscriptionClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the SubscriptionClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling SubscriptionClient.Dispose(). False: will not dispose provided httpClient + /// + /// Thrown when a required parameter is null + /// + public SubscriptionClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the SubscriptionClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public SubscriptionClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the SubscriptionClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public SubscriptionClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the SubscriptionClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public SubscriptionClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// An optional partial-method to perform custom initialization. + /// + partial void CustomInitialize(); + /// + /// Initializes client properties. + /// + private void Initialize() + { + Operations = new Operations(this); + Subscriptions = new SubscriptionsOperations(this); + Tenants = new TenantsOperations(this); + BaseUri = new System.Uri("https://management.azure.com"); + ApiVersion = "2021-01-01"; + AcceptLanguage = "en-US"; + LongRunningOperationRetryTimeout = 30; + GenerateClientRequestId = true; + SerializationSettings = new JsonSerializerSettings + { + Formatting = Newtonsoft.Json.Formatting.Indented, + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + DeserializationSettings = new JsonSerializerSettings + { + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + CustomInitialize(); + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } + /// + /// Checks resource name validity + /// + /// + /// A resource name is valid if it is not a reserved word, does not contains a + /// reserved word and does not start with a reserved word + /// + /// + /// Resource object with values for resource name and resource type + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CheckResourceNameWithHttpMessagesAsync(ResourceName resourceNameDefinition = default(ResourceName), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceNameDefinition != null) + { + resourceNameDefinition.Validate(); + } + if (ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceNameDefinition", resourceNameDefinition); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CheckResourceName", tracingParameters); + } + // Construct URL + var _baseUrl = BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Resources/checkResourceName").ToString(); + List _queryParameters = new List(); + if (ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (GenerateClientRequestId != null && GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(resourceNameDefinition != null) + { + _requestContent = SafeJsonConvert.SerializeObject(resourceNameDefinition, SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SubscriptionClientExtensions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SubscriptionClientExtensions.cs new file mode 100644 index 000000000000..f641420a8f72 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SubscriptionClientExtensions.cs @@ -0,0 +1,67 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for SubscriptionClient. + /// + public static partial class SubscriptionClientExtensions + { + /// + /// Checks resource name validity + /// + /// + /// A resource name is valid if it is not a reserved word, does not contains a + /// reserved word and does not start with a reserved word + /// + /// + /// The operations group for this extension method. + /// + /// + /// Resource object with values for resource name and resource type + /// + public static CheckResourceNameResult CheckResourceName(this ISubscriptionClient operations, ResourceName resourceNameDefinition = default(ResourceName)) + { + return operations.CheckResourceNameAsync(resourceNameDefinition).GetAwaiter().GetResult(); + } + + /// + /// Checks resource name validity + /// + /// + /// A resource name is valid if it is not a reserved word, does not contains a + /// reserved word and does not start with a reserved word + /// + /// + /// The operations group for this extension method. + /// + /// + /// Resource object with values for resource name and resource type + /// + /// + /// The cancellation token. + /// + public static async Task CheckResourceNameAsync(this ISubscriptionClient operations, ResourceName resourceNameDefinition = default(ResourceName), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CheckResourceNameWithHttpMessagesAsync(resourceNameDefinition, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SubscriptionFeatureRegistrationsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SubscriptionFeatureRegistrationsOperations.cs new file mode 100644 index 000000000000..711b15dff1f5 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SubscriptionFeatureRegistrationsOperations.cs @@ -0,0 +1,1317 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// SubscriptionFeatureRegistrationsOperations operations. + /// + internal partial class SubscriptionFeatureRegistrationsOperations : IServiceOperations, ISubscriptionFeatureRegistrationsOperations + { + /// + /// Initializes a new instance of the SubscriptionFeatureRegistrationsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal SubscriptionFeatureRegistrationsOperations(FeatureClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the FeatureClient + /// + public FeatureClient Client { get; private set; } + + /// + /// Returns a feature registration + /// + /// + /// The API version to use for this operation. + /// + /// + /// The feature name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string apiVersion, string featureName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (apiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "apiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ProviderNamespace"); + } + if (featureName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "featureName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("featureName", featureName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{providerNamespace}", System.Uri.EscapeDataString(Client.ProviderNamespace)); + _url = _url.Replace("{featureName}", System.Uri.EscapeDataString(featureName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Create or update a feature registration. + /// + /// + /// The API version to use for this operation. + /// + /// + /// The feature name. + /// + /// + /// Subscription Feature Registration Type details. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string apiVersion, string featureName, SubscriptionFeatureRegistration subscriptionFeatureRegistrationType = default(SubscriptionFeatureRegistration), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (apiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "apiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ProviderNamespace"); + } + if (featureName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "featureName"); + } + if (subscriptionFeatureRegistrationType != null) + { + subscriptionFeatureRegistrationType.Validate(); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("featureName", featureName); + tracingParameters.Add("subscriptionFeatureRegistrationType", subscriptionFeatureRegistrationType); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{providerNamespace}", System.Uri.EscapeDataString(Client.ProviderNamespace)); + _url = _url.Replace("{featureName}", System.Uri.EscapeDataString(featureName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(subscriptionFeatureRegistrationType != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(subscriptionFeatureRegistrationType, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a feature registration + /// + /// + /// The API version to use for this operation. + /// + /// + /// The feature name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteWithHttpMessagesAsync(string apiVersion, string featureName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (apiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "apiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ProviderNamespace"); + } + if (featureName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "featureName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("featureName", featureName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations/{featureName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{providerNamespace}", System.Uri.EscapeDataString(Client.ProviderNamespace)); + _url = _url.Replace("{featureName}", System.Uri.EscapeDataString(featureName)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Returns subscription feature registrations for given subscription and + /// provider namespace. + /// + /// + /// The API version to use for this operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListBySubscriptionWithHttpMessagesAsync(string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (apiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "apiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ProviderNamespace == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ProviderNamespace"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListBySubscription", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Features/featureProviders/{providerNamespace}/subscriptionFeatureRegistrations").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{providerNamespace}", System.Uri.EscapeDataString(Client.ProviderNamespace)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Returns subscription feature registrations for given subscription. + /// + /// + /// The API version to use for this operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAllBySubscriptionWithHttpMessagesAsync(string apiVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (apiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "apiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAllBySubscription", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Features/subscriptionFeatureRegistrations").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (apiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Returns subscription feature registrations for given subscription and + /// provider namespace. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListBySubscriptionNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Returns subscription feature registrations for given subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListAllBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListAllBySubscriptionNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SubscriptionFeatureRegistrationsOperationsExtensions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SubscriptionFeatureRegistrationsOperationsExtensions.cs new file mode 100644 index 000000000000..6c0cdbfac3be --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SubscriptionFeatureRegistrationsOperationsExtensions.cs @@ -0,0 +1,288 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for SubscriptionFeatureRegistrationsOperations. + /// + public static partial class SubscriptionFeatureRegistrationsOperationsExtensions + { + /// + /// Returns a feature registration + /// + /// + /// The operations group for this extension method. + /// + /// + /// The API version to use for this operation. + /// + /// + /// The feature name. + /// + public static SubscriptionFeatureRegistration Get(this ISubscriptionFeatureRegistrationsOperations operations, string apiVersion, string featureName) + { + return operations.GetAsync(apiVersion, featureName).GetAwaiter().GetResult(); + } + + /// + /// Returns a feature registration + /// + /// + /// The operations group for this extension method. + /// + /// + /// The API version to use for this operation. + /// + /// + /// The feature name. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this ISubscriptionFeatureRegistrationsOperations operations, string apiVersion, string featureName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(apiVersion, featureName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or update a feature registration. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The API version to use for this operation. + /// + /// + /// The feature name. + /// + /// + /// Subscription Feature Registration Type details. + /// + public static SubscriptionFeatureRegistration CreateOrUpdate(this ISubscriptionFeatureRegistrationsOperations operations, string apiVersion, string featureName, SubscriptionFeatureRegistration subscriptionFeatureRegistrationType = default(SubscriptionFeatureRegistration)) + { + return operations.CreateOrUpdateAsync(apiVersion, featureName, subscriptionFeatureRegistrationType).GetAwaiter().GetResult(); + } + + /// + /// Create or update a feature registration. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The API version to use for this operation. + /// + /// + /// The feature name. + /// + /// + /// Subscription Feature Registration Type details. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this ISubscriptionFeatureRegistrationsOperations operations, string apiVersion, string featureName, SubscriptionFeatureRegistration subscriptionFeatureRegistrationType = default(SubscriptionFeatureRegistration), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(apiVersion, featureName, subscriptionFeatureRegistrationType, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a feature registration + /// + /// + /// The operations group for this extension method. + /// + /// + /// The API version to use for this operation. + /// + /// + /// The feature name. + /// + public static void Delete(this ISubscriptionFeatureRegistrationsOperations operations, string apiVersion, string featureName) + { + operations.DeleteAsync(apiVersion, featureName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a feature registration + /// + /// + /// The operations group for this extension method. + /// + /// + /// The API version to use for this operation. + /// + /// + /// The feature name. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this ISubscriptionFeatureRegistrationsOperations operations, string apiVersion, string featureName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(apiVersion, featureName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Returns subscription feature registrations for given subscription and + /// provider namespace. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The API version to use for this operation. + /// + public static IPage ListBySubscription(this ISubscriptionFeatureRegistrationsOperations operations, string apiVersion) + { + return operations.ListBySubscriptionAsync(apiVersion).GetAwaiter().GetResult(); + } + + /// + /// Returns subscription feature registrations for given subscription and + /// provider namespace. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The API version to use for this operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListBySubscriptionAsync(this ISubscriptionFeatureRegistrationsOperations operations, string apiVersion, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListBySubscriptionWithHttpMessagesAsync(apiVersion, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Returns subscription feature registrations for given subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The API version to use for this operation. + /// + public static IPage ListAllBySubscription(this ISubscriptionFeatureRegistrationsOperations operations, string apiVersion) + { + return operations.ListAllBySubscriptionAsync(apiVersion).GetAwaiter().GetResult(); + } + + /// + /// Returns subscription feature registrations for given subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The API version to use for this operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAllBySubscriptionAsync(this ISubscriptionFeatureRegistrationsOperations operations, string apiVersion, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAllBySubscriptionWithHttpMessagesAsync(apiVersion, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Returns subscription feature registrations for given subscription and + /// provider namespace. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListBySubscriptionNext(this ISubscriptionFeatureRegistrationsOperations operations, string nextPageLink) + { + return operations.ListBySubscriptionNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Returns subscription feature registrations for given subscription and + /// provider namespace. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListBySubscriptionNextAsync(this ISubscriptionFeatureRegistrationsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListBySubscriptionNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Returns subscription feature registrations for given subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListAllBySubscriptionNext(this ISubscriptionFeatureRegistrationsOperations operations, string nextPageLink) + { + return operations.ListAllBySubscriptionNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Returns subscription feature registrations for given subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAllBySubscriptionNextAsync(this ISubscriptionFeatureRegistrationsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListAllBySubscriptionNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SubscriptionsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SubscriptionsOperations.cs new file mode 100644 index 000000000000..2e3b0c81e1d8 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SubscriptionsOperations.cs @@ -0,0 +1,777 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// SubscriptionsOperations operations. + /// + internal partial class SubscriptionsOperations : IServiceOperations, ISubscriptionsOperations + { + /// + /// Initializes a new instance of the SubscriptionsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal SubscriptionsOperations(SubscriptionClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SubscriptionClient + /// + public SubscriptionClient Client { get; private set; } + + /// + /// Gets all available geo-locations. + /// + /// + /// This operation provides all the locations that are available for resource + /// providers; however, each resource provider may support a subset of this + /// list. + /// + /// + /// The ID of the target subscription. + /// + /// + /// Whether to include extended locations. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListLocationsWithHttpMessagesAsync(string subscriptionId, bool? includeExtendedLocations = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (subscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "subscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("subscriptionId", subscriptionId); + tracingParameters.Add("includeExtendedLocations", includeExtendedLocations); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListLocations", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/locations").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(subscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (includeExtendedLocations != null) + { + _queryParameters.Add(string.Format("includeExtendedLocations={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(includeExtendedLocations, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets details about a specified subscription. + /// + /// + /// The ID of the target subscription. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string subscriptionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (subscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "subscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("subscriptionId", subscriptionId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(subscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all subscriptions for a tenant. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions").ToString(); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all subscriptions for a tenant. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SubscriptionsOperationsExtensions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SubscriptionsOperationsExtensions.cs new file mode 100644 index 000000000000..d8a02d02e618 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/SubscriptionsOperationsExtensions.cs @@ -0,0 +1,173 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for SubscriptionsOperations. + /// + public static partial class SubscriptionsOperationsExtensions + { + /// + /// Gets all available geo-locations. + /// + /// + /// This operation provides all the locations that are available for resource + /// providers; however, each resource provider may support a subset of this + /// list. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The ID of the target subscription. + /// + /// + /// Whether to include extended locations. + /// + public static IEnumerable ListLocations(this ISubscriptionsOperations operations, string subscriptionId, bool? includeExtendedLocations = default(bool?)) + { + return operations.ListLocationsAsync(subscriptionId, includeExtendedLocations).GetAwaiter().GetResult(); + } + + /// + /// Gets all available geo-locations. + /// + /// + /// This operation provides all the locations that are available for resource + /// providers; however, each resource provider may support a subset of this + /// list. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The ID of the target subscription. + /// + /// + /// Whether to include extended locations. + /// + /// + /// The cancellation token. + /// + public static async Task> ListLocationsAsync(this ISubscriptionsOperations operations, string subscriptionId, bool? includeExtendedLocations = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListLocationsWithHttpMessagesAsync(subscriptionId, includeExtendedLocations, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets details about a specified subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The ID of the target subscription. + /// + public static Subscription Get(this ISubscriptionsOperations operations, string subscriptionId) + { + return operations.GetAsync(subscriptionId).GetAwaiter().GetResult(); + } + + /// + /// Gets details about a specified subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The ID of the target subscription. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this ISubscriptionsOperations operations, string subscriptionId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(subscriptionId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all subscriptions for a tenant. + /// + /// + /// The operations group for this extension method. + /// + public static IPage List(this ISubscriptionsOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Gets all subscriptions for a tenant. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this ISubscriptionsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all subscriptions for a tenant. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this ISubscriptionsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all subscriptions for a tenant. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this ISubscriptionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TagsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TagsOperations.cs new file mode 100644 index 000000000000..79cd11ffc476 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TagsOperations.cs @@ -0,0 +1,1950 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// TagsOperations operations. + /// + internal partial class TagsOperations : IServiceOperations, ITagsOperations + { + /// + /// Initializes a new instance of the TagsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal TagsOperations(ResourceManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the ResourceManagementClient + /// + public ResourceManagementClient Client { get; private set; } + + /// + /// Deletes a predefined tag value for a predefined tag name. + /// + /// + /// This operation allows deleting a value from the list of predefined values + /// for an existing predefined tag name. The value being deleted must not be in + /// use as a tag value for the given tag name for any resource. + /// + /// + /// The name of the tag. + /// + /// + /// The value of the tag to delete. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteValueWithHttpMessagesAsync(string tagName, string tagValue, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (tagName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "tagName"); + } + if (tagValue == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "tagValue"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("tagName", tagName); + tracingParameters.Add("tagValue", tagValue); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "DeleteValue", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}").ToString(); + _url = _url.Replace("{tagName}", System.Uri.EscapeDataString(tagName)); + _url = _url.Replace("{tagValue}", System.Uri.EscapeDataString(tagValue)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates a predefined value for a predefined tag name. + /// + /// + /// This operation allows adding a value to the list of predefined values for + /// an existing predefined tag name. A tag value can have a maximum of 256 + /// characters. + /// + /// + /// The name of the tag. + /// + /// + /// The value of the tag to create. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateOrUpdateValueWithHttpMessagesAsync(string tagName, string tagValue, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (tagName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "tagName"); + } + if (tagValue == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "tagValue"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("tagName", tagName); + tracingParameters.Add("tagValue", tagValue); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdateValue", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}").ToString(); + _url = _url.Replace("{tagName}", System.Uri.EscapeDataString(tagName)); + _url = _url.Replace("{tagValue}", System.Uri.EscapeDataString(tagValue)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates a predefined tag name. + /// + /// + /// This operation allows adding a name to the list of predefined tag names for + /// the given subscription. A tag name can have a maximum of 512 characters and + /// is case-insensitive. Tag names cannot have the following prefixes which are + /// reserved for Azure use: 'microsoft', 'azure', 'windows'. + /// + /// + /// The name of the tag to create. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string tagName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (tagName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "tagName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("tagName", tagName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/tagNames/{tagName}").ToString(); + _url = _url.Replace("{tagName}", System.Uri.EscapeDataString(tagName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a predefined tag name. + /// + /// + /// This operation allows deleting a name from the list of predefined tag names + /// for the given subscription. The name being deleted must not be in use as a + /// tag name for any resource. All predefined values for the given name must + /// have already been deleted. + /// + /// + /// The name of the tag. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteWithHttpMessagesAsync(string tagName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (tagName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "tagName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("tagName", tagName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/tagNames/{tagName}").ToString(); + _url = _url.Replace("{tagName}", System.Uri.EscapeDataString(tagName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a summary of tag usage under the subscription. + /// + /// + /// This operation performs a union of predefined tags, resource tags, resource + /// group tags and subscription tags, and returns a summary of usage for each + /// tag name and value under the given subscription. In case of a large number + /// of tags, this operation may return a previously cached result. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/tagNames").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates or updates the entire set of tags on a resource or subscription. + /// + /// + /// This operation allows adding or replacing the entire set of tags on the + /// specified resource or subscription. The specified entity can have a maximum + /// of 50 tags. + /// + /// + /// The resource scope. + /// + /// + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateOrUpdateAtScopeWithHttpMessagesAsync(string scope, TagsResource parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("scope", scope); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdateAtScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Resources/tags/default").ToString(); + _url = _url.Replace("{scope}", scope); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Selectively updates the set of tags on a resource or subscription. + /// + /// + /// This operation allows replacing, merging or selectively deleting tags on + /// the specified resource or subscription. The specified entity can have a + /// maximum of 50 tags at the end of the operation. The 'replace' option + /// replaces the entire set of existing tags with a new set. The 'merge' option + /// allows adding tags with new names and updating the values of tags with + /// existing names. The 'delete' option allows selectively deleting tags based + /// on given names or name/value pairs. + /// + /// + /// The resource scope. + /// + /// + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> UpdateAtScopeWithHttpMessagesAsync(string scope, TagsPatchResource parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("scope", scope); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "UpdateAtScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Resources/tags/default").ToString(); + _url = _url.Replace("{scope}", scope); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the entire set of tags on a resource or subscription. + /// + /// + /// The resource scope. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetAtScopeWithHttpMessagesAsync(string scope, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("scope", scope); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetAtScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Resources/tags/default").ToString(); + _url = _url.Replace("{scope}", scope); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes the entire set of tags on a resource or subscription. + /// + /// + /// The resource scope. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteAtScopeWithHttpMessagesAsync(string scope, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (scope == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "scope"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("scope", scope); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "DeleteAtScope", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "{scope}/providers/Microsoft.Resources/tags/default").ToString(); + _url = _url.Replace("{scope}", scope); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a summary of tag usage under the subscription. + /// + /// + /// This operation performs a union of predefined tags, resource tags, resource + /// group tags and subscription tags, and returns a summary of usage for each + /// tag name and value under the given subscription. In case of a large number + /// of tags, this operation may return a previously cached result. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TagsOperationsExtensions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TagsOperationsExtensions.cs new file mode 100644 index 000000000000..5c520586c26d --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TagsOperationsExtensions.cs @@ -0,0 +1,466 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for TagsOperations. + /// + public static partial class TagsOperationsExtensions + { + /// + /// Deletes a predefined tag value for a predefined tag name. + /// + /// + /// This operation allows deleting a value from the list of predefined values + /// for an existing predefined tag name. The value being deleted must not be in + /// use as a tag value for the given tag name for any resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the tag. + /// + /// + /// The value of the tag to delete. + /// + public static void DeleteValue(this ITagsOperations operations, string tagName, string tagValue) + { + operations.DeleteValueAsync(tagName, tagValue).GetAwaiter().GetResult(); + } + + /// + /// Deletes a predefined tag value for a predefined tag name. + /// + /// + /// This operation allows deleting a value from the list of predefined values + /// for an existing predefined tag name. The value being deleted must not be in + /// use as a tag value for the given tag name for any resource. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the tag. + /// + /// + /// The value of the tag to delete. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteValueAsync(this ITagsOperations operations, string tagName, string tagValue, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteValueWithHttpMessagesAsync(tagName, tagValue, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Creates a predefined value for a predefined tag name. + /// + /// + /// This operation allows adding a value to the list of predefined values for + /// an existing predefined tag name. A tag value can have a maximum of 256 + /// characters. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the tag. + /// + /// + /// The value of the tag to create. + /// + public static TagValue CreateOrUpdateValue(this ITagsOperations operations, string tagName, string tagValue) + { + return operations.CreateOrUpdateValueAsync(tagName, tagValue).GetAwaiter().GetResult(); + } + + /// + /// Creates a predefined value for a predefined tag name. + /// + /// + /// This operation allows adding a value to the list of predefined values for + /// an existing predefined tag name. A tag value can have a maximum of 256 + /// characters. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the tag. + /// + /// + /// The value of the tag to create. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateValueAsync(this ITagsOperations operations, string tagName, string tagValue, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateValueWithHttpMessagesAsync(tagName, tagValue, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates a predefined tag name. + /// + /// + /// This operation allows adding a name to the list of predefined tag names for + /// the given subscription. A tag name can have a maximum of 512 characters and + /// is case-insensitive. Tag names cannot have the following prefixes which are + /// reserved for Azure use: 'microsoft', 'azure', 'windows'. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the tag to create. + /// + public static TagDetails CreateOrUpdate(this ITagsOperations operations, string tagName) + { + return operations.CreateOrUpdateAsync(tagName).GetAwaiter().GetResult(); + } + + /// + /// Creates a predefined tag name. + /// + /// + /// This operation allows adding a name to the list of predefined tag names for + /// the given subscription. A tag name can have a maximum of 512 characters and + /// is case-insensitive. Tag names cannot have the following prefixes which are + /// reserved for Azure use: 'microsoft', 'azure', 'windows'. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the tag to create. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this ITagsOperations operations, string tagName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(tagName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a predefined tag name. + /// + /// + /// This operation allows deleting a name from the list of predefined tag names + /// for the given subscription. The name being deleted must not be in use as a + /// tag name for any resource. All predefined values for the given name must + /// have already been deleted. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the tag. + /// + public static void Delete(this ITagsOperations operations, string tagName) + { + operations.DeleteAsync(tagName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a predefined tag name. + /// + /// + /// This operation allows deleting a name from the list of predefined tag names + /// for the given subscription. The name being deleted must not be in use as a + /// tag name for any resource. All predefined values for the given name must + /// have already been deleted. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the tag. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this ITagsOperations operations, string tagName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(tagName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets a summary of tag usage under the subscription. + /// + /// + /// This operation performs a union of predefined tags, resource tags, resource + /// group tags and subscription tags, and returns a summary of usage for each + /// tag name and value under the given subscription. In case of a large number + /// of tags, this operation may return a previously cached result. + /// + /// + /// The operations group for this extension method. + /// + public static IPage List(this ITagsOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Gets a summary of tag usage under the subscription. + /// + /// + /// This operation performs a union of predefined tags, resource tags, resource + /// group tags and subscription tags, and returns a summary of usage for each + /// tag name and value under the given subscription. In case of a large number + /// of tags, this operation may return a previously cached result. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this ITagsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates the entire set of tags on a resource or subscription. + /// + /// + /// This operation allows adding or replacing the entire set of tags on the + /// specified resource or subscription. The specified entity can have a maximum + /// of 50 tags. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// + public static TagsResource CreateOrUpdateAtScope(this ITagsOperations operations, string scope, TagsResource parameters) + { + return operations.CreateOrUpdateAtScopeAsync(scope, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates the entire set of tags on a resource or subscription. + /// + /// + /// This operation allows adding or replacing the entire set of tags on the + /// specified resource or subscription. The specified entity can have a maximum + /// of 50 tags. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAtScopeAsync(this ITagsOperations operations, string scope, TagsResource parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateAtScopeWithHttpMessagesAsync(scope, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Selectively updates the set of tags on a resource or subscription. + /// + /// + /// This operation allows replacing, merging or selectively deleting tags on + /// the specified resource or subscription. The specified entity can have a + /// maximum of 50 tags at the end of the operation. The 'replace' option + /// replaces the entire set of existing tags with a new set. The 'merge' option + /// allows adding tags with new names and updating the values of tags with + /// existing names. The 'delete' option allows selectively deleting tags based + /// on given names or name/value pairs. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// + public static TagsResource UpdateAtScope(this ITagsOperations operations, string scope, TagsPatchResource parameters) + { + return operations.UpdateAtScopeAsync(scope, parameters).GetAwaiter().GetResult(); + } + + /// + /// Selectively updates the set of tags on a resource or subscription. + /// + /// + /// This operation allows replacing, merging or selectively deleting tags on + /// the specified resource or subscription. The specified entity can have a + /// maximum of 50 tags at the end of the operation. The 'replace' option + /// replaces the entire set of existing tags with a new set. The 'merge' option + /// allows adding tags with new names and updating the values of tags with + /// existing names. The 'delete' option allows selectively deleting tags based + /// on given names or name/value pairs. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAtScopeAsync(this ITagsOperations operations, string scope, TagsPatchResource parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateAtScopeWithHttpMessagesAsync(scope, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the entire set of tags on a resource or subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + public static TagsResource GetAtScope(this ITagsOperations operations, string scope) + { + return operations.GetAtScopeAsync(scope).GetAwaiter().GetResult(); + } + + /// + /// Gets the entire set of tags on a resource or subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The cancellation token. + /// + public static async Task GetAtScopeAsync(this ITagsOperations operations, string scope, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetAtScopeWithHttpMessagesAsync(scope, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the entire set of tags on a resource or subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + public static void DeleteAtScope(this ITagsOperations operations, string scope) + { + operations.DeleteAtScopeAsync(scope).GetAwaiter().GetResult(); + } + + /// + /// Deletes the entire set of tags on a resource or subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource scope. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAtScopeAsync(this ITagsOperations operations, string scope, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteAtScopeWithHttpMessagesAsync(scope, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets a summary of tag usage under the subscription. + /// + /// + /// This operation performs a union of predefined tags, resource tags, resource + /// group tags and subscription tags, and returns a summary of usage for each + /// tag name and value under the given subscription. In case of a large number + /// of tags, this operation may return a previously cached result. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this ITagsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets a summary of tag usage under the subscription. + /// + /// + /// This operation performs a union of predefined tags, resource tags, resource + /// group tags and subscription tags, and returns a summary of usage for each + /// tag name and value under the given subscription. In case of a large number + /// of tags, this operation may return a previously cached result. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this ITagsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TemplateSpecVersionsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TemplateSpecVersionsOperations.cs new file mode 100644 index 000000000000..b14ba9649ec4 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TemplateSpecVersionsOperations.cs @@ -0,0 +1,1449 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// TemplateSpecVersionsOperations operations. + /// + internal partial class TemplateSpecVersionsOperations : IServiceOperations, ITemplateSpecVersionsOperations + { + /// + /// Initializes a new instance of the TemplateSpecVersionsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal TemplateSpecVersionsOperations(TemplateSpecsClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the TemplateSpecsClient + /// + public TemplateSpecsClient Client { get; private set; } + + /// + /// Creates or updates a Template Spec version. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// The version of the Template Spec. + /// + /// + /// Template Spec Version supplied to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string templateSpecName, string templateSpecVersion, TemplateSpecVersion templateSpecVersionModel, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (templateSpecName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "templateSpecName"); + } + if (templateSpecName != null) + { + if (templateSpecName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "templateSpecName", 90); + } + if (templateSpecName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "templateSpecName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(templateSpecName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "templateSpecName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (templateSpecVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "templateSpecVersion"); + } + if (templateSpecVersion != null) + { + if (templateSpecVersion.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "templateSpecVersion", 90); + } + if (templateSpecVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "templateSpecVersion", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(templateSpecVersion, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "templateSpecVersion", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (templateSpecVersionModel == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "templateSpecVersionModel"); + } + if (templateSpecVersionModel != null) + { + templateSpecVersionModel.Validate(); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("templateSpecName", templateSpecName); + tracingParameters.Add("templateSpecVersion", templateSpecVersion); + tracingParameters.Add("templateSpecVersionModel", templateSpecVersionModel); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{templateSpecName}", System.Uri.EscapeDataString(templateSpecName)); + _url = _url.Replace("{templateSpecVersion}", System.Uri.EscapeDataString(templateSpecVersion)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(templateSpecVersionModel != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(templateSpecVersionModel, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new TemplateSpecsErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + TemplateSpecsError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Updates Template Spec Version tags with specified values. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// The version of the Template Spec. + /// + /// + /// Template Spec Version resource with the tags to be updated. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string templateSpecName, string templateSpecVersion, TemplateSpecVersionUpdateModel templateSpecVersionUpdateModel = default(TemplateSpecVersionUpdateModel), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (templateSpecName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "templateSpecName"); + } + if (templateSpecName != null) + { + if (templateSpecName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "templateSpecName", 90); + } + if (templateSpecName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "templateSpecName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(templateSpecName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "templateSpecName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (templateSpecVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "templateSpecVersion"); + } + if (templateSpecVersion != null) + { + if (templateSpecVersion.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "templateSpecVersion", 90); + } + if (templateSpecVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "templateSpecVersion", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(templateSpecVersion, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "templateSpecVersion", "^[-\\w\\._\\(\\)]+$"); + } + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("templateSpecName", templateSpecName); + tracingParameters.Add("templateSpecVersion", templateSpecVersion); + tracingParameters.Add("templateSpecVersionUpdateModel", templateSpecVersionUpdateModel); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{templateSpecName}", System.Uri.EscapeDataString(templateSpecName)); + _url = _url.Replace("{templateSpecVersion}", System.Uri.EscapeDataString(templateSpecVersion)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(templateSpecVersionUpdateModel != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(templateSpecVersionUpdateModel, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new TemplateSpecsErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + TemplateSpecsError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a Template Spec version from a specific Template Spec. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// The version of the Template Spec. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string templateSpecName, string templateSpecVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (templateSpecName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "templateSpecName"); + } + if (templateSpecName != null) + { + if (templateSpecName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "templateSpecName", 90); + } + if (templateSpecName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "templateSpecName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(templateSpecName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "templateSpecName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (templateSpecVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "templateSpecVersion"); + } + if (templateSpecVersion != null) + { + if (templateSpecVersion.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "templateSpecVersion", 90); + } + if (templateSpecVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "templateSpecVersion", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(templateSpecVersion, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "templateSpecVersion", "^[-\\w\\._\\(\\)]+$"); + } + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("templateSpecName", templateSpecName); + tracingParameters.Add("templateSpecVersion", templateSpecVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{templateSpecName}", System.Uri.EscapeDataString(templateSpecName)); + _url = _url.Replace("{templateSpecVersion}", System.Uri.EscapeDataString(templateSpecVersion)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new TemplateSpecsErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + TemplateSpecsError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a specific version from a Template Spec. When operation completes, + /// status code 200 returned without content. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// The version of the Template Spec. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string templateSpecName, string templateSpecVersion, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (templateSpecName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "templateSpecName"); + } + if (templateSpecName != null) + { + if (templateSpecName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "templateSpecName", 90); + } + if (templateSpecName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "templateSpecName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(templateSpecName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "templateSpecName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (templateSpecVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "templateSpecVersion"); + } + if (templateSpecVersion != null) + { + if (templateSpecVersion.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "templateSpecVersion", 90); + } + if (templateSpecVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "templateSpecVersion", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(templateSpecVersion, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "templateSpecVersion", "^[-\\w\\._\\(\\)]+$"); + } + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("templateSpecName", templateSpecName); + tracingParameters.Add("templateSpecVersion", templateSpecVersion); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{templateSpecName}", System.Uri.EscapeDataString(templateSpecName)); + _url = _url.Replace("{templateSpecVersion}", System.Uri.EscapeDataString(templateSpecVersion)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new TemplateSpecsErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + TemplateSpecsError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all the Template Spec versions in the specified Template Spec. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string templateSpecName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (templateSpecName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "templateSpecName"); + } + if (templateSpecName != null) + { + if (templateSpecName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "templateSpecName", 90); + } + if (templateSpecName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "templateSpecName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(templateSpecName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "templateSpecName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("templateSpecName", templateSpecName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{templateSpecName}", System.Uri.EscapeDataString(templateSpecName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new TemplateSpecsErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + TemplateSpecsError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all the Template Spec versions in the specified Template Spec. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new TemplateSpecsErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + TemplateSpecsError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TemplateSpecVersionsOperationsExtensions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TemplateSpecVersionsOperationsExtensions.cs new file mode 100644 index 000000000000..b3e54acdb510 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TemplateSpecVersionsOperationsExtensions.cs @@ -0,0 +1,294 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for TemplateSpecVersionsOperations. + /// + public static partial class TemplateSpecVersionsOperationsExtensions + { + /// + /// Creates or updates a Template Spec version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// The version of the Template Spec. + /// + /// + /// Template Spec Version supplied to the operation. + /// + public static TemplateSpecVersion CreateOrUpdate(this ITemplateSpecVersionsOperations operations, string resourceGroupName, string templateSpecName, string templateSpecVersion, TemplateSpecVersion templateSpecVersionModel) + { + return operations.CreateOrUpdateAsync(resourceGroupName, templateSpecName, templateSpecVersion, templateSpecVersionModel).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a Template Spec version. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// The version of the Template Spec. + /// + /// + /// Template Spec Version supplied to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this ITemplateSpecVersionsOperations operations, string resourceGroupName, string templateSpecName, string templateSpecVersion, TemplateSpecVersion templateSpecVersionModel, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, templateSpecName, templateSpecVersion, templateSpecVersionModel, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates Template Spec Version tags with specified values. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// The version of the Template Spec. + /// + /// + /// Template Spec Version resource with the tags to be updated. + /// + public static TemplateSpecVersion Update(this ITemplateSpecVersionsOperations operations, string resourceGroupName, string templateSpecName, string templateSpecVersion, TemplateSpecVersionUpdateModel templateSpecVersionUpdateModel = default(TemplateSpecVersionUpdateModel)) + { + return operations.UpdateAsync(resourceGroupName, templateSpecName, templateSpecVersion, templateSpecVersionUpdateModel).GetAwaiter().GetResult(); + } + + /// + /// Updates Template Spec Version tags with specified values. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// The version of the Template Spec. + /// + /// + /// Template Spec Version resource with the tags to be updated. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this ITemplateSpecVersionsOperations operations, string resourceGroupName, string templateSpecName, string templateSpecVersion, TemplateSpecVersionUpdateModel templateSpecVersionUpdateModel = default(TemplateSpecVersionUpdateModel), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, templateSpecName, templateSpecVersion, templateSpecVersionUpdateModel, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a Template Spec version from a specific Template Spec. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// The version of the Template Spec. + /// + public static TemplateSpecVersion Get(this ITemplateSpecVersionsOperations operations, string resourceGroupName, string templateSpecName, string templateSpecVersion) + { + return operations.GetAsync(resourceGroupName, templateSpecName, templateSpecVersion).GetAwaiter().GetResult(); + } + + /// + /// Gets a Template Spec version from a specific Template Spec. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// The version of the Template Spec. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this ITemplateSpecVersionsOperations operations, string resourceGroupName, string templateSpecName, string templateSpecVersion, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, templateSpecName, templateSpecVersion, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a specific version from a Template Spec. When operation completes, + /// status code 200 returned without content. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// The version of the Template Spec. + /// + public static void Delete(this ITemplateSpecVersionsOperations operations, string resourceGroupName, string templateSpecName, string templateSpecVersion) + { + operations.DeleteAsync(resourceGroupName, templateSpecName, templateSpecVersion).GetAwaiter().GetResult(); + } + + /// + /// Deletes a specific version from a Template Spec. When operation completes, + /// status code 200 returned without content. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// The version of the Template Spec. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this ITemplateSpecVersionsOperations operations, string resourceGroupName, string templateSpecName, string templateSpecVersion, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, templateSpecName, templateSpecVersion, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Lists all the Template Spec versions in the specified Template Spec. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + public static IPage List(this ITemplateSpecVersionsOperations operations, string resourceGroupName, string templateSpecName) + { + return operations.ListAsync(resourceGroupName, templateSpecName).GetAwaiter().GetResult(); + } + + /// + /// Lists all the Template Spec versions in the specified Template Spec. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this ITemplateSpecVersionsOperations operations, string resourceGroupName, string templateSpecName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, templateSpecName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all the Template Spec versions in the specified Template Spec. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this ITemplateSpecVersionsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all the Template Spec versions in the specified Template Spec. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this ITemplateSpecVersionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TemplateSpecsClient.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TemplateSpecsClient.cs new file mode 100644 index 000000000000..e48b28008e3f --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TemplateSpecsClient.cs @@ -0,0 +1,367 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + + /// + /// The APIs listed in this specification can be used to manage Template + /// Spec resources through the Azure Resource Manager. + /// + public partial class TemplateSpecsClient : ServiceClient, ITemplateSpecsClient, IAzureClient + { + /// + /// The base URI of the service. + /// + public System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + public JsonSerializerSettings SerializationSettings { get; private set; } + + /// + /// Gets or sets json deserialization settings. + /// + public JsonSerializerSettings DeserializationSettings { get; private set; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + public ServiceClientCredentials Credentials { get; private set; } + + /// + /// Subscription Id which forms part of the URI for every service call. + /// + public string SubscriptionId { get; set; } + + /// + /// Client Api version. + /// + public string ApiVersion { get; private set; } + + /// + /// The preferred language for the response. + /// + public string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default value is + /// 30. + /// + public int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. When set to + /// true a unique x-ms-client-request-id value is generated and included in + /// each request. Default is true. + /// + public bool? GenerateClientRequestId { get; set; } + + /// + /// Gets the ITemplateSpecsOperations. + /// + public virtual ITemplateSpecsOperations TemplateSpecs { get; private set; } + + /// + /// Gets the ITemplateSpecVersionsOperations. + /// + public virtual ITemplateSpecVersionsOperations TemplateSpecVersions { get; private set; } + + /// + /// Initializes a new instance of the TemplateSpecsClient class. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling TemplateSpecsClient.Dispose(). False: will not dispose provided httpClient + protected TemplateSpecsClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient) + { + Initialize(); + } + + /// + /// Initializes a new instance of the TemplateSpecsClient class. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected TemplateSpecsClient(params DelegatingHandler[] handlers) : base(handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the TemplateSpecsClient class. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected TemplateSpecsClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the TemplateSpecsClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected TemplateSpecsClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the TemplateSpecsClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected TemplateSpecsClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the TemplateSpecsClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public TemplateSpecsClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the TemplateSpecsClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling TemplateSpecsClient.Dispose(). False: will not dispose provided httpClient + /// + /// Thrown when a required parameter is null + /// + public TemplateSpecsClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the TemplateSpecsClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public TemplateSpecsClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the TemplateSpecsClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public TemplateSpecsClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the TemplateSpecsClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public TemplateSpecsClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// An optional partial-method to perform custom initialization. + /// + partial void CustomInitialize(); + /// + /// Initializes client properties. + /// + private void Initialize() + { + TemplateSpecs = new TemplateSpecsOperations(this); + TemplateSpecVersions = new TemplateSpecVersionsOperations(this); + BaseUri = new System.Uri("https://management.azure.com"); + ApiVersion = "2021-03-01-preview"; + AcceptLanguage = "en-US"; + LongRunningOperationRetryTimeout = 30; + GenerateClientRequestId = true; + SerializationSettings = new JsonSerializerSettings + { + Formatting = Newtonsoft.Json.Formatting.Indented, + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + SerializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings = new JsonSerializerSettings + { + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + CustomInitialize(); + DeserializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TemplateSpecsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TemplateSpecsOperations.cs new file mode 100644 index 000000000000..ba941eb6ca53 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TemplateSpecsOperations.cs @@ -0,0 +1,1697 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// TemplateSpecsOperations operations. + /// + internal partial class TemplateSpecsOperations : IServiceOperations, ITemplateSpecsOperations + { + /// + /// Initializes a new instance of the TemplateSpecsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal TemplateSpecsOperations(TemplateSpecsClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the TemplateSpecsClient + /// + public TemplateSpecsClient Client { get; private set; } + + /// + /// Creates or updates a Template Spec. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// Template Spec supplied to the operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string templateSpecName, TemplateSpec templateSpec, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (templateSpecName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "templateSpecName"); + } + if (templateSpecName != null) + { + if (templateSpecName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "templateSpecName", 90); + } + if (templateSpecName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "templateSpecName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(templateSpecName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "templateSpecName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (templateSpec == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "templateSpec"); + } + if (templateSpec != null) + { + templateSpec.Validate(); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("templateSpecName", templateSpecName); + tracingParameters.Add("templateSpec", templateSpec); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{templateSpecName}", System.Uri.EscapeDataString(templateSpecName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(templateSpec != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(templateSpec, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new TemplateSpecsErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + TemplateSpecsError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Updates Template Spec tags with specified values. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// Template Spec resource with the tags to be updated. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string templateSpecName, TemplateSpecUpdateModel templateSpec = default(TemplateSpecUpdateModel), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (templateSpecName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "templateSpecName"); + } + if (templateSpecName != null) + { + if (templateSpecName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "templateSpecName", 90); + } + if (templateSpecName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "templateSpecName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(templateSpecName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "templateSpecName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("templateSpecName", templateSpecName); + tracingParameters.Add("templateSpec", templateSpec); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{templateSpecName}", System.Uri.EscapeDataString(templateSpecName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(templateSpec != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(templateSpec, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new TemplateSpecsErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + TemplateSpecsError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets a Template Spec with a given name. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// Allows for expansion of additional Template Spec details in the response. + /// Optional. Possible values include: 'versions' + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string templateSpecName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (templateSpecName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "templateSpecName"); + } + if (templateSpecName != null) + { + if (templateSpecName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "templateSpecName", 90); + } + if (templateSpecName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "templateSpecName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(templateSpecName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "templateSpecName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("templateSpecName", templateSpecName); + tracingParameters.Add("expand", expand); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{templateSpecName}", System.Uri.EscapeDataString(templateSpecName)); + List _queryParameters = new List(); + if (expand != null) + { + _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand))); + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new TemplateSpecsErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + TemplateSpecsError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Deletes a Template Spec by name. When operation completes, status code 200 + /// returned without content. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string templateSpecName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (templateSpecName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "templateSpecName"); + } + if (templateSpecName != null) + { + if (templateSpecName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "templateSpecName", 90); + } + if (templateSpecName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "templateSpecName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(templateSpecName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "templateSpecName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("templateSpecName", templateSpecName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{templateSpecName}", System.Uri.EscapeDataString(templateSpecName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new TemplateSpecsErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + TemplateSpecsError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all the Template Specs within the specified subscriptions. + /// + /// + /// Allows for expansion of additional Template Spec details in the response. + /// Optional. Possible values include: 'versions' + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListBySubscriptionWithHttpMessagesAsync(string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("expand", expand); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListBySubscription", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Resources/templateSpecs/").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (expand != null) + { + _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand))); + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new TemplateSpecsErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + TemplateSpecsError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all the Template Specs within the specified resource group. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Allows for expansion of additional Template Spec details in the response. + /// Optional. Possible values include: 'versions' + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("expand", expand); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + List _queryParameters = new List(); + if (expand != null) + { + _queryParameters.Add(string.Format("$expand={0}", System.Uri.EscapeDataString(expand))); + } + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new TemplateSpecsErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + TemplateSpecsError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all the Template Specs within the specified subscriptions. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListBySubscriptionNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new TemplateSpecsErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + TemplateSpecsError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all the Template Specs within the specified resource group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new TemplateSpecsErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + TemplateSpecsError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TemplateSpecsOperationsExtensions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TemplateSpecsOperationsExtensions.cs new file mode 100644 index 000000000000..5f692bd4689d --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TemplateSpecsOperationsExtensions.cs @@ -0,0 +1,350 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for TemplateSpecsOperations. + /// + public static partial class TemplateSpecsOperationsExtensions + { + /// + /// Creates or updates a Template Spec. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// Template Spec supplied to the operation. + /// + public static TemplateSpec CreateOrUpdate(this ITemplateSpecsOperations operations, string resourceGroupName, string templateSpecName, TemplateSpec templateSpec) + { + return operations.CreateOrUpdateAsync(resourceGroupName, templateSpecName, templateSpec).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates a Template Spec. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// Template Spec supplied to the operation. + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this ITemplateSpecsOperations operations, string resourceGroupName, string templateSpecName, TemplateSpec templateSpec, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, templateSpecName, templateSpec, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates Template Spec tags with specified values. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// Template Spec resource with the tags to be updated. + /// + public static TemplateSpec Update(this ITemplateSpecsOperations operations, string resourceGroupName, string templateSpecName, TemplateSpecUpdateModel templateSpec = default(TemplateSpecUpdateModel)) + { + return operations.UpdateAsync(resourceGroupName, templateSpecName, templateSpec).GetAwaiter().GetResult(); + } + + /// + /// Updates Template Spec tags with specified values. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// Template Spec resource with the tags to be updated. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this ITemplateSpecsOperations operations, string resourceGroupName, string templateSpecName, TemplateSpecUpdateModel templateSpec = default(TemplateSpecUpdateModel), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, templateSpecName, templateSpec, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a Template Spec with a given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// Allows for expansion of additional Template Spec details in the response. + /// Optional. Possible values include: 'versions' + /// + public static TemplateSpec Get(this ITemplateSpecsOperations operations, string resourceGroupName, string templateSpecName, string expand = default(string)) + { + return operations.GetAsync(resourceGroupName, templateSpecName, expand).GetAwaiter().GetResult(); + } + + /// + /// Gets a Template Spec with a given name. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// Allows for expansion of additional Template Spec details in the response. + /// Optional. Possible values include: 'versions' + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this ITemplateSpecsOperations operations, string resourceGroupName, string templateSpecName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, templateSpecName, expand, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a Template Spec by name. When operation completes, status code 200 + /// returned without content. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + public static void Delete(this ITemplateSpecsOperations operations, string resourceGroupName, string templateSpecName) + { + operations.DeleteAsync(resourceGroupName, templateSpecName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a Template Spec by name. When operation completes, status code 200 + /// returned without content. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Name of the Template Spec. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this ITemplateSpecsOperations operations, string resourceGroupName, string templateSpecName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, templateSpecName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Lists all the Template Specs within the specified subscriptions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Allows for expansion of additional Template Spec details in the response. + /// Optional. Possible values include: 'versions' + /// + public static IPage ListBySubscription(this ITemplateSpecsOperations operations, string expand = default(string)) + { + return operations.ListBySubscriptionAsync(expand).GetAwaiter().GetResult(); + } + + /// + /// Lists all the Template Specs within the specified subscriptions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Allows for expansion of additional Template Spec details in the response. + /// Optional. Possible values include: 'versions' + /// + /// + /// The cancellation token. + /// + public static async Task> ListBySubscriptionAsync(this ITemplateSpecsOperations operations, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListBySubscriptionWithHttpMessagesAsync(expand, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all the Template Specs within the specified resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Allows for expansion of additional Template Spec details in the response. + /// Optional. Possible values include: 'versions' + /// + public static IPage ListByResourceGroup(this ITemplateSpecsOperations operations, string resourceGroupName, string expand = default(string)) + { + return operations.ListByResourceGroupAsync(resourceGroupName, expand).GetAwaiter().GetResult(); + } + + /// + /// Lists all the Template Specs within the specified resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// Allows for expansion of additional Template Spec details in the response. + /// Optional. Possible values include: 'versions' + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupAsync(this ITemplateSpecsOperations operations, string resourceGroupName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, expand, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all the Template Specs within the specified subscriptions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListBySubscriptionNext(this ITemplateSpecsOperations operations, string nextPageLink) + { + return operations.ListBySubscriptionNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all the Template Specs within the specified subscriptions. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListBySubscriptionNextAsync(this ITemplateSpecsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListBySubscriptionNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all the Template Specs within the specified resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByResourceGroupNext(this ITemplateSpecsOperations operations, string nextPageLink) + { + return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all the Template Specs within the specified resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupNextAsync(this ITemplateSpecsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TenantsOperations.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TenantsOperations.cs new file mode 100644 index 000000000000..6b51901f1317 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TenantsOperations.cs @@ -0,0 +1,400 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// TenantsOperations operations. + /// + internal partial class TenantsOperations : IServiceOperations, ITenantsOperations + { + /// + /// Initializes a new instance of the TenantsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal TenantsOperations(SubscriptionClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SubscriptionClient + /// + public SubscriptionClient Client { get; private set; } + + /// + /// Gets the tenants for your account. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "tenants").ToString(); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets the tenants for your account. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TenantsOperationsExtensions.cs b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TenantsOperationsExtensions.cs new file mode 100644 index 000000000000..906ef49e3c30 --- /dev/null +++ b/sdk/resources/Microsoft.Azure.Management.ResourceManager/src/Generated/TenantsOperationsExtensions.cs @@ -0,0 +1,87 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ResourceManager +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for TenantsOperations. + /// + public static partial class TenantsOperationsExtensions + { + /// + /// Gets the tenants for your account. + /// + /// + /// The operations group for this extension method. + /// + public static IPage List(this ITenantsOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Gets the tenants for your account. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this ITenantsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the tenants for your account. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this ITenantsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets the tenants for your account. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this ITenantsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/resources/ci.yml b/sdk/resources/ci.yml index 502590954132..f42c7920a85e 100644 --- a/sdk/resources/ci.yml +++ b/sdk/resources/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/schemaregistry/Azure.Data.SchemaRegistry/README.md b/sdk/schemaregistry/Azure.Data.SchemaRegistry/README.md index 9c0f7e666bd4..2c750b5fb8a1 100644 --- a/sdk/schemaregistry/Azure.Data.SchemaRegistry/README.md +++ b/sdk/schemaregistry/Azure.Data.SchemaRegistry/README.md @@ -44,7 +44,7 @@ Once you have the Azure resource credentials and the Event Hubs namespace hostna ```C# Snippet:SchemaRegistryCreateSchemaRegistryClient // Create a new SchemaRegistry client using the default credential from Azure.Identity using environment variables previously set, // including AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, and AZURE_TENANT_ID. -// For more information on Azure.Identity usage, see: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md +// For more information on Azure.Identity usage, see: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md var client = new SchemaRegistryClient(endpoint: endpoint, credential: new DefaultAzureCredential()); ``` @@ -67,12 +67,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -161,10 +161,10 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con [event_hubs_namespace]: https://docs.microsoft.com/azure/event-hubs/event-hubs-about [azure_powershell]: https://docs.microsoft.com/powershell/azure/ [create_event_hubs_namespace]: https://docs.microsoft.com/azure/event-hubs/event-hubs-quickstart-powershell#create-an-event-hubs-namespace -[quickstart_guide]: https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md -[schema_registry_client]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/SchemaRegistryClient.cs +[quickstart_guide]: https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md +[schema_registry_client]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/SchemaRegistryClient.cs [azure_portal]: https://ms.portal.azure.com/ -[schema_properties]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/SchemaProperties.cs +[schema_properties]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/SchemaProperties.cs [azure_identity]: https://www.nuget.org/packages/Azure.Identity [cla]: https://cla.microsoft.com [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ diff --git a/sdk/schemaregistry/Microsoft.Azure.Data.SchemaRegistry.ApacheAvro/README.md b/sdk/schemaregistry/Microsoft.Azure.Data.SchemaRegistry.ApacheAvro/README.md index d5152af71dc4..7e6fcba01976 100644 --- a/sdk/schemaregistry/Microsoft.Azure.Data.SchemaRegistry.ApacheAvro/README.md +++ b/sdk/schemaregistry/Microsoft.Azure.Data.SchemaRegistry.ApacheAvro/README.md @@ -44,7 +44,7 @@ Once you have the Azure resource credentials and the Event Hubs namespace hostna ```C# Snippet:SchemaRegistryAvroCreateSchemaRegistryClient // Create a new SchemaRegistry client using the default credential from Azure.Identity using environment variables previously set, // including AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, and AZURE_TENANT_ID. -// For more information on Azure.Identity usage, see: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md +// For more information on Azure.Identity usage, see: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md var schemaRegistryClient = new SchemaRegistryClient(endpoint: endpoint, credential: new DefaultAzureCredential()); ``` @@ -130,8 +130,8 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con [event_hubs_namespace]: https://docs.microsoft.com/azure/event-hubs/event-hubs-about [azure_powershell]: https://docs.microsoft.com/powershell/azure/ [create_event_hubs_namespace]: https://docs.microsoft.com/azure/event-hubs/event-hubs-quickstart-powershell#create-an-event-hubs-namespace -[quickstart_guide]: https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md -[schema_registry_client]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/SchemaRegistryClient.cs +[quickstart_guide]: https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md +[schema_registry_client]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/schemaregistry/Azure.Data.SchemaRegistry/src/SchemaRegistryClient.cs [azure_portal]: https://ms.portal.azure.com/ [schema_properties]: src/SchemaProperties.cs [azure_identity]: https://www.nuget.org/packages/Azure.Identity @@ -139,9 +139,9 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ [code_of_conduct_faq]: https://opensource.microsoft.com/codeofconduct/faq/ [email_opencode]: mailto:opencode@microsoft.com -[object_serializer]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/src/Serialization/ObjectSerializer.cs -[schema_registry_avro_serializer]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/schemaregistry/Microsoft.Azure.Data.SchemaRegistry.ApacheAvro/src/SchemaRegistryAvroObjectSerializer.cs -[employee]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/schemaregistry/Microsoft.Azure.Data.SchemaRegistry.ApacheAvro/tests/Models/Employee.cs +[object_serializer]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/src/Serialization/ObjectSerializer.cs +[schema_registry_avro_serializer]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/schemaregistry/Microsoft.Azure.Data.SchemaRegistry.ApacheAvro/src/SchemaRegistryAvroObjectSerializer.cs +[employee]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/schemaregistry/Microsoft.Azure.Data.SchemaRegistry.ApacheAvro/tests/Models/Employee.cs [avro_csharp_documentation]: https://avro.apache.org/docs/current/api/csharp/html/index.html [apache_avro_library]: https://www.nuget.org/packages/Apache.Avro/ [generic_record]: https://avro.apache.org/docs/current/api/csharp/html/classAvro_1_1Generic_1_1GenericRecord.html diff --git a/sdk/schemaregistry/ci.yml b/sdk/schemaregistry/ci.yml index 54a40cd65dd7..d6f703f807b7 100644 --- a/sdk/schemaregistry/ci.yml +++ b/sdk/schemaregistry/ci.yml @@ -2,7 +2,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -13,7 +12,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/search/Azure.Search.Documents/MigrationGuide.md b/sdk/search/Azure.Search.Documents/MigrationGuide.md index c155132704d7..478e587ead14 100644 --- a/sdk/search/Azure.Search.Documents/MigrationGuide.md +++ b/sdk/search/Azure.Search.Documents/MigrationGuide.md @@ -2,7 +2,7 @@ This guide is intended to assist in the migration to version 11 of the Azure Cognitive Search client library [`Azure.Search.Documents`](https://www.nuget.org/packages/Azure.Search.Documents/) from version 10 of [`Microsoft.Azure.Search`](https://www.nuget.org/packages/Microsoft.Azure.Search/). -To learn more about the Azure Cognitive Search client library for .NET, please refer to the [`Azure.Search.Documents` README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/search/README.md) and [`Azure.Search.Documents` samples](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/search/Azure.Search.Documents/samples) for the `Azure.Search.Documents` library. +To learn more about the Azure Cognitive Search client library for .NET, please refer to the [`Azure.Search.Documents` README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/search/README.md) and [`Azure.Search.Documents` samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/search/Azure.Search.Documents/samples) for the `Azure.Search.Documents` library. ## Migration Guide Details about the migration can be found in the [upgrade document](https://docs.microsoft.com/azure/search/search-dotnet-sdk-migration-version-11). It describes the API differences, code changes involved in the upgrade and the breaking changes. diff --git a/sdk/search/Azure.Search.Documents/README.md b/sdk/search/Azure.Search.Documents/README.md index fb09250c9e71..b552ad16862f 100644 --- a/sdk/search/Azure.Search.Documents/README.md +++ b/sdk/search/Azure.Search.Documents/README.md @@ -96,6 +96,47 @@ string key = Environment.GetEnvironmentVariable("SEARCH_API_KEY"); AzureKeyCredential credential = new AzureKeyCredential(key); SearchClient client = new SearchClient(endpoint, indexName, credential); ``` +### ASP.NET Core +To inject `SearchClient` as a dependency in an ASP.NET Core app, first install the package `Microsoft.Extensions.Azure`. Then register the client in the `Startup.ConfigureServices` method: + +```csharp +public void ConfigureServices(IServiceCollection services) +{ + services.AddAzureClients(builder => + { + builder.AddSearchClient(Configuration.GetSection("SearchClient")); + }); + + services.AddControllers(); +} +``` +To use the preceding code, add this to your configuration: + +```json +{ + "SearchClient": { + "endpoint": "https://.search.windows.net", + "indexname": "nycjobs" + } +} +``` +You'll also need to provide your resource key to authenticate the client, but you shouldn't be putting that information in the configuration. Instead, when in development, use [User-Secrets](https://docs.microsoft.com/aspnet/core/security/app-secrets?view=aspnetcore-5.0&tabs=windows#how-the-secret-manager-tool-works). Add the following to `secrets.json`: + +```json +{ + "SearchClient": { + "credential": { "key": "" } + } +} +``` +When running in production, it's preferable to use [environment variables](https://docs.microsoft.com/aspnet/core/security/app-secrets?view=aspnetcore-5.0&tabs=windows#environment-variables): + +``` +SEARCH__CREDENTIAL__KEY="..." +``` +Or use other secure ways of storing secrets like [Azure Key Vault](https://docs.microsoft.com/aspnet/core/security/key-vault-configuration?view=aspnetcore-5.0). + +For more details about Dependency Injection in ASP.NET Core apps, see [Dependency injection with the Azure SDK for .NET](https://docs.microsoft.com/dotnet/azure/sdk/dependency-injection). ## Key concepts @@ -137,12 +178,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -384,7 +425,7 @@ catch (RequestFailedException ex) when (ex.Status == 404) } ``` -You can also easily [enable console logging](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md#logging) if you want to dig +You can also easily [enable console logging](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md#logging) if you want to dig deeper into the requests you're making against the service. ## Next steps @@ -411,7 +452,7 @@ additional questions or comments. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fsearch%2FAzure.Search.Documents%2FREADME.png) -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/search/Azure.Search.Documents/src +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/search/Azure.Search.Documents/src [package]: https://www.nuget.org/packages/Azure.Search.Documents/ [docs]: https://docs.microsoft.com/dotnet/api/Azure.Search.Documents [rest_docs]: https://docs.microsoft.com/rest/api/searchservice/ @@ -422,10 +463,10 @@ additional questions or comments. [create_search_service_cli]: https://docs.microsoft.com/cli/azure/search/service?view=azure-cli-latest#az-search-service-create [azure_cli]: https://docs.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ -[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core/src/RequestFailedException.cs +[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core/src/RequestFailedException.cs [status_codes]: https://docs.microsoft.com/rest/api/searchservice/http-status-codes -[samples]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/search/Azure.Search.Documents/samples/ -[search_contrib]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/search/CONTRIBUTING.md +[samples]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/search/Azure.Search.Documents/samples/ +[search_contrib]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/search/CONTRIBUTING.md [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/search/Azure.Search.Documents/perf/README.md b/sdk/search/Azure.Search.Documents/perf/README.md index 8643e7437b0a..a57fe0ba3a4f 100644 --- a/sdk/search/Azure.Search.Documents/perf/README.md +++ b/sdk/search/Azure.Search.Documents/perf/README.md @@ -1,6 +1,6 @@ # Azure Search performance tests -The assets in this area comprise a set of performance tests for the [Azure Search client library for .NET](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/search/Azure.Search.Documents) and its associated ecosystem. The artifacts in this library are intended to be used primarily with the Azure SDK engineering system's testing infrastructure, but may also be run as stand-alone applications from the command line. +The assets in this area comprise a set of performance tests for the [Azure Search client library for .NET](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/search/Azure.Search.Documents) and its associated ecosystem. The artifacts in this library are intended to be used primarily with the Azure SDK engineering system's testing infrastructure, but may also be run as stand-alone applications from the command line. ## Contributing @@ -10,6 +10,6 @@ When you submit a pull request, a CLA-bot will automatically determine whether y This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. -Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/master/CONTRIBUTING.md) for more information. +Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/main/CONTRIBUTING.md) for more information. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fsearch%2FAzure.Search.Documents.Perf%2FREADME.png) diff --git a/sdk/search/Azure.Search.Documents/samples/README.md b/sdk/search/Azure.Search.Documents/samples/README.md index b529c111b25e..ee4380add82c 100644 --- a/sdk/search/Azure.Search.Documents/samples/README.md +++ b/sdk/search/Azure.Search.Documents/samples/README.md @@ -11,9 +11,9 @@ description: Samples for the Azure.Search.Documents client library # Azure.Search.Documents Samples -- Get started either [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/search/Azure.Search.Documents/samples/Sample01a_HelloWorld.md) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/search/Azure.Search.Documents/samples/Sample01b_HelloWorldAsync.md). -- Perform [service level operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/search/Azure.Search.Documents/samples/Sample02_Service.md). -- Perform [index level operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/search/Azure.Search.Documents/samples/Sample03_Index.md). -- Use [`[FieldBuilderIgnore]`](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/search/Azure.Search.Documents/samples/Sample04_FieldBuilderIgnore.md) to add fields for unsupported properties using `FieldBuilder`. -- Learn about different ways to [index documents](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/search/Azure.Search.Documents/samples/Sample05_IndexingDocuments.md). -- Use your own Key Vault key to [encrypt your data source connections, skillsets, indexers, and index](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/search/Azure.Search.Documents/samples/Sample06_EncryptedIndex.md). +- Get started either [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/search/Azure.Search.Documents/samples/Sample01a_HelloWorld.md) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/search/Azure.Search.Documents/samples/Sample01b_HelloWorldAsync.md). +- Perform [service level operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/search/Azure.Search.Documents/samples/Sample02_Service.md). +- Perform [index level operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/search/Azure.Search.Documents/samples/Sample03_Index.md). +- Use [`[FieldBuilderIgnore]`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/search/Azure.Search.Documents/samples/Sample04_FieldBuilderIgnore.md) to add fields for unsupported properties using `FieldBuilder`. +- Learn about different ways to [index documents](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/search/Azure.Search.Documents/samples/Sample05_IndexingDocuments.md). +- Use your own Key Vault key to [encrypt your data source connections, skillsets, indexers, and index](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/search/Azure.Search.Documents/samples/Sample06_EncryptedIndex.md). diff --git a/sdk/search/Azure.Search.Documents/tests/Batching/BatchingTests.cs b/sdk/search/Azure.Search.Documents/tests/Batching/BatchingTests.cs index b6732e50ddef..022c4b8c9920 100644 --- a/sdk/search/Azure.Search.Documents/tests/Batching/BatchingTests.cs +++ b/sdk/search/Azure.Search.Documents/tests/Batching/BatchingTests.cs @@ -364,6 +364,8 @@ public async Task Champion_BasicCheckpointing() AutoFlushInterval = null }); + int removeFailedCount = 0; + List> pending = new List>(); indexer.ActionAdded += (IndexActionEventArgs e) => @@ -374,13 +376,15 @@ public async Task Champion_BasicCheckpointing() indexer.ActionCompleted += (IndexActionCompletedEventArgs e) => { - pending.Remove(e.Action); + if (!pending.Remove(e.Action)) + { removeFailedCount++; } return Task.CompletedTask; }; indexer.ActionFailed += (IndexActionFailedEventArgs e) => { - pending.Remove(e.Action); + if (!pending.Remove(e.Action)) + { removeFailedCount++; } return Task.CompletedTask; }; @@ -388,11 +392,15 @@ public async Task Champion_BasicCheckpointing() await indexer.MergeDocumentsAsync(new[] { new SimpleDocument { Id = "Fake" } }); await indexer.UploadDocumentsAsync(data.Skip(500)); - await DelayAsync(TimeSpan.FromSeconds(5), TimeSpan.FromMilliseconds(250)); - Assert.AreEqual(1001 - BatchSize, pending.Count); + int expectedPendingQueueSize = 1001 - BatchSize; + + await ConditionallyDelayAsync(() => (pending.Count == expectedPendingQueueSize), TimeSpan.FromSeconds(2), TimeSpan.FromMilliseconds(250), 5); + Assert.AreEqual(expectedPendingQueueSize, pending.Count); + Assert.AreEqual(0, removeFailedCount); await indexer.FlushAsync(); Assert.AreEqual(0, pending.Count); + Assert.AreEqual(0, removeFailedCount); } #endregion diff --git a/sdk/search/Azure.Search.Documents/tests/Utilities/SearchTestBase.cs b/sdk/search/Azure.Search.Documents/tests/Utilities/SearchTestBase.cs index c43f3fcc9f80..933675955aa6 100644 --- a/sdk/search/Azure.Search.Documents/tests/Utilities/SearchTestBase.cs +++ b/sdk/search/Azure.Search.Documents/tests/Utilities/SearchTestBase.cs @@ -107,6 +107,54 @@ public async Task DelayAsync(TimeSpan? delay = null, TimeSpan? playbackDelay = n } } + /// + /// A number of our tests have built in delays while we wait an expected + /// amount of time for a service operation to complete and this method + /// allows us to wait (unless we're playing back recordings, which can + /// complete immediately). + /// This method allows us to return early if the condition evaluates to true. + /// It evaluates the predicate after every or time span. + /// It returns when the condition evaluates to true, or if the condition stays false after checks. + /// + /// Condition that will result in early end of delay when it evaluates to true. + /// The time to wait per iteration. Defaults to 1s. + /// + /// An optional time wait if we're playing back a recorded test. This + /// is useful for allowing client side events to get processed. + /// + /// Maximum number of iterations of the wait-and-check cycle. + /// Optional to check. + /// A task that will (optionally) delay. + /// The was signaled. + public async Task ConditionallyDelayAsync(Func predicate, TimeSpan ? delayPerIteration = null, TimeSpan? playbackDelayPerIteration = null, uint maxIterations = 1, CancellationToken cancellationToken = default) + { + TimeSpan waitPeriod = TimeSpan.Zero; + + for (int i = 0; i < maxIterations; i++) + { + if (predicate()) + { + TestContext.WriteLine($"{nameof(ConditionallyDelayAsync)}: Condition evaluated to true in {waitPeriod.TotalSeconds} seconds."); + return; + } + + cancellationToken.ThrowIfCancellationRequested(); + + if (Mode != RecordedTestMode.Playback) + { + waitPeriod += delayPerIteration ?? TimeSpan.FromSeconds(1); + await Task.Delay(delayPerIteration ?? TimeSpan.FromSeconds(1)); + } + else if (playbackDelayPerIteration != null) + { + waitPeriod += playbackDelayPerIteration.Value; + await Task.Delay(playbackDelayPerIteration.Value); + } + } + + TestContext.WriteLine($"{nameof(ConditionallyDelayAsync)}: Condition did not evaluate to true in {waitPeriod.TotalSeconds} seconds."); + } + /// /// Assert that we can catch the desired exception. NUnit's default /// forces everything to be sync. diff --git a/sdk/search/CONTRIBUTING.md b/sdk/search/CONTRIBUTING.md index 618651419781..b42cdf85386a 100644 --- a/sdk/search/CONTRIBUTING.md +++ b/sdk/search/CONTRIBUTING.md @@ -16,7 +16,7 @@ and share a number of core features such as HTTP retries, logging, transport protocols, authentication protocols, etc., so that once you learn how to use these features in one client library, you will know how to use them in other client libraries. You can learn about these shared features in the -[Azure.Core README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md). +[Azure.Core README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md). ## Code Generation Please do not edit any of the code in the `/Generated` folders directly. If @@ -70,7 +70,7 @@ in the PR. ### Live Test Resources Before running or recording live tests you need to create -[live test resources](https://github.com/Azure/azure-sdk-for-net/blob/master/eng/common/TestResources/README.md). +[live test resources](https://github.com/Azure/azure-sdk-for-net/blob/main/eng/common/TestResources/README.md). If recording tests, secrets will be sanitized from saved recordings. If you will be working on contributions over time, you should consider persisting these variables. @@ -83,4 +83,4 @@ to keep them easy to read. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fsearch%2FCONTRIBUTING.png) -[core_tests]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core.TestFramework \ No newline at end of file +[core_tests]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core.TestFramework \ No newline at end of file diff --git a/sdk/search/README.md b/sdk/search/README.md index 65f937b78b88..064e25123a50 100644 --- a/sdk/search/README.md +++ b/sdk/search/README.md @@ -15,30 +15,30 @@ persisted index that you create, own, and store in your service. Functionality is exposed through several client libraries: -- [Azure.Search.Documents](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/search/Azure.Search.Documents) is the latest .NET client +- [Azure.Search.Documents](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/search/Azure.Search.Documents) is the latest .NET client library for building applications with Azure Cognitive Search. It is built on - top of [Azure.Core](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md) and the + top of [Azure.Core](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md) and the [Azure SDK Design Guidelines for .NET](https://azure.github.io/azure-sdk/dotnet_introduction.html). -- [Microsoft.Azure.Search](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/search/Microsoft.Azure.Search/) is the previous .NET +- [Microsoft.Azure.Search](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/search/Microsoft.Azure.Search/) is the previous .NET client library that makes it easy to develop applications using Azure Cognitive Search. The `Microsoft.Azure.Search` package includes the following client libraries: - - [Microsoft.Azure.Search.Data](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/search/Microsoft.Azure.Search.Data/) enables + - [Microsoft.Azure.Search.Data](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/search/Microsoft.Azure.Search.Data/) enables querying or updating documents in your indexes. - - [Microsoft.Azure.Search.Service](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/search/Microsoft.Azure.Search.Service/) manages + - [Microsoft.Azure.Search.Service](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/search/Microsoft.Azure.Search.Service/) manages Azure Cognitive Search indexes, synonym maps, indexers, data sources, or other service-level resources. - - [Microsoft.Azure.Search.Common](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/search/Microsoft.Azure.Search.Common/) contains + - [Microsoft.Azure.Search.Common](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/search/Microsoft.Azure.Search.Common/) contains common types needed by the Microsoft.Azure.Search libraries. It is only meant to be used as a dependency. -- [Microsoft.Azure.Management.Search](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/search/Microsoft.Azure.Management.Search/) +- [Microsoft.Azure.Management.Search](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/search/Microsoft.Azure.Management.Search/) supports managing Azure Cognitive Search services and API keys. ## Contributing -See the Azure.Search.Documents [CONTRIBUTING.md](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/search/CONTRIBUTING.md) for details on +See the Azure.Search.Documents [CONTRIBUTING.md](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/search/CONTRIBUTING.md) for details on building, testing, and contributing to these libraries. This project welcomes contributions and suggestions. Most contributions diff --git a/sdk/search/ci.yml b/sdk/search/ci.yml index 85d90237fb0a..723e068d7962 100644 --- a/sdk/search/ci.yml +++ b/sdk/search/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/CHANGELOG.md b/sdk/servicebus/Azure.Messaging.ServiceBus/CHANGELOG.md index 8894caba0fe1..77b7f5ec9a2a 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/CHANGELOG.md +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/CHANGELOG.md @@ -1,11 +1,30 @@ # Release History -## 7.2.0-beta.4 (Unreleased) +## 7.3.0-beta.1 (Unreleased) -### Key Bug Fixes +### Features Added + +### Breaking Changes + +### Key Bugs Fixed + +### Fixed + + +## 7.2.0 (2021-06-22) + +### Acknowledgments +Thank you to our developer community members who helped to make the Service Bus client library better with their contributions to this release: + +- Jason Dryhurst-Smith _([GitHub](https://github.com/jasond-s))_ +- Oscar Cabrero _([GitHub](https://github.com/oscarcabrero))_ + +### Fixed - The retry policy used by clients will no longer overflow the `TimeSpan` maximum when using an `Exponential` strategy with a large number of retries and long delay set. +- The name of the property displayed in the `ArgumentOutOfRangeException` in the `MaxDeliveryCount` property in `SubscriptionProperties` was updated to use the correct property name. (A community contribution, courtesy of _[oscarcabrero](https://github.com/oscarcabrero))_ + ## 7.2.0-beta.3 (2021-05-12) ### Added diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/CONTRIBUTING.md b/sdk/servicebus/Azure.Messaging.ServiceBus/CONTRIBUTING.md index 1329475c354b..653ff5fea0c6 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/CONTRIBUTING.md +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/CONTRIBUTING.md @@ -13,7 +13,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope Before working on a contribution, it would be beneficial to familiarize yourself with the process and guidelines used for the Azure SDKs so that your submission is consistent with the project standards and is ready to be accepted with fewer changes requested. In particular, it is recommended to review: - [Azure SDK README](https://github.com/Azure/azure-sdk), to learn more about the overall project and processes used. - - [Azure SDK Contributing Guide](https://github.com/Azure/azure-sdk-for-net/blob/master/CONTRIBUTING.md), for information about how to onboard and contribute to the overall Azure SDK ecosystem. + - [Azure SDK Contributing Guide](https://github.com/Azure/azure-sdk-for-net/blob/main/CONTRIBUTING.md), for information about how to onboard and contribute to the overall Azure SDK ecosystem. - [Azure SDK Design Guidelines](https://azure.github.io/azure-sdk/general_introduction.html), to understand the general guidelines for the Azure SDK across all languages and platforms. - [Azure SDK Design Guidelines for .NET](https://azure.github.io/azure-sdk/dotnet_introduction.html), to understand the guidelines specific to the Azure SDK for .NET. diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/MigrationGuide.md b/sdk/servicebus/Azure.Messaging.ServiceBus/MigrationGuide.md index 6176986d8811..73121a2129a6 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/MigrationGuide.md +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/MigrationGuide.md @@ -2,7 +2,7 @@ This guide is intended to assist in the migration to version 7 of the Service Bus client library [`Azure.Messaging.ServiceBus`](https://www.nuget.org/packages/Azure.Messaging.ServiceBus/) from [`Microsoft.Azure.ServiceBus`](https://www.nuget.org/packages/Microsoft.Azure.ServiceBus/). It will focus on side-by-side comparisons for similar operations between the two packages. -We assume that you are familiar with the `Microsoft.Azure.ServiceBus` library. If not, please refer to the [README for Azure.Messaging.ServiceBus](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Azure.Messaging.ServiceBus/README.md) and [Service Bus samples](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/servicebus/Azure.Messaging.ServiceBus/samples) rather than this guide. +We assume that you are familiar with the `Microsoft.Azure.ServiceBus` library. If not, please refer to the [README for Azure.Messaging.ServiceBus](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/README.md) and [Service Bus samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples) rather than this guide. ## Table of contents @@ -103,7 +103,7 @@ ServiceBusClient client = new ServiceBusClient(connectionString); #### Administration client -The `ServiceBusAdministrationClient` replaces the `ManagementClient` from `Microsoft.Azure.ServiceBus`. For example usage please see the sample for [CRUD operations using the `ServiceBusAdministrationClient`](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample07_CrudOperations.md). +The `ServiceBusAdministrationClient` replaces the `ManagementClient` from `Microsoft.Azure.ServiceBus`. For example usage please see the sample for [CRUD operations using the `ServiceBusAdministrationClient`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample07_CrudOperations.md). Authenticate with Active Directory: @@ -440,10 +440,10 @@ using (var ts = new TransactionScope(TransactionScopeAsyncFlowOption.Enabled)) There are a few features that are yet to be implemented in `Azure.Messaging.ServiceBus`, but were present in the previous library `Microsoft.Azure.ServiceBus`. The plan is to add these features in upcoming releases (unless otherwise noted), but they will not be available in the version 7.0.0: -- **Plugins** - In the previous library, Microsoft.Azure.ServiceBus, users could [register plugins](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Microsoft.Azure.ServiceBus/src/QueueClient.cs#L527) that would alter an outgoing message before serialization, or alter an incoming message after being deserialized. These extension points allowed users of the Service Bus library to use common OSS extensions to enhance their applications without having to implement their own logic, and without having to wait for the SDK to explicitly support the needed feature. For instance, one use of the plugin functionality is to implement the [claim-check pattern](https://www.nuget.org/packages/ServiceBus.AttachmentPlugin/) to send and receive messages that exceed the Service Bus message size limits. This feature is not yet supported in the new library but will be added in an upcoming release. Support for this feature can be tracked via https://github.com/Azure/azure-sdk-for-net/issues/12943. +- **Plugins** - In the previous library, Microsoft.Azure.ServiceBus, users could [register plugins](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Microsoft.Azure.ServiceBus/src/QueueClient.cs#L527) that would alter an outgoing message before serialization, or alter an incoming message after being deserialized. These extension points allowed users of the Service Bus library to use common OSS extensions to enhance their applications without having to implement their own logic, and without having to wait for the SDK to explicitly support the needed feature. For instance, one use of the plugin functionality is to implement the [claim-check pattern](https://www.nuget.org/packages/ServiceBus.AttachmentPlugin/) to send and receive messages that exceed the Service Bus message size limits. This feature is not yet supported in the new library but will be added in an upcoming release. Support for this feature can be tracked via https://github.com/Azure/azure-sdk-for-net/issues/12943. ## Additional samples More examples can be found at: -- [Service Bus samples](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/servicebus/Azure.Messaging.ServiceBus/samples) +- [Service Bus samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples) diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/README.md b/sdk/servicebus/Azure.Messaging.ServiceBus/README.md index 31767ba20a17..5bf920b7d0e4 100755 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/README.md +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/README.md @@ -12,7 +12,7 @@ Use the client library for Azure Service Bus to: - Implement complex workflows: message sessions support scenarios that require message ordering or message deferral. -[Source code](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/servicebus/Azure.Messaging.ServiceBus/src) | [Package (NuGet)](https://www.nuget.org/packages/Azure.Messaging.ServiceBus/) | [API reference documentation](https://docs.microsoft.com/dotnet/api/azure.messaging.servicebus) | [Product documentation](https://docs.microsoft.com/azure/service-bus/) | [Migration guide](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Azure.Messaging.ServiceBus/MigrationGuide.md) +[Source code](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/servicebus/Azure.Messaging.ServiceBus/src) | [Package (NuGet)](https://www.nuget.org/packages/Azure.Messaging.ServiceBus/) | [API reference documentation](https://docs.microsoft.com/dotnet/api/azure.messaging.servicebus) | [Product documentation](https://docs.microsoft.com/azure/service-bus/) | [Migration guide](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/MigrationGuide.md) ## Getting started @@ -129,8 +129,8 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | [Handling failures](#exception-handling) | [Diagnostics](#logging-and-diagnostics) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | [Handling failures](#exception-handling) | [Diagnostics](#logging-and-diagnostics) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) ## Examples @@ -144,7 +144,7 @@ We guarantee that all client instance methods are thread-safe and independent of * [Using the processor](#using-the-processor) * [Authenticating with Azure.Identity](#authenticating-with-azureidentity) * [Working with sessions](#working-with-sessions) -* [More samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Azure.Messaging.ServiceBus/samples/README.md) +* [More samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/README.md) ### Send and receive a message @@ -379,7 +379,7 @@ Console.ReadKey(); ### Authenticating with Azure.Identity -The [Azure Identity library](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity/README.md) provides easy Azure Active Directory support for authentication. +The [Azure Identity library](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity/README.md) provides easy Azure Active Directory support for authentication. ```C# Snippet:ServiceBusAuthAAD // Create a ServiceBusClient that will authenticate through Active Directory @@ -391,8 +391,8 @@ ServiceBusClient client = new ServiceBusClient(fullyQualifiedNamespace, new Defa [Sessions](https://docs.microsoft.com/azure/service-bus-messaging/message-sessions) provide a mechanism for grouping related messages. In order to use sessions, you need to be working with a session-enabled entity. -- [Sending and receiving session messages](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample03_SendReceiveSessions.md) -- [Using the session processor](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample05_SessionProcessor.md) +- [Sending and receiving session messages](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample03_SendReceiveSessions.md) +- [Using the session processor](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample05_SessionProcessor.md) ## Troubleshooting @@ -434,13 +434,13 @@ For detailed information about the failures represented by the `ServiceBusExcept The Service Bus client library is fully instrumented for logging information at various levels of detail using the .NET `EventSource` to emit information. Logging is performed for each operation and follows the pattern of marking the starting point of the operation and either it's completion or exceptions encountered. Additional information that may offer insight is also logged in the context of the associated operation. -The Service Bus client logs are available to any `EventListener` by opting into the source named "Azure-Messaging-ServiceBus" or opting into all sources that have the trait "AzureEventSource". To make capturing logs from the Azure client libraries easier, the `Azure.Core` library used by Service Bus offers an `AzureEventSourceListener`. More information can be found in the [Azure.Core Diagnostics sample](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md#logging). +The Service Bus client logs are available to any `EventListener` by opting into the source named "Azure-Messaging-ServiceBus" or opting into all sources that have the trait "AzureEventSource". To make capturing logs from the Azure client libraries easier, the `Azure.Core` library used by Service Bus offers an `AzureEventSourceListener`. More information can be found in the [Azure.Core Diagnostics sample](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md#logging). -The Service Bus client library is also instrumented for distributed tracing using Application Insights or OpenTelemetry. More information can be found in the [Azure.Core Diagnostics sample](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md#distributed-tracing). +The Service Bus client library is also instrumented for distributed tracing using Application Insights or OpenTelemetry. More information can be found in the [Azure.Core Diagnostics sample](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md#distributed-tracing). ## Next steps -Beyond the introductory scenarios discussed, the Azure Service Bus client library offers support for additional scenarios to help take advantage of the full feature set of the Azure Service Bus service. In order to help explore some of these scenarios, the Service Bus client library offers a project of samples to serve as an illustration for common scenarios. Please see the [samples README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Azure.Messaging.ServiceBus/samples/README.md) for details. +Beyond the introductory scenarios discussed, the Azure Service Bus client library offers support for additional scenarios to help take advantage of the full feature set of the Azure Service Bus service. In order to help explore some of these scenarios, the Service Bus client library offers a project of samples to serve as an illustration for common scenarios. Please see the [samples README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/README.md) for details. ## Contributing @@ -450,6 +450,6 @@ When you submit a pull request, a CLA-bot will automatically determine whether y This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. -Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Azure.Messaging.ServiceBus/CONTRIBUTING.md) for more information. +Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/CONTRIBUTING.md) for more information. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fservicebus%2FAzure.Messaging.ServiceBus%2FREADME.png) diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/perf/README.md b/sdk/servicebus/Azure.Messaging.ServiceBus/perf/README.md index a4369312e3a5..9891c2ffe794 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/perf/README.md +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/perf/README.md @@ -1,11 +1,11 @@ # Azure Service Bus performance tests -The assets in this area comprise a set of performance tests for the [Azure Service Bus client library for .NET](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/servicebus/Azure.Messaging.ServiceBus) and its associated ecosystem. The artifacts in this library are intended to be used primarily with the Azure SDK engineering system's testing infrastructure, but may also be run as stand-alone applications from the command line. +The assets in this area comprise a set of performance tests for the [Azure Service Bus client library for .NET](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/servicebus/Azure.Messaging.ServiceBus) and its associated ecosystem. The artifacts in this library are intended to be used primarily with the Azure SDK engineering system's testing infrastructure, but may also be run as stand-alone applications from the command line. ## Running performance tests The Service Bus client library performance are run via a console app. In order to run, specify either via command line or within IDE build arguments the test and set of arguments to use. For example, to run the `SendMessages` test, you can add `SendMessages` to the Application arguments within Visual Studio. -The performance tests rely on the same set of environment variables used by the Service Bus client library's test suite. Full details can be found in the [Running tests](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Azure.Messaging.ServiceBus/CONTRIBUTING.md#running-tests) section of the contributing guide. +The performance tests rely on the same set of environment variables used by the Service Bus client library's test suite. Full details can be found in the [Running tests](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/CONTRIBUTING.md#running-tests) section of the contributing guide. ## Contributing @@ -15,6 +15,6 @@ When you submit a pull request, a CLA-bot will automatically determine whether y This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. -Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Azure.Messaging.ServiceBus/CONTRIBUTING.md) for more information. +Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/CONTRIBUTING.md) for more information. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fservicebus%2FAzure.Messaging.ServiceBus.Perf%2FREADME.png) diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/DeadLetterQueue/README.md b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/DeadLetterQueue/README.md index 5c0bd2c951b6..62c209ab3833 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/DeadLetterQueue/README.md +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/DeadLetterQueue/README.md @@ -40,7 +40,7 @@ The sample implements two scenarios: The sample code is further documented inline in the `Program.cs` C# file. ## Prerequisites -In order to run the sample, you will need a Service Bus Namespace. For more information on getting setup see the [Getting Started](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/servicebus/Azure.Messaging.ServiceBus#getting-started) section of the Service Bus library Readme. Once you have a Service Bus Namespace, you will need to create a queue that can be used for the sample. +In order to run the sample, you will need a Service Bus Namespace. For more information on getting setup see the [Getting Started](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/servicebus/Azure.Messaging.ServiceBus#getting-started) section of the Service Bus library Readme. Once you have a Service Bus Namespace, you will need to create a queue that can be used for the sample. ## Building the Sample diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/README.md b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/README.md index 635fd404fb70..91932ba75e7b 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/README.md +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/README.md @@ -11,10 +11,10 @@ description: Samples for the Azure.Messaging.ServiceBus client library # Azure.Messaging.ServiceBus Samples -- [Sending and Receiving Messages](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample01_HelloWorld.md) -- [Settling Messages](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample02_MessageSettlement.md) -- [Sending and Receiving Session Messages](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample03_SendReceiveSessions.md) -- [Using the Processor](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample04_Processor.md) -- [Using the Session Processor](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample05_SessionProcessor.md) -- [Working with Transactions](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample06_Transactions.md) -- [CRUD Operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample07_CrudOperations.md) +- [Sending and Receiving Messages](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample01_HelloWorld.md) +- [Settling Messages](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample02_MessageSettlement.md) +- [Sending and Receiving Session Messages](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample03_SendReceiveSessions.md) +- [Using the Processor](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample04_Processor.md) +- [Using the Session Processor](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample05_SessionProcessor.md) +- [Working with Transactions](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample06_Transactions.md) +- [CRUD Operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample07_CrudOperations.md) diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample01_HelloWorld.md b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample01_HelloWorld.md index 1ee53ad4ad4a..d93f0cbcdebe 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample01_HelloWorld.md +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample01_HelloWorld.md @@ -119,4 +119,4 @@ await sender.CancelScheduledMessageAsync(seq); To see the full example source, see: -* [Sample1_HelloWorld.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Samples/Sample01_HelloWorld.cs) +* [Sample1_HelloWorld.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Samples/Sample01_HelloWorld.cs) diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample02_MessageSettlement.md b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample02_MessageSettlement.md index 2bc1ff89dfaf..1bc05c3ff07a 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample02_MessageSettlement.md +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample02_MessageSettlement.md @@ -72,4 +72,4 @@ ServiceBusReceivedMessage dlqMessage = await dlqReceiver.ReceiveMessageAsync(); To see the full example source, see: -* [Sample02_MessageSettlement.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Samples/Sample02_MessageSettlement.cs) +* [Sample02_MessageSettlement.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Samples/Sample02_MessageSettlement.cs) diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample03_SendReceiveSessions.md b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample03_SendReceiveSessions.md index 24066eccd7f6..0bf026f06e4c 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample03_SendReceiveSessions.md +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample03_SendReceiveSessions.md @@ -55,4 +55,4 @@ Console.WriteLine(receivedMessage.SessionId); To see the full example source, see: -* [Sample03_SendReceiveSessions.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Samples/Sample03_SendReceiveSessions.cs) +* [Sample03_SendReceiveSessions.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Samples/Sample03_SendReceiveSessions.cs) diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample04_Processor.md b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample04_Processor.md index f5789e8d551a..f2185dd2b4d2 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample04_Processor.md +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample04_Processor.md @@ -74,4 +74,4 @@ Console.ReadKey(); To see the full example source, see: -* [Sample04_Processor.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Samples/Sample04_Processor.cs) +* [Sample04_Processor.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Samples/Sample04_Processor.cs) diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample05_SessionProcessor.md b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample05_SessionProcessor.md index 8905b9c8bc3f..aa40ef864130 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample05_SessionProcessor.md +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample05_SessionProcessor.md @@ -92,4 +92,4 @@ Console.ReadKey(); To see the full example source, see: -* [Sample05_SessionProcessor.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Samples/Sample05_SessionProcessor.cs) +* [Sample05_SessionProcessor.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Samples/Sample05_SessionProcessor.cs) diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample06_Transactions.md b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample06_Transactions.md index d36f08a72930..f3b264f040af 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample06_Transactions.md +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample06_Transactions.md @@ -97,4 +97,4 @@ using (var ts = new TransactionScope(TransactionScopeAsyncFlowOption.Enabled)) To see the full example source, see: -* [Sample06_Transactions.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Samples/Sample06_Transactions.cs) +* [Sample06_Transactions.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Samples/Sample06_Transactions.cs) diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample07_CrudOperations.md b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample07_CrudOperations.md index c7efab2bd866..1080d03b7c04 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample07_CrudOperations.md +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample07_CrudOperations.md @@ -147,4 +147,4 @@ await client.DeleteTopicAsync(topicName); To see the full example source, see: -* [Sample07_CrudOperations.cs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Samples/Sample07_CrudOperations.cs) +* [Sample07_CrudOperations.cs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/tests/Samples/Sample07_CrudOperations.cs) diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/TopicFilters/README.md b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/TopicFilters/README.md index a2f24c49f512..c4b5cb230c6e 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/TopicFilters/README.md +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/TopicFilters/README.md @@ -32,7 +32,7 @@ The sample implements four scenarios: The sample code is further documented inline in the `Program.cs` C# file. ## Prerequisites -In order to run the sample, you will need a Service Bus Namespace. For more information on getting setup see the [Getting Started](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/servicebus/Azure.Messaging.ServiceBus#getting-started) section of the Service Bus library Readme. Once you have a Service Bus Namespace, you will need to create a queue that can be used for the sample. +In order to run the sample, you will need a Service Bus Namespace. For more information on getting setup see the [Getting Started](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/servicebus/Azure.Messaging.ServiceBus#getting-started) section of the Service Bus library Readme. Once you have a Service Bus Namespace, you will need to create a queue that can be used for the sample. ## Building the Sample diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/src/Azure.Messaging.ServiceBus.csproj b/sdk/servicebus/Azure.Messaging.ServiceBus/src/Azure.Messaging.ServiceBus.csproj index ad8084d34abb..d6ffb1e56da4 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/src/Azure.Messaging.ServiceBus.csproj +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/src/Azure.Messaging.ServiceBus.csproj @@ -1,8 +1,9 @@ Azure Service Bus is a fully managed enterprise integration message broker. Service Bus can decouple applications and services. Service Bus offers a reliable and secure platform for asynchronous transfer of data and state. This client library allows for both sending and receiving messages using Azure Service Bus. For more information about Service Bus, see https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-messaging-overview - 7.2.0-beta.4 - 7.1.0 + 7.3.0-beta.1 + + 7.2.0 Azure;Service Bus;ServiceBus;.NET;AMQP;$(PackageCommonTags) $(RequiredTargetFrameworks) diff --git a/sdk/servicebus/Microsoft.Azure.ServiceBus/README.md b/sdk/servicebus/Microsoft.Azure.ServiceBus/README.md index efa549f63ebd..0763a6a3f97b 100755 --- a/sdk/servicebus/Microsoft.Azure.ServiceBus/README.md +++ b/sdk/servicebus/Microsoft.Azure.ServiceBus/README.md @@ -16,7 +16,7 @@ Use the client library for Azure Service Bus to: - Implement complex workflows: message sessions support scenarios that require message ordering or message deferral. -[Source code](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/servicebus/Microsoft.Azure.ServiceBus/src) | [Package (NuGet)](https://www.nuget.org/packages/Microsoft.Azure.ServiceBus/) | [API reference documentation](https://docs.microsoft.com/dotnet/api/overview/azure/service-bus?view=azure-dotnet) | [Product documentation](https://docs.microsoft.com/azure/service-bus-messaging/) +[Source code](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/servicebus/Microsoft.Azure.ServiceBus/src) | [Package (NuGet)](https://www.nuget.org/packages/Microsoft.Azure.ServiceBus/) | [API reference documentation](https://docs.microsoft.com/dotnet/api/overview/azure/service-bus?view=azure-dotnet) | [Product documentation](https://docs.microsoft.com/azure/service-bus-messaging/) ## Getting started @@ -46,7 +46,7 @@ For information on building the Azure Service bus client library, please see [Bu ## Running tests -1. Deploy the Azure Resource Manager template located at [sdk/servicebus/Microsoft.Azure.ServiceBus/assets/azure-deploy-test-dependencies.json](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/servicebus/Microsoft.Azure.ServiceBus/assets/azure-deploy-test-dependencies.json) by clicking the following button: +1. Deploy the Azure Resource Manager template located at [sdk/servicebus/Microsoft.Azure.ServiceBus/assets/azure-deploy-test-dependencies.json](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Microsoft.Azure.ServiceBus/assets/azure-deploy-test-dependencies.json) by clicking the following button: diff --git a/sdk/servicebus/Microsoft.Azure.ServiceBus/src/MessagingEventSource.cs b/sdk/servicebus/Microsoft.Azure.ServiceBus/src/MessagingEventSource.cs index a90e6a942185..1a2544a4c1ab 100644 --- a/sdk/servicebus/Microsoft.Azure.ServiceBus/src/MessagingEventSource.cs +++ b/sdk/servicebus/Microsoft.Azure.ServiceBus/src/MessagingEventSource.cs @@ -423,17 +423,17 @@ public void AmqpSendAuthenticationTokenStart(Uri address, string audience, strin { if (this.IsEnabled()) { - this.AmqpSendAuthenticationTokenStart(address.ToString(), audience, resource, claims.ToString()); + this.AmqpSendAuthenticationTokenStart(address.ToString(), audience, resource, string.Join(",", claims)); } } - [Event(40, Level = EventLevel.Verbose, Message = "AmqpSendAuthenticanToken started. Address: {0}, Audience: {1}, Resource: {2}, Claims: {3}")] + [Event(40, Level = EventLevel.Verbose, Message = "AmqpSendAuthenticationToken started. Address: {0}, Audience: {1}, Resource: {2}, Claims: {3}")] void AmqpSendAuthenticationTokenStart(string address, string audience, string resource, string claims) { this.WriteEvent(40, address, audience, resource, claims); } - [Event(41, Level = EventLevel.Verbose, Message = "AmqpSendAuthenticanToken done.")] + [Event(41, Level = EventLevel.Verbose, Message = "AmqpSendAuthenticationToken done.")] public void AmqpSendAuthenticationTokenStop() { if (this.IsEnabled()) diff --git a/sdk/servicebus/Microsoft.Azure.WebJobs.Extensions.ServiceBus/CHANGELOG.md b/sdk/servicebus/Microsoft.Azure.WebJobs.Extensions.ServiceBus/CHANGELOG.md index a3933821811c..dff30ffd7376 100644 --- a/sdk/servicebus/Microsoft.Azure.WebJobs.Extensions.ServiceBus/CHANGELOG.md +++ b/sdk/servicebus/Microsoft.Azure.WebJobs.Extensions.ServiceBus/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 5.0.0-beta.4 (2021-06-09) +## 5.0.0-beta.4 (2021-06-22) ### Added - Added `AutoCompleteMessages` property to `ServiceBusTriggerAttribute` which allows configuring autocompletion at the function level. diff --git a/sdk/servicebus/Microsoft.Azure.WebJobs.Extensions.ServiceBus/README.md b/sdk/servicebus/Microsoft.Azure.WebJobs.Extensions.ServiceBus/README.md index 849e6bff4a27..f8608db816bb 100644 --- a/sdk/servicebus/Microsoft.Azure.WebJobs.Extensions.ServiceBus/README.md +++ b/sdk/servicebus/Microsoft.Azure.WebJobs.Extensions.ServiceBus/README.md @@ -227,12 +227,12 @@ additional questions or comments. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fservicebus%2FMicrosoft.Azure.WebJobs.Extensions.ServiceBus%2FREADME.png) -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/servicebus/Microsoft.Azure.WebJobs.Extensions.ServiceBus/src +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/servicebus/Microsoft.Azure.WebJobs.Extensions.ServiceBus/src [package]: https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.ServiceBus/ [docs]: https://docs.microsoft.com/dotnet/api/Microsoft.Azure.WebJobs.Extensions.ServiceBus [nuget]: https://www.nuget.org/ -[contrib]: https://github.com/Azure/azure-sdk-for-net/tree/master/CONTRIBUTING.md +[contrib]: https://github.com/Azure/azure-sdk-for-net/tree/main/CONTRIBUTING.md [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/servicebus/Microsoft.Azure.WebJobs.Extensions.ServiceBus/src/Microsoft.Azure.WebJobs.Extensions.ServiceBus.csproj b/sdk/servicebus/Microsoft.Azure.WebJobs.Extensions.ServiceBus/src/Microsoft.Azure.WebJobs.Extensions.ServiceBus.csproj index 0b8116ba1f05..a8702cc8e06f 100644 --- a/sdk/servicebus/Microsoft.Azure.WebJobs.Extensions.ServiceBus/src/Microsoft.Azure.WebJobs.Extensions.ServiceBus.csproj +++ b/sdk/servicebus/Microsoft.Azure.WebJobs.Extensions.ServiceBus/src/Microsoft.Azure.WebJobs.Extensions.ServiceBus.csproj @@ -14,8 +14,7 @@ - - + @@ -27,11 +26,5 @@ - - - - - - diff --git a/sdk/servicebus/ci.data.yml b/sdk/servicebus/ci.data.yml index 1fd71add28a8..ab38e79681aa 100644 --- a/sdk/servicebus/ci.data.yml +++ b/sdk/servicebus/ci.data.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/servicebus/ci.yml b/sdk/servicebus/ci.yml index 3215cdc3a937..49ded87c052f 100644 --- a/sdk/servicebus/ci.yml +++ b/sdk/servicebus/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -17,7 +16,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/README.md b/sdk/sqlmanagement/Azure.ResourceManager.Sql/README.md index 1fecea10e716..e0a8f5d6d04a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/README.md +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/README.md @@ -18,7 +18,7 @@ Install-Package Azure.ResourceManager.Sql -Version 1.0.0-preview.1 ### Authenticate the Client -To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) ## Key concepts @@ -28,9 +28,9 @@ Key concepts of the Azure .NET SDK can be found [here](https://azure.github.io/a Documentation is available to help you learn how to use this package -- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) - [API References](https://docs.microsoft.com/dotnet/api/?view=azure-dotnet) -- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md) +- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md) ## Examples diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/BackupShortTermRetentionPoliciesOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/BackupShortTermRetentionPoliciesOperations.cs index dc43a012367e..3d801978da1b 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/BackupShortTermRetentionPoliciesOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/BackupShortTermRetentionPoliciesOperations.cs @@ -103,7 +103,7 @@ internal BackupShortTermRetentionPoliciesOperations(SqlManagementClient client) throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } string policyName = "default"; - string apiVersion = "2020-11-01-preview"; + string apiVersion = "2021-02-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -367,7 +367,7 @@ internal BackupShortTermRetentionPoliciesOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2020-11-01-preview"; + string apiVersion = "2021-02-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -579,7 +579,7 @@ internal BackupShortTermRetentionPoliciesOperations(SqlManagementClient client) throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } string policyName = "default"; - string apiVersion = "2020-11-01-preview"; + string apiVersion = "2021-02-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -800,7 +800,7 @@ internal BackupShortTermRetentionPoliciesOperations(SqlManagementClient client) throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } string policyName = "default"; - string apiVersion = "2020-11-01-preview"; + string apiVersion = "2021-02-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IReplicationLinksOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IReplicationLinksOperations.cs index 0982e58f6068..8e46eb06c69a 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IReplicationLinksOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/IReplicationLinksOperations.cs @@ -56,8 +56,7 @@ public partial interface IReplicationLinksOperations /// Task DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Sets which replica database is primary by failing over from the - /// current primary replica database. + /// Gets a replication link. /// /// /// The name of the resource group that contains the resource. You can @@ -68,11 +67,10 @@ public partial interface IReplicationLinksOperations /// The name of the server. /// /// - /// The name of the database that has the replication link to be failed - /// over. + /// The name of the database. /// /// - /// The ID of the replication link to be failed over. + /// The name of the replication link. /// /// /// The headers that will be added to request. @@ -83,14 +81,16 @@ public partial interface IReplicationLinksOperations /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// - Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Sets which replica database is primary by failing over from the - /// current primary replica database. This operation might result in - /// data loss. + /// current primary replica database. /// /// /// The name of the resource group that contains the resource. You can @@ -119,9 +119,11 @@ public partial interface IReplicationLinksOperations /// /// Thrown when a required parameter is null /// - Task FailoverAllowDataLossWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes a database replication link in forced or friendly way. + /// Sets which replica database is primary by failing over from the + /// current primary replica database. This operation might result in + /// data loss. /// /// /// The name of the resource group that contains the resource. You can @@ -138,9 +140,6 @@ public partial interface IReplicationLinksOperations /// /// The ID of the replication link to be failed over. /// - /// - /// The required parameters for unlinking replication link. - /// /// /// The headers that will be added to request. /// @@ -153,9 +152,9 @@ public partial interface IReplicationLinksOperations /// /// Thrown when a required parameter is null /// - Task UnlinkWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task FailoverAllowDataLossWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets a list of replication links on database. + /// Deletes a database replication link in forced or friendly way. /// /// /// The name of the resource group that contains the resource. You can @@ -163,10 +162,17 @@ public partial interface IReplicationLinksOperations /// portal. /// /// - /// The name of the server containing the replication link. + /// The name of the server. /// /// - /// The name of the database containing the replication link. + /// The name of the database that has the replication link to be failed + /// over. + /// + /// + /// The ID of the replication link to be failed over. + /// + /// + /// The required parameters for unlinking replication link. /// /// /// The headers that will be added to request. @@ -177,15 +183,12 @@ public partial interface IReplicationLinksOperations /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// - Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task UnlinkWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets a replication link. + /// Gets a list of replication links on database. /// /// /// The name of the resource group that contains the resource. You can @@ -193,13 +196,10 @@ public partial interface IReplicationLinksOperations /// portal. /// /// - /// The name of the server containing the replication link. + /// The name of the server. /// /// - /// The name of the database containing the replication link. - /// - /// - /// The name of the replication link. + /// The name of the database. /// /// /// The headers that will be added to request. @@ -216,7 +216,7 @@ public partial interface IReplicationLinksOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicationLinkName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets a list of replication links. /// @@ -226,7 +226,7 @@ public partial interface IReplicationLinksOperations /// portal. /// /// - /// The name of the server containing the replication link. + /// The name of the server. /// /// /// The headers that will be added to request. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISqlManagementClient.cs index bc688ed524ab..b21c6d120aaa 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ISqlManagementClient.cs @@ -142,11 +142,6 @@ public partial interface ISqlManagementClient : System.IDisposable /// IServerUsagesOperations ServerUsages { get; } - /// - /// Gets the IBackupShortTermRetentionPoliciesOperations. - /// - IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; } - /// /// Gets the IExtendedDatabaseBlobAuditingPoliciesOperations. /// @@ -622,6 +617,11 @@ public partial interface ISqlManagementClient : System.IDisposable /// IWorkloadGroupsOperations WorkloadGroups { get; } + /// + /// Gets the IBackupShortTermRetentionPoliciesOperations. + /// + IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; } + /// /// Gets the IDatabaseExtensionsOperations. /// diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupShortTermRetentionPolicy.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupShortTermRetentionPolicy.cs index a3666f867d33..c1f8aa1f2397 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupShortTermRetentionPolicy.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/BackupShortTermRetentionPolicy.cs @@ -40,10 +40,15 @@ public BackupShortTermRetentionPolicy() /// The backup retention period in days. /// This is how many days Point-in-Time Restore will be /// supported. - public BackupShortTermRetentionPolicy(string id = default(string), string name = default(string), string type = default(string), int? retentionDays = default(int?)) + /// The differential backup + /// interval in hours. This is how many interval hours between each + /// differential backup will be supported. This is only applicable to + /// live databases but not dropped databases. + public BackupShortTermRetentionPolicy(string id = default(string), string name = default(string), string type = default(string), int? retentionDays = default(int?), int? diffBackupIntervalInHours = default(int?)) : base(id, name, type) { RetentionDays = retentionDays; + DiffBackupIntervalInHours = diffBackupIntervalInHours; CustomInit(); } @@ -59,5 +64,14 @@ public BackupShortTermRetentionPolicy() [JsonProperty(PropertyName = "properties.retentionDays")] public int? RetentionDays { get; set; } + /// + /// Gets or sets the differential backup interval in hours. This is how + /// many interval hours between each differential backup will be + /// supported. This is only applicable to live databases but not + /// dropped databases. + /// + [JsonProperty(PropertyName = "properties.diffBackupIntervalInHours")] + public int? DiffBackupIntervalInHours { get; set; } + } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationLink.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationLink.cs index 915f12daee23..bfea713f5fb5 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationLink.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationLink.cs @@ -38,18 +38,24 @@ public ReplicationLink() /// Resource partner server. /// Resource partner database. /// Resource partner location. - /// Local replication role. - /// Partner replication role. + /// Local replication role. Possible values include: + /// 'Primary', 'Secondary', 'NonReadableSecondary', 'Source', + /// 'Copy' + /// Partner replication role. Possible values + /// include: 'Primary', 'Secondary', 'NonReadableSecondary', 'Source', + /// 'Copy' /// Replication mode. /// Time at which the link was created. /// Seeding completion percentage for the /// link. /// Replication state (PENDING, SEEDING, - /// CATCHUP, SUSPENDED). + /// CATCHUP, SUSPENDED). Possible values include: 'PENDING', 'SEEDING', + /// 'CATCH_UP', 'SUSPENDED' /// Whether the user is currently /// allowed to terminate the link. - /// Link type (GEO, NAMED). - public ReplicationLink(string id = default(string), string name = default(string), string type = default(string), string partnerServer = default(string), string partnerDatabase = default(string), string partnerLocation = default(string), string role = default(string), string partnerRole = default(string), string replicationMode = default(string), System.DateTime? startTime = default(System.DateTime?), int? percentComplete = default(int?), string replicationState = default(string), bool? isTerminationAllowed = default(bool?), string linkType = default(string)) + /// Link type (GEO, NAMED). Possible values + /// include: 'GEO', 'NAMED' + public ReplicationLink(string id = default(string), string name = default(string), string type = default(string), string partnerServer = default(string), string partnerDatabase = default(string), string partnerLocation = default(string), ReplicationRole? role = default(ReplicationRole?), ReplicationRole? partnerRole = default(ReplicationRole?), string replicationMode = default(string), System.DateTime? startTime = default(System.DateTime?), int? percentComplete = default(int?), string replicationState = default(string), bool? isTerminationAllowed = default(bool?), string linkType = default(string)) : base(id, name, type) { PartnerServer = partnerServer; @@ -90,16 +96,18 @@ public ReplicationLink() public string PartnerLocation { get; private set; } /// - /// Gets local replication role. + /// Gets local replication role. Possible values include: 'Primary', + /// 'Secondary', 'NonReadableSecondary', 'Source', 'Copy' /// [JsonProperty(PropertyName = "properties.role")] - public string Role { get; private set; } + public ReplicationRole? Role { get; private set; } /// - /// Gets partner replication role. + /// Gets partner replication role. Possible values include: 'Primary', + /// 'Secondary', 'NonReadableSecondary', 'Source', 'Copy' /// [JsonProperty(PropertyName = "properties.partnerRole")] - public string PartnerRole { get; private set; } + public ReplicationRole? PartnerRole { get; private set; } /// /// Gets replication mode. @@ -121,6 +129,8 @@ public ReplicationLink() /// /// Gets replication state (PENDING, SEEDING, CATCHUP, SUSPENDED). + /// Possible values include: 'PENDING', 'SEEDING', 'CATCH_UP', + /// 'SUSPENDED' /// [JsonProperty(PropertyName = "properties.replicationState")] public string ReplicationState { get; private set; } @@ -132,7 +142,8 @@ public ReplicationLink() public bool? IsTerminationAllowed { get; private set; } /// - /// Gets link type (GEO, NAMED). + /// Gets link type (GEO, NAMED). Possible values include: 'GEO', + /// 'NAMED' /// [JsonProperty(PropertyName = "properties.linkType")] public string LinkType { get; private set; } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationLinkType.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationLinkType.cs new file mode 100644 index 000000000000..15781387e6dc --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationLinkType.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + + /// + /// Defines values for ReplicationLinkType. + /// + public static class ReplicationLinkType + { + public const string GEO = "GEO"; + public const string NAMED = "NAMED"; + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationRole.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationRole.cs new file mode 100644 index 000000000000..f0d74d3f85fb --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationRole.cs @@ -0,0 +1,78 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for ReplicationRole. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ReplicationRole + { + [EnumMember(Value = "Primary")] + Primary, + [EnumMember(Value = "Secondary")] + Secondary, + [EnumMember(Value = "NonReadableSecondary")] + NonReadableSecondary, + [EnumMember(Value = "Source")] + Source, + [EnumMember(Value = "Copy")] + Copy + } + internal static class ReplicationRoleEnumExtension + { + internal static string ToSerializedValue(this ReplicationRole? value) + { + return value == null ? null : ((ReplicationRole)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this ReplicationRole value) + { + switch( value ) + { + case ReplicationRole.Primary: + return "Primary"; + case ReplicationRole.Secondary: + return "Secondary"; + case ReplicationRole.NonReadableSecondary: + return "NonReadableSecondary"; + case ReplicationRole.Source: + return "Source"; + case ReplicationRole.Copy: + return "Copy"; + } + return null; + } + + internal static ReplicationRole? ParseReplicationRole(this string value) + { + switch( value ) + { + case "Primary": + return ReplicationRole.Primary; + case "Secondary": + return ReplicationRole.Secondary; + case "NonReadableSecondary": + return ReplicationRole.NonReadableSecondary; + case "Source": + return ReplicationRole.Source; + case "Copy": + return ReplicationRole.Copy; + } + return null; + } + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationState.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationState.cs new file mode 100644 index 000000000000..067c14bdb345 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/Models/ReplicationState.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Sql.Models +{ + + /// + /// Defines values for ReplicationState. + /// + public static class ReplicationState + { + public const string PENDING = "PENDING"; + public const string SEEDING = "SEEDING"; + public const string CATCHUP = "CATCH_UP"; + public const string SUSPENDED = "SUSPENDED"; + } +} diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ReplicationLinksOperations.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ReplicationLinksOperations.cs index 5b6868bfcf25..64ddd37e63c9 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ReplicationLinksOperations.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ReplicationLinksOperations.cs @@ -243,67 +243,7 @@ internal ReplicationLinksOperations(SqlManagementClient client) } /// - /// Sets which replica database is primary by failing over from the current - /// primary replica database. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database that has the replication link to be failed over. - /// - /// - /// The ID of the replication link to be failed over. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Sets which replica database is primary by failing over from the current - /// primary replica database. This operation might result in data loss. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server. - /// - /// - /// The name of the database that has the replication link to be failed over. - /// - /// - /// The ID of the replication link to be failed over. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task FailoverAllowDataLossWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginFailoverAllowDataLossWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Deletes a database replication link in forced or friendly way. + /// Gets a replication link. /// /// /// The name of the resource group that contains the resource. You can obtain @@ -313,39 +253,10 @@ internal ReplicationLinksOperations(SqlManagementClient client) /// The name of the server. /// /// - /// The name of the database that has the replication link to be failed over. + /// The name of the database. /// /// - /// The ID of the replication link to be failed over. - /// - /// - /// The required parameters for unlinking replication link. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task UnlinkWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginUnlinkWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, parameters, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets a list of replication links on database. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server containing the replication link. - /// - /// - /// The name of the database containing the replication link. + /// The name of the replication link. /// /// /// Headers that will be added to request. @@ -368,7 +279,7 @@ internal ReplicationLinksOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -382,11 +293,15 @@ internal ReplicationLinksOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); } + if (linkId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "linkId"); + } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2020-11-01-preview"; + string apiVersion = "2021-02-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -397,16 +312,18 @@ internal ReplicationLinksOperations(SqlManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("serverName", serverName); tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("linkId", linkId); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByDatabase", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{linkId}", System.Uri.EscapeDataString(linkId)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); if (apiVersion != null) @@ -506,7 +423,7 @@ internal ReplicationLinksOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -519,7 +436,7 @@ internal ReplicationLinksOperations(SqlManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -539,20 +456,109 @@ internal ReplicationLinksOperations(SqlManagementClient client) } /// - /// Gets a replication link. + /// Sets which replica database is primary by failing over from the current + /// primary replica database. /// /// /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// /// - /// The name of the server containing the replication link. + /// The name of the server. /// /// - /// The name of the database containing the replication link. + /// The name of the database that has the replication link to be failed over. /// - /// - /// The name of the replication link. + /// + /// The ID of the replication link to be failed over. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task FailoverWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginFailoverWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Sets which replica database is primary by failing over from the current + /// primary replica database. This operation might result in data loss. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database that has the replication link to be failed over. + /// + /// + /// The ID of the replication link to be failed over. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task FailoverAllowDataLossWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginFailoverAllowDataLossWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes a database replication link in forced or friendly way. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database that has the replication link to be failed over. + /// + /// + /// The ID of the replication link to be failed over. + /// + /// + /// The required parameters for unlinking replication link. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task UnlinkWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string linkId, UnlinkParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginUnlinkWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a list of replication links on database. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. /// /// /// Headers that will be added to request. @@ -575,7 +581,7 @@ internal ReplicationLinksOperations(SqlManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, string replicationLinkName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -589,15 +595,11 @@ internal ReplicationLinksOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); } - if (replicationLinkName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "replicationLinkName"); - } if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2020-11-01-preview"; + string apiVersion = "2021-02-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -608,18 +610,16 @@ internal ReplicationLinksOperations(SqlManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("serverName", serverName); tracingParameters.Add("databaseName", databaseName); - tracingParameters.Add("replicationLinkName", replicationLinkName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByDatabase", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{replicationLinkName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{serverName}", System.Uri.EscapeDataString(serverName)); _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); - _url = _url.Replace("{replicationLinkName}", System.Uri.EscapeDataString(replicationLinkName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); if (apiVersion != null) @@ -719,7 +719,7 @@ internal ReplicationLinksOperations(SqlManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -732,7 +732,7 @@ internal ReplicationLinksOperations(SqlManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -759,7 +759,7 @@ internal ReplicationLinksOperations(SqlManagementClient client) /// this value from the Azure Resource Manager API or the portal. /// /// - /// The name of the server containing the replication link. + /// The name of the server. /// /// /// Headers that will be added to request. @@ -796,7 +796,7 @@ internal ReplicationLinksOperations(SqlManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - string apiVersion = "2020-11-01-preview"; + string apiVersion = "2021-02-01-preview"; // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ReplicationLinksOperationsExtensions.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ReplicationLinksOperationsExtensions.cs index 7b89dd57fb38..5cfcc8702823 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ReplicationLinksOperationsExtensions.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/ReplicationLinksOperationsExtensions.cs @@ -72,6 +72,60 @@ public static void Delete(this IReplicationLinksOperations operations, string re (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Gets a replication link. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the replication link. + /// + public static ReplicationLink Get(this IReplicationLinksOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId) + { + return operations.GetAsync(resourceGroupName, serverName, databaseName, linkId).GetAwaiter().GetResult(); + } + + /// + /// Gets a replication link. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group that contains the resource. You can obtain + /// this value from the Azure Resource Manager API or the portal. + /// + /// + /// The name of the server. + /// + /// + /// The name of the database. + /// + /// + /// The name of the replication link. + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IReplicationLinksOperations operations, string resourceGroupName, string serverName, string databaseName, string linkId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, linkId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Sets which replica database is primary by failing over from the current /// primary replica database. @@ -246,10 +300,10 @@ public static void Unlink(this IReplicationLinksOperations operations, string re /// this value from the Azure Resource Manager API or the portal. /// /// - /// The name of the server containing the replication link. + /// The name of the server. /// /// - /// The name of the database containing the replication link. + /// The name of the database. /// public static IPage ListByDatabase(this IReplicationLinksOperations operations, string resourceGroupName, string serverName, string databaseName) { @@ -267,10 +321,10 @@ public static IPage ListByDatabase(this IReplicationLinksOperat /// this value from the Azure Resource Manager API or the portal. /// /// - /// The name of the server containing the replication link. + /// The name of the server. /// /// - /// The name of the database containing the replication link. + /// The name of the database. /// /// /// The cancellation token. @@ -283,60 +337,6 @@ public static IPage ListByDatabase(this IReplicationLinksOperat } } - /// - /// Gets a replication link. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server containing the replication link. - /// - /// - /// The name of the database containing the replication link. - /// - /// - /// The name of the replication link. - /// - public static ReplicationLink Get(this IReplicationLinksOperations operations, string resourceGroupName, string serverName, string databaseName, string replicationLinkName) - { - return operations.GetAsync(resourceGroupName, serverName, databaseName, replicationLinkName).GetAwaiter().GetResult(); - } - - /// - /// Gets a replication link. - /// - /// - /// The operations group for this extension method. - /// - /// - /// The name of the resource group that contains the resource. You can obtain - /// this value from the Azure Resource Manager API or the portal. - /// - /// - /// The name of the server containing the replication link. - /// - /// - /// The name of the database containing the replication link. - /// - /// - /// The name of the replication link. - /// - /// - /// The cancellation token. - /// - public static async Task GetAsync(this IReplicationLinksOperations operations, string resourceGroupName, string serverName, string databaseName, string replicationLinkName, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, databaseName, replicationLinkName, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Gets a list of replication links. /// @@ -348,7 +348,7 @@ public static ReplicationLink Get(this IReplicationLinksOperations operations, s /// this value from the Azure Resource Manager API or the portal. /// /// - /// The name of the server containing the replication link. + /// The name of the server. /// public static IPage ListByServer(this IReplicationLinksOperations operations, string resourceGroupName, string serverName) { @@ -366,7 +366,7 @@ public static IPage ListByServer(this IReplicationLinksOperatio /// this value from the Azure Resource Manager API or the portal. /// /// - /// The name of the server containing the replication link. + /// The name of the server. /// /// /// The cancellation token. diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs index 8bf600e1506a..b5e176540664 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SdkInfo_SqlManagementClient.cs @@ -19,7 +19,7 @@ public static IEnumerable> ApiInfo_SqlManagementCl { return new Tuple[] { - new Tuple("Sql", "BackupShortTermRetentionPolicies", "2020-11-01-preview"), + new Tuple("Sql", "BackupShortTermRetentionPolicies", "2021-02-01-preview"), new Tuple("Sql", "Capabilities", "2020-11-01-preview"), new Tuple("Sql", "DataMaskingPolicies", "2014-04-01"), new Tuple("Sql", "DataMaskingRules", "2014-04-01"), @@ -106,7 +106,7 @@ public static IEnumerable> ApiInfo_SqlManagementCl new Tuple("Sql", "RecoverableDatabases", "2014-04-01"), new Tuple("Sql", "RecoverableManagedDatabases", "2020-11-01-preview"), new Tuple("Sql", "ReplicationLinks", "2014-04-01"), - new Tuple("Sql", "ReplicationLinks", "2020-11-01-preview"), + new Tuple("Sql", "ReplicationLinks", "2021-02-01-preview"), new Tuple("Sql", "RestorableDroppedDatabases", "2021-02-01-preview"), new Tuple("Sql", "RestorableDroppedManagedDatabases", "2021-02-01-preview"), new Tuple("Sql", "RestorePoints", "2020-11-01-preview"), @@ -151,7 +151,7 @@ public static IEnumerable> ApiInfo_SqlManagementCl public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/sql/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\\azure-sdk-for-net\\sdk"; public static readonly String GithubForkName = "Azure"; public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "10c93ad91d3f44f62f2568a5b480c538a7c15daf"; + public static readonly String GithubCommidId = "78c2a3fb24bfd4cd3372520bb9df203561c71487"; public static readonly String CodeGenerationErrors = ""; public static readonly String GithubRepoName = "azure-rest-api-specs"; // END: Code Generation Metadata Section diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SqlManagementClient.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SqlManagementClient.cs index c4bd489f9788..acf04682292d 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SqlManagementClient.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Generated/SqlManagementClient.cs @@ -147,11 +147,6 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IServerUsagesOperations ServerUsages { get; private set; } - /// - /// Gets the IBackupShortTermRetentionPoliciesOperations. - /// - public virtual IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; private set; } - /// /// Gets the IExtendedDatabaseBlobAuditingPoliciesOperations. /// @@ -627,6 +622,11 @@ public partial class SqlManagementClient : ServiceClient, I /// public virtual IWorkloadGroupsOperations WorkloadGroups { get; private set; } + /// + /// Gets the IBackupShortTermRetentionPoliciesOperations. + /// + public virtual IBackupShortTermRetentionPoliciesOperations BackupShortTermRetentionPolicies { get; private set; } + /// /// Gets the IDatabaseExtensionsOperations. /// @@ -928,7 +928,6 @@ private void Initialize() TransparentDataEncryptions = new TransparentDataEncryptionsOperations(this); TransparentDataEncryptionActivities = new TransparentDataEncryptionActivitiesOperations(this); ServerUsages = new ServerUsagesOperations(this); - BackupShortTermRetentionPolicies = new BackupShortTermRetentionPoliciesOperations(this); ExtendedDatabaseBlobAuditingPolicies = new ExtendedDatabaseBlobAuditingPoliciesOperations(this); ExtendedServerBlobAuditingPolicies = new ExtendedServerBlobAuditingPoliciesOperations(this); ServerBlobAuditingPolicies = new ServerBlobAuditingPoliciesOperations(this); @@ -1024,6 +1023,7 @@ private void Initialize() VirtualNetworkRules = new VirtualNetworkRulesOperations(this); WorkloadClassifiers = new WorkloadClassifiersOperations(this); WorkloadGroups = new WorkloadGroupsOperations(this); + BackupShortTermRetentionPolicies = new BackupShortTermRetentionPoliciesOperations(this); DatabaseExtensions = new DatabaseExtensionsOperations(this); DatabaseOperations = new DatabaseOperations(this); DatabaseUsages = new DatabaseUsagesOperations(this); diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Microsoft.Azure.Management.Sql.csproj b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Microsoft.Azure.Management.Sql.csproj index 15d9ed9b3b51..d2626d3e39af 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Microsoft.Azure.Management.Sql.csproj +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Microsoft.Azure.Management.Sql.csproj @@ -7,13 +7,14 @@ Microsoft.Azure.Management.Sql Azure SQL Management SDK library Microsoft.Azure.Management.Sql - 1.54.0-preview + 1.55.0-preview Microsoft Azure SQL Management;SQL;SQL Management; diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Properties/AssemblyInfo.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Properties/AssemblyInfo.cs index e1eabd9c6f27..9f772c70ed39 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Properties/AssemblyInfo.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/src/Properties/AssemblyInfo.cs @@ -22,4 +22,4 @@ [assembly: AssemblyTitle("Microsoft Azure SQL Management Library")] [assembly: AssemblyDescription("Provides management functionality for Microsoft Azure SQL.")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.54.0.0")] +[assembly: AssemblyFileVersion("1.55.0.0")] diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/DatabaseReplicationLinkScenarioTests.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/DatabaseReplicationLinkScenarioTests.cs index 06711eba3c66..f09af715da27 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/DatabaseReplicationLinkScenarioTests.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/DatabaseReplicationLinkScenarioTests.cs @@ -97,12 +97,10 @@ public void TestGetListFailoverReplicationLink() var replicationLink = sqlClient.ReplicationLinks.Get(resourceGroup.Name, v12Server2.Name, databaseName, replicationLinkId); // Verify that the second database has a replicationLink to the first, with the first being the primary and the second being the secondary - string primaryRole = "Primary"; - string secondaryRole = "Secondary"; Assert.True(replicationLink.PartnerServer == v12Server.Name); Assert.True(replicationLink.PartnerDatabase == databaseName); - Assert.True(replicationLink.PartnerRole == primaryRole); - Assert.True(replicationLink.Role == secondaryRole); + Assert.True(replicationLink.PartnerRole == ReplicationRole.Primary); + Assert.True(replicationLink.Role == ReplicationRole.Secondary); // Failover Replication Link sqlClient.ReplicationLinks.Failover(resourceGroup.Name, v12Server2.Name, databaseName, replicationLinkId); @@ -111,8 +109,8 @@ public void TestGetListFailoverReplicationLink() replicationLink = sqlClient.ReplicationLinks.Get(resourceGroup.Name, v12Server2.Name, databaseName, replicationLinkId); // Verify that Primary and Secondary have switched - Assert.True(replicationLink.PartnerRole == secondaryRole); - Assert.True(replicationLink.Role == primaryRole); + Assert.True(replicationLink.PartnerRole == ReplicationRole.Secondary); + Assert.True(replicationLink.Role == ReplicationRole.Primary); } } } diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnBasic.json b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnBasic.json index 250d424bd4f2..b60cc31449c1 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnBasic.json +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnBasic.json @@ -1,19 +1,19 @@ { "Entries": [ { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-9356?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTkzNTY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-652?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY1Mj9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-9356\": \"2020-11-03 04:18:09Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-652\": \"2021-06-09 22:47:17Z\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "24106792-6bc8-484c-aa10-05df12139b57" + "f34a3d14-21d1-40d3-901c-fc23c6302ee4" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" @@ -22,7 +22,7 @@ "application/json; charset=utf-8" ], "Content-Length": [ - "95" + "94" ] }, "ResponseHeaders": { @@ -36,13 +36,13 @@ "1199" ], "x-ms-request-id": [ - "c06f0520-3ab3-413f-a777-4cbce58527a4" + "56bca72c-b0a5-45ae-9f0f-cc094325fc24" ], "x-ms-correlation-request-id": [ - "c06f0520-3ab3-413f-a777-4cbce58527a4" + "56bca72c-b0a5-45ae-9f0f-cc094325fc24" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041811Z:c06f0520-3ab3-413f-a777-4cbce58527a4" + "WESTCENTRALUS:20210609T224718Z:56bca72c-b0a5-45ae-9f0f-cc094325fc24" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -51,10 +51,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:18:10 GMT" + "Wed, 09 Jun 2021 22:47:18 GMT" ], "Content-Length": [ - "236" + "233" ], "Content-Type": [ "application/json; charset=utf-8" @@ -63,26 +63,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356\",\r\n \"name\": \"sqlcrudtest-9356\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-9356\": \"2020-11-03 04:18:09Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652\",\r\n \"name\": \"sqlcrudtest-652\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-652\": \"2021-06-09 22:47:17Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03NTU4P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQ/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {}\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "09415e61-fa13-4ff1-b99a-5ec34dd66713" + "304cb9f4-7d74-4c27-823e-a52a8a27a884" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -99,16 +99,16 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/serverOperationResults/d2cec09b-b44d-41db-bce8-26cf3355927d?api-version=2019-06-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/serverOperationResults/b6223ef0-7e79-430f-a93c-8bc688b90abd?api-version=2020-11-01-preview" ], "Retry-After": [ "1" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/d2cec09b-b44d-41db-bce8-26cf3355927d?api-version=2019-06-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/b6223ef0-7e79-430f-a93c-8bc688b90abd?api-version=2020-11-01-preview" ], "x-ms-request-id": [ - "d2cec09b-b44d-41db-bce8-26cf3355927d" + "b6223ef0-7e79-430f-a93c-8bc688b90abd" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -117,10 +117,10 @@ "1199" ], "x-ms-correlation-request-id": [ - "adc13a8f-5f3d-4821-8855-a1c30afe763d" + "afbb01d4-6e24-47d8-bc15-ae9aee5ececf" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041816Z:adc13a8f-5f3d-4821-8855-a1c30afe763d" + "WESTCENTRALUS:20210609T224720Z:afbb01d4-6e24-47d8-bc15-ae9aee5ececf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -129,7 +129,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:18:15 GMT" + "Wed, 09 Jun 2021 22:47:19 GMT" ], "Content-Length": [ "74" @@ -141,20 +141,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2020-11-03T04:18:13.993Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2021-06-09T22:47:20.117Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/d2cec09b-b44d-41db-bce8-26cf3355927d?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2QyY2VjMDliLWI0NGQtNDFkYi1iY2U4LTI2Y2YzMzU1OTI3ZD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/b6223ef0-7e79-430f-a93c-8bc688b90abd?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vYjYyMjNlZjAtN2U3OS00MzBmLWE5M2MtOGJjNjg4YjkwYWJkP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -168,7 +168,7 @@ "1" ], "x-ms-request-id": [ - "14a01ffb-8eb0-4e19-8359-00a0a32940d0" + "2cabe85a-8a68-48a6-beb6-3c336770bb88" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -177,10 +177,10 @@ "11999" ], "x-ms-correlation-request-id": [ - "d4a2f34e-4a7f-40ba-8765-969e84b2f97d" + "bf890530-bb61-43d3-ab11-584a05030dc4" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041817Z:d4a2f34e-4a7f-40ba-8765-969e84b2f97d" + "WESTCENTRALUS:20210609T224721Z:bf890530-bb61-43d3-ab11-584a05030dc4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -189,7 +189,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:18:16 GMT" + "Wed, 09 Jun 2021 22:47:20 GMT" ], "Content-Length": [ "108" @@ -201,20 +201,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"d2cec09b-b44d-41db-bce8-26cf3355927d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:18:13.993Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"b6223ef0-7e79-430f-a93c-8bc688b90abd\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:47:20.117Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/d2cec09b-b44d-41db-bce8-26cf3355927d?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2QyY2VjMDliLWI0NGQtNDFkYi1iY2U4LTI2Y2YzMzU1OTI3ZD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/b6223ef0-7e79-430f-a93c-8bc688b90abd?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vYjYyMjNlZjAtN2U3OS00MzBmLWE5M2MtOGJjNjg4YjkwYWJkP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -228,7 +228,7 @@ "1" ], "x-ms-request-id": [ - "97765cfa-eb4a-4339-a347-0f31363af2bb" + "2fe081fd-6515-44c2-969f-7ef7c402f17e" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -237,10 +237,10 @@ "11998" ], "x-ms-correlation-request-id": [ - "b7a624a6-4109-48fa-8493-5860186c8b47" + "28ec919e-4cb6-48be-99b5-ec0c7ef2b137" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041818Z:b7a624a6-4109-48fa-8493-5860186c8b47" + "WESTCENTRALUS:20210609T224722Z:28ec919e-4cb6-48be-99b5-ec0c7ef2b137" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -249,7 +249,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:18:17 GMT" + "Wed, 09 Jun 2021 22:47:21 GMT" ], "Content-Length": [ "108" @@ -261,20 +261,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"d2cec09b-b44d-41db-bce8-26cf3355927d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:18:13.993Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"b6223ef0-7e79-430f-a93c-8bc688b90abd\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:47:20.117Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/d2cec09b-b44d-41db-bce8-26cf3355927d?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2QyY2VjMDliLWI0NGQtNDFkYi1iY2U4LTI2Y2YzMzU1OTI3ZD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/b6223ef0-7e79-430f-a93c-8bc688b90abd?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vYjYyMjNlZjAtN2U3OS00MzBmLWE5M2MtOGJjNjg4YjkwYWJkP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -285,10 +285,10 @@ "no-cache" ], "Retry-After": [ - "20" + "1" ], "x-ms-request-id": [ - "7cbd0b88-5383-4b0a-b3f8-c688141eae81" + "2ef43bf8-ce96-4607-9a67-9771ecda96f9" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -297,10 +297,10 @@ "11997" ], "x-ms-correlation-request-id": [ - "867a8e21-b7e4-4863-99c8-166139139bdd" + "6bcc8589-f6f8-42a4-956a-28fd785936af" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041819Z:867a8e21-b7e4-4863-99c8-166139139bdd" + "WESTCENTRALUS:20210609T224723Z:6bcc8589-f6f8-42a4-956a-28fd785936af" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -309,7 +309,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:18:18 GMT" + "Wed, 09 Jun 2021 22:47:22 GMT" ], "Content-Length": [ "108" @@ -321,20 +321,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"d2cec09b-b44d-41db-bce8-26cf3355927d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:18:13.993Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"b6223ef0-7e79-430f-a93c-8bc688b90abd\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:47:20.117Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/d2cec09b-b44d-41db-bce8-26cf3355927d?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2QyY2VjMDliLWI0NGQtNDFkYi1iY2U4LTI2Y2YzMzU1OTI3ZD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/b6223ef0-7e79-430f-a93c-8bc688b90abd?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vYjYyMjNlZjAtN2U3OS00MzBmLWE5M2MtOGJjNjg4YjkwYWJkP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -345,10 +345,10 @@ "no-cache" ], "Retry-After": [ - "20" + "1" ], "x-ms-request-id": [ - "f15271b4-3da1-49fd-91d8-e3851357de27" + "6b9a2f4f-ec40-460f-a1ba-d10148d19237" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -357,10 +357,10 @@ "11996" ], "x-ms-correlation-request-id": [ - "b868e60e-b0b4-47f6-a91e-fa8dff551cd7" + "7eb11976-41dd-4e8c-873a-ab97294c9fbf" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041839Z:b868e60e-b0b4-47f6-a91e-fa8dff551cd7" + "WESTCENTRALUS:20210609T224724Z:7eb11976-41dd-4e8c-873a-ab97294c9fbf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -369,7 +369,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:18:38 GMT" + "Wed, 09 Jun 2021 22:47:24 GMT" ], "Content-Length": [ "108" @@ -381,20 +381,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"d2cec09b-b44d-41db-bce8-26cf3355927d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:18:13.993Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"b6223ef0-7e79-430f-a93c-8bc688b90abd\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:47:20.117Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/d2cec09b-b44d-41db-bce8-26cf3355927d?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2QyY2VjMDliLWI0NGQtNDFkYi1iY2U4LTI2Y2YzMzU1OTI3ZD9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/b6223ef0-7e79-430f-a93c-8bc688b90abd?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vYjYyMjNlZjAtN2U3OS00MzBmLWE5M2MtOGJjNjg4YjkwYWJkP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -405,10 +405,10 @@ "no-cache" ], "Retry-After": [ - "15" + "20" ], "x-ms-request-id": [ - "0c4c5e9c-e9cf-47ec-aa2a-d6908d222f25" + "87767eb7-0a44-4614-b659-c21a3832c3a7" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -417,10 +417,10 @@ "11995" ], "x-ms-correlation-request-id": [ - "175c78c9-032e-4c7b-ac46-3bdb5771f216" + "9d407482-38cd-4189-859a-3b6bdc45b362" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041859Z:175c78c9-032e-4c7b-ac46-3bdb5771f216" + "WESTCENTRALUS:20210609T224725Z:9d407482-38cd-4189-859a-3b6bdc45b362" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -429,10 +429,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:18:58 GMT" + "Wed, 09 Jun 2021 22:47:25 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -441,20 +441,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"d2cec09b-b44d-41db-bce8-26cf3355927d\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-11-03T04:18:13.993Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"b6223ef0-7e79-430f-a93c-8bc688b90abd\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:47:20.117Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03NTU4P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/b6223ef0-7e79-430f-a93c-8bc688b90abd?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vYjYyMjNlZjAtN2U3OS00MzBmLWE5M2MtOGJjNjg4YjkwYWJkP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -464,8 +464,11 @@ "Pragma": [ "no-cache" ], + "Retry-After": [ + "20" + ], "x-ms-request-id": [ - "bcb9d743-14ac-4518-b7af-cad4cdecd939" + "a0a552eb-1c80-41fe-b484-fdc584378bb1" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -474,10 +477,130 @@ "11994" ], "x-ms-correlation-request-id": [ - "447d7af8-db8b-4532-a2c3-0a783e9757e3" + "cfe94f81-967d-4c39-b862-12b24e31864a" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210609T224745Z:cfe94f81-967d-4c39-b862-12b24e31864a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:47:45 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"b6223ef0-7e79-430f-a93c-8bc688b90abd\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:47:20.117Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/b6223ef0-7e79-430f-a93c-8bc688b90abd?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vYjYyMjNlZjAtN2U3OS00MzBmLWE5M2MtOGJjNjg4YjkwYWJkP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "x-ms-request-id": [ + "a62376e5-7c9d-4923-85ec-05f2187ca368" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "08b8e9a1-bcbd-4519-89fb-4e6bb23476e8" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210609T224805Z:08b8e9a1-bcbd-4519-89fb-4e6bb23476e8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:48:05 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"b6223ef0-7e79-430f-a93c-8bc688b90abd\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:47:20.117Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/b6223ef0-7e79-430f-a93c-8bc688b90abd?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzL3NlcnZlckF6dXJlQXN5bmNPcGVyYXRpb24vYjYyMjNlZjAtN2U3OS00MzBmLWE5M2MtOGJjNjg4YjkwYWJkP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "a0c31ee1-0532-47ee-aacf-ee35d862864b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "64f94cb4-c786-4c6c-8caf-aa3ed332bd04" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041859Z:447d7af8-db8b-4532-a2c3-0a783e9757e3" + "WESTCENTRALUS:20210609T224826Z:64f94cb4-c786-4c6c-8caf-aa3ed332bd04" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -486,10 +609,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:18:58 GMT" + "Wed, 09 Jun 2021 22:48:25 GMT" ], "Content-Length": [ - "456" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -498,26 +621,83 @@ "-1" ] }, - "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-7558.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558\",\r\n \"name\": \"sqlcrudtest-7558\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"b6223ef0-7e79-430f-a93c-8bc688b90abd\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-06-09T22:47:20.117Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558/databases/sqlcrudtest-8848?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03NTU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04ODQ4P2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQ/YXBpLXZlcnNpb249MjAyMC0xMS0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c68b30f4-42af-4247-bde2-418a2b905cbb" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "7aa1f49b-4c8b-4ee4-8fb6-512c26367dfb" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210609T224826Z:7aa1f49b-4c8b-4ee4-8fb6-512c26367dfb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:48:25 GMT" + ], + "Content-Length": [ + "455" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-1954.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954\",\r\n \"name\": \"sqlcrudtest-1954\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTMyMTk/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n },\r\n \"location\": \"eastus\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "0f498315-62c5-410a-8b1c-776365ab385d" + "e73f5a82-d56b-4267-824a-e718e0451dee" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -534,16 +714,16 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/databaseOperationResults/b82b1a1b-8a31-480a-b1da-eeb0008cbb57?api-version=2020-08-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/databaseOperationResults/0e91018b-1147-4715-8443-4e29495b165a?api-version=2021-02-01-preview" ], "Retry-After": [ "15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/b82b1a1b-8a31-480a-b1da-eeb0008cbb57?api-version=2020-08-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/0e91018b-1147-4715-8443-4e29495b165a?api-version=2021-02-01-preview" ], "x-ms-request-id": [ - "b82b1a1b-8a31-480a-b1da-eeb0008cbb57" + "0e91018b-1147-4715-8443-4e29495b165a" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -552,10 +732,10 @@ "1198" ], "x-ms-correlation-request-id": [ - "cb141ca4-81b0-4e75-a7a8-7f90ec34e2aa" + "699769b3-3265-45ff-b587-14c593d298ee" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041901Z:cb141ca4-81b0-4e75-a7a8-7f90ec34e2aa" + "WESTCENTRALUS:20210609T224827Z:699769b3-3265-45ff-b587-14c593d298ee" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -564,10 +744,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:19:00 GMT" + "Wed, 09 Jun 2021 22:48:27 GMT" ], "Content-Length": [ - "74" + "76" ], "Content-Type": [ "application/json; charset=utf-8" @@ -576,20 +756,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-11-03T04:19:01.4Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T22:48:27.617Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/b82b1a1b-8a31-480a-b1da-eeb0008cbb57?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vYjgyYjFhMWItOGEzMS00ODBhLWIxZGEtZWViMDAwOGNiYjU3P2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/0e91018b-1147-4715-8443-4e29495b165a?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi8wZTkxMDE4Yi0xMTQ3LTQ3MTUtODQ0My00ZTI5NDk1YjE2NWE/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -603,19 +783,19 @@ "15" ], "x-ms-request-id": [ - "cc3604ae-5057-41a1-a343-f35154471652" + "3e2a72fd-baa2-45b0-bdab-3ba5591e2737" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11993" + "11990" ], "x-ms-correlation-request-id": [ - "470fea30-eed5-4140-8b0e-19ed96170cff" + "4afb9c86-e041-4747-ba65-729ac8c0a701" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041917Z:470fea30-eed5-4140-8b0e-19ed96170cff" + "WESTCENTRALUS:20210609T224842Z:4afb9c86-e041-4747-ba65-729ac8c0a701" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -624,10 +804,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:19:16 GMT" + "Wed, 09 Jun 2021 22:48:42 GMT" ], "Content-Length": [ - "106" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -636,20 +816,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"b82b1a1b-8a31-480a-b1da-eeb0008cbb57\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:19:01.4Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"0e91018b-1147-4715-8443-4e29495b165a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:48:27.617Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/b82b1a1b-8a31-480a-b1da-eeb0008cbb57?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vYjgyYjFhMWItOGEzMS00ODBhLWIxZGEtZWViMDAwOGNiYjU3P2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/0e91018b-1147-4715-8443-4e29495b165a?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi8wZTkxMDE4Yi0xMTQ3LTQ3MTUtODQ0My00ZTI5NDk1YjE2NWE/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -663,19 +843,19 @@ "15" ], "x-ms-request-id": [ - "130cd0d0-1a41-4f0c-97bc-198d9383ea65" + "72c556ba-5e6a-46c9-bf8b-79c2d350f85f" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11992" + "11989" ], "x-ms-correlation-request-id": [ - "2d4fc7af-5dab-4566-a3a4-92e48486b779" + "93f8c557-09d0-4ad2-bcea-612a21149a03" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041932Z:2d4fc7af-5dab-4566-a3a4-92e48486b779" + "WESTCENTRALUS:20210609T224858Z:93f8c557-09d0-4ad2-bcea-612a21149a03" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -684,10 +864,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:19:32 GMT" + "Wed, 09 Jun 2021 22:48:57 GMT" ], "Content-Length": [ - "106" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -696,20 +876,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"b82b1a1b-8a31-480a-b1da-eeb0008cbb57\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:19:01.4Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"0e91018b-1147-4715-8443-4e29495b165a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:48:27.617Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/b82b1a1b-8a31-480a-b1da-eeb0008cbb57?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vYjgyYjFhMWItOGEzMS00ODBhLWIxZGEtZWViMDAwOGNiYjU3P2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/0e91018b-1147-4715-8443-4e29495b165a?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi8wZTkxMDE4Yi0xMTQ3LTQ3MTUtODQ0My00ZTI5NDk1YjE2NWE/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -723,19 +903,19 @@ "15" ], "x-ms-request-id": [ - "59ecdaec-fab6-483f-9bc7-19c4d85e943c" + "f2d960eb-cad3-41ee-a437-e160d78255b4" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" + "11988" ], "x-ms-correlation-request-id": [ - "e2eb2bac-38d4-466e-b47b-f92fe82fe18c" + "25b3d84f-fff0-4e2c-b6ff-87e5a82a79e9" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041947Z:e2eb2bac-38d4-466e-b47b-f92fe82fe18c" + "WESTCENTRALUS:20210609T224913Z:25b3d84f-fff0-4e2c-b6ff-87e5a82a79e9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -744,10 +924,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:19:47 GMT" + "Wed, 09 Jun 2021 22:49:12 GMT" ], "Content-Length": [ - "105" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -756,20 +936,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"b82b1a1b-8a31-480a-b1da-eeb0008cbb57\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-11-03T04:19:01.4Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"0e91018b-1147-4715-8443-4e29495b165a\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:48:27.617Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558/databases/sqlcrudtest-8848?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03NTU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04ODQ4P2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/0e91018b-1147-4715-8443-4e29495b165a?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9sb2NhdGlvbnMvZWFzdHVzL2RhdGFiYXNlQXp1cmVBc3luY09wZXJhdGlvbi8wZTkxMDE4Yi0xMTQ3LTQ3MTUtODQ0My00ZTI5NDk1YjE2NWE/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -779,20 +959,23 @@ "Pragma": [ "no-cache" ], + "Retry-After": [ + "15" + ], "x-ms-request-id": [ - "755256b4-deca-4541-a35c-d82ee0880670" + "8fea58b4-f744-4cc6-b70e-5b33a7b08e17" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11990" + "11987" ], "x-ms-correlation-request-id": [ - "813e0402-32b1-4143-93f1-02a3528fdecc" + "0a6bf79b-46ce-4338-b4cd-4197d03d1e20" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041947Z:813e0402-32b1-4143-93f1-02a3528fdecc" + "WESTCENTRALUS:20210609T224929Z:0a6bf79b-46ce-4338-b4cd-4197d03d1e20" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -801,10 +984,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:19:47 GMT" + "Wed, 09 Jun 2021 22:49:29 GMT" ], "Content-Length": [ - "865" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -813,26 +996,83 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 5\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 2147483648,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"99631717-355f-4b16-b8dd-3d2ff6640279\",\r\n \"creationDate\": \"2020-11-03T04:19:38.557Z\",\r\n \"currentServiceObjectiveName\": \"Basic\",\r\n \"requestedServiceObjectiveName\": \"Basic\",\r\n \"defaultSecondaryLocation\": \"westus\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2020-11-03T04:49:38.557Z\",\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 5\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558/databases/sqlcrudtest-8848\",\r\n \"name\": \"sqlcrudtest-8848\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"0e91018b-1147-4715-8443-4e29495b165a\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-06-09T22:48:27.617Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558/databases/sqlcrudtest-8848/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03NTU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04ODQ4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTMyMTk/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "845f4494-36c3-41e3-b26b-c13d55c3a24c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "950fd0bb-1926-4827-a2b2-e2e0d248f77c" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210609T224930Z:950fd0bb-1926-4827-a2b2-e2e0d248f77c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:49:29 GMT" + ], + "Content-Length": [ + "1078" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 5\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 2147483648,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"36f33606-9ec2-446b-b8c0-732dca54910b\",\r\n \"creationDate\": \"2021-06-09T22:49:17.38Z\",\r\n \"currentServiceObjectiveName\": \"Basic\",\r\n \"requestedServiceObjectiveName\": \"Basic\",\r\n \"defaultSecondaryLocation\": \"westus\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"readScale\": \"Disabled\",\r\n \"currentSku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Basic\",\r\n \"capacity\": 5\r\n },\r\n \"currentBackupStorageRedundancy\": \"Geo\",\r\n \"requestedBackupStorageRedundancy\": \"Geo\",\r\n \"maintenanceConfigurationId\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default\",\r\n \"isLedgerOn\": false,\r\n \"isInfraEncryptionEnabled\": false\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219\",\r\n \"name\": \"sqlcrudtest-3219\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTMyMTkvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "5cf3587f-e93b-44f4-8b64-91b689a39be9" + "71aaa1bf-9485-47aa-a133-360ddd16cf08" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -843,19 +1083,19 @@ "no-cache" ], "x-ms-request-id": [ - "8bf11962-7a49-471e-9f33-d0b26d9040db" + "51c8bdae-c6ed-4e89-bd3b-e9bee9e6e0b8" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" + "11985" ], "x-ms-correlation-request-id": [ - "9b4443ba-0cb8-40ee-b021-ad6dda6a2e58" + "73612f86-9a13-4d01-b694-18fe2ff72257" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041947Z:9b4443ba-0cb8-40ee-b021-ad6dda6a2e58" + "WESTCENTRALUS:20210609T224930Z:73612f86-9a13-4d01-b694-18fe2ff72257" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -864,10 +1104,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:19:47 GMT" + "Wed, 09 Jun 2021 22:49:29 GMT" ], "Content-Length": [ - "333" + "363" ], "Content-Type": [ "application/json; charset=utf-8" @@ -876,26 +1116,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558/databases/sqlcrudtest-8848/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7,\r\n \"diffBackupIntervalInHours\": 12\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558/databases/sqlcrudtest-8848/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03NTU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04ODQ4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTMyMTkvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "12b43294-374c-479b-bd9f-c3412683f848" + "121bb4b2-bd9c-4310-a79e-30b1e0bc0e3d" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -906,19 +1146,19 @@ "no-cache" ], "x-ms-request-id": [ - "9549e86b-e445-491f-b733-085a7edcb28d" + "0834a088-2bea-4b48-810f-c0192b8d2a46" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11988" + "11984" ], "x-ms-correlation-request-id": [ - "169a6a25-52f1-451a-bc0a-abc8a57503d5" + "7950d498-682a-43c0-a702-f1989a8beca9" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041950Z:169a6a25-52f1-451a-bc0a-abc8a57503d5" + "WESTCENTRALUS:20210609T224933Z:7950d498-682a-43c0-a702-f1989a8beca9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -927,10 +1167,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:19:50 GMT" + "Wed, 09 Jun 2021 22:49:32 GMT" ], "Content-Length": [ - "333" + "363" ], "Content-Type": [ "application/json; charset=utf-8" @@ -939,26 +1179,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558/databases/sqlcrudtest-8848/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7,\r\n \"diffBackupIntervalInHours\": 12\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558/databases/sqlcrudtest-8848/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03NTU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04ODQ4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTMyMTkvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "01ccf8e6-4cdc-4d2f-bb3f-45e061e66c8b" + "3f2852a5-1cac-42ba-bc22-46a1da8b51de" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -969,19 +1209,145 @@ "no-cache" ], "x-ms-request-id": [ - "8334b548-f1dc-468e-b0e9-569fdfd6c8d0" + "9e961634-03e4-42f5-b592-eb884e0503bf" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11987" + "11983" + ], + "x-ms-correlation-request-id": [ + "7c8cdefd-5f91-4328-b347-4cc528570e5e" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210609T224936Z:7c8cdefd-5f91-4328-b347-4cc528570e5e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:49:35 GMT" + ], + "Content-Length": [ + "363" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7,\r\n \"diffBackupIntervalInHours\": 12\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTMyMTkvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e353b928-94b1-4a97-a3ad-e9174f719cf9" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "3516388c-ff38-4f9b-a8d8-200c4d5afc6e" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-correlation-request-id": [ + "af84bf24-d741-4013-b370-fdf99c6b6a00" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210609T224939Z:af84bf24-d741-4013-b370-fdf99c6b6a00" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:49:39 GMT" + ], + "Content-Length": [ + "363" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 5,\r\n \"diffBackupIntervalInHours\": 24\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTMyMTkvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "53f6e761-319a-4a26-9470-7fbe415ab34b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "be16cf9e-281b-487e-b54a-ef201c06ce47" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" ], "x-ms-correlation-request-id": [ - "2b235a43-7c91-4aba-9990-bf8aef5c8b90" + "fd30973d-39b6-450e-a182-0b5b7161976e" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041953Z:2b235a43-7c91-4aba-9990-bf8aef5c8b90" + "WESTCENTRALUS:20210609T224939Z:fd30973d-39b6-450e-a182-0b5b7161976e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -990,10 +1356,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:19:53 GMT" + "Wed, 09 Jun 2021 22:49:39 GMT" ], "Content-Length": [ - "333" + "363" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1002,32 +1368,95 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 6\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558/databases/sqlcrudtest-8848/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 5,\r\n \"diffBackupIntervalInHours\": 24\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558/databases/sqlcrudtest-8848/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03NTU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04ODQ4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTMyMTkvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cf420607-8471-4a85-a77a-4abe03af6e4c" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c4c38cdb-effc-4845-89bc-2d71207ff3e6" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-correlation-request-id": [ + "4d767b7e-44ba-4c99-9278-a6c7d8bbbf21" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210609T224942Z:4d767b7e-44ba-4c99-9278-a6c7d8bbbf21" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:49:42 GMT" + ], + "Content-Length": [ + "363" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7,\r\n \"diffBackupIntervalInHours\": 24\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTMyMTkvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 8\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 8,\r\n \"diffBackupIntervalInHours\": 12\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "f36e483d-1f8d-4491-9b1e-deede0190cec" + "c5f76ffb-555a-49d1-bca8-4fcae9759bb0" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "52" + "90" ] }, "ResponseHeaders": { @@ -1038,7 +1467,7 @@ "no-cache" ], "x-ms-request-id": [ - "fd5efa67-e964-4168-909e-ed8d1142c712" + "44f2946b-9309-4ecc-8b83-4ab766d263c2" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1047,10 +1476,10 @@ "1197" ], "x-ms-correlation-request-id": [ - "67e83e2b-514c-4750-8f45-70506ed917dd" + "45fd3c06-abb2-43c9-98aa-3a3b9163ee09" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041947Z:67e83e2b-514c-4750-8f45-70506ed917dd" + "WESTCENTRALUS:20210609T224930Z:45fd3c06-abb2-43c9-98aa-3a3b9163ee09" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1059,7 +1488,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:19:47 GMT" + "Wed, 09 Jun 2021 22:49:30 GMT" ], "Content-Length": [ "170" @@ -1075,28 +1504,97 @@ "StatusCode": 400 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/servers/sqlcrudtest-7558/databases/sqlcrudtest-8848/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTkzNTYvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03NTU4L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04ODQ4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTMyMTkvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 6\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 6,\r\n \"diffBackupIntervalInHours\": 6\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "a316de34-cb10-4a7a-9238-329061f76782" + "33748bc4-45ad-4940-934c-4eb868fbe429" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "52" + "89" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d831cf47-d59e-4ac7-85ff-cf66464739df" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "04e03ad1-168e-4695-a8b1-7c3a615e5cf2" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210609T224933Z:04e03ad1-168e-4695-a8b1-7c3a615e5cf2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:49:33 GMT" + ], + "Content-Length": [ + "196" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"InvalidDiffBackupIntervalHours\",\r\n \"message\": \"The differential backup interval hours of 6 is not a valid configuration. Valid differential backup interval must be 12 or 24 hours.\"\r\n }\r\n}", + "StatusCode": 400 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTMyMTkvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 5,\r\n \"diffBackupIntervalInHours\": 24\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "19520573-985c-46b8-8283-6ba91fd7d320" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "90" ] }, "ResponseHeaders": { @@ -1107,28 +1605,28 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/6425d7f1-50ea-4ada-bac4-bf4c0c781f97?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/f554f1a1-a160-4739-b3b8-4e38624dce39?api-version=2021-02-01-preview" ], "Retry-After": [ "15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-9356/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/6425d7f1-50ea-4ada-bac4-bf4c0c781f97?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/f554f1a1-a160-4739-b3b8-4e38624dce39?api-version=2021-02-01-preview" ], "x-ms-request-id": [ - "6425d7f1-50ea-4ada-bac4-bf4c0c781f97" + "f554f1a1-a160-4739-b3b8-4e38624dce39" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1195" ], "x-ms-correlation-request-id": [ - "1123128c-3f5c-4f4d-9f8e-ebe762642172" + "38c6e56d-bbf0-4aaf-ba26-7c54cc4fa553" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041951Z:1123128c-3f5c-4f4d-9f8e-ebe762642172" + "WESTCENTRALUS:20210609T224936Z:38c6e56d-bbf0-4aaf-ba26-7c54cc4fa553" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1137,7 +1635,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:19:50 GMT" + "Wed, 09 Jun 2021 22:49:36 GMT" ], "Content-Length": [ "76" @@ -1149,23 +1647,101 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2020-11-03T04:19:50.853Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T22:49:36.693Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/servers/sqlcrudtest-1954/databases/sqlcrudtest-3219/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY1Mi9wcm92aWRlcnMvTWljcm9zb2Z0LlNxbC9zZXJ2ZXJzL3NxbGNydWR0ZXN0LTE5NTQvZGF0YWJhc2VzL3NxbGNydWR0ZXN0LTMyMTkvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f79ed23f-9b36-40a4-bfff-ab0546ff5a14" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "52" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/724a8e64-d914-4957-a56a-584ddf3f29c1?api-version=2021-02-01-preview" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-652/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/724a8e64-d914-4957-a56a-584ddf3f29c1?api-version=2021-02-01-preview" + ], + "x-ms-request-id": [ + "724a8e64-d914-4957-a56a-584ddf3f29c1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], + "x-ms-correlation-request-id": [ + "49589984-e32b-45e4-9415-1534fca37668" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210609T224940Z:49589984-e32b-45e4-9415-1534fca37668" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:49:39 GMT" + ], + "Content-Length": [ + "75" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T22:49:39.93Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-9356?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTkzNTY/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-652?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY1Mj9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "f9a351dc-0393-4eae-9767-13059b071b9a" + "85feed03-b550-48a4-a7af-31b9e9b1e657" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" @@ -1179,7 +1755,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDkzNTYtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDY1Mi1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -1188,13 +1764,13 @@ "14999" ], "x-ms-request-id": [ - "24c05de6-35ab-444d-a3c4-b5d7ffbc96de" + "75909544-0a17-43b2-bc5b-5a8125fc9f58" ], "x-ms-correlation-request-id": [ - "24c05de6-35ab-444d-a3c4-b5d7ffbc96de" + "75909544-0a17-43b2-bc5b-5a8125fc9f58" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T041954Z:24c05de6-35ab-444d-a3c4-b5d7ffbc96de" + "WESTUS:20210609T224944Z:75909544-0a17-43b2-bc5b-5a8125fc9f58" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1203,7 +1779,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:19:54 GMT" + "Wed, 09 Jun 2021 22:49:43 GMT" ], "Expires": [ "-1" @@ -1218,17 +1794,17 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-9356" + "sqlcrudtest-652" ], "CreateServer": [ - "sqlcrudtest-7558" + "sqlcrudtest-1954" ], "TestShortTermRetentionPolicyOnBasic": [ - "sqlcrudtest-8848" + "sqlcrudtest-3219" ] }, "Variables": { - "SubscriptionId": "dc1789a8-0762-4dfb-8901-4c0da08b83d3", - "DefaultLocation": "eastus" + "DefaultLocation": "eastus", + "SubscriptionId": "dc1789a8-0762-4dfb-8901-4c0da08b83d3" } } \ No newline at end of file diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnGeneralPurpose.json b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnGeneralPurpose.json index 6c58efc5ef42..744db5438bda 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnGeneralPurpose.json +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnGeneralPurpose.json @@ -1,19 +1,19 @@ { "Entries": [ { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-87?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg3P2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-6720?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY3MjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-87\": \"2020-11-03 04:25:11Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-6720\": \"2021-06-09 22:44:16Z\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "2671b99c-7c9a-435d-827b-4f736882be4b" + "a21bc24d-e8d9-4a0c-9f4d-bd5c6e259ae4" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" @@ -22,7 +22,7 @@ "application/json; charset=utf-8" ], "Content-Length": [ - "93" + "95" ] }, "ResponseHeaders": { @@ -33,16 +33,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1195" + "1199" ], "x-ms-request-id": [ - "8429b796-c700-4cdf-bd0d-c1d03ecc0427" + "41963aea-565d-49b9-aff5-d90f656ab8b1" ], "x-ms-correlation-request-id": [ - "8429b796-c700-4cdf-bd0d-c1d03ecc0427" + "41963aea-565d-49b9-aff5-d90f656ab8b1" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042513Z:8429b796-c700-4cdf-bd0d-c1d03ecc0427" + "WESTCENTRALUS:20210609T224420Z:41963aea-565d-49b9-aff5-d90f656ab8b1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -51,10 +51,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:25:13 GMT" + "Wed, 09 Jun 2021 22:44:19 GMT" ], "Content-Length": [ - "230" + "236" ], "Content-Type": [ "application/json; charset=utf-8" @@ -63,26 +63,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87\",\r\n \"name\": \"sqlcrudtest-87\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-87\": \"2020-11-03 04:25:11Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720\",\r\n \"name\": \"sqlcrudtest-6720\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-6720\": \"2021-06-09 22:44:16Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvc3FsY3J1ZHRlc3QtMTE1OT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3P2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {}\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "33fba39e-013d-460d-8f84-98dc3e080146" + "0b963e8f-6647-426d-9ecc-96c0602b04bd" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -99,16 +99,16 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/serverOperationResults/218ad0a1-b418-415e-8f99-afb5f9cefdb8?api-version=2019-06-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/serverOperationResults/31b6eeae-5217-4a50-bd30-f606f1eb2648?api-version=2020-11-01-preview" ], "Retry-After": [ "1" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/218ad0a1-b418-415e-8f99-afb5f9cefdb8?api-version=2019-06-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/31b6eeae-5217-4a50-bd30-f606f1eb2648?api-version=2020-11-01-preview" ], "x-ms-request-id": [ - "218ad0a1-b418-415e-8f99-afb5f9cefdb8" + "31b6eeae-5217-4a50-bd30-f606f1eb2648" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -117,10 +117,10 @@ "1199" ], "x-ms-correlation-request-id": [ - "aef3600d-4891-4ed3-988f-c7a7dc5496b9" + "e550514f-8ebe-46b9-8e93-675b7ff2f620" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042516Z:aef3600d-4891-4ed3-988f-c7a7dc5496b9" + "WESTUS:20210609T224422Z:e550514f-8ebe-46b9-8e93-675b7ff2f620" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -129,7 +129,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:25:16 GMT" + "Wed, 09 Jun 2021 22:44:21 GMT" ], "Content-Length": [ "74" @@ -141,20 +141,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2020-11-03T04:25:16.403Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2021-06-09T22:44:22.137Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/218ad0a1-b418-415e-8f99-afb5f9cefdb8?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yMThhZDBhMS1iNDE4LTQxNWUtOGY5OS1hZmI1ZjljZWZkYjg/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/31b6eeae-5217-4a50-bd30-f606f1eb2648?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzMxYjZlZWFlLTUyMTctNGE1MC1iZDMwLWY2MDZmMWViMjY0OD9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -168,7 +168,7 @@ "1" ], "x-ms-request-id": [ - "349eed17-b581-4deb-9f16-a55f9f96fa13" + "c369909c-b0bc-4a6c-bc40-6292b4676a0e" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -177,10 +177,10 @@ "11999" ], "x-ms-correlation-request-id": [ - "9c3c6403-0b98-4123-a8df-fa861429efa2" + "c71fb141-4c91-47e5-b83c-f673fe3785fb" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042517Z:9c3c6403-0b98-4123-a8df-fa861429efa2" + "WESTUS:20210609T224423Z:c71fb141-4c91-47e5-b83c-f673fe3785fb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -189,7 +189,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:25:17 GMT" + "Wed, 09 Jun 2021 22:44:22 GMT" ], "Content-Length": [ "108" @@ -201,20 +201,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"218ad0a1-b418-415e-8f99-afb5f9cefdb8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:25:16.403Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"31b6eeae-5217-4a50-bd30-f606f1eb2648\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:44:22.137Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/218ad0a1-b418-415e-8f99-afb5f9cefdb8?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yMThhZDBhMS1iNDE4LTQxNWUtOGY5OS1hZmI1ZjljZWZkYjg/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/31b6eeae-5217-4a50-bd30-f606f1eb2648?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzMxYjZlZWFlLTUyMTctNGE1MC1iZDMwLWY2MDZmMWViMjY0OD9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -228,7 +228,7 @@ "1" ], "x-ms-request-id": [ - "cb864fb2-5d92-44c2-8fbd-9771bbfe5c4a" + "9f7bcf44-d8f1-4d0a-8850-a7c7eccc928e" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -237,10 +237,10 @@ "11998" ], "x-ms-correlation-request-id": [ - "b765e0a9-d315-4c1a-883a-5580f86a643e" + "a595ad81-d633-49c7-8a08-44989137255e" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042519Z:b765e0a9-d315-4c1a-883a-5580f86a643e" + "WESTUS:20210609T224424Z:a595ad81-d633-49c7-8a08-44989137255e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -249,7 +249,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:25:18 GMT" + "Wed, 09 Jun 2021 22:44:23 GMT" ], "Content-Length": [ "108" @@ -261,20 +261,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"218ad0a1-b418-415e-8f99-afb5f9cefdb8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:25:16.403Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"31b6eeae-5217-4a50-bd30-f606f1eb2648\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:44:22.137Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/218ad0a1-b418-415e-8f99-afb5f9cefdb8?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yMThhZDBhMS1iNDE4LTQxNWUtOGY5OS1hZmI1ZjljZWZkYjg/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/31b6eeae-5217-4a50-bd30-f606f1eb2648?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzMxYjZlZWFlLTUyMTctNGE1MC1iZDMwLWY2MDZmMWViMjY0OD9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -288,7 +288,7 @@ "1" ], "x-ms-request-id": [ - "8a706919-cdf2-497c-9c11-462234193f0e" + "982e955f-db33-4929-a7f0-f69063ef3b5a" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -297,10 +297,10 @@ "11997" ], "x-ms-correlation-request-id": [ - "3959b50c-9b5b-47a3-87ee-4d721e435372" + "6b391fcb-cf55-4522-a4ed-969f6119a5e9" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042520Z:3959b50c-9b5b-47a3-87ee-4d721e435372" + "WESTUS:20210609T224425Z:6b391fcb-cf55-4522-a4ed-969f6119a5e9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -309,7 +309,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:25:19 GMT" + "Wed, 09 Jun 2021 22:44:24 GMT" ], "Content-Length": [ "108" @@ -321,20 +321,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"218ad0a1-b418-415e-8f99-afb5f9cefdb8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:25:16.403Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"31b6eeae-5217-4a50-bd30-f606f1eb2648\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:44:22.137Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/218ad0a1-b418-415e-8f99-afb5f9cefdb8?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yMThhZDBhMS1iNDE4LTQxNWUtOGY5OS1hZmI1ZjljZWZkYjg/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/31b6eeae-5217-4a50-bd30-f606f1eb2648?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzMxYjZlZWFlLTUyMTctNGE1MC1iZDMwLWY2MDZmMWViMjY0OD9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -348,7 +348,7 @@ "1" ], "x-ms-request-id": [ - "82fe1537-4527-411e-a7e5-f6ffc50e8bfa" + "71d4390a-1788-45b7-b2c5-3eb7760aad3d" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -357,10 +357,10 @@ "11996" ], "x-ms-correlation-request-id": [ - "c2a1140b-f194-45f6-9c3a-bb9ea254b766" + "c3c01d2d-d7bf-44f1-8757-152ae817246d" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042521Z:c2a1140b-f194-45f6-9c3a-bb9ea254b766" + "WESTUS:20210609T224426Z:c3c01d2d-d7bf-44f1-8757-152ae817246d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -369,7 +369,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:25:20 GMT" + "Wed, 09 Jun 2021 22:44:26 GMT" ], "Content-Length": [ "108" @@ -381,20 +381,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"218ad0a1-b418-415e-8f99-afb5f9cefdb8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:25:16.403Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"31b6eeae-5217-4a50-bd30-f606f1eb2648\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:44:22.137Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/218ad0a1-b418-415e-8f99-afb5f9cefdb8?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yMThhZDBhMS1iNDE4LTQxNWUtOGY5OS1hZmI1ZjljZWZkYjg/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/31b6eeae-5217-4a50-bd30-f606f1eb2648?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzMxYjZlZWFlLTUyMTctNGE1MC1iZDMwLWY2MDZmMWViMjY0OD9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -408,7 +408,7 @@ "20" ], "x-ms-request-id": [ - "72456653-03f6-4106-9924-27ba9c8de778" + "faedf5e2-8535-4025-b5cd-5b3d5efa8bf1" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -417,10 +417,10 @@ "11995" ], "x-ms-correlation-request-id": [ - "72aab936-b5d8-42ba-b415-97d85e3f780c" + "34a6e77d-fdf9-4935-bf89-f8e7d5421cb2" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042522Z:72aab936-b5d8-42ba-b415-97d85e3f780c" + "WESTUS:20210609T224428Z:34a6e77d-fdf9-4935-bf89-f8e7d5421cb2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -429,7 +429,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:25:22 GMT" + "Wed, 09 Jun 2021 22:44:27 GMT" ], "Content-Length": [ "108" @@ -441,20 +441,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"218ad0a1-b418-415e-8f99-afb5f9cefdb8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:25:16.403Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"31b6eeae-5217-4a50-bd30-f606f1eb2648\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:44:22.137Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/218ad0a1-b418-415e-8f99-afb5f9cefdb8?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yMThhZDBhMS1iNDE4LTQxNWUtOGY5OS1hZmI1ZjljZWZkYjg/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/31b6eeae-5217-4a50-bd30-f606f1eb2648?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzMxYjZlZWFlLTUyMTctNGE1MC1iZDMwLWY2MDZmMWViMjY0OD9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -468,7 +468,7 @@ "20" ], "x-ms-request-id": [ - "46c909a3-612a-47ed-9394-5a5e0f0ce095" + "3044e45c-3e7a-470b-9f7d-87143a31e19f" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -477,10 +477,10 @@ "11994" ], "x-ms-correlation-request-id": [ - "bfe8327e-b777-4d01-b734-c83e2678630e" + "268f7896-1eea-4912-8b15-0efac3d7aba9" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042542Z:bfe8327e-b777-4d01-b734-c83e2678630e" + "WESTUS:20210609T224448Z:268f7896-1eea-4912-8b15-0efac3d7aba9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -489,7 +489,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:25:42 GMT" + "Wed, 09 Jun 2021 22:44:48 GMT" ], "Content-Length": [ "108" @@ -501,20 +501,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"218ad0a1-b418-415e-8f99-afb5f9cefdb8\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:25:16.403Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"31b6eeae-5217-4a50-bd30-f606f1eb2648\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:44:22.137Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/218ad0a1-b418-415e-8f99-afb5f9cefdb8?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMvc2VydmVyQXp1cmVBc3luY09wZXJhdGlvbi8yMThhZDBhMS1iNDE4LTQxNWUtOGY5OS1hZmI1ZjljZWZkYjg/YXBpLXZlcnNpb249MjAxOS0wNi0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/31b6eeae-5217-4a50-bd30-f606f1eb2648?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzMxYjZlZWFlLTUyMTctNGE1MC1iZDMwLWY2MDZmMWViMjY0OD9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -525,10 +525,10 @@ "no-cache" ], "Retry-After": [ - "15" + "20" ], "x-ms-request-id": [ - "f4ec3e2a-7c61-4cf2-a646-c368dc53ccae" + "43cc8a1a-cdbb-4bcd-a539-24ece511c237" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -537,10 +537,10 @@ "11993" ], "x-ms-correlation-request-id": [ - "34c2c2f8-8062-4f29-b6ac-f7cbbd94d518" + "77c43140-558a-4a37-bdc7-c5f8fb8a9cb4" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042602Z:34c2c2f8-8062-4f29-b6ac-f7cbbd94d518" + "WESTUS:20210609T224508Z:77c43140-558a-4a37-bdc7-c5f8fb8a9cb4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -549,10 +549,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:26:02 GMT" + "Wed, 09 Jun 2021 22:45:08 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -561,20 +561,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"218ad0a1-b418-415e-8f99-afb5f9cefdb8\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-11-03T04:25:16.403Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"31b6eeae-5217-4a50-bd30-f606f1eb2648\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:44:22.137Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvc3FsY3J1ZHRlc3QtMTE1OT9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/31b6eeae-5217-4a50-bd30-f606f1eb2648?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzMxYjZlZWFlLTUyMTctNGE1MC1iZDMwLWY2MDZmMWViMjY0OD9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -584,8 +584,11 @@ "Pragma": [ "no-cache" ], + "Retry-After": [ + "15" + ], "x-ms-request-id": [ - "c3a5313d-c3ed-477e-8f3f-007848f0c827" + "87e0b4d5-a461-4325-991e-41f3d3821e29" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -594,10 +597,10 @@ "11992" ], "x-ms-correlation-request-id": [ - "61aad3f5-78e1-49e7-bb65-42605d2c40d1" + "a2b79464-b059-4478-ac35-628252689dc3" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042602Z:61aad3f5-78e1-49e7-bb65-42605d2c40d1" + "WESTUS:20210609T224528Z:a2b79464-b059-4478-ac35-628252689dc3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -606,10 +609,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:26:02 GMT" + "Wed, 09 Jun 2021 22:45:28 GMT" ], "Content-Length": [ - "454" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -618,26 +621,83 @@ "-1" ] }, - "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-1159.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159\",\r\n \"name\": \"sqlcrudtest-1159\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"31b6eeae-5217-4a50-bd30-f606f1eb2648\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-06-09T22:44:22.137Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159/databases/sqlcrudtest-6749?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvc3FsY3J1ZHRlc3QtMTE1OS9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNjc0OT9hcGktdmVyc2lvbj0yMDIwLTA4LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3P2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "5beb49c5-49f0-48b6-8495-ba8f7e3db083" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "00f23e09-6319-4ae1-9aab-8f2aec648327" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T224528Z:00f23e09-6319-4ae1-9aab-8f2aec648327" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:45:28 GMT" + ], + "Content-Length": [ + "456" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-7237.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237\",\r\n \"name\": \"sqlcrudtest-7237\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDE0P2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"P1\"\r\n },\r\n \"location\": \"eastus\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "cc17585b-cd6f-408a-9648-c3d4cc4a520b" + "be910e13-c59b-49d6-a794-0f229bc653af" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -654,16 +714,16 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/databaseOperationResults/df2fe6b7-22ce-4225-81a2-a8d11a546fff?api-version=2020-08-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/databaseOperationResults/9594a04b-fe6e-44a1-acd3-bfeac62d4f1e?api-version=2021-02-01-preview" ], "Retry-After": [ "15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/df2fe6b7-22ce-4225-81a2-a8d11a546fff?api-version=2020-08-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/9594a04b-fe6e-44a1-acd3-bfeac62d4f1e?api-version=2021-02-01-preview" ], "x-ms-request-id": [ - "df2fe6b7-22ce-4225-81a2-a8d11a546fff" + "9594a04b-fe6e-44a1-acd3-bfeac62d4f1e" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -672,10 +732,10 @@ "1198" ], "x-ms-correlation-request-id": [ - "82b7f820-d63c-4a06-a557-9737bddc6bd8" + "f3e6b635-9b0e-44e4-b10c-69cff1966514" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042604Z:82b7f820-d63c-4a06-a557-9737bddc6bd8" + "WESTUS:20210609T224530Z:f3e6b635-9b0e-44e4-b10c-69cff1966514" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -684,10 +744,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:26:03 GMT" + "Wed, 09 Jun 2021 22:45:30 GMT" ], "Content-Length": [ - "76" + "75" ], "Content-Type": [ "application/json; charset=utf-8" @@ -696,20 +756,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-11-03T04:26:03.863Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T22:45:30.47Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/df2fe6b7-22ce-4225-81a2-a8d11a546fff?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2RmMmZlNmI3LTIyY2UtNDIyNS04MWEyLWE4ZDExYTU0NmZmZj9hcGktdmVyc2lvbj0yMDIwLTA4LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/9594a04b-fe6e-44a1-acd3-bfeac62d4f1e?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vOTU5NGEwNGItZmU2ZS00NGExLWFjZDMtYmZlYWM2MmQ0ZjFlP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -723,19 +783,19 @@ "15" ], "x-ms-request-id": [ - "2b58e403-62ca-4fa4-b230-87a8a8324272" + "bc9cfb12-167a-42de-ba82-ba2a76db61c3" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" + "11990" ], "x-ms-correlation-request-id": [ - "0c1c7f8f-ef59-4608-b4c5-b8e757906b67" + "6a4d65dc-18c4-45f5-9027-ef2b67db5799" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042619Z:0c1c7f8f-ef59-4608-b4c5-b8e757906b67" + "WESTUS:20210609T224545Z:6a4d65dc-18c4-45f5-9027-ef2b67db5799" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -744,10 +804,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:26:18 GMT" + "Wed, 09 Jun 2021 22:45:45 GMT" ], "Content-Length": [ - "108" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -756,20 +816,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"df2fe6b7-22ce-4225-81a2-a8d11a546fff\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:26:03.863Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"9594a04b-fe6e-44a1-acd3-bfeac62d4f1e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:45:30.47Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/df2fe6b7-22ce-4225-81a2-a8d11a546fff?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2RmMmZlNmI3LTIyY2UtNDIyNS04MWEyLWE4ZDExYTU0NmZmZj9hcGktdmVyc2lvbj0yMDIwLTA4LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/9594a04b-fe6e-44a1-acd3-bfeac62d4f1e?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vOTU5NGEwNGItZmU2ZS00NGExLWFjZDMtYmZlYWM2MmQ0ZjFlP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -783,19 +843,19 @@ "15" ], "x-ms-request-id": [ - "fc0e23b8-7616-4322-8c0f-43a451861736" + "2af0af9b-4825-4744-b8a3-b2b51b42a20a" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11990" + "11989" ], "x-ms-correlation-request-id": [ - "0203a061-96cb-4488-90e6-3f9c75557c18" + "e640c269-b613-4e16-a9c9-03d5a3294146" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042634Z:0203a061-96cb-4488-90e6-3f9c75557c18" + "WESTUS:20210609T224600Z:e640c269-b613-4e16-a9c9-03d5a3294146" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -804,10 +864,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:26:33 GMT" + "Wed, 09 Jun 2021 22:46:00 GMT" ], "Content-Length": [ - "108" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -816,20 +876,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"df2fe6b7-22ce-4225-81a2-a8d11a546fff\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:26:03.863Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"9594a04b-fe6e-44a1-acd3-bfeac62d4f1e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:45:30.47Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/df2fe6b7-22ce-4225-81a2-a8d11a546fff?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2RmMmZlNmI3LTIyY2UtNDIyNS04MWEyLWE4ZDExYTU0NmZmZj9hcGktdmVyc2lvbj0yMDIwLTA4LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/9594a04b-fe6e-44a1-acd3-bfeac62d4f1e?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vOTU5NGEwNGItZmU2ZS00NGExLWFjZDMtYmZlYWM2MmQ0ZjFlP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -843,19 +903,19 @@ "15" ], "x-ms-request-id": [ - "6d872c2d-2211-4aca-9c4f-bbeb5ea60f87" + "28ba0e8e-f133-48b6-b860-eaf9a21f894b" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" + "11988" ], "x-ms-correlation-request-id": [ - "097182f0-1133-4731-8214-89ecf6081ab9" + "5b03aa9b-83d7-4668-bd2f-ef5f98fbaf50" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042649Z:097182f0-1133-4731-8214-89ecf6081ab9" + "WESTUS:20210609T224616Z:5b03aa9b-83d7-4668-bd2f-ef5f98fbaf50" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -864,10 +924,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:26:48 GMT" + "Wed, 09 Jun 2021 22:46:15 GMT" ], "Content-Length": [ - "108" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -876,20 +936,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"df2fe6b7-22ce-4225-81a2-a8d11a546fff\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:26:03.863Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"9594a04b-fe6e-44a1-acd3-bfeac62d4f1e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:45:30.47Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/df2fe6b7-22ce-4225-81a2-a8d11a546fff?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2RmMmZlNmI3LTIyY2UtNDIyNS04MWEyLWE4ZDExYTU0NmZmZj9hcGktdmVyc2lvbj0yMDIwLTA4LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/9594a04b-fe6e-44a1-acd3-bfeac62d4f1e?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vOTU5NGEwNGItZmU2ZS00NGExLWFjZDMtYmZlYWM2MmQ0ZjFlP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -903,19 +963,19 @@ "15" ], "x-ms-request-id": [ - "c5286212-64b2-4515-a166-e18ddd2dd07d" + "437f231e-03d7-4eec-bd0b-11d4318a0cf7" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11988" + "11987" ], "x-ms-correlation-request-id": [ - "d217af4c-da79-47f1-b9e0-f48bda709d78" + "19881cfd-9abf-4ac5-83d9-9e0c4461baaf" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042704Z:d217af4c-da79-47f1-b9e0-f48bda709d78" + "WESTUS:20210609T224631Z:19881cfd-9abf-4ac5-83d9-9e0c4461baaf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -924,10 +984,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:03 GMT" + "Wed, 09 Jun 2021 22:46:30 GMT" ], "Content-Length": [ - "108" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -936,20 +996,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"df2fe6b7-22ce-4225-81a2-a8d11a546fff\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:26:03.863Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"9594a04b-fe6e-44a1-acd3-bfeac62d4f1e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:45:30.47Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/df2fe6b7-22ce-4225-81a2-a8d11a546fff?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL2xvY2F0aW9ucy9lYXN0dXMvZGF0YWJhc2VBenVyZUFzeW5jT3BlcmF0aW9uL2RmMmZlNmI3LTIyY2UtNDIyNS04MWEyLWE4ZDExYTU0NmZmZj9hcGktdmVyc2lvbj0yMDIwLTA4LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/9594a04b-fe6e-44a1-acd3-bfeac62d4f1e?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vOTU5NGEwNGItZmU2ZS00NGExLWFjZDMtYmZlYWM2MmQ0ZjFlP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -963,19 +1023,19 @@ "15" ], "x-ms-request-id": [ - "187c4da1-1ad4-47af-a864-964626e9d924" + "4122d4a0-ba3a-44a3-b773-f2f6ca37bf14" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11987" + "11986" ], "x-ms-correlation-request-id": [ - "1428aba2-8368-4a04-86dc-6ae1449c1a35" + "63508dfd-18f4-4498-bb54-acedabbd2847" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042719Z:1428aba2-8368-4a04-86dc-6ae1449c1a35" + "WESTUS:20210609T224646Z:63508dfd-18f4-4498-bb54-acedabbd2847" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -984,7 +1044,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:18 GMT" + "Wed, 09 Jun 2021 22:46:46 GMT" ], "Content-Length": [ "107" @@ -996,20 +1056,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"df2fe6b7-22ce-4225-81a2-a8d11a546fff\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-11-03T04:26:03.863Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"9594a04b-fe6e-44a1-acd3-bfeac62d4f1e\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:45:30.47Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159/databases/sqlcrudtest-6749?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvc3FsY3J1ZHRlc3QtMTE1OS9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNjc0OT9hcGktdmVyc2lvbj0yMDIwLTA4LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/9594a04b-fe6e-44a1-acd3-bfeac62d4f1e?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vOTU5NGEwNGItZmU2ZS00NGExLWFjZDMtYmZlYWM2MmQ0ZjFlP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -1019,20 +1079,23 @@ "Pragma": [ "no-cache" ], + "Retry-After": [ + "15" + ], "x-ms-request-id": [ - "a65fad72-8218-43e5-b278-7e1e1b802ff8" + "f459f99e-4872-4825-8627-b444adbb0791" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11986" + "11985" ], "x-ms-correlation-request-id": [ - "ccda5aae-ec43-4932-9ad6-952626fe1d6d" + "9dd0cf0b-7584-4f9c-8cb0-0927f6d6240f" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042719Z:ccda5aae-ec43-4932-9ad6-952626fe1d6d" + "WESTUS:20210609T224701Z:9dd0cf0b-7584-4f9c-8cb0-0927f6d6240f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1041,10 +1104,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:19 GMT" + "Wed, 09 Jun 2021 22:47:01 GMT" ], "Content-Length": [ - "870" + "106" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1053,26 +1116,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 536870912000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"ff8eaf40-edf7-47dd-908f-cae699603043\",\r\n \"creationDate\": \"2020-11-03T04:27:06.457Z\",\r\n \"currentServiceObjectiveName\": \"P1\",\r\n \"requestedServiceObjectiveName\": \"P1\",\r\n \"defaultSecondaryLocation\": \"westus\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2020-11-03T04:57:06.457Z\",\r\n \"readScale\": \"Enabled\",\r\n \"currentSku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159/databases/sqlcrudtest-6749\",\r\n \"name\": \"sqlcrudtest-6749\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"9594a04b-fe6e-44a1-acd3-bfeac62d4f1e\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-06-09T22:45:30.47Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159/databases/sqlcrudtest-6749/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvc3FsY3J1ZHRlc3QtMTE1OS9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNjc0OS9iYWNrdXBTaG9ydFRlcm1SZXRlbnRpb25Qb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDE0P2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "x-ms-client-request-id": [ - "a253aa6d-d3b2-4888-8e5f-bce7780ac0db" - ], - "Accept-Language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -1083,19 +1140,19 @@ "no-cache" ], "x-ms-request-id": [ - "2cd34aa7-595c-486f-981a-bff31002cd12" + "cb04522e-69f3-4993-ab88-6921f26858d3" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11985" + "11984" ], "x-ms-correlation-request-id": [ - "6b30dcc7-18b8-44e2-afde-1c2e284414ec" + "800cc58c-2bbd-4abb-b424-7bf805d29e85" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042720Z:6b30dcc7-18b8-44e2-afde-1c2e284414ec" + "WESTUS:20210609T224701Z:800cc58c-2bbd-4abb-b424-7bf805d29e85" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1104,10 +1161,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:19 GMT" + "Wed, 09 Jun 2021 22:47:01 GMT" ], "Content-Length": [ - "331" + "1086" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1116,26 +1173,32 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159/databases/sqlcrudtest-6749/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 536870912000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"158aadef-375f-40a3-ba15-0bbba9445c52\",\r\n \"creationDate\": \"2021-06-09T22:46:55.55Z\",\r\n \"currentServiceObjectiveName\": \"P1\",\r\n \"requestedServiceObjectiveName\": \"P1\",\r\n \"defaultSecondaryLocation\": \"westus\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"readScale\": \"Enabled\",\r\n \"currentSku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"currentBackupStorageRedundancy\": \"Geo\",\r\n \"requestedBackupStorageRedundancy\": \"Geo\",\r\n \"maintenanceConfigurationId\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default\",\r\n \"isLedgerOn\": false,\r\n \"isInfraEncryptionEnabled\": false\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014\",\r\n \"name\": \"sqlcrudtest-5014\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159/databases/sqlcrudtest-6749/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvc3FsY3J1ZHRlc3QtMTE1OS9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNjc0OS9iYWNrdXBTaG9ydFRlcm1SZXRlbnRpb25Qb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDE0L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 40,\r\n \"diffBackupIntervalInHours\": 12\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "fa73c737-63fc-4ff4-8b0f-fd10bbe2f169" + "d9e47406-7370-4e51-8140-82777e1d6876" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "91" ] }, "ResponseHeaders": { @@ -1146,19 +1209,19 @@ "no-cache" ], "x-ms-request-id": [ - "aaf352db-cefa-4ebc-a9ad-1cc90c61913d" + "8b6b7eae-8a99-4cd9-8074-8482d2e0a3bc" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11984" + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" ], "x-ms-correlation-request-id": [ - "03fdef8e-ec24-4f50-9dd4-0058d652eb2d" + "1f06420b-0a7e-4dfb-aab4-782253b19938" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042723Z:03fdef8e-ec24-4f50-9dd4-0058d652eb2d" + "WESTUS:20210609T224701Z:1f06420b-0a7e-4dfb-aab4-782253b19938" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1167,10 +1230,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:22 GMT" + "Wed, 09 Jun 2021 22:47:01 GMT" ], "Content-Length": [ - "331" + "172" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1179,26 +1242,32 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159/databases/sqlcrudtest-6749/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", - "StatusCode": 200 + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"InvalidBackupRetentionPeriod\",\r\n \"message\": \"The retention days of 40 is not a valid configuration. Valid backup retention in days must be between 1 and 35\"\r\n }\r\n}", + "StatusCode": 400 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159/databases/sqlcrudtest-6749/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvc3FsY3J1ZHRlc3QtMTE1OS9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNjc0OS9iYWNrdXBTaG9ydFRlcm1SZXRlbnRpb25Qb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDE0L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35,\r\n \"diffBackupIntervalInHours\": 6\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "a281e7a1-a39a-42d3-a3bb-cb6d7973f91a" + "4e03bc32-7383-405c-9691-88ff449171d6" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "90" ] }, "ResponseHeaders": { @@ -1209,19 +1278,19 @@ "no-cache" ], "x-ms-request-id": [ - "c2b655d2-7bcc-4362-a35f-7071df812995" + "3f7b394d-cd8a-4c58-bb9e-a0dd38b59505" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11983" + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" ], "x-ms-correlation-request-id": [ - "5a23a57a-375e-4b02-9feb-0599b50addb1" + "ea60a910-33a3-4d58-9416-83230be7e24f" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042726Z:5a23a57a-375e-4b02-9feb-0599b50addb1" + "WESTUS:20210609T224704Z:ea60a910-33a3-4d58-9416-83230be7e24f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1230,10 +1299,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:25 GMT" + "Wed, 09 Jun 2021 22:47:04 GMT" ], "Content-Length": [ - "332" + "196" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1242,32 +1311,32 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159/databases/sqlcrudtest-6749/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", - "StatusCode": 200 + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"InvalidDiffBackupIntervalHours\",\r\n \"message\": \"The differential backup interval hours of 6 is not a valid configuration. Valid differential backup interval must be 12 or 24 hours.\"\r\n }\r\n}", + "StatusCode": 400 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159/databases/sqlcrudtest-6749/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvc3FsY3J1ZHRlc3QtMTE1OS9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNjc0OS9iYWNrdXBTaG9ydFRlcm1SZXRlbnRpb25Qb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDE0L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 36\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35,\r\n \"diffBackupIntervalInHours\": 24\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "b4483d74-f0bc-4058-ae1e-984e06a78b4f" + "982a95b6-9450-4bd7-8191-5aa912889666" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "53" + "91" ] }, "ResponseHeaders": { @@ -1277,20 +1346,29 @@ "Pragma": [ "no-cache" ], + "Location": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/ab183b50-ce5e-485e-8605-7c8e7f0f0110?api-version=2021-02-01-preview" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/ab183b50-ce5e-485e-8605-7c8e7f0f0110?api-version=2021-02-01-preview" + ], "x-ms-request-id": [ - "c18b3651-93cf-4201-9515-31180d13d3b7" + "ab183b50-ce5e-485e-8605-7c8e7f0f0110" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1195" ], "x-ms-correlation-request-id": [ - "74efecf8-ab8c-4775-b2b1-772a58219143" + "8381021f-fa17-4f17-b9f4-21977f27b261" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042720Z:74efecf8-ab8c-4775-b2b1-772a58219143" + "WESTUS:20210609T224708Z:8381021f-fa17-4f17-b9f4-21977f27b261" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1299,10 +1377,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:19 GMT" + "Wed, 09 Jun 2021 22:47:08 GMT" ], "Content-Length": [ - "172" + "75" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1311,26 +1389,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"InvalidBackupRetentionPeriod\",\r\n \"message\": \"The retention days of 36 is not a valid configuration. Valid backup retention in days must be between 1 and 35\"\r\n }\r\n}", - "StatusCode": 400 + "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T22:47:08.05Z\"\r\n}", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/servers/sqlcrudtest-1159/databases/sqlcrudtest-6749/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTg3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3FsL3NlcnZlcnMvc3FsY3J1ZHRlc3QtMTE1OS9kYXRhYmFzZXMvc3FsY3J1ZHRlc3QtNjc0OS9iYWNrdXBTaG9ydFRlcm1SZXRlbnRpb25Qb2xpY2llcy9kZWZhdWx0P2FwaS12ZXJzaW9uPTIwMTctMTAtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDE0L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 34\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "5770d31f-2ad8-424b-8f03-d26ac6425c44" + "39110ead-f759-40cd-8ce1-3e44e0570bb0" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1347,28 +1425,28 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/574180ae-446a-44fc-904e-889a1c4203e6?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/fe887697-4982-417c-8531-b7d6298a348a?api-version=2021-02-01-preview" ], "Retry-After": [ "15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-87/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/574180ae-446a-44fc-904e-889a1c4203e6?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/fe887697-4982-417c-8531-b7d6298a348a?api-version=2021-02-01-preview" ], "x-ms-request-id": [ - "574180ae-446a-44fc-904e-889a1c4203e6" + "fe887697-4982-417c-8531-b7d6298a348a" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1194" ], "x-ms-correlation-request-id": [ - "caeac368-3fd0-4eb4-a376-de4dee9e71d9" + "68d63f33-a324-4ad9-8de5-6539fae6fa56" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042723Z:caeac368-3fd0-4eb4-a376-de4dee9e71d9" + "WESTUS:20210609T224712Z:68d63f33-a324-4ad9-8de5-6539fae6fa56" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1377,7 +1455,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:22 GMT" + "Wed, 09 Jun 2021 22:47:12 GMT" ], "Content-Length": [ "76" @@ -1389,23 +1467,338 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2020-11-03T04:27:23.427Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T22:47:12.017Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-87?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTg3P2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDE0L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "07bb81cd-bc10-4aec-be74-db05a1d095e1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d7431efb-9c5e-45f4-9e1e-fae9726d18a8" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-correlation-request-id": [ + "806be660-c475-4601-bcf2-e8dc95e4960d" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T224704Z:806be660-c475-4601-bcf2-e8dc95e4960d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:47:04 GMT" + ], + "Content-Length": [ + "364" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7,\r\n \"diffBackupIntervalInHours\": 12\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDE0L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "02188d80-5618-4b9a-b4c2-05b3ed04bf5d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "f0edcd38-e32a-4f41-9411-a9add6f7c07b" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-correlation-request-id": [ + "a46ab5c9-94d1-4d82-bfb5-963d746df9bf" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T224707Z:a46ab5c9-94d1-4d82-bfb5-963d746df9bf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:47:07 GMT" + ], + "Content-Length": [ + "364" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7,\r\n \"diffBackupIntervalInHours\": 12\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDE0L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "72bc35a9-8b2e-4147-9e04-7cb865fec88b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "bf0a3862-9de7-404e-830c-98bc3c979ee0" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-correlation-request-id": [ + "018ed9ed-2883-4887-a412-c4610e0361e4" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T224711Z:018ed9ed-2883-4887-a412-c4610e0361e4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:47:11 GMT" + ], + "Content-Length": [ + "365" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35,\r\n \"diffBackupIntervalInHours\": 24\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDE0L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a745ccbb-cb0e-4381-935e-7a0e2241e2bd" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "98e9bbe4-3054-4bc5-927d-6c0429706649" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-correlation-request-id": [ + "9f16e26a-1d76-41ea-b3c7-3aa1f168e45a" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T224711Z:9f16e26a-1d76-41ea-b3c7-3aa1f168e45a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:47:11 GMT" + ], + "Content-Length": [ + "365" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35,\r\n \"diffBackupIntervalInHours\": 24\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3MjAvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03MjM3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01MDE0L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4f7acb13-4416-4b3e-ba35-258b9aa56daa" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "33b00c56-84e4-4754-b96d-2a4a3513b408" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-correlation-request-id": [ + "f27b2892-37c8-45f2-927c-4391bfb73115" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T224714Z:f27b2892-37c8-45f2-927c-4391bfb73115" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:47:14 GMT" + ], + "Content-Length": [ + "365" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 34,\r\n \"diffBackupIntervalInHours\": 24\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6720/providers/Microsoft.Sql/servers/sqlcrudtest-7237/databases/sqlcrudtest-5014/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-6720?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY3MjA/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8ae36c16-4069-4cb3-b7ab-ba6eea1cf668" + "3ac1803b-1fa5-4c35-973c-b7f5463dee8e" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" @@ -1419,7 +1812,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDg3LUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2017-05-10" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDY3MjAtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -1428,13 +1821,13 @@ "14999" ], "x-ms-request-id": [ - "e2c2777e-74ba-45c0-8fea-3a0a27cd9fb7" + "df6f9b89-f06c-48a2-a7b6-e02a505585b1" ], "x-ms-correlation-request-id": [ - "e2c2777e-74ba-45c0-8fea-3a0a27cd9fb7" + "df6f9b89-f06c-48a2-a7b6-e02a505585b1" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042727Z:e2c2777e-74ba-45c0-8fea-3a0a27cd9fb7" + "WESTCENTRALUS:20210609T224715Z:df6f9b89-f06c-48a2-a7b6-e02a505585b1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1443,7 +1836,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:26 GMT" + "Wed, 09 Jun 2021 22:47:14 GMT" ], "Expires": [ "-1" @@ -1458,17 +1851,17 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-87" + "sqlcrudtest-6720" ], "CreateServer": [ - "sqlcrudtest-1159" + "sqlcrudtest-7237" ], "TestShortTermRetentionPolicyOnGeneralPurpose": [ - "sqlcrudtest-6749" + "sqlcrudtest-5014" ] }, "Variables": { - "SubscriptionId": "dc1789a8-0762-4dfb-8901-4c0da08b83d3", - "DefaultLocation": "eastus" + "DefaultLocation": "eastus", + "SubscriptionId": "dc1789a8-0762-4dfb-8901-4c0da08b83d3" } } \ No newline at end of file diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnGeneralPurposeScriptUse.json b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnGeneralPurposeScriptUse.json index f10822545e60..8407baa47c17 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnGeneralPurposeScriptUse.json +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnGeneralPurposeScriptUse.json @@ -1,19 +1,19 @@ { "Entries": [ { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-8273?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgyNzM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-3062?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMwNjI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-8273\": \"2020-11-03 05:11:40Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-3062\": \"2021-06-09 23:42:46Z\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "fb2954bd-a357-45be-8369-a3e91f200f22" + "a84c58c4-3b5b-449c-8d31-89b8d6f6365d" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" @@ -36,13 +36,13 @@ "1199" ], "x-ms-request-id": [ - "71bf3044-7c32-4394-bfbd-2988074fe98c" + "a73bc0a4-be04-40a4-a6d5-c59691b53d21" ], "x-ms-correlation-request-id": [ - "71bf3044-7c32-4394-bfbd-2988074fe98c" + "a73bc0a4-be04-40a4-a6d5-c59691b53d21" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051142Z:71bf3044-7c32-4394-bfbd-2988074fe98c" + "WESTUS:20210609T234248Z:a73bc0a4-be04-40a4-a6d5-c59691b53d21" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -51,7 +51,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:11:41 GMT" + "Wed, 09 Jun 2021 23:42:47 GMT" ], "Content-Length": [ "236" @@ -63,26 +63,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273\",\r\n \"name\": \"sqlcrudtest-8273\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-8273\": \"2020-11-03 05:11:40Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062\",\r\n \"name\": \"sqlcrudtest-3062\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-3062\": \"2021-06-09 23:42:46Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/servers/sqlcrudtest-5849?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01ODQ5P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODg2P2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {}\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "820bd515-86f2-4bac-bfea-6043d2710934" + "aa3a882c-7ffb-42ab-a6cf-100ffa7d162e" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -99,16 +99,16 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/serverOperationResults/e2b7bc65-1162-479d-85c2-bba945af2cf2?api-version=2019-06-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/serverOperationResults/1ecae72a-4660-445b-8f0e-0c99406b6d63?api-version=2020-11-01-preview" ], "Retry-After": [ "1" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/e2b7bc65-1162-479d-85c2-bba945af2cf2?api-version=2019-06-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/1ecae72a-4660-445b-8f0e-0c99406b6d63?api-version=2020-11-01-preview" ], "x-ms-request-id": [ - "e2b7bc65-1162-479d-85c2-bba945af2cf2" + "1ecae72a-4660-445b-8f0e-0c99406b6d63" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -117,10 +117,10 @@ "1199" ], "x-ms-correlation-request-id": [ - "daa7d917-ed56-49ec-aada-887e5301e7cd" + "ff277c8f-174c-4204-980e-d9d38569b7fe" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051144Z:daa7d917-ed56-49ec-aada-887e5301e7cd" + "WESTUS:20210609T234251Z:ff277c8f-174c-4204-980e-d9d38569b7fe" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -129,10 +129,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:11:44 GMT" + "Wed, 09 Jun 2021 23:42:51 GMT" ], "Content-Length": [ - "73" + "74" ], "Content-Type": [ "application/json; charset=utf-8" @@ -141,20 +141,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2020-11-03T05:11:44.43Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2021-06-09T23:42:51.697Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/e2b7bc65-1162-479d-85c2-bba945af2cf2?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2UyYjdiYzY1LTExNjItNDc5ZC04NWMyLWJiYTk0NWFmMmNmMj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/1ecae72a-4660-445b-8f0e-0c99406b6d63?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzFlY2FlNzJhLTQ2NjAtNDQ1Yi04ZjBlLTBjOTk0MDZiNmQ2Mz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -168,7 +168,7 @@ "1" ], "x-ms-request-id": [ - "44d389d7-42a6-47e7-9ee4-45d9edf70626" + "0c53623d-3671-44a9-9984-e47e8bae56ff" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -177,10 +177,10 @@ "11999" ], "x-ms-correlation-request-id": [ - "84da3548-5aaf-47c8-8e35-bfbcc6a89678" + "c0210941-c47e-4bb8-bbdc-ae68d75ddce4" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051145Z:84da3548-5aaf-47c8-8e35-bfbcc6a89678" + "WESTUS:20210609T234253Z:c0210941-c47e-4bb8-bbdc-ae68d75ddce4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -189,10 +189,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:11:45 GMT" + "Wed, 09 Jun 2021 23:42:52 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -201,20 +201,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"e2b7bc65-1162-479d-85c2-bba945af2cf2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:11:44.43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"1ecae72a-4660-445b-8f0e-0c99406b6d63\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:42:51.697Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/e2b7bc65-1162-479d-85c2-bba945af2cf2?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2UyYjdiYzY1LTExNjItNDc5ZC04NWMyLWJiYTk0NWFmMmNmMj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/1ecae72a-4660-445b-8f0e-0c99406b6d63?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzFlY2FlNzJhLTQ2NjAtNDQ1Yi04ZjBlLTBjOTk0MDZiNmQ2Mz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -228,7 +228,7 @@ "1" ], "x-ms-request-id": [ - "45f4d3f9-0b61-4724-9355-2500c252462c" + "3e721dd1-4e15-4edd-a272-d20f12b15169" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -237,10 +237,10 @@ "11998" ], "x-ms-correlation-request-id": [ - "6fc12aa8-9d28-4cf4-a7af-dda3d772fd35" + "49efde6e-d617-4a06-b320-0bcc4869961a" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051147Z:6fc12aa8-9d28-4cf4-a7af-dda3d772fd35" + "WESTUS:20210609T234254Z:49efde6e-d617-4a06-b320-0bcc4869961a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -249,10 +249,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:11:46 GMT" + "Wed, 09 Jun 2021 23:42:53 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -261,20 +261,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"e2b7bc65-1162-479d-85c2-bba945af2cf2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:11:44.43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"1ecae72a-4660-445b-8f0e-0c99406b6d63\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:42:51.697Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/e2b7bc65-1162-479d-85c2-bba945af2cf2?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2UyYjdiYzY1LTExNjItNDc5ZC04NWMyLWJiYTk0NWFmMmNmMj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/1ecae72a-4660-445b-8f0e-0c99406b6d63?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzFlY2FlNzJhLTQ2NjAtNDQ1Yi04ZjBlLTBjOTk0MDZiNmQ2Mz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -288,7 +288,7 @@ "1" ], "x-ms-request-id": [ - "b7716733-491c-4ce2-b2bb-5cc21146a51a" + "6eb1bc07-a31c-4e40-aa00-6f506f8923da" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -297,10 +297,10 @@ "11997" ], "x-ms-correlation-request-id": [ - "69381f26-cfe1-4879-bb32-668de80d254c" + "947ecae3-65ce-4cf4-ba88-bb13c00f6819" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051148Z:69381f26-cfe1-4879-bb32-668de80d254c" + "WESTUS:20210609T234255Z:947ecae3-65ce-4cf4-ba88-bb13c00f6819" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -309,10 +309,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:11:48 GMT" + "Wed, 09 Jun 2021 23:42:54 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -321,20 +321,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"e2b7bc65-1162-479d-85c2-bba945af2cf2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:11:44.43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"1ecae72a-4660-445b-8f0e-0c99406b6d63\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:42:51.697Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/e2b7bc65-1162-479d-85c2-bba945af2cf2?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2UyYjdiYzY1LTExNjItNDc5ZC04NWMyLWJiYTk0NWFmMmNmMj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/1ecae72a-4660-445b-8f0e-0c99406b6d63?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzFlY2FlNzJhLTQ2NjAtNDQ1Yi04ZjBlLTBjOTk0MDZiNmQ2Mz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -348,7 +348,7 @@ "1" ], "x-ms-request-id": [ - "38cb53a6-b453-42b2-b6e1-9e8deca7a3eb" + "b27365be-bc1a-46d8-9856-6ef4e853efd6" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -357,10 +357,10 @@ "11996" ], "x-ms-correlation-request-id": [ - "3eb207fa-127f-4be8-a368-0dbb2342e3b8" + "b1cc4b7f-3e47-4595-aabf-596c7b9bca2b" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051149Z:3eb207fa-127f-4be8-a368-0dbb2342e3b8" + "WESTUS:20210609T234256Z:b1cc4b7f-3e47-4595-aabf-596c7b9bca2b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -369,10 +369,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:11:49 GMT" + "Wed, 09 Jun 2021 23:42:56 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -381,20 +381,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"e2b7bc65-1162-479d-85c2-bba945af2cf2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:11:44.43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"1ecae72a-4660-445b-8f0e-0c99406b6d63\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:42:51.697Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/e2b7bc65-1162-479d-85c2-bba945af2cf2?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2UyYjdiYzY1LTExNjItNDc5ZC04NWMyLWJiYTk0NWFmMmNmMj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/1ecae72a-4660-445b-8f0e-0c99406b6d63?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzFlY2FlNzJhLTQ2NjAtNDQ1Yi04ZjBlLTBjOTk0MDZiNmQ2Mz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -408,7 +408,7 @@ "20" ], "x-ms-request-id": [ - "b5d6378c-219e-40f9-bbae-d90c8b0d0773" + "1d051e08-52db-4cf7-b516-4ba788fe6f81" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -417,10 +417,10 @@ "11995" ], "x-ms-correlation-request-id": [ - "74eb237f-1cec-4431-960b-2865bf41d198" + "52504d44-d597-482a-8a4d-451daf0c5696" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051150Z:74eb237f-1cec-4431-960b-2865bf41d198" + "WESTUS:20210609T234257Z:52504d44-d597-482a-8a4d-451daf0c5696" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -429,10 +429,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:11:50 GMT" + "Wed, 09 Jun 2021 23:42:57 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -441,20 +441,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"e2b7bc65-1162-479d-85c2-bba945af2cf2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:11:44.43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"1ecae72a-4660-445b-8f0e-0c99406b6d63\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:42:51.697Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/e2b7bc65-1162-479d-85c2-bba945af2cf2?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2UyYjdiYzY1LTExNjItNDc5ZC04NWMyLWJiYTk0NWFmMmNmMj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/1ecae72a-4660-445b-8f0e-0c99406b6d63?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzFlY2FlNzJhLTQ2NjAtNDQ1Yi04ZjBlLTBjOTk0MDZiNmQ2Mz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -468,7 +468,7 @@ "20" ], "x-ms-request-id": [ - "05dc2aa7-a751-4247-bca8-66eaaf809edf" + "efea3d78-34da-4125-92d0-5a8fb7745b47" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -477,10 +477,10 @@ "11994" ], "x-ms-correlation-request-id": [ - "1b2c26bd-5dfe-4a33-8166-7febf17553a9" + "3ba57fab-5282-4a68-a185-852f5daff14f" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051210Z:1b2c26bd-5dfe-4a33-8166-7febf17553a9" + "WESTUS:20210609T234317Z:3ba57fab-5282-4a68-a185-852f5daff14f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -489,10 +489,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:12:10 GMT" + "Wed, 09 Jun 2021 23:43:17 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -501,20 +501,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"e2b7bc65-1162-479d-85c2-bba945af2cf2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:11:44.43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"1ecae72a-4660-445b-8f0e-0c99406b6d63\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:42:51.697Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/e2b7bc65-1162-479d-85c2-bba945af2cf2?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2UyYjdiYzY1LTExNjItNDc5ZC04NWMyLWJiYTk0NWFmMmNmMj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/1ecae72a-4660-445b-8f0e-0c99406b6d63?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzFlY2FlNzJhLTQ2NjAtNDQ1Yi04ZjBlLTBjOTk0MDZiNmQ2Mz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -528,7 +528,7 @@ "20" ], "x-ms-request-id": [ - "550ab524-bdfb-4c84-8eac-00d01b12b0c9" + "77b254d4-2ed2-436d-9ed4-445061924599" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -537,10 +537,10 @@ "11993" ], "x-ms-correlation-request-id": [ - "adab5b94-f464-456d-bd3f-94e08087c280" + "31d4f9cb-5963-4ecb-b8d6-d70c3bebc1a8" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051232Z:adab5b94-f464-456d-bd3f-94e08087c280" + "WESTUS:20210609T234337Z:31d4f9cb-5963-4ecb-b8d6-d70c3bebc1a8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -549,10 +549,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:12:32 GMT" + "Wed, 09 Jun 2021 23:43:36 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -561,20 +561,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"e2b7bc65-1162-479d-85c2-bba945af2cf2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:11:44.43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"1ecae72a-4660-445b-8f0e-0c99406b6d63\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:42:51.697Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/e2b7bc65-1162-479d-85c2-bba945af2cf2?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2UyYjdiYzY1LTExNjItNDc5ZC04NWMyLWJiYTk0NWFmMmNmMj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/1ecae72a-4660-445b-8f0e-0c99406b6d63?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzFlY2FlNzJhLTQ2NjAtNDQ1Yi04ZjBlLTBjOTk0MDZiNmQ2Mz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -588,7 +588,7 @@ "15" ], "x-ms-request-id": [ - "cd394c2c-54c3-459a-8ea0-43a492262d62" + "8eaf0c6e-b4f2-4757-b476-f009855891d0" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -597,10 +597,10 @@ "11992" ], "x-ms-correlation-request-id": [ - "b26bfd91-f446-4da2-a999-c9c9d207bc5a" + "371c9d0b-6b05-4312-9974-86e2949e13f0" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051253Z:b26bfd91-f446-4da2-a999-c9c9d207bc5a" + "WESTUS:20210609T234357Z:371c9d0b-6b05-4312-9974-86e2949e13f0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -609,10 +609,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:12:53 GMT" + "Wed, 09 Jun 2021 23:43:57 GMT" ], "Content-Length": [ - "106" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -621,20 +621,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"e2b7bc65-1162-479d-85c2-bba945af2cf2\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-11-03T05:11:44.43Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"1ecae72a-4660-445b-8f0e-0c99406b6d63\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-06-09T23:42:51.697Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/servers/sqlcrudtest-5849?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01ODQ5P2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODg2P2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -645,7 +645,7 @@ "no-cache" ], "x-ms-request-id": [ - "31955c9b-6788-4463-a586-03f36293bf5e" + "3b7ffa51-ff89-40e9-ba71-1ef513ea5d07" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -654,10 +654,10 @@ "11991" ], "x-ms-correlation-request-id": [ - "1be1f4b6-7cb9-448f-bef0-34bc03f8b074" + "14ac0156-c1c5-4b88-af4e-97e798c675b5" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051253Z:1be1f4b6-7cb9-448f-bef0-34bc03f8b074" + "WESTUS:20210609T234358Z:14ac0156-c1c5-4b88-af4e-97e798c675b5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -666,7 +666,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:12:53 GMT" + "Wed, 09 Jun 2021 23:43:57 GMT" ], "Content-Length": [ "456" @@ -678,26 +678,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-5849.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/servers/sqlcrudtest-5849\",\r\n \"name\": \"sqlcrudtest-5849\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-9886.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886\",\r\n \"name\": \"sqlcrudtest-9886\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/servers/sqlcrudtest-5849/databases/sqlcrudtest-576?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01ODQ5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01NzY/YXBpLXZlcnNpb249MjAyMC0wOC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886/databases/sqlcrudtest-9405?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODg2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDA1P2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"P1\"\r\n },\r\n \"location\": \"eastus\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "ca7ab652-a2ee-4ead-8ce3-217c07aadab5" + "9543198d-e121-45f3-938a-fb258c5229d0" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -714,16 +714,16 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseOperationResults/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/databaseOperationResults/3358b594-4154-4a89-b4ab-f53aaf0d8ae2?api-version=2021-02-01-preview" ], "Retry-After": [ "15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/3358b594-4154-4a89-b4ab-f53aaf0d8ae2?api-version=2021-02-01-preview" ], "x-ms-request-id": [ - "f44b8b24-4d88-4674-80bf-448be1ebc40c" + "3358b594-4154-4a89-b4ab-f53aaf0d8ae2" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -732,10 +732,10 @@ "1198" ], "x-ms-correlation-request-id": [ - "84ededae-978d-4ced-92aa-f99671f894ea" + "4e870e6b-590c-40cc-8d49-a3b77912237a" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051258Z:84ededae-978d-4ced-92aa-f99671f894ea" + "WESTUS:20210609T234400Z:4e870e6b-590c-40cc-8d49-a3b77912237a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -744,7 +744,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:12:58 GMT" + "Wed, 09 Jun 2021 23:43:59 GMT" ], "Content-Length": [ "76" @@ -756,20 +756,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T23:44:00.073Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/3358b594-4154-4a89-b4ab-f53aaf0d8ae2?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMzM1OGI1OTQtNDE1NC00YTg5LWI0YWItZjUzYWFmMGQ4YWUyP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -783,7 +783,7 @@ "15" ], "x-ms-request-id": [ - "2c0fd1f5-fe0b-4980-a529-0c293672c21c" + "21e4c97a-8726-4a0c-bbbd-e0f6e2c763d2" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -792,10 +792,10 @@ "11990" ], "x-ms-correlation-request-id": [ - "7fb18fa4-9b84-43ef-80f9-d1cfbe0da17f" + "92455e61-e483-437b-9e8f-3e1d7f9177bd" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051313Z:7fb18fa4-9b84-43ef-80f9-d1cfbe0da17f" + "WESTUS:20210609T234415Z:92455e61-e483-437b-9e8f-3e1d7f9177bd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -804,7 +804,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:13:13 GMT" + "Wed, 09 Jun 2021 23:44:15 GMT" ], "Content-Length": [ "108" @@ -816,20 +816,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"3358b594-4154-4a89-b4ab-f53aaf0d8ae2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:44:00.073Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/3358b594-4154-4a89-b4ab-f53aaf0d8ae2?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMzM1OGI1OTQtNDE1NC00YTg5LWI0YWItZjUzYWFmMGQ4YWUyP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -843,7 +843,7 @@ "15" ], "x-ms-request-id": [ - "aae03a63-9ec2-49d1-8aab-5145bf9b6715" + "98958afd-ec13-4e7a-ab94-73fd5605aaa7" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -852,10 +852,10 @@ "11989" ], "x-ms-correlation-request-id": [ - "57ef44d3-faf4-4dfd-b05c-2199b7d53329" + "81de62ae-7d18-4bb0-a0c0-a912623eb6ab" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051328Z:57ef44d3-faf4-4dfd-b05c-2199b7d53329" + "WESTUS:20210609T234430Z:81de62ae-7d18-4bb0-a0c0-a912623eb6ab" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -864,7 +864,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:13:28 GMT" + "Wed, 09 Jun 2021 23:44:30 GMT" ], "Content-Length": [ "108" @@ -876,20 +876,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"3358b594-4154-4a89-b4ab-f53aaf0d8ae2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:44:00.073Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/3358b594-4154-4a89-b4ab-f53aaf0d8ae2?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMzM1OGI1OTQtNDE1NC00YTg5LWI0YWItZjUzYWFmMGQ4YWUyP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -903,7 +903,7 @@ "15" ], "x-ms-request-id": [ - "f7037026-9556-4318-86bb-901ed7586bd0" + "71de4538-d51b-4ce3-bc10-f545479a45ab" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -912,10 +912,10 @@ "11988" ], "x-ms-correlation-request-id": [ - "d068abc1-1aaa-4112-8199-742004b137b1" + "e9fe7bc2-3ae3-404c-abf7-88d3360000b1" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051344Z:d068abc1-1aaa-4112-8199-742004b137b1" + "WESTUS:20210609T234445Z:e9fe7bc2-3ae3-404c-abf7-88d3360000b1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -924,7 +924,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:13:43 GMT" + "Wed, 09 Jun 2021 23:44:45 GMT" ], "Content-Length": [ "108" @@ -936,20 +936,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"3358b594-4154-4a89-b4ab-f53aaf0d8ae2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:44:00.073Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/3358b594-4154-4a89-b4ab-f53aaf0d8ae2?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMzM1OGI1OTQtNDE1NC00YTg5LWI0YWItZjUzYWFmMGQ4YWUyP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -963,7 +963,7 @@ "15" ], "x-ms-request-id": [ - "cb9752a9-a95d-4620-bc73-afe0f0601d60" + "bbff2b77-5b75-4c2b-a019-0d56b37cdffa" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -972,10 +972,10 @@ "11987" ], "x-ms-correlation-request-id": [ - "8802784b-76a2-4149-b30b-12d2032c9e5c" + "cdb92f2c-d3ed-4a2e-8608-507ffe8508eb" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051400Z:8802784b-76a2-4149-b30b-12d2032c9e5c" + "WESTUS:20210609T234500Z:cdb92f2c-d3ed-4a2e-8608-507ffe8508eb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -984,7 +984,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:13:59 GMT" + "Wed, 09 Jun 2021 23:45:00 GMT" ], "Content-Length": [ "108" @@ -996,20 +996,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"3358b594-4154-4a89-b4ab-f53aaf0d8ae2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:44:00.073Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/3358b594-4154-4a89-b4ab-f53aaf0d8ae2?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMzM1OGI1OTQtNDE1NC00YTg5LWI0YWItZjUzYWFmMGQ4YWUyP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -1023,7 +1023,7 @@ "15" ], "x-ms-request-id": [ - "ccb6ddfb-bda1-4519-9d83-56e565447149" + "97dd698e-677b-41c1-be6d-4a45d6c20b35" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1032,10 +1032,10 @@ "11986" ], "x-ms-correlation-request-id": [ - "181a12d9-538d-4138-a43f-bbcec23daec2" + "0ff16d92-af96-46f9-9a61-417b22d2304e" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051415Z:181a12d9-538d-4138-a43f-bbcec23daec2" + "WESTUS:20210609T234516Z:0ff16d92-af96-46f9-9a61-417b22d2304e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1044,7 +1044,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:14:15 GMT" + "Wed, 09 Jun 2021 23:45:15 GMT" ], "Content-Length": [ "108" @@ -1056,20 +1056,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"3358b594-4154-4a89-b4ab-f53aaf0d8ae2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:44:00.073Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/3358b594-4154-4a89-b4ab-f53aaf0d8ae2?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMzM1OGI1OTQtNDE1NC00YTg5LWI0YWItZjUzYWFmMGQ4YWUyP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -1083,7 +1083,7 @@ "15" ], "x-ms-request-id": [ - "082d295b-a42a-411b-ac56-b898836c3972" + "cfc21252-5065-489e-8451-d55cb3cfd2f4" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1092,10 +1092,10 @@ "11985" ], "x-ms-correlation-request-id": [ - "54e5fab8-f241-4b2a-a637-087f49226c4c" + "ccf05069-f54c-45bd-a9af-5b9164132a02" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051430Z:54e5fab8-f241-4b2a-a637-087f49226c4c" + "WESTUS:20210609T234531Z:ccf05069-f54c-45bd-a9af-5b9164132a02" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1104,7 +1104,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:14:30 GMT" + "Wed, 09 Jun 2021 23:45:30 GMT" ], "Content-Length": [ "108" @@ -1116,20 +1116,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"3358b594-4154-4a89-b4ab-f53aaf0d8ae2\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T23:44:00.073Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/3358b594-4154-4a89-b4ab-f53aaf0d8ae2?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vMzM1OGI1OTQtNDE1NC00YTg5LWI0YWItZjUzYWFmMGQ4YWUyP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -1143,7 +1143,7 @@ "15" ], "x-ms-request-id": [ - "27b5bf45-706b-4b23-83ff-bbb792d7391c" + "a7f8e6bc-fe70-41cd-953f-e2032cb5ce04" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1152,10 +1152,10 @@ "11984" ], "x-ms-correlation-request-id": [ - "5619123a-a04e-4846-8754-cfe740c4a223" + "64e11145-434d-4195-9a50-fa9d6cd42f60" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051445Z:5619123a-a04e-4846-8754-cfe740c4a223" + "WESTUS:20210609T234546Z:64e11145-434d-4195-9a50-fa9d6cd42f60" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1164,10 +1164,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:14:45 GMT" + "Wed, 09 Jun 2021 23:45:45 GMT" ], "Content-Length": [ - "108" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1176,20 +1176,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"3358b594-4154-4a89-b4ab-f53aaf0d8ae2\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-06-09T23:44:00.073Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886/databases/sqlcrudtest-9405?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODg2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDA1P2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -1199,11 +1199,8 @@ "Pragma": [ "no-cache" ], - "Retry-After": [ - "15" - ], "x-ms-request-id": [ - "8302baa5-e9b5-4ee6-976c-bb100a9cdba8" + "cf9eea78-ef41-4511-93a1-f7af9b214170" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1212,10 +1209,10 @@ "11983" ], "x-ms-correlation-request-id": [ - "2e84b9e8-d930-433d-9d9e-64a6ec1129cc" + "6950dcaf-fc9a-46f3-a7c4-c3175e3dc4d8" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051502Z:2e84b9e8-d930-433d-9d9e-64a6ec1129cc" + "WESTUS:20210609T234546Z:6950dcaf-fc9a-46f3-a7c4-c3175e3dc4d8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1224,10 +1221,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:15:02 GMT" + "Wed, 09 Jun 2021 23:45:45 GMT" ], "Content-Length": [ - "108" + "1086" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1236,20 +1233,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 536870912000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"aed72d18-0805-4c96-9181-757c988aeef9\",\r\n \"creationDate\": \"2021-06-09T23:45:29.48Z\",\r\n \"currentServiceObjectiveName\": \"P1\",\r\n \"requestedServiceObjectiveName\": \"P1\",\r\n \"defaultSecondaryLocation\": \"westus\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"readScale\": \"Enabled\",\r\n \"currentSku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"currentBackupStorageRedundancy\": \"Geo\",\r\n \"requestedBackupStorageRedundancy\": \"Geo\",\r\n \"maintenanceConfigurationId\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default\",\r\n \"isLedgerOn\": false,\r\n \"isInfraEncryptionEnabled\": false\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886/databases/sqlcrudtest-9405\",\r\n \"name\": \"sqlcrudtest-9405\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886/databases/sqlcrudtest-9405/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODg2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDA1L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "x-ms-client-request-id": [ + "96e9d579-70ec-4f01-9f9b-d22deb409430" + ], + "Accept-Language": [ + "en-US" + ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -1259,11 +1262,8 @@ "Pragma": [ "no-cache" ], - "Retry-After": [ - "15" - ], "x-ms-request-id": [ - "619cfa61-ec98-4605-afce-314ba6d0f33e" + "9d00a076-6e73-40ae-b156-a97a78b0b083" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1272,10 +1272,10 @@ "11982" ], "x-ms-correlation-request-id": [ - "3ece7b07-9f72-465d-997d-6e3f914468d5" + "7c7bf03d-2549-4b79-9341-86d1894e51fc" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051517Z:3ece7b07-9f72-465d-997d-6e3f914468d5" + "WESTUS:20210609T234546Z:7c7bf03d-2549-4b79-9341-86d1894e51fc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1284,10 +1284,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:15:17 GMT" + "Wed, 09 Jun 2021 23:45:45 GMT" ], "Content-Length": [ - "108" + "364" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1296,20 +1296,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7,\r\n \"diffBackupIntervalInHours\": 12\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886/databases/sqlcrudtest-9405/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886/databases/sqlcrudtest-9405/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODg2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDA1L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "x-ms-client-request-id": [ + "84dcb56e-9f3a-446b-91ab-06d1b1c49ea3" + ], + "Accept-Language": [ + "en-US" + ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -1319,11 +1325,8 @@ "Pragma": [ "no-cache" ], - "Retry-After": [ - "15" - ], "x-ms-request-id": [ - "a32e7785-aef2-4f55-9378-f13b9b285842" + "a7ffb3d7-2f94-4dd2-ac98-f8506fe7e4ab" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1332,10 +1335,10 @@ "11981" ], "x-ms-correlation-request-id": [ - "0504c175-b2de-456a-b2c9-b909a80c0f3e" + "0995aaf4-f127-45ce-bc64-7b00479da931" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051534Z:0504c175-b2de-456a-b2c9-b909a80c0f3e" + "WESTUS:20210609T234547Z:0995aaf4-f127-45ce-bc64-7b00479da931" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1344,10 +1347,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:15:33 GMT" + "Wed, 09 Jun 2021 23:45:46 GMT" ], "Content-Length": [ - "108" + "364" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1356,140 +1359,32 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7,\r\n \"diffBackupIntervalInHours\": 12\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886/databases/sqlcrudtest-9405/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886/databases/sqlcrudtest-9405/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODg2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDA1L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 28,\r\n \"diffBackupIntervalInHours\": 12\r\n }\r\n}", "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.29321.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "x-ms-request-id": [ - "2a8b205f-9288-4fc5-85dc-f07a270d0dbb" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11980" - ], - "x-ms-correlation-request-id": [ - "37f171a5-c691-4f21-a4d1-81eef62c583a" - ], - "x-ms-routing-request-id": [ - "WESTUS:20201103T051549Z:37f171a5-c691-4f21-a4d1-81eef62c583a" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 03 Nov 2020 05:15:48 GMT" - ], - "Content-Length": [ - "108" + "x-ms-client-request-id": [ + "f4bf3ddf-31c0-4e93-86d0-c04f9eb0a352" ], - "Content-Type": [ - "application/json; charset=utf-8" + "Accept-Language": [ + "en-US" ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "Retry-After": [ - "15" - ], - "x-ms-request-id": [ - "f27942d8-f083-40a0-956c-a825d5b7d840" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11979" - ], - "x-ms-correlation-request-id": [ - "57bc8bee-4810-4120-80a5-9cd5674061a1" - ], - "x-ms-routing-request-id": [ - "WESTUS:20201103T051604Z:57bc8bee-4810-4120-80a5-9cd5674061a1" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 03 Nov 2020 05:16:03 GMT" - ], - "Content-Length": [ - "108" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/f44b8b24-4d88-4674-80bf-448be1ebc40c?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZjQ0YjhiMjQtNGQ4OC00Njc0LTgwYmYtNDQ4YmUxZWJjNDBjP2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.29321.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Content-Length": [ + "91" ] }, "ResponseHeaders": { @@ -1499,80 +1394,29 @@ "Pragma": [ "no-cache" ], + "Location": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/55594d0f-0c02-4ece-a410-fb1dc3d7fab0?api-version=2021-02-01-preview" + ], "Retry-After": [ "15" ], - "x-ms-request-id": [ - "cbe9a6d3-7a4a-449b-b7f4-2b8f5ad420d0" - ], - "Server": [ - "Microsoft-HTTPAPI/2.0" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11978" - ], - "x-ms-correlation-request-id": [ - "f42647dd-3f89-4827-8800-6c3c6b30aedd" - ], - "x-ms-routing-request-id": [ - "WESTUS:20201103T051619Z:f42647dd-3f89-4827-8800-6c3c6b30aedd" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Tue, 03 Nov 2020 05:16:19 GMT" - ], - "Content-Length": [ - "107" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"name\": \"f44b8b24-4d88-4674-80bf-448be1ebc40c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-11-03T05:12:55.823Z\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/servers/sqlcrudtest-5849/databases/sqlcrudtest-576?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01ODQ5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01NzY/YXBpLXZlcnNpb249MjAyMC0wOC0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.29321.03", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/55594d0f-0c02-4ece-a410-fb1dc3d7fab0?api-version=2021-02-01-preview" ], "x-ms-request-id": [ - "381d6879-7f57-4ee7-ba6f-ce9ad8ed1e79" + "55594d0f-0c02-4ece-a410-fb1dc3d7fab0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11977" + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" ], "x-ms-correlation-request-id": [ - "7401f4ea-19f8-47e7-8e95-12048ebb1428" + "b1b4ed02-409e-4565-bd8d-d8cd7c3fa9b3" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051619Z:7401f4ea-19f8-47e7-8e95-12048ebb1428" + "WESTUS:20210609T234547Z:b1b4ed02-409e-4565-bd8d-d8cd7c3fa9b3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1581,10 +1425,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:16:19 GMT" + "Wed, 09 Jun 2021 23:45:46 GMT" ], "Content-Length": [ - "868" + "76" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1593,26 +1437,32 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 536870912000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"39ce02a2-67f4-43c9-beca-fe850008a755\",\r\n \"creationDate\": \"2020-11-03T05:16:08.78Z\",\r\n \"currentServiceObjectiveName\": \"P1\",\r\n \"requestedServiceObjectiveName\": \"P1\",\r\n \"defaultSecondaryLocation\": \"westus\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2020-11-03T05:46:08.78Z\",\r\n \"readScale\": \"Enabled\",\r\n \"currentSku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/servers/sqlcrudtest-5849/databases/sqlcrudtest-576\",\r\n \"name\": \"sqlcrudtest-576\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", - "StatusCode": 200 + "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T23:45:46.803Z\"\r\n}", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/servers/sqlcrudtest-5849/databases/sqlcrudtest-576/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01ODQ5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01NzYvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886/databases/sqlcrudtest-9405/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODg2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDA1L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 28,\r\n \"diffBackupIntervalInHours\": 24\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "62f9c8cc-69fc-4825-8a38-ff0bf7e99b68" + "ab367eeb-02c5-4600-9eac-856f213949d5" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "91" ] }, "ResponseHeaders": { @@ -1622,20 +1472,29 @@ "Pragma": [ "no-cache" ], + "Location": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/4affb0a9-36cf-40b3-aef2-cc11ad092168?api-version=2021-02-01-preview" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/4affb0a9-36cf-40b3-aef2-cc11ad092168?api-version=2021-02-01-preview" + ], "x-ms-request-id": [ - "4eee979f-803f-41b4-8a5c-b0ea3a77945d" + "4affb0a9-36cf-40b3-aef2-cc11ad092168" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11976" + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" ], "x-ms-correlation-request-id": [ - "9fdd48bc-2f40-41d3-ac5d-e632a536c0c4" + "0f0d94d5-9b43-43e7-a8e5-e29dd6949de2" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051620Z:9fdd48bc-2f40-41d3-ac5d-e632a536c0c4" + "WESTUS:20210609T234547Z:0f0d94d5-9b43-43e7-a8e5-e29dd6949de2" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1644,10 +1503,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:16:19 GMT" + "Wed, 09 Jun 2021 23:45:46 GMT" ], "Content-Length": [ - "332" + "76" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1656,32 +1515,32 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/servers/sqlcrudtest-5849/databases/sqlcrudtest-576/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", - "StatusCode": 200 + "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T23:45:47.257Z\"\r\n}", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/servers/sqlcrudtest-5849/databases/sqlcrudtest-576/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTgyNzMvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC01ODQ5L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01NzYvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDE3LTEwLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/servers/sqlcrudtest-9886/databases/sqlcrudtest-9405/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTMwNjIvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC05ODg2L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC05NDA1L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 28\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 15,\r\n \"diffBackupIntervalInHours\": 12\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "396a97cc-6e8f-476d-9a01-9dae89b14afc" + "8c1b2a30-3fbb-4725-8568-e9c03317c068" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "53" + "91" ] }, "ResponseHeaders": { @@ -1692,28 +1551,28 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/9c456bea-2bff-470a-ab48-41d085e38533?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/d918b777-ee11-4e6a-b812-eb2935e5878f?api-version=2021-02-01-preview" ], "Retry-After": [ "15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-8273/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/9c456bea-2bff-470a-ab48-41d085e38533?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-3062/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/d918b777-ee11-4e6a-b812-eb2935e5878f?api-version=2021-02-01-preview" ], "x-ms-request-id": [ - "9c456bea-2bff-470a-ab48-41d085e38533" + "d918b777-ee11-4e6a-b812-eb2935e5878f" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1195" ], "x-ms-correlation-request-id": [ - "cc405d65-e605-4908-9c57-450b2272f074" + "49356a67-20f6-4d2a-8711-f12bfbb1df20" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051620Z:cc405d65-e605-4908-9c57-450b2272f074" + "WESTUS:20210609T234549Z:49356a67-20f6-4d2a-8711-f12bfbb1df20" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1722,7 +1581,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:16:19 GMT" + "Wed, 09 Jun 2021 23:45:48 GMT" ], "Content-Length": [ "76" @@ -1734,23 +1593,23 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2020-11-03T05:16:20.303Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T23:45:49.133Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-8273?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTgyNzM/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-3062?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTMwNjI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "07352629-ecee-4b15-bc2c-d06d97fdb6e2" + "2d94e1ba-5762-44b4-8840-4af34fc1fe7d" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" @@ -1764,7 +1623,7 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDgyNzMtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDMwNjItRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" ], "Retry-After": [ "15" @@ -1773,13 +1632,13 @@ "14999" ], "x-ms-request-id": [ - "6e86644b-0458-454f-b841-dffa77d6b4d4" + "82afbc76-51da-4866-ae41-8c6195b49bf5" ], "x-ms-correlation-request-id": [ - "6e86644b-0458-454f-b841-dffa77d6b4d4" + "82afbc76-51da-4866-ae41-8c6195b49bf5" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T051622Z:6e86644b-0458-454f-b841-dffa77d6b4d4" + "WESTUS:20210609T234550Z:82afbc76-51da-4866-ae41-8c6195b49bf5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1788,7 +1647,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 05:16:22 GMT" + "Wed, 09 Jun 2021 23:45:50 GMT" ], "Expires": [ "-1" @@ -1803,13 +1662,13 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-8273" + "sqlcrudtest-3062" ], "CreateServer": [ - "sqlcrudtest-5849" + "sqlcrudtest-9886" ], "TestShortTermRetentionPolicyOnGeneralPurposeScriptUse": [ - "sqlcrudtest-576" + "sqlcrudtest-9405" ] }, "Variables": { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnPremium.json b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnPremium.json index ac7e7dafc3f0..95a9168b6211 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnPremium.json +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyOnPremium.json @@ -1,19 +1,19 @@ { "Entries": [ { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-4257?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTQyNTc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-6791?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY3OTE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-4257\": \"2020-11-03 04:27:46Z\"\r\n }\r\n}", + "RequestBody": "{\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-6791\": \"2021-06-09 22:37:43Z\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "284e2201-ad06-4e53-a952-00a1a3e27851" + "b4fdc800-7817-4f82-ba95-62d15e5d8630" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" @@ -36,13 +36,13 @@ "1199" ], "x-ms-request-id": [ - "979f3c99-82e4-4138-b92e-6652e002b768" + "0d9bf751-65d5-4db7-8f10-ef7e92ad2d47" ], "x-ms-correlation-request-id": [ - "979f3c99-82e4-4138-b92e-6652e002b768" + "0d9bf751-65d5-4db7-8f10-ef7e92ad2d47" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042748Z:979f3c99-82e4-4138-b92e-6652e002b768" + "WESTUS:20210609T223745Z:0d9bf751-65d5-4db7-8f10-ef7e92ad2d47" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -51,7 +51,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:47 GMT" + "Wed, 09 Jun 2021 22:37:45 GMT" ], "Content-Length": [ "236" @@ -63,26 +63,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257\",\r\n \"name\": \"sqlcrudtest-4257\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-4257\": \"2020-11-03 04:27:46Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791\",\r\n \"name\": \"sqlcrudtest-6791\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-6791\": \"2021-06-09 22:37:43Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODkzP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {}\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "e8d5bfe1-3cc8-464c-90a3-ca6824f05227" + "ed1c825e-58a8-49a1-96f9-dc7dbbed1fa3" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -99,16 +99,16 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/serverOperationResults/2a50715d-56d9-44c7-9040-18285e64d27f?api-version=2019-06-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/serverOperationResults/dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17?api-version=2020-11-01-preview" ], "Retry-After": [ "1" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/2a50715d-56d9-44c7-9040-18285e64d27f?api-version=2019-06-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17?api-version=2020-11-01-preview" ], "x-ms-request-id": [ - "2a50715d-56d9-44c7-9040-18285e64d27f" + "dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -117,10 +117,10 @@ "1199" ], "x-ms-correlation-request-id": [ - "911ad0d5-15a4-4c1e-9fc5-2a3a052286fa" + "3fdfbce8-f868-418a-8e83-e167a0a7ee13" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042750Z:911ad0d5-15a4-4c1e-9fc5-2a3a052286fa" + "WESTUS:20210609T223748Z:3fdfbce8-f868-418a-8e83-e167a0a7ee13" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -129,7 +129,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:49 GMT" + "Wed, 09 Jun 2021 22:37:48 GMT" ], "Content-Length": [ "74" @@ -141,20 +141,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2020-11-03T04:27:50.493Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2021-06-09T22:37:47.953Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/2a50715d-56d9-44c7-9040-18285e64d27f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJhNTA3MTVkLTU2ZDktNDRjNy05MDQwLTE4Mjg1ZTY0ZDI3Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2RiZDlhNGJlLTQ1OTgtNGQ5Zi1iYzBhLTNmYjU2NmQ0Y2ExNz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -168,7 +168,7 @@ "1" ], "x-ms-request-id": [ - "5c74cbac-496a-4367-911a-71f0dadd376b" + "20ed5b78-8984-40b8-8eed-60a5e925d3d4" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -177,10 +177,10 @@ "11999" ], "x-ms-correlation-request-id": [ - "09e247c5-468e-4a3c-8d25-aa3e4052b446" + "2ec7201d-f73d-4a56-9168-dfe0c1961289" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042751Z:09e247c5-468e-4a3c-8d25-aa3e4052b446" + "WESTUS:20210609T223749Z:2ec7201d-f73d-4a56-9168-dfe0c1961289" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -189,7 +189,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:50 GMT" + "Wed, 09 Jun 2021 22:37:49 GMT" ], "Content-Length": [ "108" @@ -201,20 +201,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"2a50715d-56d9-44c7-9040-18285e64d27f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:27:50.493Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:37:47.953Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/2a50715d-56d9-44c7-9040-18285e64d27f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJhNTA3MTVkLTU2ZDktNDRjNy05MDQwLTE4Mjg1ZTY0ZDI3Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2RiZDlhNGJlLTQ1OTgtNGQ5Zi1iYzBhLTNmYjU2NmQ0Y2ExNz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -228,7 +228,7 @@ "1" ], "x-ms-request-id": [ - "8fbb69ec-4cec-4f58-aa89-016b224b17c9" + "1fdf57dc-3715-41b4-bdaa-357a28e28186" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -237,10 +237,10 @@ "11998" ], "x-ms-correlation-request-id": [ - "475bc7f9-2e70-4a06-99da-0b0cc9e718f3" + "dc3741bf-0d89-41c2-bd6a-780452850931" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042753Z:475bc7f9-2e70-4a06-99da-0b0cc9e718f3" + "WESTUS:20210609T223750Z:dc3741bf-0d89-41c2-bd6a-780452850931" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -249,7 +249,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:52 GMT" + "Wed, 09 Jun 2021 22:37:50 GMT" ], "Content-Length": [ "108" @@ -261,20 +261,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"2a50715d-56d9-44c7-9040-18285e64d27f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:27:50.493Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:37:47.953Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/2a50715d-56d9-44c7-9040-18285e64d27f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJhNTA3MTVkLTU2ZDktNDRjNy05MDQwLTE4Mjg1ZTY0ZDI3Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2RiZDlhNGJlLTQ1OTgtNGQ5Zi1iYzBhLTNmYjU2NmQ0Y2ExNz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -288,7 +288,7 @@ "1" ], "x-ms-request-id": [ - "dd2370b7-ec9a-468b-972a-a6a562d97122" + "e204012c-9ba8-4c11-bc27-92a40aefad09" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -297,10 +297,10 @@ "11997" ], "x-ms-correlation-request-id": [ - "e51400e9-b1b1-4fc6-9994-4f24e6109f81" + "66626e6d-6dfe-445f-a8d4-9afc3412a095" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042754Z:e51400e9-b1b1-4fc6-9994-4f24e6109f81" + "WESTUS:20210609T223751Z:66626e6d-6dfe-445f-a8d4-9afc3412a095" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -309,7 +309,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:53 GMT" + "Wed, 09 Jun 2021 22:37:51 GMT" ], "Content-Length": [ "108" @@ -321,20 +321,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"2a50715d-56d9-44c7-9040-18285e64d27f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:27:50.493Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:37:47.953Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/2a50715d-56d9-44c7-9040-18285e64d27f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJhNTA3MTVkLTU2ZDktNDRjNy05MDQwLTE4Mjg1ZTY0ZDI3Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2RiZDlhNGJlLTQ1OTgtNGQ5Zi1iYzBhLTNmYjU2NmQ0Y2ExNz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -348,7 +348,7 @@ "1" ], "x-ms-request-id": [ - "8408f5d9-23a2-4e75-97b7-cfbd0aff25cc" + "0c346b46-8b63-4b2c-891a-ed0adc7c51e7" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -357,10 +357,10 @@ "11996" ], "x-ms-correlation-request-id": [ - "1db720b1-62ab-4298-b04b-3ccb6915c9a0" + "48dc0ced-1134-449b-9b5f-18a957fd8425" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042755Z:1db720b1-62ab-4298-b04b-3ccb6915c9a0" + "WESTUS:20210609T223752Z:48dc0ced-1134-449b-9b5f-18a957fd8425" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -369,7 +369,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:54 GMT" + "Wed, 09 Jun 2021 22:37:52 GMT" ], "Content-Length": [ "108" @@ -381,20 +381,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"2a50715d-56d9-44c7-9040-18285e64d27f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:27:50.493Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:37:47.953Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/2a50715d-56d9-44c7-9040-18285e64d27f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJhNTA3MTVkLTU2ZDktNDRjNy05MDQwLTE4Mjg1ZTY0ZDI3Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2RiZDlhNGJlLTQ1OTgtNGQ5Zi1iYzBhLTNmYjU2NmQ0Y2ExNz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -408,7 +408,7 @@ "20" ], "x-ms-request-id": [ - "403cd38b-f4c1-4af5-a853-ec1892433676" + "f954ef9e-fe5d-426f-97f4-ba65c1215b9b" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -417,10 +417,10 @@ "11995" ], "x-ms-correlation-request-id": [ - "9bb4a967-ef22-45e9-846c-a603f28fd970" + "cdb9ad8d-0567-4314-86e9-6f9c744ffd15" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042756Z:9bb4a967-ef22-45e9-846c-a603f28fd970" + "WESTUS:20210609T223753Z:cdb9ad8d-0567-4314-86e9-6f9c744ffd15" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -429,7 +429,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:27:55 GMT" + "Wed, 09 Jun 2021 22:37:53 GMT" ], "Content-Length": [ "108" @@ -441,20 +441,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"2a50715d-56d9-44c7-9040-18285e64d27f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:27:50.493Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:37:47.953Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/2a50715d-56d9-44c7-9040-18285e64d27f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJhNTA3MTVkLTU2ZDktNDRjNy05MDQwLTE4Mjg1ZTY0ZDI3Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2RiZDlhNGJlLTQ1OTgtNGQ5Zi1iYzBhLTNmYjU2NmQ0Y2ExNz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -468,7 +468,7 @@ "20" ], "x-ms-request-id": [ - "5ce243ae-af0c-4d04-9257-9d2f458d2710" + "2b3d455c-34bc-449c-ad0c-ad8ab080d5d1" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -477,10 +477,10 @@ "11994" ], "x-ms-correlation-request-id": [ - "4581345c-26ed-4fd4-91d0-02d7b4fa4a41" + "71d96f70-5f16-4b25-ba96-a3addbd68b20" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042816Z:4581345c-26ed-4fd4-91d0-02d7b4fa4a41" + "WESTUS:20210609T223814Z:71d96f70-5f16-4b25-ba96-a3addbd68b20" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -489,7 +489,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:28:16 GMT" + "Wed, 09 Jun 2021 22:38:13 GMT" ], "Content-Length": [ "108" @@ -501,20 +501,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"2a50715d-56d9-44c7-9040-18285e64d27f\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:27:50.493Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:37:47.953Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/2a50715d-56d9-44c7-9040-18285e64d27f?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uLzJhNTA3MTVkLTU2ZDktNDRjNy05MDQwLTE4Mjg1ZTY0ZDI3Zj9hcGktdmVyc2lvbj0yMDE5LTA2LTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2RiZDlhNGJlLTQ1OTgtNGQ5Zi1iYzBhLTNmYjU2NmQ0Y2ExNz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -525,10 +525,10 @@ "no-cache" ], "Retry-After": [ - "15" + "20" ], "x-ms-request-id": [ - "8e0b736c-b96e-49d9-abc7-19380cc13894" + "251c45de-6d8f-4611-bb45-d824acb8eba1" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -537,10 +537,10 @@ "11993" ], "x-ms-correlation-request-id": [ - "2efc1a7a-7a88-484e-a1a5-d8e1074d74f6" + "568840f3-6014-44c6-8609-7c4753708834" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042836Z:2efc1a7a-7a88-484e-a1a5-d8e1074d74f6" + "WESTUS:20210609T223834Z:568840f3-6014-44c6-8609-7c4753708834" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -549,10 +549,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:28:36 GMT" + "Wed, 09 Jun 2021 22:38:33 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -561,20 +561,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"2a50715d-56d9-44c7-9040-18285e64d27f\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-11-03T04:27:50.493Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:37:47.953Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893?api-version=2019-06-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODkzP2FwaS12ZXJzaW9uPTIwMTktMDYtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2RiZDlhNGJlLTQ1OTgtNGQ5Zi1iYzBhLTNmYjU2NmQ0Y2ExNz9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -584,8 +584,11 @@ "Pragma": [ "no-cache" ], + "Retry-After": [ + "15" + ], "x-ms-request-id": [ - "1265303e-5b47-484a-813a-82514a9e0358" + "dba0eebd-19e2-4ae6-83fc-8853b72dd61d" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -594,10 +597,10 @@ "11992" ], "x-ms-correlation-request-id": [ - "520c5c36-85b5-4b50-8b47-f8e86228d8af" + "088b1aab-6dc0-4cba-94ba-c5041bf4f170" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042836Z:520c5c36-85b5-4b50-8b47-f8e86228d8af" + "WESTUS:20210609T223854Z:088b1aab-6dc0-4cba-94ba-c5041bf4f170" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -606,7 +609,64 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:28:36 GMT" + "Wed, 09 Jun 2021 22:38:53 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"dbd9a4be-4598-4d9f-bc0a-3fb566d4ca17\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-06-09T22:37:47.953Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwP2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "71768af9-8dd6-4981-ad79-1a3a8107883f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "2360244b-224a-4517-96f8-698100229175" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T223854Z:2360244b-224a-4517-96f8-698100229175" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:38:53 GMT" ], "Content-Length": [ "456" @@ -618,26 +678,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-7893.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893\",\r\n \"name\": \"sqlcrudtest-7893\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-4520.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520\",\r\n \"name\": \"sqlcrudtest-4520\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893/databases/sqlcrudtest-7757?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODkzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03NzU3P2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTc4P2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "PUT", "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"P1\"\r\n },\r\n \"location\": \"eastus\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "e01e4a38-87c3-4508-9533-b05cf34beeb7" + "3d3d70fc-d800-4c72-8ee2-7957c2b56d0b" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -654,16 +714,16 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/databaseOperationResults/693b00ef-e6f3-4942-be2f-80a030e2e7c6?api-version=2020-08-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/databaseOperationResults/4a0d1839-4092-4d19-a864-3d7851b37d8c?api-version=2021-02-01-preview" ], "Retry-After": [ "15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/693b00ef-e6f3-4942-be2f-80a030e2e7c6?api-version=2020-08-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/4a0d1839-4092-4d19-a864-3d7851b37d8c?api-version=2021-02-01-preview" ], "x-ms-request-id": [ - "693b00ef-e6f3-4942-be2f-80a030e2e7c6" + "4a0d1839-4092-4d19-a864-3d7851b37d8c" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -672,10 +732,10 @@ "1198" ], "x-ms-correlation-request-id": [ - "7d5551db-476c-4f01-964f-660c405a56c6" + "033634a7-e61e-4f19-a643-702076c855e4" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042838Z:7d5551db-476c-4f01-964f-660c405a56c6" + "WESTUS:20210609T223856Z:033634a7-e61e-4f19-a643-702076c855e4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -684,10 +744,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:28:37 GMT" + "Wed, 09 Jun 2021 22:38:55 GMT" ], "Content-Length": [ - "75" + "76" ], "Content-Type": [ "application/json; charset=utf-8" @@ -696,20 +756,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2020-11-03T04:28:37.79Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T22:38:56.107Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/693b00ef-e6f3-4942-be2f-80a030e2e7c6?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNjkzYjAwZWYtZTZmMy00OTQyLWJlMmYtODBhMDMwZTJlN2M2P2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/4a0d1839-4092-4d19-a864-3d7851b37d8c?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGEwZDE4MzktNDA5Mi00ZDE5LWE4NjQtM2Q3ODUxYjM3ZDhjP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -723,19 +783,19 @@ "15" ], "x-ms-request-id": [ - "2d6d5926-17a3-4ddd-bdd9-6bf801cf2180" + "714c2625-5ed8-44a8-a7b6-715b3671e1df" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11991" + "11990" ], "x-ms-correlation-request-id": [ - "fb3446b6-3fe9-4745-95b3-d9c40e68856f" + "81277fe9-7d48-4a56-842f-2122004dbb36" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042853Z:fb3446b6-3fe9-4745-95b3-d9c40e68856f" + "WESTUS:20210609T223911Z:81277fe9-7d48-4a56-842f-2122004dbb36" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -744,10 +804,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:28:52 GMT" + "Wed, 09 Jun 2021 22:39:10 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -756,20 +816,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"693b00ef-e6f3-4942-be2f-80a030e2e7c6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:28:37.79Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"4a0d1839-4092-4d19-a864-3d7851b37d8c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:38:56.107Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/693b00ef-e6f3-4942-be2f-80a030e2e7c6?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNjkzYjAwZWYtZTZmMy00OTQyLWJlMmYtODBhMDMwZTJlN2M2P2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/4a0d1839-4092-4d19-a864-3d7851b37d8c?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGEwZDE4MzktNDA5Mi00ZDE5LWE4NjQtM2Q3ODUxYjM3ZDhjP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -783,19 +843,19 @@ "15" ], "x-ms-request-id": [ - "bd2942aa-35ec-4af8-865b-450bcd0a6923" + "fbac808a-a903-4f2b-a771-5449d6523101" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11990" + "11989" ], "x-ms-correlation-request-id": [ - "7f2a769b-6006-43dd-a913-81e1bf0de21d" + "59210526-fc54-4ea7-a8d4-819fee9a77a1" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042908Z:7f2a769b-6006-43dd-a913-81e1bf0de21d" + "WESTUS:20210609T223926Z:59210526-fc54-4ea7-a8d4-819fee9a77a1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -804,10 +864,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:29:08 GMT" + "Wed, 09 Jun 2021 22:39:26 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -816,20 +876,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"693b00ef-e6f3-4942-be2f-80a030e2e7c6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:28:37.79Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"4a0d1839-4092-4d19-a864-3d7851b37d8c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:38:56.107Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/693b00ef-e6f3-4942-be2f-80a030e2e7c6?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNjkzYjAwZWYtZTZmMy00OTQyLWJlMmYtODBhMDMwZTJlN2M2P2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/4a0d1839-4092-4d19-a864-3d7851b37d8c?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGEwZDE4MzktNDA5Mi00ZDE5LWE4NjQtM2Q3ODUxYjM3ZDhjP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -843,19 +903,19 @@ "15" ], "x-ms-request-id": [ - "f538ea9d-a7f4-4c7f-b8ef-683959fd886b" + "06e5b441-2591-46fe-9499-4cbd44b5b333" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11989" + "11988" ], "x-ms-correlation-request-id": [ - "abc388f8-f6e7-4553-a1a1-043795c4f731" + "060c40d7-f36b-4cfe-9014-332ce0ab423e" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042923Z:abc388f8-f6e7-4553-a1a1-043795c4f731" + "WESTUS:20210609T223941Z:060c40d7-f36b-4cfe-9014-332ce0ab423e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -864,10 +924,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:29:23 GMT" + "Wed, 09 Jun 2021 22:39:41 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -876,20 +936,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"693b00ef-e6f3-4942-be2f-80a030e2e7c6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:28:37.79Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"4a0d1839-4092-4d19-a864-3d7851b37d8c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:38:56.107Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/693b00ef-e6f3-4942-be2f-80a030e2e7c6?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNjkzYjAwZWYtZTZmMy00OTQyLWJlMmYtODBhMDMwZTJlN2M2P2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/4a0d1839-4092-4d19-a864-3d7851b37d8c?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGEwZDE4MzktNDA5Mi00ZDE5LWE4NjQtM2Q3ODUxYjM3ZDhjP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -903,19 +963,19 @@ "15" ], "x-ms-request-id": [ - "a4aa7f15-408b-4e3b-b750-fa27d40690c5" + "3226b4c6-988a-45f0-805a-2aecbe28d989" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11988" + "11987" ], "x-ms-correlation-request-id": [ - "57ecf62e-fde0-4c2e-a87d-8d65b382d356" + "346083ae-72b3-4fd1-8e89-94372a64b5e0" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042938Z:57ecf62e-fde0-4c2e-a87d-8d65b382d356" + "WESTUS:20210609T223957Z:346083ae-72b3-4fd1-8e89-94372a64b5e0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -924,10 +984,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:29:38 GMT" + "Wed, 09 Jun 2021 22:39:56 GMT" ], "Content-Length": [ - "107" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -936,20 +996,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"693b00ef-e6f3-4942-be2f-80a030e2e7c6\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-03T04:28:37.79Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"4a0d1839-4092-4d19-a864-3d7851b37d8c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:38:56.107Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/693b00ef-e6f3-4942-be2f-80a030e2e7c6?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNjkzYjAwZWYtZTZmMy00OTQyLWJlMmYtODBhMDMwZTJlN2M2P2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/4a0d1839-4092-4d19-a864-3d7851b37d8c?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGEwZDE4MzktNDA5Mi00ZDE5LWE4NjQtM2Q3ODUxYjM3ZDhjP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -963,19 +1023,19 @@ "15" ], "x-ms-request-id": [ - "e8ef6483-7594-4206-958d-31a15d7b5182" + "c0185c21-67f0-4604-b87e-b9573c2bb18b" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11987" + "11986" ], "x-ms-correlation-request-id": [ - "69147bc1-b405-4d1d-963a-4b7a76159597" + "c8192472-65e2-48f3-bd94-524d8465b4fc" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042953Z:69147bc1-b405-4d1d-963a-4b7a76159597" + "WESTUS:20210609T224012Z:c8192472-65e2-48f3-bd94-524d8465b4fc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -984,10 +1044,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:29:53 GMT" + "Wed, 09 Jun 2021 22:40:11 GMT" ], "Content-Length": [ - "106" + "108" ], "Content-Type": [ "application/json; charset=utf-8" @@ -996,20 +1056,20 @@ "-1" ] }, - "ResponseBody": "{\r\n \"name\": \"693b00ef-e6f3-4942-be2f-80a030e2e7c6\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-11-03T04:28:37.79Z\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"4a0d1839-4092-4d19-a864-3d7851b37d8c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-09T22:38:56.107Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893/databases/sqlcrudtest-7757?api-version=2020-08-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODkzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03NzU3P2FwaS12ZXJzaW9uPTIwMjAtMDgtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/4a0d1839-4092-4d19-a864-3d7851b37d8c?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vNGEwZDE4MzktNDA5Mi00ZDE5LWE4NjQtM2Q3ODUxYjM3ZDhjP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -1019,20 +1079,23 @@ "Pragma": [ "no-cache" ], + "Retry-After": [ + "15" + ], "x-ms-request-id": [ - "ff525422-f942-43d3-a756-775067ffb600" + "6b8aa3ad-6835-4fd9-9764-a27c3591c13a" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11986" + "11985" ], "x-ms-correlation-request-id": [ - "d12a3965-ac88-4e6d-84f7-e3b941cc9941" + "9e1c4a45-4d90-4ace-9701-8e33263ea854" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042954Z:d12a3965-ac88-4e6d-84f7-e3b941cc9941" + "WESTUS:20210609T224027Z:9e1c4a45-4d90-4ace-9701-8e33263ea854" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1041,10 +1104,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:29:53 GMT" + "Wed, 09 Jun 2021 22:40:26 GMT" ], "Content-Length": [ - "872" + "107" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1053,26 +1116,83 @@ "-1" ] }, - "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 536870912000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"d41387d7-de86-43ff-9013-af70a3dc6b66\",\r\n \"creationDate\": \"2020-11-03T04:29:39.383Z\",\r\n \"currentServiceObjectiveName\": \"P1\",\r\n \"requestedServiceObjectiveName\": \"P1\",\r\n \"defaultSecondaryLocation\": \"westus\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"earliestRestoreDate\": \"2020-11-03T04:59:39.383Z\",\r\n \"readScale\": \"Enabled\",\r\n \"currentSku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"storageAccountType\": \"GRS\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893/databases/sqlcrudtest-7757\",\r\n \"name\": \"sqlcrudtest-7757\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "ResponseBody": "{\r\n \"name\": \"4a0d1839-4092-4d19-a864-3d7851b37d8c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-06-09T22:38:56.107Z\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893/databases/sqlcrudtest-7757/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODkzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03NzU3L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTc4P2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c8b4e9f6-83c2-467a-a7b8-14c35ba51eea" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "d2db91ae-7e6e-4041-825a-33a4c88f9fbe" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T224027Z:d2db91ae-7e6e-4041-825a-33a4c88f9fbe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:40:27 GMT" + ], + "Content-Length": [ + "1087" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 536870912000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"47da25e2-8656-4749-802a-30aaf587c496\",\r\n \"creationDate\": \"2021-06-09T22:40:18.953Z\",\r\n \"currentServiceObjectiveName\": \"P1\",\r\n \"requestedServiceObjectiveName\": \"P1\",\r\n \"defaultSecondaryLocation\": \"westus\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"readScale\": \"Enabled\",\r\n \"currentSku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"currentBackupStorageRedundancy\": \"Geo\",\r\n \"requestedBackupStorageRedundancy\": \"Geo\",\r\n \"maintenanceConfigurationId\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default\",\r\n \"isLedgerOn\": false,\r\n \"isInfraEncryptionEnabled\": false\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978\",\r\n \"name\": \"sqlcrudtest-5978\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTc4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "09de3911-cc12-4994-8b8c-fcc2056c7c5d" + "4bdafd7d-88d4-4a40-91a8-425db8462c2a" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -1083,19 +1203,19 @@ "no-cache" ], "x-ms-request-id": [ - "72881fdf-699b-4a67-a612-7d41b2bbc6fb" + "9e01485f-d812-45c3-874f-5c8505bb45b3" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11985" + "11983" ], "x-ms-correlation-request-id": [ - "9048300e-5b51-486f-9c33-dd27aa020a69" + "938375ea-bd77-4542-93f9-38b560ffd1fd" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042954Z:9048300e-5b51-486f-9c33-dd27aa020a69" + "WESTUS:20210609T224027Z:938375ea-bd77-4542-93f9-38b560ffd1fd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1104,10 +1224,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:29:53 GMT" + "Wed, 09 Jun 2021 22:40:27 GMT" ], "Content-Length": [ - "333" + "364" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1116,26 +1236,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893/databases/sqlcrudtest-7757/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7,\r\n \"diffBackupIntervalInHours\": 12\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893/databases/sqlcrudtest-7757/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODkzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03NzU3L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTc4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "e63eed5f-98e0-49a6-ac16-02f7d742ce24" + "f6acc4d9-83e6-4535-a2c4-67842485be99" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -1146,19 +1266,19 @@ "no-cache" ], "x-ms-request-id": [ - "5bab3bbd-19fd-4dd8-a65f-1b9fc5f860d7" + "b76b5909-894b-481f-b48d-dfe581b437bb" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11984" + "11982" ], "x-ms-correlation-request-id": [ - "06a4dc2c-2139-4895-9701-183f69aa2683" + "bccf5e79-5efb-4092-a062-01429ff0a3a6" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042957Z:06a4dc2c-2139-4895-9701-183f69aa2683" + "WESTUS:20210609T224030Z:bccf5e79-5efb-4092-a062-01429ff0a3a6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1167,10 +1287,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:29:56 GMT" + "Wed, 09 Jun 2021 22:40:30 GMT" ], "Content-Length": [ - "333" + "364" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1179,26 +1299,26 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893/databases/sqlcrudtest-7757/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7,\r\n \"diffBackupIntervalInHours\": 12\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893/databases/sqlcrudtest-7757/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODkzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03NzU3L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTc4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8631ccf7-cd4c-48a0-8d56-e988685ef4cb" + "4499e837-25a0-42f1-b067-4d4d54ec882c" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ] }, "ResponseHeaders": { @@ -1209,19 +1329,82 @@ "no-cache" ], "x-ms-request-id": [ - "514eb823-3964-4fe5-b963-528aef2e496a" + "91403323-152f-4e3b-b1bd-49f37ba54916" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11983" + "11981" + ], + "x-ms-correlation-request-id": [ + "1e8be96e-e1a2-4e2f-95ac-2818f9b83cb7" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T224033Z:1e8be96e-e1a2-4e2f-95ac-2818f9b83cb7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:40:33 GMT" + ], + "Content-Length": [ + "364" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7,\r\n \"diffBackupIntervalInHours\": 12\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTc4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d55edbe9-589b-468d-97b9-71856b0570cb" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d919f734-2b94-40ec-864c-e1f6519f4a38" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" ], "x-ms-correlation-request-id": [ - "e00f7c80-ced7-4826-87f6-1d95276a1093" + "6c953347-99af-44b1-a110-1cd65de34ae6" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T043000Z:e00f7c80-ced7-4826-87f6-1d95276a1093" + "WESTUS:20210609T224037Z:6c953347-99af-44b1-a110-1cd65de34ae6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1230,10 +1413,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:29:59 GMT" + "Wed, 09 Jun 2021 22:40:36 GMT" ], "Content-Length": [ - "334" + "365" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1242,32 +1425,158 @@ "-1" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893/databases/sqlcrudtest-7757/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35,\r\n \"diffBackupIntervalInHours\": 24\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893/databases/sqlcrudtest-7757/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODkzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03NzU3L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTc4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "babd26cd-edde-4c29-9042-d463fb8f1c39" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "3a7a25a7-cc0b-4012-81d5-fff7ed039790" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-correlation-request-id": [ + "a8c210c7-2129-46b7-888b-da12f6a2fb33" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T224037Z:a8c210c7-2129-46b7-888b-da12f6a2fb33" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:40:36 GMT" + ], + "Content-Length": [ + "365" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35,\r\n \"diffBackupIntervalInHours\": 24\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTc4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ce803d4e-3a09-45ff-80a8-19cf4001db96" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "378de9c3-e18e-40b2-9cef-0c6f3bd0e40f" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-correlation-request-id": [ + "0359cd90-2854-4bec-8991-365c7c4df9ef" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T224040Z:0359cd90-2854-4bec-8991-365c7c4df9ef" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:40:39 GMT" + ], + "Content-Length": [ + "365" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 34,\r\n \"diffBackupIntervalInHours\": 24\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTc4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 36\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 40,\r\n \"diffBackupIntervalInHours\": 12\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "1bfe6ded-ffef-4054-a969-87f1dbe52d3f" + "0ada160b-ced9-4161-bd7e-4f21e002ec47" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "53" + "91" ] }, "ResponseHeaders": { @@ -1278,7 +1587,7 @@ "no-cache" ], "x-ms-request-id": [ - "ee47b8fe-65d5-4ab9-af07-f80b5523d2c3" + "250529af-6cea-49f5-b987-c5758ee8a6d3" ], "Server": [ "Microsoft-HTTPAPI/2.0" @@ -1287,10 +1596,10 @@ "1197" ], "x-ms-correlation-request-id": [ - "bf5f09d3-07dc-4793-bebc-1814556dea97" + "ec526370-12c6-481d-9616-76389892858a" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042954Z:bf5f09d3-07dc-4793-bebc-1814556dea97" + "WESTUS:20210609T224027Z:ec526370-12c6-481d-9616-76389892858a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1299,7 +1608,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:29:53 GMT" + "Wed, 09 Jun 2021 22:40:27 GMT" ], "Content-Length": [ "172" @@ -1311,26 +1620,173 @@ "-1" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"InvalidBackupRetentionPeriod\",\r\n \"message\": \"The retention days of 36 is not a valid configuration. Valid backup retention in days must be between 1 and 35\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"InvalidBackupRetentionPeriod\",\r\n \"message\": \"The retention days of 40 is not a valid configuration. Valid backup retention in days must be between 1 and 35\"\r\n }\r\n}", + "StatusCode": 400 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTc4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35,\r\n \"diffBackupIntervalInHours\": 6\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8ab3c5d7-b640-464f-a4b5-34c028ae2df6" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "90" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "1d0c28b5-748e-4711-9dd3-9fb78611fe63" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "281f8d03-e78d-469f-bf4e-36a8322f13e3" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T224031Z:281f8d03-e78d-469f-bf4e-36a8322f13e3" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:40:30 GMT" + ], + "Content-Length": [ + "196" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"InvalidDiffBackupIntervalHours\",\r\n \"message\": \"The differential backup interval hours of 6 is not a valid configuration. Valid differential backup interval must be 12 or 24 hours.\"\r\n }\r\n}", "StatusCode": 400 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/servers/sqlcrudtest-7893/databases/sqlcrudtest-7757/backupShortTermRetentionPolicies/default?api-version=2017-10-01-preview", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTQyNTcvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC03ODkzL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC03NzU3L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAxNy0xMC0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTc4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35,\r\n \"diffBackupIntervalInHours\": 24\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a73f3082-e131-4459-8261-a84ecd09eb2b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "91" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/8796e160-a78a-475b-a479-9f560c72adc8?api-version=2021-02-01-preview" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/8796e160-a78a-475b-a479-9f560c72adc8?api-version=2021-02-01-preview" + ], + "x-ms-request-id": [ + "8796e160-a78a-475b-a479-9f560c72adc8" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-correlation-request-id": [ + "84fe98d6-7bae-4183-8afb-2bc1ab989b9c" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210609T224034Z:84fe98d6-7bae-4183-8afb-2bc1ab989b9c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 09 Jun 2021 22:40:33 GMT" + ], + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T22:40:34.2Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/servers/sqlcrudtest-4520/databases/sqlcrudtest-5978/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTY3OTEvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC00NTIwL2RhdGFiYXNlcy9zcWxjcnVkdGVzdC01OTc4L2JhY2t1cFNob3J0VGVybVJldGVudGlvblBvbGljaWVzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 35\r\n }\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 34\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "25a4fd0d-f2c8-4ece-9c13-bef60f88da2f" + "cd130922-86fa-48f4-a8d6-da82a4b1fb8c" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.Sql.SqlManagementClient/1.47.0.0" + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1347,28 +1803,28 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/a8c4b2df-c816-4ffc-864c-b158f4ad1077?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/22373461-db4a-4640-b894-fcd848a7e7b0?api-version=2021-02-01-preview" ], "Retry-After": [ "15" ], "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-4257/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/a8c4b2df-c816-4ffc-864c-b158f4ad1077?api-version=2017-10-01-preview" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-6791/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/22373461-db4a-4640-b894-fcd848a7e7b0?api-version=2021-02-01-preview" ], "x-ms-request-id": [ - "a8c4b2df-c816-4ffc-864c-b158f4ad1077" + "22373461-db4a-4640-b894-fcd848a7e7b0" ], "Server": [ "Microsoft-HTTPAPI/2.0" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1196" + "1194" ], "x-ms-correlation-request-id": [ - "f0af713c-73a9-49bc-9e5d-2281044d92cd" + "fdacbecd-9258-43a8-abc3-4f5dc8c9cb86" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T042957Z:f0af713c-73a9-49bc-9e5d-2281044d92cd" + "WESTUS:20210609T224037Z:fdacbecd-9258-43a8-abc3-4f5dc8c9cb86" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1377,10 +1833,10 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:29:57 GMT" + "Wed, 09 Jun 2021 22:40:37 GMT" ], "Content-Length": [ - "76" + "75" ], "Content-Type": [ "application/json; charset=utf-8" @@ -1389,23 +1845,23 @@ "-1" ] }, - "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2020-11-03T04:29:57.493Z\"\r\n}", + "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2021-06-09T22:40:37.48Z\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-4257?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTQyNTc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-6791?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTY3OTE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "28cec983-fed3-4f53-8ddc-6d1ec0fd4d12" + "a50c2a1d-f72e-4ee8-8ead-7f7d3362a496" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29321.03", + "FxVersion/4.6.30015.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" @@ -1419,22 +1875,22 @@ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDQyNTctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDY3OTEtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14999" + "14998" ], "x-ms-request-id": [ - "31671f31-6c7f-46fd-9ad5-ad7174f49dd9" + "8c10d078-50aa-4a76-82ad-06caa60733ae" ], "x-ms-correlation-request-id": [ - "31671f31-6c7f-46fd-9ad5-ad7174f49dd9" + "8c10d078-50aa-4a76-82ad-06caa60733ae" ], "x-ms-routing-request-id": [ - "WESTUS:20201103T043002Z:31671f31-6c7f-46fd-9ad5-ad7174f49dd9" + "WESTCENTRALUS:20210609T224041Z:8c10d078-50aa-4a76-82ad-06caa60733ae" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1443,7 +1899,7 @@ "nosniff" ], "Date": [ - "Tue, 03 Nov 2020 04:30:01 GMT" + "Wed, 09 Jun 2021 22:40:41 GMT" ], "Expires": [ "-1" @@ -1458,13 +1914,13 @@ ], "Names": { "CreateResourceGroup": [ - "sqlcrudtest-4257" + "sqlcrudtest-6791" ], "CreateServer": [ - "sqlcrudtest-7893" + "sqlcrudtest-4520" ], "TestShortTermRetentionPolicyOnPremium": [ - "sqlcrudtest-7757" + "sqlcrudtest-5978" ] }, "Variables": { diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyScriptUseWhenFeatureIsDisabled.json b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyScriptUseWhenFeatureIsDisabled.json new file mode 100644 index 000000000000..417f0cc09449 --- /dev/null +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/SessionRecords/ShortTermRetentionTests/TestShortTermRetentionPolicyScriptUseWhenFeatureIsDisabled.json @@ -0,0 +1,1399 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-7899?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTc4OTk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-7899\": \"2021-06-10 00:17:19Z\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "982bb544-a06a-4ae6-8ba7-2c52cb987952" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "95" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "8d72e54c-2299-4de0-b8e6-313077840134" + ], + "x-ms-correlation-request-id": [ + "8d72e54c-2299-4de0-b8e6-313077840134" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001720Z:8d72e54c-2299-4de0-b8e6-313077840134" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:17:19 GMT" + ], + "Content-Length": [ + "236" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899\",\r\n \"name\": \"sqlcrudtest-7899\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"sqlcrudtest-7899\": \"2021-06-10 00:17:19Z\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/servers/sqlcrudtest-3847?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zODQ3P2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"administratorLoginPassword\": \"Un53cuRE!\",\r\n \"version\": \"12.0\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {}\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5ea793f3-3318-46c1-bb91-ea2afd11f610" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "180" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/serverOperationResults/bc17d2f5-0585-4401-b21e-e35f1d33e3a1?api-version=2020-11-01-preview" + ], + "Retry-After": [ + "1" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/bc17d2f5-0585-4401-b21e-e35f1d33e3a1?api-version=2020-11-01-preview" + ], + "x-ms-request-id": [ + "bc17d2f5-0585-4401-b21e-e35f1d33e3a1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "e4f92c41-341f-49ba-9c61-c8e513d79807" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001723Z:e4f92c41-341f-49ba-9c61-c8e513d79807" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:17:22 GMT" + ], + "Content-Length": [ + "74" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpsertLogicalServer\",\r\n \"startTime\": \"2021-06-10T00:17:22.993Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/bc17d2f5-0585-4401-b21e-e35f1d33e3a1?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2JjMTdkMmY1LTA1ODUtNDQwMS1iMjFlLWUzNWYxZDMzZTNhMT9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "78c1beac-7ae2-4ccc-b557-dd05cd558e57" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "666fa1d7-9092-49ea-9b6f-6793c917abfe" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001724Z:666fa1d7-9092-49ea-9b6f-6793c917abfe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:17:23 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bc17d2f5-0585-4401-b21e-e35f1d33e3a1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-10T00:17:22.993Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/bc17d2f5-0585-4401-b21e-e35f1d33e3a1?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2JjMTdkMmY1LTA1ODUtNDQwMS1iMjFlLWUzNWYxZDMzZTNhMT9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "0e12bc9b-cbba-4073-8147-de36302aefbb" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "1f4d3b4e-2ebb-43ac-b91e-3527b393775a" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001725Z:1f4d3b4e-2ebb-43ac-b91e-3527b393775a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:17:24 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bc17d2f5-0585-4401-b21e-e35f1d33e3a1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-10T00:17:22.993Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/bc17d2f5-0585-4401-b21e-e35f1d33e3a1?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2JjMTdkMmY1LTA1ODUtNDQwMS1iMjFlLWUzNWYxZDMzZTNhMT9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "649efd6d-6609-494d-ba70-b075574880cc" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "90e2c993-9cec-47cb-bfc2-eb08d0e0ad48" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001726Z:90e2c993-9cec-47cb-bfc2-eb08d0e0ad48" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:17:25 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bc17d2f5-0585-4401-b21e-e35f1d33e3a1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-10T00:17:22.993Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/bc17d2f5-0585-4401-b21e-e35f1d33e3a1?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2JjMTdkMmY1LTA1ODUtNDQwMS1iMjFlLWUzNWYxZDMzZTNhMT9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "1" + ], + "x-ms-request-id": [ + "94e588c7-bae7-4a0b-ba2f-2a4a347e9d3c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "28b6719f-2e78-4bce-bef3-84eeab2e739e" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001727Z:28b6719f-2e78-4bce-bef3-84eeab2e739e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:17:26 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bc17d2f5-0585-4401-b21e-e35f1d33e3a1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-10T00:17:22.993Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/bc17d2f5-0585-4401-b21e-e35f1d33e3a1?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2JjMTdkMmY1LTA1ODUtNDQwMS1iMjFlLWUzNWYxZDMzZTNhMT9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "x-ms-request-id": [ + "757ca6b3-3e9f-4c5a-88e6-9817abed195a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "ebddca28-6f0f-477c-92da-213f66fc3eda" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001728Z:ebddca28-6f0f-477c-92da-213f66fc3eda" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:17:27 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bc17d2f5-0585-4401-b21e-e35f1d33e3a1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-10T00:17:22.993Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/bc17d2f5-0585-4401-b21e-e35f1d33e3a1?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2JjMTdkMmY1LTA1ODUtNDQwMS1iMjFlLWUzNWYxZDMzZTNhMT9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "x-ms-request-id": [ + "9fb454eb-e8ac-486c-865a-dc0bee7b6ba1" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "2d3a1adb-12e9-4958-b244-d1f5f123bd4b" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001748Z:2d3a1adb-12e9-4958-b244-d1f5f123bd4b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:17:48 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bc17d2f5-0585-4401-b21e-e35f1d33e3a1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-10T00:17:22.993Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/bc17d2f5-0585-4401-b21e-e35f1d33e3a1?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2JjMTdkMmY1LTA1ODUtNDQwMS1iMjFlLWUzNWYxZDMzZTNhMT9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "20" + ], + "x-ms-request-id": [ + "160fcfe2-271f-4e58-b2cc-217ce059433d" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "12e13b6e-e2fd-4773-8306-a06df96f3da5" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001808Z:12e13b6e-e2fd-4773-8306-a06df96f3da5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:18:08 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bc17d2f5-0585-4401-b21e-e35f1d33e3a1\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-10T00:17:22.993Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/serverAzureAsyncOperation/bc17d2f5-0585-4401-b21e-e35f1d33e3a1?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9zZXJ2ZXJBenVyZUFzeW5jT3BlcmF0aW9uL2JjMTdkMmY1LTA1ODUtNDQwMS1iMjFlLWUzNWYxZDMzZTNhMT9hcGktdmVyc2lvbj0yMDIwLTExLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "086c29f5-f68f-4087-8d47-f7305c15fb87" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "776aa16e-0e3a-4c70-8214-708104e090dc" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001829Z:776aa16e-0e3a-4c70-8214-708104e090dc" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:18:28 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"bc17d2f5-0585-4401-b21e-e35f1d33e3a1\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-06-10T00:17:22.993Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/servers/sqlcrudtest-3847?api-version=2020-11-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zODQ3P2FwaS12ZXJzaW9uPTIwMjAtMTEtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "58f886dd-8cbd-4185-a6d3-b45fb9d75ff2" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "9c8bd3e5-47c5-457a-a93e-d5c6973930e8" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001829Z:9c8bd3e5-47c5-457a-a93e-d5c6973930e8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:18:29 GMT" + ], + "Content-Length": [ + "456" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"kind\": \"v12.0\",\r\n \"properties\": {\r\n \"administratorLogin\": \"dummylogin\",\r\n \"version\": \"12.0\",\r\n \"state\": \"Ready\",\r\n \"fullyQualifiedDomainName\": \"sqlcrudtest-3847.database.windows.net\",\r\n \"privateEndpointConnections\": [],\r\n \"publicNetworkAccess\": \"Enabled\"\r\n },\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/servers/sqlcrudtest-3847\",\r\n \"name\": \"sqlcrudtest-3847\",\r\n \"type\": \"Microsoft.Sql/servers\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/servers/sqlcrudtest-3847/databases/sqlcrudtest-805?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zODQ3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04MDU/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"P1\"\r\n },\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "037fc090-ea19-4f60-97b8-67080e46a748" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "64" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/databaseOperationResults/d1ba1e40-70c8-4eef-ade5-8286fb28328c?api-version=2021-02-01-preview" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/d1ba1e40-70c8-4eef-ade5-8286fb28328c?api-version=2021-02-01-preview" + ], + "x-ms-request-id": [ + "d1ba1e40-70c8-4eef-ade5-8286fb28328c" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "3a48522b-992a-45fa-be7b-6ef6ea5f7d02" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001831Z:3a48522b-992a-45fa-be7b-6ef6ea5f7d02" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:18:30 GMT" + ], + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"CreateLogicalDatabase\",\r\n \"startTime\": \"2021-06-10T00:18:30.747Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/d1ba1e40-70c8-4eef-ade5-8286fb28328c?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZDFiYTFlNDAtNzBjOC00ZWVmLWFkZTUtODI4NmZiMjgzMjhjP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "cf4eaedd-05d7-459a-a209-31cd5eb2854a" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "4972f5d6-3bd1-43bd-b7b6-e26e40346c09" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001846Z:4972f5d6-3bd1-43bd-b7b6-e26e40346c09" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:18:45 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d1ba1e40-70c8-4eef-ade5-8286fb28328c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-10T00:18:30.747Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/d1ba1e40-70c8-4eef-ade5-8286fb28328c?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZDFiYTFlNDAtNzBjOC00ZWVmLWFkZTUtODI4NmZiMjgzMjhjP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "cd63f480-ba0c-4844-8425-8dfc552182bc" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "bca8b7ac-8f36-4598-8064-6508eb8e3fb8" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001901Z:bca8b7ac-8f36-4598-8064-6508eb8e3fb8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:19:00 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d1ba1e40-70c8-4eef-ade5-8286fb28328c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-10T00:18:30.747Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/d1ba1e40-70c8-4eef-ade5-8286fb28328c?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZDFiYTFlNDAtNzBjOC00ZWVmLWFkZTUtODI4NmZiMjgzMjhjP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "fe698c93-f0a7-46f6-adc7-f8307addf056" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "461e3520-d3b3-442c-adb8-241f7760dae6" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001916Z:461e3520-d3b3-442c-adb8-241f7760dae6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:19:15 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d1ba1e40-70c8-4eef-ade5-8286fb28328c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-10T00:18:30.747Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/d1ba1e40-70c8-4eef-ade5-8286fb28328c?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZDFiYTFlNDAtNzBjOC00ZWVmLWFkZTUtODI4NmZiMjgzMjhjP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "261878fa-9fc8-4488-a672-615ebef48924" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "ba857737-3ff1-474d-a59d-5c9588521183" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001931Z:ba857737-3ff1-474d-a59d-5c9588521183" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:19:31 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d1ba1e40-70c8-4eef-ade5-8286fb28328c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-10T00:18:30.747Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/d1ba1e40-70c8-4eef-ade5-8286fb28328c?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZDFiYTFlNDAtNzBjOC00ZWVmLWFkZTUtODI4NmZiMjgzMjhjP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "9b1779d9-4c0f-47b9-9033-887ac878cc43" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "99b2cb6f-f35c-4d14-a172-af0232dd6455" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T001947Z:99b2cb6f-f35c-4d14-a172-af0232dd6455" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:19:46 GMT" + ], + "Content-Length": [ + "108" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d1ba1e40-70c8-4eef-ade5-8286fb28328c\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2021-06-10T00:18:30.747Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/databaseAzureAsyncOperation/d1ba1e40-70c8-4eef-ade5-8286fb28328c?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvbG9jYXRpb25zL2Vhc3R1cy9kYXRhYmFzZUF6dXJlQXN5bmNPcGVyYXRpb24vZDFiYTFlNDAtNzBjOC00ZWVmLWFkZTUtODI4NmZiMjgzMjhjP2FwaS12ZXJzaW9uPTIwMjEtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "f9e50a77-26a4-4f94-a7f9-fd04e8760a83" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "55a64838-4f73-4a4a-a1eb-ed6c164ea11c" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T002002Z:55a64838-4f73-4a4a-a1eb-ed6c164ea11c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:20:02 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"d1ba1e40-70c8-4eef-ade5-8286fb28328c\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2021-06-10T00:18:30.747Z\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/servers/sqlcrudtest-3847/databases/sqlcrudtest-805?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zODQ3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04MDU/YXBpLXZlcnNpb249MjAyMS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d648b788-6bb3-4566-879a-bfb45e201f82" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "b4088302-05d1-408e-810d-56458c475828" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T002002Z:b4088302-05d1-408e-810d-56458c475828" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:20:02 GMT" + ], + "Content-Length": [ + "1085" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"kind\": \"v12.0,user\",\r\n \"properties\": {\r\n \"collation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"maxSizeBytes\": 536870912000,\r\n \"status\": \"Online\",\r\n \"databaseId\": \"1a38ae46-8191-4f5e-b4bf-b86d939b3aa9\",\r\n \"creationDate\": \"2021-06-10T00:19:58.123Z\",\r\n \"currentServiceObjectiveName\": \"P1\",\r\n \"requestedServiceObjectiveName\": \"P1\",\r\n \"defaultSecondaryLocation\": \"westus\",\r\n \"catalogCollation\": \"SQL_Latin1_General_CP1_CI_AS\",\r\n \"zoneRedundant\": false,\r\n \"readScale\": \"Enabled\",\r\n \"currentSku\": {\r\n \"name\": \"Premium\",\r\n \"tier\": \"Premium\",\r\n \"capacity\": 125\r\n },\r\n \"currentBackupStorageRedundancy\": \"Geo\",\r\n \"requestedBackupStorageRedundancy\": \"Geo\",\r\n \"maintenanceConfigurationId\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default\",\r\n \"isLedgerOn\": false,\r\n \"isInfraEncryptionEnabled\": false\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/servers/sqlcrudtest-3847/databases/sqlcrudtest-805\",\r\n \"name\": \"sqlcrudtest-805\",\r\n \"type\": \"Microsoft.Sql/servers/databases\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/servers/sqlcrudtest-3847/databases/sqlcrudtest-805/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zODQ3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04MDUvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b691b6a1-34e3-43dc-a759-93b8741173e1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "21cb93dd-075b-4f88-96da-b2a58b457e85" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-correlation-request-id": [ + "198aedf6-79c9-4a9a-9065-f7e2c8065cfb" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T002002Z:198aedf6-79c9-4a9a-9065-f7e2c8065cfb" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:20:02 GMT" + ], + "Content-Length": [ + "332" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 7\r\n },\r\n \"id\": \"/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/servers/sqlcrudtest-3847/databases/sqlcrudtest-805/backupShortTermRetentionPolicies/default\",\r\n \"name\": \"default\",\r\n \"type\": \"Microsoft.Sql/servers/databases/backupShortTermRetentionPolicies\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/servers/sqlcrudtest-3847/databases/sqlcrudtest-805/backupShortTermRetentionPolicies/default?api-version=2021-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlR3JvdXBzL3NxbGNydWR0ZXN0LTc4OTkvcHJvdmlkZXJzL01pY3Jvc29mdC5TcWwvc2VydmVycy9zcWxjcnVkdGVzdC0zODQ3L2RhdGFiYXNlcy9zcWxjcnVkdGVzdC04MDUvYmFja3VwU2hvcnRUZXJtUmV0ZW50aW9uUG9saWNpZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIxLTAyLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"retentionDays\": 28\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "47f381fa-a361-4797-a8a1-37db4ca3a4c8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Sql.SqlManagementClient/1.54.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "53" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyOperationResults/d56e1be8-095c-4c4c-9a71-3f954d72f1a4?api-version=2021-02-01-preview" + ], + "Retry-After": [ + "15" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourceGroups/sqlcrudtest-7899/providers/Microsoft.Sql/locations/eastus/shortTermRetentionPolicyAzureAsyncOperation/d56e1be8-095c-4c4c-9a71-3f954d72f1a4?api-version=2021-02-01-preview" + ], + "x-ms-request-id": [ + "d56e1be8-095c-4c4c-9a71-3f954d72f1a4" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "d3c7cc7e-4f91-4391-a5a1-82ecee9c9899" + ], + "x-ms-routing-request-id": [ + "WESTCENTRALUS:20210610T002002Z:d3c7cc7e-4f91-4391-a5a1-82ecee9c9899" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:20:02 GMT" + ], + "Content-Length": [ + "76" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"operation\": \"UpdateLogicalDatabase\",\r\n \"startTime\": \"2021-06-10T00:20:02.717Z\"\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/resourcegroups/sqlcrudtest-7899?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZGMxNzg5YTgtMDc2Mi00ZGZiLTg5MDEtNGMwZGEwOGI4M2QzL3Jlc291cmNlZ3JvdXBzL3NxbGNydWR0ZXN0LTc4OTk/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f2a93d5f-c498-449e-a376-48488108abb7" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30015.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/dc1789a8-0762-4dfb-8901-4c0da08b83d3/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TUUxDUlVEVEVTVDoyRDc4OTktRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "3a7d448d-d49b-441e-91ae-ef6071ae5692" + ], + "x-ms-correlation-request-id": [ + "3a7d448d-d49b-441e-91ae-ef6071ae5692" + ], + "x-ms-routing-request-id": [ + "WESTUS:20210610T002004Z:3a7d448d-d49b-441e-91ae-ef6071ae5692" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 10 Jun 2021 00:20:04 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + } + ], + "Names": { + "CreateResourceGroup": [ + "sqlcrudtest-7899" + ], + "CreateServer": [ + "sqlcrudtest-3847" + ], + "TestShortTermRetentionPolicyScriptUseWhenFeatureIsDisabled": [ + "sqlcrudtest-805" + ] + }, + "Variables": { + "SubscriptionId": "dc1789a8-0762-4dfb-8901-4c0da08b83d3", + "DefaultLocation": "eastus" + } +} \ No newline at end of file diff --git a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/ShortTermRetentionTests.cs b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/ShortTermRetentionTests.cs index e286d532d527..62d8f7dff088 100644 --- a/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/ShortTermRetentionTests.cs +++ b/sdk/sqlmanagement/Microsoft.Azure.Management.Sql/tests/ShortTermRetentionTests.cs @@ -21,6 +21,8 @@ namespace Sql.Tests { public class ShortTermRetentionTests { + // The new created database's defaultDiffBackupIntervalHours could be null if you re-record this test after 06/20/2021. + [Fact] public void TestShortTermRetentionPolicyOnBasic() { @@ -29,6 +31,9 @@ public void TestShortTermRetentionPolicyOnBasic() // Valid Retention Days for Basic DB is 1 to 7 days. int defaultRetentionDays = 7; + // Valid Differential Backup Interval Hours is 12 or 24. + int defaultDiffBackupIntervalHours = 12; + // Create a DTU - Basic DB. ResourceGroup resourceGroup = context.CreateResourceGroup(); Server server = context.CreateServer(resourceGroup); @@ -44,20 +49,44 @@ public void TestShortTermRetentionPolicyOnBasic() // Test GET operation can get default retention days and diffbackupinterval value. BackupShortTermRetentionPolicy policyDefault = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); Assert.Equal(defaultRetentionDays, policyDefault.RetentionDays); + Assert.Equal(defaultDiffBackupIntervalHours, policyDefault.DiffBackupIntervalInHours); - // Attempt to set retention period to 8 days (invalid); Verify the operation fails on updating the policy. - BackupShortTermRetentionPolicy parameters1 = new BackupShortTermRetentionPolicy(retentionDays: 8); + // Failure Scenario 1: Attempt to set retention period to 8 days (invalid); Attemp to set the differential backup interval to 12 hours (valid); + // Verify the operation fails on updating the policy. So policy value equals to default value. + BackupShortTermRetentionPolicy parameters1 = new BackupShortTermRetentionPolicy(retentionDays: 8, diffBackupIntervalInHours: 12); sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters1); Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); BackupShortTermRetentionPolicy policy1 = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); Assert.Equal(defaultRetentionDays, policy1.RetentionDays); + Assert.Equal(defaultDiffBackupIntervalHours, policy1.DiffBackupIntervalInHours); + + // Failure Scenario 2: Attempt to set retention period to 6 days (valid); Attemp to set the differential backup interval to 6 hours (invalid); + // Verify the operation fails on updating the policy.So policy value equals to default value. + BackupShortTermRetentionPolicy parameters2 = new BackupShortTermRetentionPolicy(retentionDays: 6, diffBackupIntervalInHours: 6); + sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters2); + Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); + BackupShortTermRetentionPolicy policy2 = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + Assert.Equal(defaultRetentionDays, policy2.RetentionDays); + Assert.Equal(defaultDiffBackupIntervalHours, policy2.DiffBackupIntervalInHours); - // Attempt to set retention period to 6 days (valid); Verify the operation success. - BackupShortTermRetentionPolicy parameters3 = new BackupShortTermRetentionPolicy(retentionDays: 6); + // Success Scenario 1: Attempt to set retention period to 5 days (valid); Attemp to set the differential backup interval to 24 (valid); + // Verify the operation success. So policy value equals to the configure value. + BackupShortTermRetentionPolicy parameters3 = new BackupShortTermRetentionPolicy(retentionDays: 5, diffBackupIntervalInHours: 24); sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters3); Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); BackupShortTermRetentionPolicy policy3 = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); Assert.Equal(parameters3.RetentionDays, policy3.RetentionDays); + Assert.Equal(parameters3.DiffBackupIntervalInHours, policy3.DiffBackupIntervalInHours); + + // Success Scenario 2: Attempt to set retention period to 7 days (valid); Attemp to set the differential backup interval to null (valid); + // Verify the operation success. So policy value equals to the configure value.So policy value equals to the configure value. + BackupShortTermRetentionPolicy parameters4 = new BackupShortTermRetentionPolicy(retentionDays: 7, diffBackupIntervalInHours: null); + BackupShortTermRetentionPolicy originalPolicy = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters4); + Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); + BackupShortTermRetentionPolicy policy4 = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + Assert.Equal(parameters4.RetentionDays, policy4.RetentionDays); + Assert.Equal(originalPolicy.DiffBackupIntervalInHours, policy4.DiffBackupIntervalInHours); } } @@ -69,6 +98,9 @@ public void TestShortTermRetentionPolicyOnPremium() // Valid Retention Days for Basic DB is 1 to 35 days. int defaultRetentionDays = 7; + // Valid Differential Backup Interval Hours is 12 or 24. + int defaultDiffBackupIntervalHours = 12; + // Create a DTU - Premium DB. ResourceGroup resourceGroup = context.CreateResourceGroup(); Server server = context.CreateServer(resourceGroup); @@ -84,20 +116,44 @@ public void TestShortTermRetentionPolicyOnPremium() // Test GET operation can get default retention days BackupShortTermRetentionPolicy policyDefault = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); Assert.Equal(defaultRetentionDays, policyDefault.RetentionDays); + Assert.Equal(defaultDiffBackupIntervalHours, policyDefault.DiffBackupIntervalInHours); - // Attempt to set retention period to 36 days (invalid); Verify the operation fails on updating the policy. - BackupShortTermRetentionPolicy parameters1 = new BackupShortTermRetentionPolicy(retentionDays: 36); + // Failure Scenario 1: Attempt to set retention period to 40 days (invalid); Attemp to set the differential backup interval to 12 hours (valid); + // Verify the operation fails on updating the policy. So policy value equals to default value. + BackupShortTermRetentionPolicy parameters1 = new BackupShortTermRetentionPolicy(retentionDays: 40, diffBackupIntervalInHours: 12); sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters1); Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); - BackupShortTermRetentionPolicy policy = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); - Assert.Equal(defaultRetentionDays, policy.RetentionDays); + BackupShortTermRetentionPolicy policy1 = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + Assert.Equal(defaultRetentionDays, policy1.RetentionDays); + Assert.Equal(defaultDiffBackupIntervalHours, policy1.DiffBackupIntervalInHours); + + // Failure Scenario 2: Attempt to set retention period to 35 days (valid); Attemp to set the differential backup interval to 6 hours (invalid); + // Verify the operation fails on updating the policy.So policy value equals to default value. + BackupShortTermRetentionPolicy parameters2 = new BackupShortTermRetentionPolicy(retentionDays: 35, diffBackupIntervalInHours: 6); + sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters2); + Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); + BackupShortTermRetentionPolicy policy2 = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + Assert.Equal(defaultRetentionDays, policy2.RetentionDays); + Assert.Equal(defaultDiffBackupIntervalHours, policy2.DiffBackupIntervalInHours); - // Increase retention period to 35 days (valid); Verify the operation success. - BackupShortTermRetentionPolicy parameters3 = new BackupShortTermRetentionPolicy(retentionDays: 35); + // Success Scenario 1: Attempt to set retention period to 35 days (valid); Attemp to set the differential backup interval to 24 (valid); + // Verify the operation success. So policy value equals to the configure value. + BackupShortTermRetentionPolicy parameters3 = new BackupShortTermRetentionPolicy(retentionDays: 35, diffBackupIntervalInHours: 24); sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters3); Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); BackupShortTermRetentionPolicy policy3 = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); Assert.Equal(parameters3.RetentionDays, policy3.RetentionDays); + Assert.Equal(parameters3.DiffBackupIntervalInHours, policy3.DiffBackupIntervalInHours); + + // Success Scenario 2: Attempt to set retention period to 34 days (valid); Attemp to set the differential backup interval to null (valid); + // Verify the operation success. So policy value equals to the configure value.So policy value equals to the configure value. + BackupShortTermRetentionPolicy parameters4 = new BackupShortTermRetentionPolicy(retentionDays: 34, diffBackupIntervalInHours: null); + BackupShortTermRetentionPolicy originalPolicy = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters4); + Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); + BackupShortTermRetentionPolicy policy4 = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + Assert.Equal(parameters4.RetentionDays, policy4.RetentionDays); + Assert.Equal(originalPolicy.DiffBackupIntervalInHours, policy4.DiffBackupIntervalInHours); } } @@ -110,6 +166,9 @@ public void TestShortTermRetentionPolicyOnGeneralPurpose() // Valid Retention Days for GeneralPurpose DB is 1 to 35 days. int defaultRetentionDays = 7; + // Valid Differential Backup Interval Hours is 12 or 24. + int defaultDiffBackupIntervalHours = 12; + // Create a vCore - GeneralPurpose DB. ResourceGroup resourceGroup = context.CreateResourceGroup(); Server server = context.CreateServer(resourceGroup); @@ -122,26 +181,46 @@ public void TestShortTermRetentionPolicyOnGeneralPurpose() Sku = new Microsoft.Azure.Management.Sql.Models.Sku(ServiceObjectiveName.P1) }); - // Test GET operation can get default retention days and diffbackupinterval value. - BackupShortTermRetentionPolicy policyDefault = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); - Assert.Equal(defaultRetentionDays, policyDefault.RetentionDays); - - // Attempt to set retention period to 36 days (invalid); Verify the operation fails on updating the policy. - BackupShortTermRetentionPolicy parameters1 = new BackupShortTermRetentionPolicy(retentionDays: 36); + // Failure Scenario 1: Attempt to set retention period to 40 days (invalid); Attemp to set the differential backup interval to 12 hours (valid); + // Verify the operation fails on updating the policy. So policy value equals to default value. + BackupShortTermRetentionPolicy parameters1 = new BackupShortTermRetentionPolicy(retentionDays: 40, diffBackupIntervalInHours: 12); sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters1); Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); - BackupShortTermRetentionPolicy policy = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); - Assert.Equal(defaultRetentionDays, policy.RetentionDays); + BackupShortTermRetentionPolicy policy1 = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + Assert.Equal(defaultRetentionDays, policy1.RetentionDays); + Assert.Equal(defaultDiffBackupIntervalHours, policy1.DiffBackupIntervalInHours); + + // Failure Scenario 2: Attempt to set retention period to 35 days (valid); Attemp to set the differential backup interval to 6 hours (invalid); + // Verify the operation fails on updating the policy.So policy value equals to default value. + BackupShortTermRetentionPolicy parameters2 = new BackupShortTermRetentionPolicy(retentionDays: 35, diffBackupIntervalInHours: 6); + sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters2); + Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); + BackupShortTermRetentionPolicy policy2 = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + Assert.Equal(defaultRetentionDays, policy2.RetentionDays); + Assert.Equal(defaultDiffBackupIntervalHours, policy2.DiffBackupIntervalInHours); - // Increase retention period to 35 days (valid); Verify the operation success. - BackupShortTermRetentionPolicy parameters3 = new BackupShortTermRetentionPolicy(retentionDays: 35); + // Success Scenario 1: Attempt to set retention period to 35 days (valid); Attemp to set the differential backup interval to 24 (valid); + // Verify the operation success. So policy value equals to the configure value. + BackupShortTermRetentionPolicy parameters3 = new BackupShortTermRetentionPolicy(retentionDays: 35, diffBackupIntervalInHours: 24); sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters3); Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); BackupShortTermRetentionPolicy policy3 = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); Assert.Equal(parameters3.RetentionDays, policy3.RetentionDays); + Assert.Equal(parameters3.DiffBackupIntervalInHours, policy3.DiffBackupIntervalInHours); + + // Success Scenario 2: Attempt to set retention period to 34 days (valid); Attemp to set the differential backup interval to null (valid); + // Verify the operation success. So policy value equals to the configure value.So policy value equals to the configure value. + BackupShortTermRetentionPolicy parameters4 = new BackupShortTermRetentionPolicy(retentionDays: 34, diffBackupIntervalInHours: null); + BackupShortTermRetentionPolicy originalPolicy = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + sqlClient.BackupShortTermRetentionPolicies.CreateOrUpdateWithHttpMessagesAsync(resourceGroup.Name, server.Name, database.Name, parameters4); + Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities.Wait(TimeSpan.FromSeconds(3)); + BackupShortTermRetentionPolicy policy4 = sqlClient.BackupShortTermRetentionPolicies.Get(resourceGroup.Name, server.Name, database.Name); + Assert.Equal(parameters4.RetentionDays, policy4.RetentionDays); + Assert.Equal(originalPolicy.DiffBackupIntervalInHours, policy4.DiffBackupIntervalInHours); } } + // Test when Feature Configurable Differential Backup (CDB) is ON. [Fact] public async void TestShortTermRetentionPolicyOnGeneralPurposeScriptUse() { @@ -150,6 +229,55 @@ public async void TestShortTermRetentionPolicyOnGeneralPurposeScriptUse() // Valid Retention Days for GeneralPurpose DB is 1 to 35 days. int defaultRetentionDays = 7; + // Valid Differential Backup Interval Hours is 12 or 24. + int defaultDiffBackupIntervalHours = 12; + + // Create a vCore - GeneralPurpose DB. + ResourceGroup resourceGroup = context.CreateResourceGroup(); + Server server = context.CreateServer(resourceGroup); + SqlManagementClient sqlClient = context.GetClient(); + Database database = sqlClient.Databases.CreateOrUpdate( + resourceGroup.Name, server.Name, SqlManagementTestUtilities.GenerateName(), + new Database + { + Location = server.Location, + Sku = new Microsoft.Azure.Management.Sql.Models.Sku(ServiceObjectiveName.P1) + }); + + // Senario 1: Test Update operation through GET operation without provide DiffBackupIntervalInHours. + var strPolicy1 = await sqlClient.BackupShortTermRetentionPolicies.GetAsync(resourceGroup.Name.ToString(), server.Name.ToString(), database.Name.ToString()); + strPolicy1.RetentionDays = 28; + await sqlClient.BackupShortTermRetentionPolicies.BeginCreateOrUpdateAsync(resourceGroup.Name.ToString(), server.Name.ToString(), database.Name.ToString(), strPolicy1); + Assert.Equal(28, strPolicy1.RetentionDays); + Assert.Equal(defaultDiffBackupIntervalHours, strPolicy1.DiffBackupIntervalInHours); + + // Scenario 2: Test Update operation through GET operation without provide RetentionDays. + strPolicy1.DiffBackupIntervalInHours = 24; + await sqlClient.BackupShortTermRetentionPolicies.BeginCreateOrUpdateAsync(resourceGroup.Name.ToString(), server.Name.ToString(), database.Name.ToString(), strPolicy1); + Assert.Equal(28, strPolicy1.RetentionDays); + Assert.Equal(24, strPolicy1.DiffBackupIntervalInHours); + + // Scenario 3: Test Update operation through GET operation. + var strPolicy3 = await sqlClient.BackupShortTermRetentionPolicies.GetAsync(resourceGroup.Name.ToString(), server.Name.ToString(), database.Name.ToString()); + Assert.Equal(defaultRetentionDays, strPolicy3.RetentionDays); + Assert.Equal(defaultDiffBackupIntervalHours, strPolicy3.DiffBackupIntervalInHours); + strPolicy3.RetentionDays = 15; + strPolicy3.DiffBackupIntervalInHours = 12; + await sqlClient.BackupShortTermRetentionPolicies.BeginCreateOrUpdateAsync(resourceGroup.Name.ToString(), server.Name.ToString(), database.Name.ToString(), strPolicy3); + Assert.Equal(15, strPolicy3.RetentionDays); + Assert.Equal(12, strPolicy3.DiffBackupIntervalInHours); + } + } + + // Test when Feature Configurable Differential Backup (CDB) is OFF. + [Fact] + public async void TestShortTermRetentionPolicyScriptUseWhenFeatureIsDisabled() + { + using (SqlManagementTestContext context = new SqlManagementTestContext(this)) + { + // Valid Retention Days for GeneralPurpose DB is 1 to 35 days. + int defaultRetentionDays = 7; + // Create a vCore - GeneralPurpose DB. ResourceGroup resourceGroup = context.CreateResourceGroup(); Server server = context.CreateServer(resourceGroup); @@ -162,11 +290,12 @@ public async void TestShortTermRetentionPolicyOnGeneralPurposeScriptUse() Sku = new Microsoft.Azure.Management.Sql.Models.Sku(ServiceObjectiveName.P1) }); - // Test Update operation through GET operation. - var strPolicy = await sqlClient.BackupShortTermRetentionPolicies.GetAsync(resourceGroup.Name.ToString(), server.Name.ToString(), database.Name.ToString()); - strPolicy.RetentionDays = 28; - await sqlClient.BackupShortTermRetentionPolicies.BeginCreateOrUpdateAsync(resourceGroup.Name.ToString(), server.Name.ToString(), database.Name.ToString(), strPolicy); - Assert.Equal(28, strPolicy.RetentionDays); + // Senario 1: Test Update operation through GET operation when feature CDB is OFF. + var strPolicy1 = await sqlClient.BackupShortTermRetentionPolicies.GetAsync(resourceGroup.Name.ToString(), server.Name.ToString(), database.Name.ToString()); + Assert.Equal(defaultRetentionDays, strPolicy1.RetentionDays); + strPolicy1.RetentionDays = 28; + await sqlClient.BackupShortTermRetentionPolicies.BeginCreateOrUpdateAsync(resourceGroup.Name.ToString(), server.Name.ToString(), database.Name.ToString(), strPolicy1); + Assert.Equal(28, strPolicy1.RetentionDays); } } } diff --git a/sdk/sqlmanagement/ci.yml b/sdk/sqlmanagement/ci.yml index 01f544d5de19..84bf64291c89 100644 --- a/sdk/sqlmanagement/ci.yml +++ b/sdk/sqlmanagement/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/storage/Azure.ResourceManager.Storage/README.md b/sdk/storage/Azure.ResourceManager.Storage/README.md index bc56f6b47939..9ac1023d0568 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/README.md +++ b/sdk/storage/Azure.ResourceManager.Storage/README.md @@ -18,7 +18,7 @@ Install-Package Azure.ResourceManager.Storage -Version 1.0.0-preview.2 ### Authenticate the Client -To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) ## Key concepts @@ -28,9 +28,9 @@ Key concepts of the Azure .NET SDK can be found [here](https://azure.github.io/a Documentation is available to help you learn how to use this package -- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/master/doc/mgmt_preview_quickstart.md) +- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/mgmt_preview_quickstart.md) - [API References](https://docs.microsoft.com/dotnet/api/?view=azure-dotnet) -- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md) +- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md) ## Examples diff --git a/sdk/storage/Azure.Storage.Blobs.Batch/README.md b/sdk/storage/Azure.Storage.Blobs.Batch/README.md index 4011918f9452..b49bd91854a3 100644 --- a/sdk/storage/Azure.Storage.Blobs.Batch/README.md +++ b/sdk/storage/Azure.Storage.Blobs.Batch/README.md @@ -45,12 +45,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -176,7 +176,7 @@ catch (AggregateException) ## Next steps -Check out our [sync](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs.Batch/samples/Sample03a_Batching.cs) and [async](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs.Batch/samples/Sample03b_BatchingAsync.cs) samples for more. +Check out our [sync](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs.Batch/samples/Sample03a_Batching.cs) and [async](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs.Batch/samples/Sample03b_BatchingAsync.cs) samples for more. ## Contributing @@ -196,7 +196,7 @@ additional questions or comments. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fstorage%2FAzure.Storage.Blobs.Batch%2FREADME.png) -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Azure.Storage.Blobs.Batch/src +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.Blobs.Batch/src [package]: https://www.nuget.org/packages/Azure.Storage.Blobs.Batch/ [docs]: https://azure.github.io/azure-sdk-for-net/storage.html [rest_docs]: https://docs.microsoft.com/rest/api/storageservices/blob-service-rest-api @@ -208,10 +208,10 @@ additional questions or comments. [storage_account_create_portal]: https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-portal [azure_cli]: https://docs.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ -[identity]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity/README.md -[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core/src/RequestFailedException.cs +[identity]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity/README.md +[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core/src/RequestFailedException.cs [error_codes]: https://docs.microsoft.com/rest/api/storageservices/blob-service-error-codes -[storage_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/CONTRIBUTING.md +[storage_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/CONTRIBUTING.md [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/storage/Azure.Storage.Blobs.Batch/samples/README.md b/sdk/storage/Azure.Storage.Blobs.Batch/samples/README.md index a6201e1fca50..2a4d94143c8b 100644 --- a/sdk/storage/Azure.Storage.Blobs.Batch/samples/README.md +++ b/sdk/storage/Azure.Storage.Blobs.Batch/samples/README.md @@ -11,4 +11,4 @@ description: Samples for the Azure.Storage.Blobs.Batch client library # Azure.Storage.Blobs.Batch Samples -- Delete or set access tiers in batches [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs.Batch/samples/Sample03a_Batching.cs) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs.Batch/samples/Sample03b_BatchingAsync.cs). +- Delete or set access tiers in batches [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs.Batch/samples/Sample03a_Batching.cs) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs.Batch/samples/Sample03b_BatchingAsync.cs). diff --git a/sdk/storage/Azure.Storage.Blobs.ChangeFeed/README.md b/sdk/storage/Azure.Storage.Blobs.ChangeFeed/README.md index 55fb503481d0..77acef68eb4e 100644 --- a/sdk/storage/Azure.Storage.Blobs.ChangeFeed/README.md +++ b/sdk/storage/Azure.Storage.Blobs.ChangeFeed/README.md @@ -56,12 +56,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -127,8 +127,8 @@ helpful [`ErrorCode`s][error_codes]. Many of these errors are recoverable. Get started with our [Change Feed samples][samples]: -1. [Hello World](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/Sample01a_HelloWorld.cs): Get changes that have occured in your storage account (or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/Sample01b_HelloWorldAsync.cs)) -2. [Auth](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/Sample02_Auth.cs): Authenticate with connection strings, public access, shared keys, shared access signatures, and Azure Active Directory. +1. [Hello World](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/Sample01a_HelloWorld.cs): Get changes that have occured in your storage account (or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/Sample01b_HelloWorldAsync.cs)) +2. [Auth](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/Sample02_Auth.cs): Authenticate with connection strings, public access, shared keys, shared access signatures, and Azure Active Directory. ## Contributing @@ -147,7 +147,7 @@ or contact [opencode@microsoft.com][coc_contact] with any additional questions or comments. -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Azure.Storage.Blobs.ChangeFeed/src +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.Blobs.ChangeFeed/src [package]: https://www.nuget.org/packages/Azure.Storage.Blobs.ChangeFeed/ [product_docs]: https://docs.microsoft.com/azure/storage/blobs/storage-blob-change-feed [azure_sub]: https://azure.microsoft.com/free/ @@ -156,11 +156,11 @@ additional questions or comments. [storage_account_create_ps]: https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-powershell [storage_account_create_cli]: https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-cli [storage_account_create_portal]: https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-portal -[authenticating_with_blobs]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/samples/Sample02_Auth.cs -[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core/src/RequestFailedException.cs +[authenticating_with_blobs]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/samples/Sample02_Auth.cs +[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core/src/RequestFailedException.cs [error_codes]: https://docs.microsoft.com/rest/api/storageservices/blob-service-error-codes -[samples]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/ -[storage_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/CONTRIBUTING.md +[samples]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/ +[storage_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/CONTRIBUTING.md [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/README.md b/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/README.md index 8e4e5e33c5de..210f3152adcd 100644 --- a/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/README.md +++ b/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/README.md @@ -11,7 +11,7 @@ description: Samples for the Azure.Storage.Blobs.ChangeFeed client library # Azure.Storage.Blobs.ChangeFeed Samples -- Iterate through the entire Change Feed [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/Sample01a_HelloWorld.cs#L23) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/Sample01b_HelloWorldAsync.cs#L24) -- Iterate through the Change Feed between a start and end date [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/Sample01a_HelloWorld.cs#L46) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/Sample01b_HelloWorldAsync.cs#L49) -- Resuming a previous iteration of a Change Feed using the continuation token [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/Sample01a_HelloWorld.cs#L78) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/Sample01b_HelloWorldAsync.cs#L83) -- Polling for events using the continuation token [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/Sample01a_HelloWorld.cs#L124) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/Sample01b_HelloWorldAsync.cs#L134) +- Iterate through the entire Change Feed [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/Sample01a_HelloWorld.cs#L23) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/Sample01b_HelloWorldAsync.cs#L24) +- Iterate through the Change Feed between a start and end date [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/Sample01a_HelloWorld.cs#L46) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/Sample01b_HelloWorldAsync.cs#L49) +- Resuming a previous iteration of a Change Feed using the continuation token [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/Sample01a_HelloWorld.cs#L78) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/Sample01b_HelloWorldAsync.cs#L83) +- Polling for events using the continuation token [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/Sample01a_HelloWorld.cs#L124) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs.ChangeFeed/samples/Sample01b_HelloWorldAsync.cs#L134) diff --git a/sdk/storage/Azure.Storage.Blobs/AzureStorageNetMigrationV12.md b/sdk/storage/Azure.Storage.Blobs/AzureStorageNetMigrationV12.md index d77ec47ced1f..da3b1279bac2 100644 --- a/sdk/storage/Azure.Storage.Blobs/AzureStorageNetMigrationV12.md +++ b/sdk/storage/Azure.Storage.Blobs/AzureStorageNetMigrationV12.md @@ -66,13 +66,13 @@ The legacy Storage SDK contained a `TokenCredential` class that could be used to v12 -A `TokenCredential` abstract class (different API surface than v11) exists in the Azure.Core package that all libraries of the new Azure SDK family depend on, and can be used to construct Storage clients. Implementations of this class can be found separately in the [Azure.Identity](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity) package. [`DefaultAzureCredential`](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity#defaultazurecredential) is a good starting point, with code as simple as the following: +A `TokenCredential` abstract class (different API surface than v11) exists in the Azure.Core package that all libraries of the new Azure SDK family depend on, and can be used to construct Storage clients. Implementations of this class can be found separately in the [Azure.Identity](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity) package. [`DefaultAzureCredential`](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity#defaultazurecredential) is a good starting point, with code as simple as the following: ```C# Snippet:SampleSnippetsBlobMigration_TokenCredential BlobServiceClient client = new BlobServiceClient(new Uri(serviceUri), new DefaultAzureCredential()); ``` -You can view more [Identity samples](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity#examples) for how to authenticate with the Identity package. +You can view more [Identity samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity#examples) for how to authenticate with the Identity package. #### SAS diff --git a/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md b/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md index aab3736e493f..931d6bdabfbb 100644 --- a/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md +++ b/sdk/storage/Azure.Storage.Blobs/CHANGELOG.md @@ -9,6 +9,7 @@ - Added support for listing deleted root blobs with versions to BlobContainerClient.GetBlobs() and .GetBlobsByHierarchy() - Added support for OAuth copy sources for synchronous copy operations. - Added support for Parquet as an input format in BlockBlobClient.Query(). +- Added optimization to unwrap encryption key once for DownloadTo and OpenRead when Client Side Encryption is enabled. ## 12.9.0 (2021-06-08) - Includes all features from 12.9.0-beta.4. diff --git a/sdk/storage/Azure.Storage.Blobs/README.md b/sdk/storage/Azure.Storage.Blobs/README.md index 135b1537e382..176396c5c8a6 100644 --- a/sdk/storage/Azure.Storage.Blobs/README.md +++ b/sdk/storage/Azure.Storage.Blobs/README.md @@ -49,19 +49,19 @@ Blob storage offers three types of resources: - A _container_ in the storage account used via `BlobContainerClient` - A _blob_ in a container used via `BlobClient` -Learn more about options for authentication _(including Connection Strings, Shared Key, Shared Key Signatures, Active Directory, and anonymous public access)_ [in our samples.](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/samples/Sample02_Auth.cs) +Learn more about options for authentication _(including Connection Strings, Shared Key, Shared Key Signatures, Active Directory, and anonymous public access)_ [in our samples.](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/samples/Sample02_Auth.cs) ### Thread safety We guarantee that all client instance methods are thread-safe and independent of each other ([guideline](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-service-methods-thread-safety)). This ensures that the recommendation of reusing client instances is always safe, even across threads. ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -185,8 +185,8 @@ catch (RequestFailedException ex) Get started with our [Blob samples][samples]: -1. [Hello World](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/samples/Sample01a_HelloWorld.cs): Upload, download, and list blobs (or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/samples/Sample01b_HelloWorldAsync.cs)) -2. [Auth](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/samples/Sample02_Auth.cs): Authenticate with connection strings, public access, shared keys, shared access signatures, and Azure Active Directory. +1. [Hello World](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/samples/Sample01a_HelloWorld.cs): Upload, download, and list blobs (or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/samples/Sample01b_HelloWorldAsync.cs)) +2. [Auth](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/samples/Sample02_Auth.cs): Authenticate with connection strings, public access, shared keys, shared access signatures, and Azure Active Directory. ## Contributing @@ -206,7 +206,7 @@ additional questions or comments. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fstorage%2FAzure.Storage.Blobs%2FREADME.png) -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Azure.Storage.Blobs/src +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.Blobs/src [package]: https://www.nuget.org/packages/Azure.Storage.Blobs/ [docs]: https://docs.microsoft.com/dotnet/api/azure.storage.blobs [rest_docs]: https://docs.microsoft.com/rest/api/storageservices/blob-service-rest-api @@ -218,13 +218,13 @@ additional questions or comments. [storage_account_create_portal]: https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-portal [azure_cli]: https://docs.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ -[identity]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity/README.md +[identity]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity/README.md [storage_ad]: https://docs.microsoft.com/azure/storage/common/storage-auth-aad [storage_ad_sample]: samples/Sample02c_Auth_ActiveDirectory.cs -[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core/src/RequestFailedException.cs +[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core/src/RequestFailedException.cs [error_codes]: https://docs.microsoft.com/rest/api/storageservices/blob-service-error-codes -[samples]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/samples/ -[storage_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/CONTRIBUTING.md +[samples]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/samples/ +[storage_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/CONTRIBUTING.md [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/storage/Azure.Storage.Blobs/perf/README.md b/sdk/storage/Azure.Storage.Blobs/perf/README.md index 1642d7d96d23..2dcf58f53020 100644 --- a/sdk/storage/Azure.Storage.Blobs/perf/README.md +++ b/sdk/storage/Azure.Storage.Blobs/perf/README.md @@ -1,6 +1,6 @@ # Azure Storage Blobs performance tests -The assets in this area comprise a set of performance tests for the [Azure Storage Blobs client library for .NET](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Azure.Storage.Blobs) and its associated ecosystem. The artifacts in this library are intended to be used primarily with the Azure SDK engineering system's testing infrastructure, but may also be run as stand-alone applications from the command line. +The assets in this area comprise a set of performance tests for the [Azure Storage Blobs client library for .NET](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.Blobs) and its associated ecosystem. The artifacts in this library are intended to be used primarily with the Azure SDK engineering system's testing infrastructure, but may also be run as stand-alone applications from the command line. ## Contributing @@ -10,6 +10,6 @@ When you submit a pull request, a CLA-bot will automatically determine whether y This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. -Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/master/CONTRIBUTING.md) for more information. +Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/main/CONTRIBUTING.md) for more information. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fstorage%2FAzure.Storage.Blobs.Perf%2FREADME.png) diff --git a/sdk/storage/Azure.Storage.Blobs/samples/README.md b/sdk/storage/Azure.Storage.Blobs/samples/README.md index a8537adca1e0..8413555807d5 100644 --- a/sdk/storage/Azure.Storage.Blobs/samples/README.md +++ b/sdk/storage/Azure.Storage.Blobs/samples/README.md @@ -11,6 +11,6 @@ description: Samples for the Azure.Storage.Blobs client library # Azure.Storage.Blobs Samples -- Upload, download, list blobs, and check for errors [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/samples/Sample01a_HelloWorld.cs) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/samples/Sample01b_HelloWorldAsync.cs). -- [Authenticate with connection strings, public access, shared keys, shared access signatures, and Azure Active Directory.](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/samples/Sample02_Auth.cs) -- Delete or set access tiers in batches [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs.Batch/samples/Sample03a_Batching.cs) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs.Batch/samples/Sample03b_BatchingAsync.cs). +- Upload, download, list blobs, and check for errors [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/samples/Sample01a_HelloWorld.cs) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/samples/Sample01b_HelloWorldAsync.cs). +- [Authenticate with connection strings, public access, shared keys, shared access signatures, and Azure Active Directory.](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/samples/Sample02_Auth.cs) +- Delete or set access tiers in batches [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs.Batch/samples/Sample03a_Batching.cs) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs.Batch/samples/Sample03b_BatchingAsync.cs). diff --git a/sdk/storage/Azure.Storage.Blobs/src/AppendBlobClient.cs b/sdk/storage/Azure.Storage.Blobs/src/AppendBlobClient.cs index e2ab12a22f7c..e4512245fdd2 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/AppendBlobClient.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/AppendBlobClient.cs @@ -866,6 +866,10 @@ private async Task> CreateInternal( DiagnosticScope scope = ClientConfiguration.ClientDiagnostics.CreateScope($"{nameof(AppendBlobClient)}.{nameof(Create)}"); + conditions.ValidateConditionsNotPresent( + BlobRequestConditionProperty.IfAppendPositionEqual + | BlobRequestConditionProperty.IfMaxSizeLessThanOrEqual); + try { scope.Start(); @@ -1127,6 +1131,9 @@ internal async Task> AppendBlockInternal( DiagnosticScope scope = ClientConfiguration.ClientDiagnostics.CreateScope($"{nameof(AppendBlobClient)}.{nameof(AppendBlock)}"); + // All AppendBlobRequestConditions are valid. + conditions.ValidateConditionsNotPresent(BlobRequestConditionProperty.None); + try { scope.Start(); @@ -1522,6 +1529,15 @@ private async Task> AppendBlockFromUriInternal( DiagnosticScope scope = ClientConfiguration.ClientDiagnostics.CreateScope($"{nameof(AppendBlobClient)}.{nameof(AppendBlockFromUri)}"); + // All destination AppendBlobRequestConditions are valid. + conditions.ValidateConditionsNotPresent(BlobRequestConditionProperty.None); + + sourceConditions.ValidateConditionsNotPresent( + BlobRequestConditionProperty.LeaseId + | BlobRequestConditionProperty.TagConditions + | BlobRequestConditionProperty.IfAppendPositionEqual + | BlobRequestConditionProperty.IfMaxSizeLessThanOrEqual); + try { scope.Start(); @@ -1691,6 +1707,10 @@ private async Task> SealInternal( { DiagnosticScope scope = ClientConfiguration.ClientDiagnostics.CreateScope($"{nameof(AppendBlobClient)}.{nameof(Seal)}"); + conditions.ValidateConditionsNotPresent( + BlobRequestConditionProperty.IfMaxSizeLessThanOrEqual + | BlobRequestConditionProperty.TagConditions); + try { scope.Start(); diff --git a/sdk/storage/Azure.Storage.Blobs/src/Azure.Storage.Blobs.csproj b/sdk/storage/Azure.Storage.Blobs/src/Azure.Storage.Blobs.csproj index e512ca8c25e8..b3ac3a36dac0 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Azure.Storage.Blobs.csproj +++ b/sdk/storage/Azure.Storage.Blobs/src/Azure.Storage.Blobs.csproj @@ -25,6 +25,7 @@ + diff --git a/sdk/storage/Azure.Storage.Blobs/src/BlobBaseClient.cs b/sdk/storage/Azure.Storage.Blobs/src/BlobBaseClient.cs index b6c54af90ba4..3bf1460ecec1 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/BlobBaseClient.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/BlobBaseClient.cs @@ -1787,6 +1787,10 @@ internal async Task StagedDownloadAsync( { PartitionedDownloader downloader = new PartitionedDownloader(this, transferOptions); + if (UsingClientSideEncryption) + { + ClientSideDecryptor.BeginContentEncryptionKeyCaching(); + } if (async) { return await downloader.DownloadToAsync(destination, conditions, cancellationToken).ConfigureAwait(false); @@ -2077,12 +2081,22 @@ internal async Task OpenReadInternal( readConditions = readConditions?.WithIfMatch(etag) ?? new BlobRequestConditions { IfMatch = etag }; } + ClientSideDecryptor.ContentEncryptionKeyCache contentEncryptionKeyCache = default; + if (UsingClientSideEncryption && !allowModifications) + { + contentEncryptionKeyCache = new(); + } + return new LazyLoadingReadOnlyStream( async (HttpRange range, bool rangeGetContentHash, bool async, CancellationToken cancellationToken) => { + if (UsingClientSideEncryption) + { + ClientSideDecryptor.BeginContentEncryptionKeyCaching(contentEncryptionKeyCache); + } Response response = await DownloadStreamingInternal( range, readConditions, diff --git a/sdk/storage/Azure.Storage.Blobs/src/BlobExtensions.cs b/sdk/storage/Azure.Storage.Blobs/src/BlobExtensions.cs index 78c83f08647c..874c393394f3 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/BlobExtensions.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/BlobExtensions.cs @@ -1375,17 +1375,18 @@ internal static BlobLegalHoldResult ToBlobLegalHoldInfo(this ResponseWithHeaders #endregion #region ValidateConditionsNotPresent - internal static void ValidateConditionsNotPresent(this BlobRequestConditions requestConditions, BlobRequestConditionProperty invalidConditions) + internal static void ValidateConditionsNotPresent(this BlobLeaseRequestConditions requestConditions, BlobRequestConditionProperty invalidConditions) { - if (requestConditions == null) + if (AppContextSwitchHelper.GetConfigValue( + Constants.DisableRequestConditionsValidationSwitchName, + Constants.DisableRequestConditionsValidationEnvVar)) { return; } - if ((invalidConditions & BlobRequestConditionProperty.LeaseId) == BlobRequestConditionProperty.LeaseId - && requestConditions.LeaseId != null) + if (requestConditions == null) { - throw new ArgumentException($"{nameof(BlobRequestConditions.LeaseId)} is not applicable to this API."); + return; } if ((invalidConditions & BlobRequestConditionProperty.TagConditions) == BlobRequestConditionProperty.TagConditions @@ -1418,6 +1419,99 @@ internal static void ValidateConditionsNotPresent(this BlobRequestConditions req throw new ArgumentException($"{nameof(BlobRequestConditions.IfNoneMatch)} is not applicable to this API."); } } + + internal static void ValidateConditionsNotPresent(this BlobRequestConditions requestConditions, BlobRequestConditionProperty invalidConditions) + { + if (AppContextSwitchHelper.GetConfigValue( + Constants.DisableRequestConditionsValidationSwitchName, + Constants.DisableRequestConditionsValidationEnvVar)) + { + return; + } + + if (requestConditions == null) + { + return; + } + + // Validate BlobLeaseRequestConditions conditions. + ((BlobLeaseRequestConditions)requestConditions).ValidateConditionsNotPresent(invalidConditions); + + // Validate BlobRequestConditions specific conditions. + if ((invalidConditions & BlobRequestConditionProperty.LeaseId) == BlobRequestConditionProperty.LeaseId + && requestConditions.LeaseId != null) + { + throw new ArgumentException($"{nameof(BlobRequestConditions.LeaseId)} is not applicable to this API."); + } + } + + internal static void ValidateConditionsNotPresent(this AppendBlobRequestConditions requestConditions, BlobRequestConditionProperty invalidConditions) + { + if (AppContextSwitchHelper.GetConfigValue( + Constants.DisableRequestConditionsValidationSwitchName, + Constants.DisableRequestConditionsValidationEnvVar)) + { + return; + } + + if (requestConditions == null) + { + return; + } + + // Validate BlobRequestConditions + ((BlobRequestConditions)requestConditions).ValidateConditionsNotPresent(invalidConditions); + + // Validate AppendBlobRequestConditions specific conditions. + if ((invalidConditions & BlobRequestConditionProperty.IfAppendPositionEqual) == BlobRequestConditionProperty.IfAppendPositionEqual + && requestConditions.IfAppendPositionEqual != null) + { + throw new ArgumentException($"{nameof(AppendBlobRequestConditions.IfAppendPositionEqual)} is not applicable to this API."); + } + + if ((invalidConditions & BlobRequestConditionProperty.IfMaxSizeLessThanOrEqual) == BlobRequestConditionProperty.IfMaxSizeLessThanOrEqual + && requestConditions.IfMaxSizeLessThanOrEqual != null) + { + throw new ArgumentException($"{nameof(AppendBlobRequestConditions.IfMaxSizeLessThanOrEqual)} is not applicable to this API."); + } + } + + internal static void ValidateConditionsNotPresent(this PageBlobRequestConditions requestConditions, BlobRequestConditionProperty invalidConditions) + { + if (AppContextSwitchHelper.GetConfigValue( + Constants.DisableRequestConditionsValidationSwitchName, + Constants.DisableRequestConditionsValidationEnvVar)) + { + return; + } + + if (requestConditions == null) + { + return; + } + + // Validate BlobRequestConditions + ((BlobRequestConditions)requestConditions).ValidateConditionsNotPresent(invalidConditions); + + // Validate PageBlobRequestConditions specific conditions. + if ((invalidConditions & BlobRequestConditionProperty.IfSequenceNumberLessThan) == BlobRequestConditionProperty.IfSequenceNumberLessThan + && requestConditions.IfSequenceNumberLessThan != null) + { + throw new ArgumentException($"{nameof(PageBlobRequestConditions.IfSequenceNumberLessThan)} is not applicable to this API."); + } + + if ((invalidConditions & BlobRequestConditionProperty.IfSequenceNumberLessThanOrEqual) == BlobRequestConditionProperty.IfSequenceNumberLessThanOrEqual + && requestConditions.IfSequenceNumberLessThanOrEqual != null) + { + throw new ArgumentException($"{nameof(PageBlobRequestConditions.IfSequenceNumberLessThanOrEqual)} is not applicable to this API."); + } + + if ((invalidConditions & BlobRequestConditionProperty.IfSequenceNumberEqual) == BlobRequestConditionProperty.IfSequenceNumberEqual + && requestConditions.IfSequenceNumberEqual != null) + { + throw new ArgumentException($"{nameof(PageBlobRequestConditions.IfSequenceNumberEqual)} is not applicable to this API."); + } + } #endregion } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/Models/Internal/BlobRequestConditionProperty.cs b/sdk/storage/Azure.Storage.Blobs/src/Models/Internal/BlobRequestConditionProperty.cs index 3341d19d26b5..4b764d0b7c86 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/Models/Internal/BlobRequestConditionProperty.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/Models/Internal/BlobRequestConditionProperty.cs @@ -5,11 +5,17 @@ namespace Azure.Storage.Blobs.Models { internal enum BlobRequestConditionProperty { + None = 0, LeaseId = 1, TagConditions = 2, IfModifiedSince = 4, IfUnmodifiedSince = 8, IfMatch = 16, - IfNoneMatch = 32 + IfNoneMatch = 32, + IfAppendPositionEqual = 64, + IfMaxSizeLessThanOrEqual = 128, + IfSequenceNumberLessThan = 256, + IfSequenceNumberLessThanOrEqual = 512, + IfSequenceNumberEqual = 1024 } } diff --git a/sdk/storage/Azure.Storage.Blobs/src/PageBlobClient.cs b/sdk/storage/Azure.Storage.Blobs/src/PageBlobClient.cs index 7cf835a74ea9..d9f052ef136e 100644 --- a/sdk/storage/Azure.Storage.Blobs/src/PageBlobClient.cs +++ b/sdk/storage/Azure.Storage.Blobs/src/PageBlobClient.cs @@ -969,6 +969,11 @@ private async Task> CreateInternal( operationName ??= $"{nameof(PageBlobClient)}.{nameof(Create)}"; DiagnosticScope scope = ClientConfiguration.ClientDiagnostics.CreateScope(operationName); + conditions.ValidateConditionsNotPresent( + BlobRequestConditionProperty.IfSequenceNumberLessThanOrEqual + | BlobRequestConditionProperty.IfSequenceNumberLessThan + | BlobRequestConditionProperty.IfSequenceNumberEqual); + try { scope.Start(); @@ -1251,6 +1256,9 @@ internal async Task> UploadPagesInternal( DiagnosticScope scope = ClientConfiguration.ClientDiagnostics.CreateScope($"{nameof(PageBlobClient)}.{nameof(UploadPages)}"); + // All PageBlobRequestConditions are valid. + conditions.ValidateConditionsNotPresent(BlobRequestConditionProperty.None); + try { scope.Start(); @@ -1466,6 +1474,9 @@ private async Task> ClearPagesInternal( DiagnosticScope scope = ClientConfiguration.ClientDiagnostics.CreateScope($"{nameof(PageBlobClient)}.{nameof(ClearPages)}"); + // All PageBlobRequestConditions are valid. + conditions.ValidateConditionsNotPresent(BlobRequestConditionProperty.None); + try { scope.Start(); @@ -1680,6 +1691,11 @@ private async Task> GetPageRangesInternal( DiagnosticScope scope = ClientConfiguration.ClientDiagnostics.CreateScope($"{nameof(PageBlobClient)}.{nameof(GetPageRanges)}"); + conditions.ValidateConditionsNotPresent( + BlobRequestConditionProperty.IfSequenceNumberLessThanOrEqual + | BlobRequestConditionProperty.IfSequenceNumberLessThan + | BlobRequestConditionProperty.IfSequenceNumberEqual); + try { scope.Start(); @@ -1937,6 +1953,11 @@ private async Task> GetPageRangesDiffInternal( operationName ??= $"{nameof(PageBlobClient)}.{nameof(GetPageRangesDiff)}"; DiagnosticScope scope = ClientConfiguration.ClientDiagnostics.CreateScope(operationName); + conditions.ValidateConditionsNotPresent( + BlobRequestConditionProperty.IfSequenceNumberLessThanOrEqual + | BlobRequestConditionProperty.IfSequenceNumberLessThan + | BlobRequestConditionProperty.IfSequenceNumberEqual); + try { scope.Start(); @@ -2262,6 +2283,11 @@ private async Task> ResizeInternal( DiagnosticScope scope = ClientConfiguration.ClientDiagnostics.CreateScope($"{nameof(PageBlobClient)}.{nameof(Resize)}"); + conditions.ValidateConditionsNotPresent( + BlobRequestConditionProperty.IfSequenceNumberLessThanOrEqual + | BlobRequestConditionProperty.IfSequenceNumberLessThan + | BlobRequestConditionProperty.IfSequenceNumberEqual); + try { scope.Start(); @@ -2505,6 +2531,11 @@ private async Task> UpdateSequenceNumberInternal( DiagnosticScope scope = ClientConfiguration.ClientDiagnostics.CreateScope($"{nameof(PageBlobClient)}.{nameof(UpdateSequenceNumber)}"); + conditions.ValidateConditionsNotPresent( + BlobRequestConditionProperty.IfSequenceNumberLessThanOrEqual + | BlobRequestConditionProperty.IfSequenceNumberLessThan + | BlobRequestConditionProperty.IfSequenceNumberEqual); + try { scope.Start(); @@ -2888,6 +2919,12 @@ private async Task> StartCopyIncrementalInternal( DiagnosticScope scope = ClientConfiguration.ClientDiagnostics.CreateScope($"{nameof(PageBlobClient)}.{nameof(StartCopyIncremental)}"); + conditions.ValidateConditionsNotPresent( + BlobRequestConditionProperty.LeaseId + | BlobRequestConditionProperty.IfSequenceNumberLessThanOrEqual + | BlobRequestConditionProperty.IfSequenceNumberLessThan + | BlobRequestConditionProperty.IfSequenceNumberEqual); + try { scope.Start(); @@ -3308,6 +3345,16 @@ private async Task> UploadPagesFromUriInternal( DiagnosticScope scope = ClientConfiguration.ClientDiagnostics.CreateScope($"{nameof(PageBlobClient)}.{nameof(UploadPagesFromUri)}"); + // All destination PageBlobRequestConditions are valid. + conditions.ValidateConditionsNotPresent(BlobRequestConditionProperty.None); + + sourceConditions.ValidateConditionsNotPresent( + BlobRequestConditionProperty.LeaseId + | BlobRequestConditionProperty.IfSequenceNumberLessThanOrEqual + | BlobRequestConditionProperty.IfSequenceNumberLessThan + | BlobRequestConditionProperty.IfSequenceNumberEqual + | BlobRequestConditionProperty.TagConditions); + try { scope.Start(); diff --git a/sdk/storage/Azure.Storage.Blobs/tests/AppendBlobClientTests.cs b/sdk/storage/Azure.Storage.Blobs/tests/AppendBlobClientTests.cs index 044bafb36afa..9c65b1a04bd4 100644 --- a/sdk/storage/Azure.Storage.Blobs/tests/AppendBlobClientTests.cs +++ b/sdk/storage/Azure.Storage.Blobs/tests/AppendBlobClientTests.cs @@ -230,6 +230,39 @@ public async Task CreateAsync() Assert.AreEqual(blobName, blobs.First().Name); } + [RecordedTest] + [TestCase(nameof(AppendBlobRequestConditions.IfAppendPositionEqual))] + [TestCase(nameof(AppendBlobRequestConditions.IfMaxSizeLessThanOrEqual))] + public async Task CreateAsync_InvalidRequestConditions(string invalidCondition) + { + // Arrange + Uri uri = new Uri("https://www.doesntmatter.com"); + AppendBlobClient appendBlobClient = new AppendBlobClient(uri, GetOptions()); + + AppendBlobRequestConditions conditions = new AppendBlobRequestConditions(); + + switch (invalidCondition) + { + case nameof(AppendBlobRequestConditions.IfAppendPositionEqual): + conditions.IfAppendPositionEqual = 0; + break; + case nameof(AppendBlobRequestConditions.IfMaxSizeLessThanOrEqual): + conditions.IfMaxSizeLessThanOrEqual = 0; + break; + } + + AppendBlobCreateOptions options = new AppendBlobCreateOptions + { + Conditions = conditions + }; + + // Act + await TestHelper.AssertExpectedExceptionAsync( + appendBlobClient.CreateAsync( + options), + e => Assert.AreEqual($"{invalidCondition} is not applicable to this API.", e.Message)); + } + [RecordedTest] [ServiceVersion(Min = BlobClientOptions.ServiceVersion.V2019_12_12)] public async Task CreateAsync_Tags() @@ -962,6 +995,48 @@ public async Task AppendBlockFromUriAsync_Min() } } + [RecordedTest] + [TestCase(nameof(AppendBlobRequestConditions.LeaseId))] + [TestCase(nameof(AppendBlobRequestConditions.TagConditions))] + [TestCase(nameof(AppendBlobRequestConditions.IfAppendPositionEqual))] + [TestCase(nameof(AppendBlobRequestConditions.IfMaxSizeLessThanOrEqual))] + public async Task AppendBlockFromUriAsync_InvalidSourceRequestConditions(string invalidSourceCondition) + { + // Arrange + Uri uri = new Uri("https://www.doesntmatter.com"); + AppendBlobClient appendBlobClient = new AppendBlobClient(uri, GetOptions()); + + AppendBlobRequestConditions sourceConditions = new AppendBlobRequestConditions(); + + switch (invalidSourceCondition) + { + case nameof(AppendBlobRequestConditions.LeaseId): + sourceConditions.LeaseId = "LeaseId"; + break; + case nameof(AppendBlobRequestConditions.TagConditions): + sourceConditions.TagConditions = "TagConditions"; + break; + case nameof(AppendBlobRequestConditions.IfAppendPositionEqual): + sourceConditions.IfAppendPositionEqual = 0; + break; + case nameof(AppendBlobRequestConditions.IfMaxSizeLessThanOrEqual): + sourceConditions.IfMaxSizeLessThanOrEqual = 0; + break; + } + + AppendBlobAppendBlockFromUriOptions options = new AppendBlobAppendBlockFromUriOptions + { + SourceConditions = sourceConditions + }; + + // Act + await TestHelper.AssertExpectedExceptionAsync( + appendBlobClient.AppendBlockFromUriAsync( + uri, + options), + e => Assert.AreEqual($"{invalidSourceCondition} is not applicable to this API.", e.Message)); + } + [RecordedTest] public async Task AppendBlockFromUriAsync_CPK() { @@ -1472,6 +1547,35 @@ public async Task SealAsync() Assert.IsTrue(blobs.First().Properties.IsSealed); } + [RecordedTest] + [ServiceVersion(Min = BlobClientOptions.ServiceVersion.V2019_12_12)] + [TestCase(nameof(AppendBlobRequestConditions.IfMaxSizeLessThanOrEqual))] + [TestCase(nameof(AppendBlobRequestConditions.TagConditions))] + public async Task SealAsync_InvalidRequestConditions(string invalidCondition) + { + // Arrange + Uri uri = new Uri("https://www.doesntmatter.com"); + AppendBlobClient appendBlobClient = new AppendBlobClient(uri, GetOptions()); + + AppendBlobRequestConditions conditions = new AppendBlobRequestConditions(); + + switch (invalidCondition) + { + case nameof(AppendBlobRequestConditions.IfMaxSizeLessThanOrEqual): + conditions.IfMaxSizeLessThanOrEqual = 0; + break; + case nameof(AppendBlobRequestConditions.TagConditions): + conditions.TagConditions = "TagConditions"; + break; + } + + // Act + await TestHelper.AssertExpectedExceptionAsync( + appendBlobClient.SealAsync( + conditions), + e => Assert.AreEqual($"{invalidCondition} is not applicable to this API.", e.Message)); + } + [RecordedTest] [ServiceVersion(Min = BlobClientOptions.ServiceVersion.V2019_12_12)] public async Task SealAsync_Error() @@ -1866,8 +1970,8 @@ public async Task OpenWriteAsync_AccessConditions(bool overwrite) new AccessConditionParameters { Match = ReceivedETag }, new AccessConditionParameters { NoneMatch = GarbageETag }, new AccessConditionParameters { LeaseId = ReceivedLeaseId }, - new AccessConditionParameters { AppendPosE = 0 }, - new AccessConditionParameters { MaxSizeLTE = 100 } + new AccessConditionParameters { AppendPosE = overwrite ? null : 0 }, + new AccessConditionParameters { MaxSizeLTE = overwrite ? null : 100 } }; foreach (AccessConditionParameters parameters in testCases) { diff --git a/sdk/storage/Azure.Storage.Blobs/tests/ClientSideEncryptionTests.cs b/sdk/storage/Azure.Storage.Blobs/tests/ClientSideEncryptionTests.cs index 8d1e5089e7ca..0a9df3732382 100644 --- a/sdk/storage/Azure.Storage.Blobs/tests/ClientSideEncryptionTests.cs +++ b/sdk/storage/Azure.Storage.Blobs/tests/ClientSideEncryptionTests.cs @@ -100,13 +100,25 @@ private Mock GetIKeyEncryptionKey(byte[] userKeyBytes = defau { keyMock.Setup(k => k.WrapKey(s_algorithmName, IsNotNull>(), s_cancellationToken)) .Returns, CancellationToken>((algorithm, key, cancellationToken) => Xor(userKeyBytes, key.ToArray())); - keyMock.Setup(k => k.UnwrapKey(s_algorithmName, IsNotNull>(), s_cancellationToken)) + keyMock.Setup(k => k.UnwrapKey(s_algorithmName, IsNotNull>(), It.IsAny())) .Returns, CancellationToken>((algorithm, wrappedKey, cancellationToken) => Xor(userKeyBytes, wrappedKey.ToArray())); } return keyMock; } + private void VerifyUnwrappedKeyWasCached(Mock keyMock) + { + if (IsAsync) + { + keyMock.Verify(k => k.UnwrapKeyAsync(s_algorithmName, IsNotNull>(), s_cancellationToken), Times.Once); + } + else + { + keyMock.Verify(k => k.UnwrapKey(s_algorithmName, IsNotNull>(), It.IsAny()), Times.Once); + } + } + private Mock GetAlwaysFailsKeyResolver(bool throws) { var mock = new Mock(MockBehavior.Strict); @@ -288,20 +300,21 @@ public async Task UploadAsync(long dataSize) } } - [TestCase(16)] // a single cipher block - [TestCase(14)] // a single unalligned cipher block - [TestCase(Constants.KB)] // multiple blocks - [TestCase(Constants.KB - 4)] // multiple unalligned blocks + [TestCase(16, null)] // a single cipher block + [TestCase(14, null)] // a single unalligned cipher block + [TestCase(Constants.KB, null)] // multiple blocks + [TestCase(Constants.KB - 4, null)] // multiple unalligned blocks + [TestCase(Constants.MB, 64*Constants.KB)] // make sure we cache unwrapped key for large downloads [LiveOnly] // cannot seed content encryption key - public async Task RoundtripAsync(long dataSize) + public async Task RoundtripAsync(long dataSize, long? initialDownloadRequestSize) { var data = GetRandomBuffer(dataSize); - var mockKey = GetIKeyEncryptionKey().Object; - var mockKeyResolver = GetIKeyEncryptionKeyResolver(mockKey).Object; + var mockKey = GetIKeyEncryptionKey(); + var mockKeyResolver = GetIKeyEncryptionKeyResolver(mockKey.Object).Object; await using (var disposable = await GetTestContainerEncryptionAsync( new ClientSideEncryptionOptions(ClientSideEncryptionVersion.V1_0) { - KeyEncryptionKey = mockKey, + KeyEncryptionKey = mockKey.Object, KeyResolver = mockKeyResolver, KeyWrapAlgorithm = s_algorithmName })) @@ -315,12 +328,58 @@ public async Task RoundtripAsync(long dataSize) byte[] downloadData; using (var stream = new MemoryStream()) { - await blob.DownloadToAsync(stream, cancellationToken: s_cancellationToken); + await blob.DownloadToAsync(stream, + transferOptions: new StorageTransferOptions() { InitialTransferSize = initialDownloadRequestSize }, + cancellationToken: s_cancellationToken); downloadData = stream.ToArray(); } // compare data Assert.AreEqual(data, downloadData); + VerifyUnwrappedKeyWasCached(mockKey); + } + } + + [TestCase(Constants.MB, 64*Constants.KB)] + [TestCase(Constants.MB, Constants.MB)] + [TestCase(Constants.MB, 4*Constants.MB)] + [LiveOnly] // cannot seed content encryption key + public async Task RoundtripAsyncWithOpenRead(long dataSize, int bufferSize) + { + var data = GetRandomBuffer(dataSize); + var mockKey = GetIKeyEncryptionKey(); + var mockKeyResolver = GetIKeyEncryptionKeyResolver(mockKey.Object).Object; + await using (var disposable = await GetTestContainerEncryptionAsync( + new ClientSideEncryptionOptions(ClientSideEncryptionVersion.V1_0) + { + KeyEncryptionKey = mockKey.Object, + KeyResolver = mockKeyResolver, + KeyWrapAlgorithm = s_algorithmName + })) + { + var blob = InstrumentClient(disposable.Container.GetBlobClient(GetNewBlobName())); + + // upload with encryption + await blob.UploadAsync(new MemoryStream(data), cancellationToken: s_cancellationToken); + + // download with decryption + byte[] downloadData; + using (var stream = new MemoryStream()) + { + using var blobStream = await blob.OpenReadAsync(new BlobOpenReadOptions(false) { BufferSize = bufferSize }, cancellationToken: s_cancellationToken); + if (IsAsync) + { + await blobStream.CopyToAsync(stream, bufferSize, s_cancellationToken); + } else + { + blobStream.CopyTo(stream, bufferSize); + } + downloadData = stream.ToArray(); + } + + // compare data + Assert.AreEqual(data, downloadData); + VerifyUnwrappedKeyWasCached(mockKey); } } @@ -534,6 +593,31 @@ public async Task RoundtripWithKeyvaultProvider() } } + [TestCase(Constants.MB, 64*Constants.KB)] + [LiveOnly] // need access to keyvault service && cannot seed content encryption key + public async Task RoundtripWithKeyvaultProviderOpenRead(long dataSize, int bufferSize) + { + var data = GetRandomBuffer(dataSize); + IKeyEncryptionKey key = await GetKeyvaultIKeyEncryptionKey(); + await using (var disposable = await GetTestContainerEncryptionAsync( + new ClientSideEncryptionOptions(ClientSideEncryptionVersion.V1_0) + { + KeyEncryptionKey = key, + KeyWrapAlgorithm = "RSA-OAEP-256" + })) + { + var blob = disposable.Container.GetBlobClient(GetNewBlobName()); + + await blob.UploadAsync(new MemoryStream(data), cancellationToken: s_cancellationToken); + + var downloadStream = new MemoryStream(); + using var blobStream = await blob.OpenReadAsync(new BlobOpenReadOptions(false) { BufferSize = bufferSize}); + await blobStream.CopyToAsync(downloadStream); + + Assert.AreEqual(data, downloadStream.ToArray()); + } + } + [TestCase(true)] [TestCase(false)] [LiveOnly] diff --git a/sdk/storage/Azure.Storage.Blobs/tests/PageBlobClientTests.cs b/sdk/storage/Azure.Storage.Blobs/tests/PageBlobClientTests.cs index d9d7d47293ae..0eb460a5784c 100644 --- a/sdk/storage/Azure.Storage.Blobs/tests/PageBlobClientTests.cs +++ b/sdk/storage/Azure.Storage.Blobs/tests/PageBlobClientTests.cs @@ -160,6 +160,44 @@ public async Task CreateAsync_Min() Assert.IsNotNull(response.GetRawResponse().Headers.RequestId); } + [RecordedTest] + [TestCase(nameof(PageBlobRequestConditions.IfSequenceNumberLessThanOrEqual))] + [TestCase(nameof(PageBlobRequestConditions.IfSequenceNumberLessThan))] + [TestCase(nameof(PageBlobRequestConditions.IfSequenceNumberEqual))] + public async Task CreateAsync_InvalidRequestConditions(string invalidCondition) + { + // Arrange + Uri uri = new Uri("https://www.doesntmatter.com"); + PageBlobClient pageBlobClient = new PageBlobClient(uri, GetOptions()); + + PageBlobRequestConditions conditions = new PageBlobRequestConditions(); + + switch (invalidCondition) + { + case nameof(PageBlobRequestConditions.IfSequenceNumberLessThanOrEqual): + conditions.IfSequenceNumberLessThanOrEqual = 0; + break; + case nameof(PageBlobRequestConditions.IfSequenceNumberLessThan): + conditions.IfSequenceNumberLessThan = 0; + break; + case nameof(PageBlobRequestConditions.IfSequenceNumberEqual): + conditions.IfSequenceNumberEqual = 0; + break; + } + + PageBlobCreateOptions options = new PageBlobCreateOptions + { + Conditions = conditions + }; + + // Act + await TestHelper.AssertExpectedExceptionAsync( + pageBlobClient.CreateAsync( + size: 0, + options), + e => Assert.AreEqual($"{invalidCondition} is not applicable to this API.", e.Message)); + } + [RecordedTest] [ServiceVersion(Min = BlobClientOptions.ServiceVersion.V2019_12_12)] public async Task CreateAsync_Tags() @@ -566,7 +604,7 @@ await TestHelper.AssertExpectedExceptionAsync( } } - public IEnumerable UploadClearAsync_AccessConditions_Data + public IEnumerable UploadClearAsync_AccessConditions_Data(bool noSequenceNumberConditions) => new[] { new AccessConditionParameters(), @@ -575,16 +613,16 @@ public IEnumerable UploadClearAsync_AccessConditions_ new AccessConditionParameters { Match = ReceivedETag }, new AccessConditionParameters { NoneMatch = GarbageETag }, new AccessConditionParameters { LeaseId = ReceivedLeaseId }, - new AccessConditionParameters { SequenceNumberLT = 5 }, - new AccessConditionParameters { SequenceNumberLTE = 3 }, - new AccessConditionParameters { SequenceNumberEqual = 0 } + new AccessConditionParameters { SequenceNumberLT = noSequenceNumberConditions ? null : 5 }, + new AccessConditionParameters { SequenceNumberLTE = noSequenceNumberConditions? null : 3 }, + new AccessConditionParameters { SequenceNumberEqual = noSequenceNumberConditions ? null : 0 } }; [RecordedTest] public async Task UploadAsync_AccessConditions() { var garbageLeaseId = GetGarbageLeaseId(); - foreach (AccessConditionParameters parameters in UploadClearAsync_AccessConditions_Data) + foreach (AccessConditionParameters parameters in UploadClearAsync_AccessConditions_Data(noSequenceNumberConditions: false)) { await using DisposingContainer test = await GetTestContainerAsync(); @@ -997,7 +1035,7 @@ await TestHelper.AssertExpectedExceptionAsync( public async Task ClearPagesAsync_AccessConditions() { var garbageLeaseId = GetGarbageLeaseId(); - foreach (AccessConditionParameters parameters in UploadClearAsync_AccessConditions_Data) + foreach (AccessConditionParameters parameters in UploadClearAsync_AccessConditions_Data(noSequenceNumberConditions: false)) { await using DisposingContainer test = await GetTestContainerAsync(); @@ -1080,6 +1118,38 @@ public async Task GetPageRangesAsync() Assert.AreEqual(3 * Constants.KB, range2.Offset + range2.Length); } + [RecordedTest] + [TestCase(nameof(PageBlobRequestConditions.IfSequenceNumberLessThanOrEqual))] + [TestCase(nameof(PageBlobRequestConditions.IfSequenceNumberLessThan))] + [TestCase(nameof(PageBlobRequestConditions.IfSequenceNumberEqual))] + public async Task GetPageRangesAsync_InvalidRequestConditions(string invalidCondition) + { + // Arrange + Uri uri = new Uri("https://www.doesntmatter.com"); + PageBlobClient pageBlobClient = new PageBlobClient(uri, GetOptions()); + + PageBlobRequestConditions conditions = new PageBlobRequestConditions(); + + switch (invalidCondition) + { + case nameof(PageBlobRequestConditions.IfSequenceNumberLessThanOrEqual): + conditions.IfSequenceNumberLessThanOrEqual = 0; + break; + case nameof(PageBlobRequestConditions.IfSequenceNumberLessThan): + conditions.IfSequenceNumberLessThan = 0; + break; + case nameof(PageBlobRequestConditions.IfSequenceNumberEqual): + conditions.IfSequenceNumberEqual = 0; + break; + } + + // Act + await TestHelper.AssertExpectedExceptionAsync( + pageBlobClient.GetPageRangesAsync( + conditions: conditions), + e => Assert.AreEqual($"{invalidCondition} is not applicable to this API.", e.Message)); + } + [RecordedTest] public async Task GetPageRangesAsync_Clear() { @@ -1300,6 +1370,38 @@ public async Task GetPageRangesDiffAsync() Assert.AreEqual(3 * Constants.KB, range.Offset + range.Length); } + [RecordedTest] + [TestCase(nameof(PageBlobRequestConditions.IfSequenceNumberLessThanOrEqual))] + [TestCase(nameof(PageBlobRequestConditions.IfSequenceNumberLessThan))] + [TestCase(nameof(PageBlobRequestConditions.IfSequenceNumberEqual))] + public async Task GetPageRangesDiffAsync_InvalidRequestConditions(string invalidCondition) + { + // Arrange + Uri uri = new Uri("https://www.doesntmatter.com"); + PageBlobClient pageBlobClient = new PageBlobClient(uri, GetOptions()); + + PageBlobRequestConditions conditions = new PageBlobRequestConditions(); + + switch (invalidCondition) + { + case nameof(PageBlobRequestConditions.IfSequenceNumberLessThanOrEqual): + conditions.IfSequenceNumberLessThanOrEqual = 0; + break; + case nameof(PageBlobRequestConditions.IfSequenceNumberLessThan): + conditions.IfSequenceNumberLessThan = 0; + break; + case nameof(PageBlobRequestConditions.IfSequenceNumberEqual): + conditions.IfSequenceNumberEqual = 0; + break; + } + + // Act + await TestHelper.AssertExpectedExceptionAsync( + pageBlobClient.GetPageRangesDiffAsync( + conditions: conditions), + e => Assert.AreEqual($"{invalidCondition} is not applicable to this API.", e.Message)); + } + [RecordedTest] public async Task GetPageRangesDiffAsync_Error() { @@ -1757,6 +1859,39 @@ public async Task ResizeAsync() Assert.AreEqual(newSize, response.Value.ContentLength); } + [RecordedTest] + [TestCase(nameof(PageBlobRequestConditions.IfSequenceNumberLessThanOrEqual))] + [TestCase(nameof(PageBlobRequestConditions.IfSequenceNumberLessThan))] + [TestCase(nameof(PageBlobRequestConditions.IfSequenceNumberEqual))] + public async Task ResizeAsync_InvalidRequestConditions(string invalidCondition) + { + // Arrange + Uri uri = new Uri("https://www.doesntmatter.com"); + PageBlobClient pageBlobClient = new PageBlobClient(uri, GetOptions()); + + PageBlobRequestConditions conditions = new PageBlobRequestConditions(); + + switch (invalidCondition) + { + case nameof(PageBlobRequestConditions.IfSequenceNumberLessThanOrEqual): + conditions.IfSequenceNumberLessThanOrEqual = 0; + break; + case nameof(PageBlobRequestConditions.IfSequenceNumberLessThan): + conditions.IfSequenceNumberLessThan = 0; + break; + case nameof(PageBlobRequestConditions.IfSequenceNumberEqual): + conditions.IfSequenceNumberEqual = 0; + break; + } + + // Act + await TestHelper.AssertExpectedExceptionAsync( + pageBlobClient.ResizeAsync( + size: 0, + conditions: conditions), + e => Assert.AreEqual($"{invalidCondition} is not applicable to this API.", e.Message)); + } + [RecordedTest] public async Task ResizeAsync_CPK() { @@ -1941,6 +2076,39 @@ await blob.UpdateSequenceNumberAsync( Assert.AreEqual(sequenceAccessNumber, response.Value.BlobSequenceNumber); } + [RecordedTest] + [TestCase(nameof(PageBlobRequestConditions.IfSequenceNumberLessThanOrEqual))] + [TestCase(nameof(PageBlobRequestConditions.IfSequenceNumberLessThan))] + [TestCase(nameof(PageBlobRequestConditions.IfSequenceNumberEqual))] + public async Task UpdateSequenceNumberAsync_InvalidRequestConditions(string invalidCondition) + { + // Arrange + Uri uri = new Uri("https://www.doesntmatter.com"); + PageBlobClient pageBlobClient = new PageBlobClient(uri, GetOptions()); + + PageBlobRequestConditions conditions = new PageBlobRequestConditions(); + + switch (invalidCondition) + { + case nameof(PageBlobRequestConditions.IfSequenceNumberLessThanOrEqual): + conditions.IfSequenceNumberLessThanOrEqual = 0; + break; + case nameof(PageBlobRequestConditions.IfSequenceNumberLessThan): + conditions.IfSequenceNumberLessThan = 0; + break; + case nameof(PageBlobRequestConditions.IfSequenceNumberEqual): + conditions.IfSequenceNumberEqual = 0; + break; + } + + // Act + await TestHelper.AssertExpectedExceptionAsync( + pageBlobClient.UpdateSequenceNumberAsync( + SequenceNumberAction.Increment, + conditions: conditions), + e => Assert.AreEqual($"{invalidCondition} is not applicable to this API.", e.Message)); + } + [RecordedTest] public async Task UpdateSequenceNumberAsync_AccessConditions() { @@ -2115,6 +2283,44 @@ public async Task StartCopyIncrementalAsync() Assert.AreEqual(CopyStatus.Success, properties.Value.CopyStatus); } + [RecordedTest] + [TestCase(nameof(PageBlobRequestConditions.LeaseId))] + [TestCase(nameof(PageBlobRequestConditions.IfSequenceNumberLessThanOrEqual))] + [TestCase(nameof(PageBlobRequestConditions.IfSequenceNumberLessThan))] + [TestCase(nameof(PageBlobRequestConditions.IfSequenceNumberEqual))] + public async Task StartCopyIncrementalAsync_InvalidRequestConditions(string invalidCondition) + { + // Arrange + Uri uri = new Uri("https://www.doesntmatter.com"); + PageBlobClient pageBlobClient = new PageBlobClient(uri, GetOptions()); + + PageBlobRequestConditions conditions = new PageBlobRequestConditions(); + + switch (invalidCondition) + { + case nameof(PageBlobRequestConditions.LeaseId): + conditions.LeaseId = "LeaseId"; + break; + case nameof(PageBlobRequestConditions.IfSequenceNumberLessThanOrEqual): + conditions.IfSequenceNumberLessThanOrEqual = 0; + break; + case nameof(PageBlobRequestConditions.IfSequenceNumberLessThan): + conditions.IfSequenceNumberLessThan = 0; + break; + case nameof(PageBlobRequestConditions.IfSequenceNumberEqual): + conditions.IfSequenceNumberEqual = 0; + break; + } + + // Act + await TestHelper.AssertExpectedExceptionAsync( + pageBlobClient.StartCopyIncrementalAsync( + uri, + "snapshot", + conditions: conditions), + e => Assert.AreEqual($"{invalidCondition} is not applicable to this API.", e.Message)); + } + [RecordedTest] public async Task StartCopyIncrementalAsync_Error() { @@ -2489,6 +2695,51 @@ await destBlob.UploadPagesFromUriAsync( } } + [RecordedTest] + [TestCase(nameof(PageBlobRequestConditions.LeaseId))] + [TestCase(nameof(PageBlobRequestConditions.IfSequenceNumberLessThanOrEqual))] + [TestCase(nameof(PageBlobRequestConditions.IfSequenceNumberLessThan))] + [TestCase(nameof(PageBlobRequestConditions.IfSequenceNumberEqual))] + [TestCase(nameof(PageBlobRequestConditions.TagConditions))] + public async Task UploadPagesFromUriAsync_InvalidSourceRequestConditions(string invalidSourceCondition) + { + // Arrange + Uri uri = new Uri("https://www.doesntmatter.com"); + PageBlobClient pageBlobClient = new PageBlobClient(uri, GetOptions()); + + PageBlobRequestConditions sourceConditions = new PageBlobRequestConditions(); + + switch (invalidSourceCondition) + { + case nameof(PageBlobRequestConditions.LeaseId): + sourceConditions.LeaseId = "LeaseId"; + break; + case nameof(PageBlobRequestConditions.IfSequenceNumberLessThanOrEqual): + sourceConditions.IfSequenceNumberLessThanOrEqual = 0; + break; + case nameof(PageBlobRequestConditions.IfSequenceNumberLessThan): + sourceConditions.IfSequenceNumberLessThan = 0; + break; + case nameof(PageBlobRequestConditions.IfSequenceNumberEqual): + sourceConditions.IfSequenceNumberEqual = 0; + break; + case nameof(PageBlobRequestConditions.TagConditions): + sourceConditions.TagConditions = "TagConditions"; + break; + } + + HttpRange httpRange = new HttpRange(0, 1); + + // Act + await TestHelper.AssertExpectedExceptionAsync( + pageBlobClient.UploadPagesFromUriAsync( + uri, + httpRange, + httpRange, + sourceConditions: sourceConditions), + e => Assert.AreEqual($"{invalidSourceCondition} is not applicable to this API.", e.Message)); + } + [RecordedTest] public async Task UploadPagesFromUriAsync_CPK() { @@ -3439,7 +3690,7 @@ await TestHelper.AssertExpectedExceptionAsync( public async Task OpenWriteAsync_AccessConditions(bool overwrite) { var garbageLeaseId = GetGarbageLeaseId(); - foreach (AccessConditionParameters parameters in UploadClearAsync_AccessConditions_Data) + foreach (AccessConditionParameters parameters in UploadClearAsync_AccessConditions_Data(overwrite)) { // Arrange await using DisposingContainer test = await GetTestContainerAsync(); diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/AppendBlockFromUriAsync_InvalidSourceRequestConditions(%IfAppendPositionEqual%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/AppendBlockFromUriAsync_InvalidSourceRequestConditions(%IfAppendPositionEqual%).json new file mode 100644 index 000000000000..22da0cc17f5a --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/AppendBlockFromUriAsync_InvalidSourceRequestConditions(%IfAppendPositionEqual%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1066223535" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/AppendBlockFromUriAsync_InvalidSourceRequestConditions(%IfAppendPositionEqual%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/AppendBlockFromUriAsync_InvalidSourceRequestConditions(%IfAppendPositionEqual%)Async.json new file mode 100644 index 000000000000..20c51ce5d012 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/AppendBlockFromUriAsync_InvalidSourceRequestConditions(%IfAppendPositionEqual%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1797526152" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/AppendBlockFromUriAsync_InvalidSourceRequestConditions(%IfMaxSizeLessThanOrEqual%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/AppendBlockFromUriAsync_InvalidSourceRequestConditions(%IfMaxSizeLessThanOrEqual%).json new file mode 100644 index 000000000000..f0d9bad075d4 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/AppendBlockFromUriAsync_InvalidSourceRequestConditions(%IfMaxSizeLessThanOrEqual%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1256587583" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/AppendBlockFromUriAsync_InvalidSourceRequestConditions(%IfMaxSizeLessThanOrEqual%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/AppendBlockFromUriAsync_InvalidSourceRequestConditions(%IfMaxSizeLessThanOrEqual%)Async.json new file mode 100644 index 000000000000..64eac7358831 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/AppendBlockFromUriAsync_InvalidSourceRequestConditions(%IfMaxSizeLessThanOrEqual%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "2042257016" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/AppendBlockFromUriAsync_InvalidSourceRequestConditions(%LeaseId%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/AppendBlockFromUriAsync_InvalidSourceRequestConditions(%LeaseId%).json new file mode 100644 index 000000000000..4bd7b2c2d550 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/AppendBlockFromUriAsync_InvalidSourceRequestConditions(%LeaseId%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "332731075" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/AppendBlockFromUriAsync_InvalidSourceRequestConditions(%LeaseId%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/AppendBlockFromUriAsync_InvalidSourceRequestConditions(%LeaseId%)Async.json new file mode 100644 index 000000000000..8606998e5c8a --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/AppendBlockFromUriAsync_InvalidSourceRequestConditions(%LeaseId%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "831658752" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/AppendBlockFromUriAsync_InvalidSourceRequestConditions(%TagConditions%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/AppendBlockFromUriAsync_InvalidSourceRequestConditions(%TagConditions%).json new file mode 100644 index 000000000000..2ac2762abd55 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/AppendBlockFromUriAsync_InvalidSourceRequestConditions(%TagConditions%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "15265864" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/AppendBlockFromUriAsync_InvalidSourceRequestConditions(%TagConditions%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/AppendBlockFromUriAsync_InvalidSourceRequestConditions(%TagConditions%)Async.json new file mode 100644 index 000000000000..2c8b1b7c230e --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/AppendBlockFromUriAsync_InvalidSourceRequestConditions(%TagConditions%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "828924827" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/CreateAsync_InvalidRequestConditions(%IfAppendPositionEqual%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/CreateAsync_InvalidRequestConditions(%IfAppendPositionEqual%).json new file mode 100644 index 000000000000..a8704853f0c2 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/CreateAsync_InvalidRequestConditions(%IfAppendPositionEqual%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "216803847" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/CreateAsync_InvalidRequestConditions(%IfAppendPositionEqual%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/CreateAsync_InvalidRequestConditions(%IfAppendPositionEqual%)Async.json new file mode 100644 index 000000000000..a1f711893da7 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/CreateAsync_InvalidRequestConditions(%IfAppendPositionEqual%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1259946500" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/CreateAsync_InvalidRequestConditions(%IfMaxSizeLessThanOrEqual%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/CreateAsync_InvalidRequestConditions(%IfMaxSizeLessThanOrEqual%).json new file mode 100644 index 000000000000..9ea39630616c --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/CreateAsync_InvalidRequestConditions(%IfMaxSizeLessThanOrEqual%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "29920996" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/CreateAsync_InvalidRequestConditions(%IfMaxSizeLessThanOrEqual%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/CreateAsync_InvalidRequestConditions(%IfMaxSizeLessThanOrEqual%)Async.json new file mode 100644 index 000000000000..7476326be539 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/CreateAsync_InvalidRequestConditions(%IfMaxSizeLessThanOrEqual%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "426807611" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/SealAsync_InvalidRequestConditions(%IfMaxSizeLessThanOrEqual%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/SealAsync_InvalidRequestConditions(%IfMaxSizeLessThanOrEqual%).json new file mode 100644 index 000000000000..b23ae4ecd493 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/SealAsync_InvalidRequestConditions(%IfMaxSizeLessThanOrEqual%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1986047280" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/SealAsync_InvalidRequestConditions(%IfMaxSizeLessThanOrEqual%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/SealAsync_InvalidRequestConditions(%IfMaxSizeLessThanOrEqual%)Async.json new file mode 100644 index 000000000000..12e96e033aee --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/SealAsync_InvalidRequestConditions(%IfMaxSizeLessThanOrEqual%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1848003368" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/SealAsync_InvalidRequestConditions(%TagConditions%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/SealAsync_InvalidRequestConditions(%TagConditions%).json new file mode 100644 index 000000000000..7fd148afd45a --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/SealAsync_InvalidRequestConditions(%TagConditions%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1419599387" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/SealAsync_InvalidRequestConditions(%TagConditions%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/SealAsync_InvalidRequestConditions(%TagConditions%)Async.json new file mode 100644 index 000000000000..692c9fdf4b11 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/AppendBlobClientTests/SealAsync_InvalidRequestConditions(%TagConditions%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "827513766" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/CreateAsync_InvalidRequestConditions(%IfSequenceNumberEqual%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/CreateAsync_InvalidRequestConditions(%IfSequenceNumberEqual%).json new file mode 100644 index 000000000000..13160d8261a1 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/CreateAsync_InvalidRequestConditions(%IfSequenceNumberEqual%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "212019963" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/CreateAsync_InvalidRequestConditions(%IfSequenceNumberEqual%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/CreateAsync_InvalidRequestConditions(%IfSequenceNumberEqual%)Async.json new file mode 100644 index 000000000000..e101262e67a4 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/CreateAsync_InvalidRequestConditions(%IfSequenceNumberEqual%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1929196373" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/CreateAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/CreateAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%).json new file mode 100644 index 000000000000..91b601ab6d08 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/CreateAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "126971486" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/CreateAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/CreateAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%)Async.json new file mode 100644 index 000000000000..0d0462c45c82 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/CreateAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "2122210267" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/CreateAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/CreateAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%).json new file mode 100644 index 000000000000..b44ac0b0a461 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/CreateAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1921297090" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/CreateAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/CreateAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%)Async.json new file mode 100644 index 000000000000..d0034a79c64b --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/CreateAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1511511372" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesAsync_InvalidRequestConditions(%IfSequenceNumberEqual%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesAsync_InvalidRequestConditions(%IfSequenceNumberEqual%).json new file mode 100644 index 000000000000..1dcc5ac5df1a --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesAsync_InvalidRequestConditions(%IfSequenceNumberEqual%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "335083613" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesAsync_InvalidRequestConditions(%IfSequenceNumberEqual%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesAsync_InvalidRequestConditions(%IfSequenceNumberEqual%)Async.json new file mode 100644 index 000000000000..1dcc5ac5df1a --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesAsync_InvalidRequestConditions(%IfSequenceNumberEqual%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "335083613" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%).json new file mode 100644 index 000000000000..1dcc5ac5df1a --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "335083613" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%)Async.json new file mode 100644 index 000000000000..1dcc5ac5df1a --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "335083613" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%).json new file mode 100644 index 000000000000..0a37e1f522d4 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "873727258" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%)Async.json new file mode 100644 index 000000000000..1dcc5ac5df1a --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "335083613" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesDiffAsync_InvalidRequestConditions(%IfSequenceNumberEqual%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesDiffAsync_InvalidRequestConditions(%IfSequenceNumberEqual%).json new file mode 100644 index 000000000000..70d19afbbdfe --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesDiffAsync_InvalidRequestConditions(%IfSequenceNumberEqual%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "45286486" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesDiffAsync_InvalidRequestConditions(%IfSequenceNumberEqual%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesDiffAsync_InvalidRequestConditions(%IfSequenceNumberEqual%)Async.json new file mode 100644 index 000000000000..fc9c8efc9eb9 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesDiffAsync_InvalidRequestConditions(%IfSequenceNumberEqual%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1841398242" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesDiffAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesDiffAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%).json new file mode 100644 index 000000000000..70d19afbbdfe --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesDiffAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "45286486" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesDiffAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesDiffAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%)Async.json new file mode 100644 index 000000000000..fc9c8efc9eb9 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesDiffAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1841398242" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesDiffAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesDiffAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%).json new file mode 100644 index 000000000000..eb2c28cf0ede --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesDiffAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1960885850" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesDiffAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesDiffAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%)Async.json new file mode 100644 index 000000000000..fc9c8efc9eb9 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/GetPageRangesDiffAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1841398242" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/ResizeAsync_InvalidRequestConditions(%IfSequenceNumberEqual%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/ResizeAsync_InvalidRequestConditions(%IfSequenceNumberEqual%).json new file mode 100644 index 000000000000..72883bf8f538 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/ResizeAsync_InvalidRequestConditions(%IfSequenceNumberEqual%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1672192131" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/ResizeAsync_InvalidRequestConditions(%IfSequenceNumberEqual%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/ResizeAsync_InvalidRequestConditions(%IfSequenceNumberEqual%)Async.json new file mode 100644 index 000000000000..94360700a7d2 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/ResizeAsync_InvalidRequestConditions(%IfSequenceNumberEqual%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1320820240" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/ResizeAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/ResizeAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%).json new file mode 100644 index 000000000000..72883bf8f538 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/ResizeAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1672192131" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/ResizeAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/ResizeAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%)Async.json new file mode 100644 index 000000000000..94360700a7d2 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/ResizeAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1320820240" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/ResizeAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/ResizeAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%).json new file mode 100644 index 000000000000..d7d18b001c13 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/ResizeAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "63352129" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/ResizeAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/ResizeAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%)Async.json new file mode 100644 index 000000000000..94360700a7d2 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/ResizeAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1320820240" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/StartCopyIncrementalAsync_InvalidRequestConditions(%IfSequenceNumberEqual%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/StartCopyIncrementalAsync_InvalidRequestConditions(%IfSequenceNumberEqual%).json new file mode 100644 index 000000000000..8037921403b7 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/StartCopyIncrementalAsync_InvalidRequestConditions(%IfSequenceNumberEqual%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1860489741" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/StartCopyIncrementalAsync_InvalidRequestConditions(%IfSequenceNumberEqual%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/StartCopyIncrementalAsync_InvalidRequestConditions(%IfSequenceNumberEqual%)Async.json new file mode 100644 index 000000000000..28bd8bb3636b --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/StartCopyIncrementalAsync_InvalidRequestConditions(%IfSequenceNumberEqual%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "483534022" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/StartCopyIncrementalAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/StartCopyIncrementalAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%).json new file mode 100644 index 000000000000..8037921403b7 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/StartCopyIncrementalAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1860489741" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/StartCopyIncrementalAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/StartCopyIncrementalAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%)Async.json new file mode 100644 index 000000000000..28bd8bb3636b --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/StartCopyIncrementalAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "483534022" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/StartCopyIncrementalAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/StartCopyIncrementalAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%).json new file mode 100644 index 000000000000..8037921403b7 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/StartCopyIncrementalAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1860489741" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/StartCopyIncrementalAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/StartCopyIncrementalAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%)Async.json new file mode 100644 index 000000000000..28bd8bb3636b --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/StartCopyIncrementalAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "483534022" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/StartCopyIncrementalAsync_InvalidRequestConditions(%LeaseId%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/StartCopyIncrementalAsync_InvalidRequestConditions(%LeaseId%).json new file mode 100644 index 000000000000..1846d300c9d7 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/StartCopyIncrementalAsync_InvalidRequestConditions(%LeaseId%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "251649739" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/StartCopyIncrementalAsync_InvalidRequestConditions(%LeaseId%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/StartCopyIncrementalAsync_InvalidRequestConditions(%LeaseId%)Async.json new file mode 100644 index 000000000000..28bd8bb3636b --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/StartCopyIncrementalAsync_InvalidRequestConditions(%LeaseId%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "483534022" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UpdateSequenceNumberAsync_InvalidRequestConditions(%IfSequenceNumberEqual%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UpdateSequenceNumberAsync_InvalidRequestConditions(%IfSequenceNumberEqual%).json new file mode 100644 index 000000000000..83924c00aaba --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UpdateSequenceNumberAsync_InvalidRequestConditions(%IfSequenceNumberEqual%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "346213427" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UpdateSequenceNumberAsync_InvalidRequestConditions(%IfSequenceNumberEqual%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UpdateSequenceNumberAsync_InvalidRequestConditions(%IfSequenceNumberEqual%)Async.json new file mode 100644 index 000000000000..83924c00aaba --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UpdateSequenceNumberAsync_InvalidRequestConditions(%IfSequenceNumberEqual%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "346213427" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UpdateSequenceNumberAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UpdateSequenceNumberAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%).json new file mode 100644 index 000000000000..6cbe6c410d05 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UpdateSequenceNumberAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1723169146" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UpdateSequenceNumberAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UpdateSequenceNumberAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%)Async.json new file mode 100644 index 000000000000..83924c00aaba --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UpdateSequenceNumberAsync_InvalidRequestConditions(%IfSequenceNumberLessThan%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "346213427" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UpdateSequenceNumberAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UpdateSequenceNumberAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%).json new file mode 100644 index 000000000000..173b0802b4b0 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UpdateSequenceNumberAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "884857072" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UpdateSequenceNumberAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UpdateSequenceNumberAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%)Async.json new file mode 100644 index 000000000000..83924c00aaba --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UpdateSequenceNumberAsync_InvalidRequestConditions(%IfSequenceNumberLessThanOrEqual%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "346213427" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%IfSequenceNumberEqual%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%IfSequenceNumberEqual%).json new file mode 100644 index 000000000000..7f89986a65b1 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%IfSequenceNumberEqual%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "454648522" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%IfSequenceNumberEqual%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%IfSequenceNumberEqual%)Async.json new file mode 100644 index 000000000000..f00e58c2e13d --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%IfSequenceNumberEqual%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1644332487" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%IfSequenceNumberLessThan%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%IfSequenceNumberLessThan%).json new file mode 100644 index 000000000000..b291aef2627a --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%IfSequenceNumberLessThan%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "806020413" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%IfSequenceNumberLessThan%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%IfSequenceNumberLessThan%)Async.json new file mode 100644 index 000000000000..f00e58c2e13d --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%IfSequenceNumberLessThan%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1644332487" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%IfSequenceNumberLessThanOrEqual%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%IfSequenceNumberLessThanOrEqual%).json new file mode 100644 index 000000000000..b291aef2627a --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%IfSequenceNumberLessThanOrEqual%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "806020413" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%IfSequenceNumberLessThanOrEqual%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%IfSequenceNumberLessThanOrEqual%)Async.json new file mode 100644 index 000000000000..7f9a8d0ad654 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%IfSequenceNumberLessThanOrEqual%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "873804559" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%LeaseId%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%LeaseId%).json new file mode 100644 index 000000000000..339cb2b297e2 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%LeaseId%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1112779775" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%LeaseId%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%LeaseId%)Async.json new file mode 100644 index 000000000000..7f9a8d0ad654 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%LeaseId%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "873804559" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%TagConditions%).json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%TagConditions%).json new file mode 100644 index 000000000000..2b98207a2a50 --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%TagConditions%).json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "1225176450" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%TagConditions%)Async.json b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%TagConditions%)Async.json new file mode 100644 index 000000000000..0a140b11be4e --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/tests/SessionRecords/PageBlobClientTests/UploadPagesFromUriAsync_InvalidSourceRequestConditions(%TagConditions%)Async.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "RandomSeed": "267376768" + } +} \ No newline at end of file diff --git a/sdk/storage/Azure.Storage.Common/README.md b/sdk/storage/Azure.Storage.Common/README.md index 064bb9bcabc6..2ee282ce8cc5 100644 --- a/sdk/storage/Azure.Storage.Common/README.md +++ b/sdk/storage/Azure.Storage.Common/README.md @@ -48,12 +48,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -88,7 +88,7 @@ additional questions or comments. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fstorage%2FAzure.Storage.Common%2FREADME.png) -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Azure.Storage.Common/src +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.Common/src [package]: https://www.nuget.org/packages/Azure.Storage.Common/ [docs]: https://docs.microsoft.com/dotnet/api/azure.storage [rest_docs]: https://docs.microsoft.com/rest/api/storageservices/ @@ -100,17 +100,17 @@ additional questions or comments. [storage_account_create_portal]: https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-portal [azure_cli]: https://docs.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ -[auth_credentials]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Common/src/StorageSharedKeyCredential.cs -[blobs_examples]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Azure.Storage.Blobs/README.md#Examples -[files_examples]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Azure.Storage.Files.Shares/README.md#Examples -[queues_examples]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Azure.Storage.Queues/README.md#Examples -[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core/src/RequestFailedException.cs +[auth_credentials]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Common/src/StorageSharedKeyCredential.cs +[blobs_examples]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.Blobs/README.md#Examples +[files_examples]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.Files.Shares/README.md#Examples +[queues_examples]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.Queues/README.md#Examples +[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core/src/RequestFailedException.cs [error_codes]: https://docs.microsoft.com/rest/api/storageservices/common-rest-api-error-codes -[samples]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Common/samples/ -[blobs_samples]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Azure.Storage.Blobs/README.md#next-steps -[files_samples]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Azure.Storage.Files.Shares/README.md#next-steps -[queues_samples]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Azure.Storage.Queues/README.md#next-steps -[storage_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/CONTRIBUTING.md +[samples]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Common/samples/ +[blobs_samples]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.Blobs/README.md#next-steps +[files_samples]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.Files.Shares/README.md#next-steps +[queues_samples]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.Queues/README.md#next-steps +[storage_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/CONTRIBUTING.md [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/storage/Azure.Storage.Common/samples/README.md b/sdk/storage/Azure.Storage.Common/samples/README.md index c08b8adf26fc..1fefdf373b60 100644 --- a/sdk/storage/Azure.Storage.Common/samples/README.md +++ b/sdk/storage/Azure.Storage.Common/samples/README.md @@ -11,4 +11,4 @@ description: Samples for the Azure.Storage.Common client library # Azure.Storage.Common Samples -- [Configure Retries](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Common/samples/Sample01a_HelloWorld.cs) +- [Configure Retries](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Common/samples/Sample01a_HelloWorld.cs) diff --git a/sdk/storage/Azure.Storage.Common/src/Shared/ClientsideEncryption/ClientSideDecryptor.cs b/sdk/storage/Azure.Storage.Common/src/Shared/ClientsideEncryption/ClientSideDecryptor.cs index d7fd4074b295..2b8318a9413d 100644 --- a/sdk/storage/Azure.Storage.Common/src/Shared/ClientsideEncryption/ClientSideDecryptor.cs +++ b/sdk/storage/Azure.Storage.Common/src/Shared/ClientsideEncryption/ClientSideDecryptor.cs @@ -13,6 +13,11 @@ namespace Azure.Storage.Cryptography { internal class ClientSideDecryptor { + /// + /// A cache for encryption key if high level API spans across multiple service calls. + /// + private static readonly AsyncLocal s_contentEncryptionKeyCache = new(); + /// /// Clients that can upload data have a key encryption key stored on them. Checking if /// a cached key exists and matches a given saves a call @@ -179,6 +184,11 @@ private async Task> GetContentEncryptionKeyAsync( bool async, CancellationToken cancellationToken) { + if (s_contentEncryptionKeyCache.Value?.Key.HasValue ?? false) + { + return s_contentEncryptionKeyCache.Value.Key.Value; + } + IKeyEncryptionKey key = default; // If we already have a local key and it is the correct one, use that. @@ -201,7 +211,7 @@ private async Task> GetContentEncryptionKeyAsync( throw Errors.ClientSideEncryption.KeyNotFound(encryptionData.WrappedContentKey.KeyId); } - return async + var contentEncryptionKey = async ? await key.UnwrapKeyAsync( encryptionData.WrappedContentKey.Algorithm, encryptionData.WrappedContentKey.EncryptedKey, @@ -210,6 +220,13 @@ private async Task> GetContentEncryptionKeyAsync( encryptionData.WrappedContentKey.Algorithm, encryptionData.WrappedContentKey.EncryptedKey, cancellationToken); + + if (s_contentEncryptionKeyCache.Value != default) + { + s_contentEncryptionKeyCache.Value.Key = contentEncryptionKey; + } + + return contentEncryptionKey; } /// @@ -250,5 +267,15 @@ private static Stream WrapStream( throw Errors.ClientSideEncryption.BadEncryptionAlgorithm(encryptionData.EncryptionAgent.EncryptionAlgorithm.ToString()); } + + internal static void BeginContentEncryptionKeyCaching(ContentEncryptionKeyCache cache = default) + { + s_contentEncryptionKeyCache.Value = cache ?? new ContentEncryptionKeyCache(); + } + + internal class ContentEncryptionKeyCache + { + public Memory? Key { get; set; } + } } } diff --git a/sdk/storage/Azure.Storage.Common/src/Shared/Constants.cs b/sdk/storage/Azure.Storage.Common/src/Shared/Constants.cs index b7bef9738e6f..a07f2760fb7c 100644 --- a/sdk/storage/Azure.Storage.Common/src/Shared/Constants.cs +++ b/sdk/storage/Azure.Storage.Common/src/Shared/Constants.cs @@ -104,6 +104,9 @@ internal static class Constants public const string Iso8601Format = "yyyy'-'MM'-'dd'T'HH':'mm':'ssZ"; + public const string DisableRequestConditionsValidationSwitchName = "Azure.Storage.DisableRequestConditionsValidation"; + public const string DisableRequestConditionsValidationEnvVar = "AZURE_STORAGE_DISABLE_REQUEST_CONDITIONS_VALIDATION"; + /// /// Storage Connection String constant values. /// diff --git a/sdk/storage/Azure.Storage.Files.DataLake/README.md b/sdk/storage/Azure.Storage.Files.DataLake/README.md index 838e03b3dca3..72749d1a8358 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/README.md +++ b/sdk/storage/Azure.Storage.Files.DataLake/README.md @@ -69,12 +69,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -224,8 +224,8 @@ helpful [`ErrorCode`s][error_codes]. Many of these errors are recoverable. Get started with our [DataLake samples][samples]: -1. [Hello World](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Files.DataLake/samples/Sample01a_HelloWorld.cs): Append, Read, and List DataLake Files (or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Files.DataLake/samples/Sample01b_HelloWorldAsync.cs)) -2. [Auth](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Files.DataLake/samples/Sample02_Auth.cs): Authenticate with public access, shared keys, shared access signatures, and Azure Active Directory. +1. [Hello World](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Files.DataLake/samples/Sample01a_HelloWorld.cs): Append, Read, and List DataLake Files (or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Files.DataLake/samples/Sample01b_HelloWorldAsync.cs)) +2. [Auth](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Files.DataLake/samples/Sample02_Auth.cs): Authenticate with public access, shared keys, shared access signatures, and Azure Active Directory. ## Contributing @@ -245,8 +245,8 @@ additional questions or comments. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fstorage%2FAzure.Storage.Files.DataLake%2FREADME.png) -[samples]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Files.DataLake/samples -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Azure.Storage.Files.DataLake/src +[samples]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Files.DataLake/samples +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.Files.DataLake/src [package]: https://www.nuget.org/packages/Azure.Storage.Files.DataLake/ [docs]: https://docs.microsoft.com/dotnet/api/azure.storage.files.datalake [rest_docs]: https://docs.microsoft.com/rest/api/storageservices/datalakestoragegen2/filesystem @@ -258,12 +258,12 @@ additional questions or comments. [storage_account_create_portal]: https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-portal [azure_cli]: https://docs.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ -[identity]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity/README.md -[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core/src/RequestFailedException.cs +[identity]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity/README.md +[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core/src/RequestFailedException.cs [error_codes]: https://docs.microsoft.com/rest/api/storageservices/blob-service-error-codes -[storage_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/CONTRIBUTING.md +[storage_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/CONTRIBUTING.md [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ [coc_contact]: mailto:opencode@microsoft.com -[https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Files.DataLake/samples]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Files.DataLake/samples +[https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Files.DataLake/samples]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Files.DataLake/samples diff --git a/sdk/storage/Azure.Storage.Files.DataLake/perf/README.md b/sdk/storage/Azure.Storage.Files.DataLake/perf/README.md index 189f686da64f..16d52281ab3f 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/perf/README.md +++ b/sdk/storage/Azure.Storage.Files.DataLake/perf/README.md @@ -1,6 +1,6 @@ # Azure Storage Files Data Lake performance tests -The assets in this area comprise a set of performance tests for the [Azure Storage Files Data Lake client library for .NET](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Azure.Storage.Files.DataLake) and its associated ecosystem. The artifacts in this library are intended to be used primarily with the Azure SDK engineering system's testing infrastructure, by may also be run as stand-alone applications from the command line. +The assets in this area comprise a set of performance tests for the [Azure Storage Files Data Lake client library for .NET](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.Files.DataLake) and its associated ecosystem. The artifacts in this library are intended to be used primarily with the Azure SDK engineering system's testing infrastructure, by may also be run as stand-alone applications from the command line. ## Contributing @@ -10,6 +10,6 @@ When you submit a pull request, a CLA-bot will automatically determine whether y This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. -Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/master/CONTRIBUTING.md) for more information. +Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/main/CONTRIBUTING.md) for more information. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fstorage%2FAzure.Storage.Files.DataLake.Perf%2FREADME.png) diff --git a/sdk/storage/Azure.Storage.Files.DataLake/samples/README.md b/sdk/storage/Azure.Storage.Files.DataLake/samples/README.md index 1aee62c0c842..8ab694cb930c 100644 --- a/sdk/storage/Azure.Storage.Files.DataLake/samples/README.md +++ b/sdk/storage/Azure.Storage.Files.DataLake/samples/README.md @@ -12,5 +12,5 @@ description: Samples for the Azure.Storage.Files.DataLake client library # Azure.Storage.Files.DataLake Samples -- Create and manipulate file systems, directories, and files [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Files.DataLake/samples/Sample01a_HelloWorld.cs) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Files.DataLake/samples/Sample01b_HelloWorldAsync.cs). -- [Authenticate with public access, shared keys, shared access signatures, and Azure Active Directory.](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Files.DataLake/samples/Sample02_Auth.cs) +- Create and manipulate file systems, directories, and files [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Files.DataLake/samples/Sample01a_HelloWorld.cs) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Files.DataLake/samples/Sample01b_HelloWorldAsync.cs). +- [Authenticate with public access, shared keys, shared access signatures, and Azure Active Directory.](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Files.DataLake/samples/Sample02_Auth.cs) diff --git a/sdk/storage/Azure.Storage.Files.Shares/README.md b/sdk/storage/Azure.Storage.Files.Shares/README.md index 08f8af71e9af..aa569ef29686 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/README.md +++ b/sdk/storage/Azure.Storage.Files.Shares/README.md @@ -47,12 +47,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -210,8 +210,8 @@ catch (RequestFailedException ex) Get started with our [File samples][samples]: -1. [Hello World](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Files.Shares/samples/Sample01a_HelloWorld.cs): Upload files, download files, and traverse shares (or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Files.Shares/samples/Sample01b_HelloWorldAsync.cs)) -2. [Auth](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Files.Shares/samples/Sample02_Auth.cs): Authenticate with connection strings, shared keys, and shared access signatures. +1. [Hello World](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Files.Shares/samples/Sample01a_HelloWorld.cs): Upload files, download files, and traverse shares (or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Files.Shares/samples/Sample01b_HelloWorldAsync.cs)) +2. [Auth](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Files.Shares/samples/Sample02_Auth.cs): Authenticate with connection strings, shared keys, and shared access signatures. ## Contributing @@ -231,7 +231,7 @@ additional questions or comments. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fstorage%2FAzure.Storage.Files.Shares%2FREADME.png) -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Azure.Storage.Files.Shares/src +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.Files.Shares/src [package]: https://www.nuget.org/packages/Azure.Storage.Files.Shares/ [docs]: https://docs.microsoft.com/dotnet/api/azure.storage.files.shares [rest_docs]: https://docs.microsoft.com/rest/api/storageservices/file-service-rest-api @@ -243,10 +243,10 @@ additional questions or comments. [storage_account_create_portal]: https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-portal [azure_cli]: https://docs.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ -[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core/src/RequestFailedException.cs +[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core/src/RequestFailedException.cs [error_codes]: https://docs.microsoft.com/rest/api/storageservices/file-service-error-codes -[samples]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Files.Shares/samples/ -[storage_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/CONTRIBUTING.md +[samples]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Files.Shares/samples/ +[storage_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/CONTRIBUTING.md [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/storage/Azure.Storage.Files.Shares/perf/README.md b/sdk/storage/Azure.Storage.Files.Shares/perf/README.md index 060677068988..b9ec362fb83c 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/perf/README.md +++ b/sdk/storage/Azure.Storage.Files.Shares/perf/README.md @@ -1,6 +1,6 @@ # Azure Storage Files Shares performance tests -The assets in this area comprise a set of performance tests for the [Azure Storage Files Shares client library for .NET](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Azure.Storage.Files.Shares) and its associated ecosystem. The artifacts in this library are intended to be used primarily with the Azure SDK engineering system's testing infrastructure, but may also be run as stand-alone applications from the command line. +The assets in this area comprise a set of performance tests for the [Azure Storage Files Shares client library for .NET](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.Files.Shares) and its associated ecosystem. The artifacts in this library are intended to be used primarily with the Azure SDK engineering system's testing infrastructure, but may also be run as stand-alone applications from the command line. ## Contributing @@ -10,6 +10,6 @@ When you submit a pull request, a CLA-bot will automatically determine whether y This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. -Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md) for more information. +Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md) for more information. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Feventhub%2FAzure.Storage.Files.DataLake.Perf%2FREADME.png) diff --git a/sdk/storage/Azure.Storage.Files.Shares/samples/README.md b/sdk/storage/Azure.Storage.Files.Shares/samples/README.md index d29c3d60cbde..183d872ec78c 100644 --- a/sdk/storage/Azure.Storage.Files.Shares/samples/README.md +++ b/sdk/storage/Azure.Storage.Files.Shares/samples/README.md @@ -11,5 +11,5 @@ description: Samples for the Azure.Storage.Files.Shares client library # Azure.Storage.Files.Shares Samples -- Create, upload, download, and traverse file shares [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Files.Shares/samples/Sample01a_HelloWorld.cs) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Files.Shares/samples/Sample01b_HelloWorldAsync.cs). -- [Authenticate with connection strings, shared keys, and shared access signatures.](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Files.Shares/samples/Sample02_Auth.cs) +- Create, upload, download, and traverse file shares [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Files.Shares/samples/Sample01a_HelloWorld.cs) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Files.Shares/samples/Sample01b_HelloWorldAsync.cs). +- [Authenticate with connection strings, shared keys, and shared access signatures.](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Files.Shares/samples/Sample02_Auth.cs) diff --git a/sdk/storage/Azure.Storage.Queues/README.md b/sdk/storage/Azure.Storage.Queues/README.md index 1a28b4978003..45ec26001236 100644 --- a/sdk/storage/Azure.Storage.Queues/README.md +++ b/sdk/storage/Azure.Storage.Queues/README.md @@ -45,12 +45,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -183,8 +183,8 @@ catch (RequestFailedException ex) Get started with our [Queue samples][samples]: -1. [Hello World](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Queues/samples/Sample01a_HelloWorld.cs): Enqueue, Dequeue, Peek, and Update queue messages (or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Queues/samples/Sample01b_HelloWorldAsync.cs)) -2. [Auth](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Queues/samples/Sample02_Auth.cs): Authenticate with connection strings, shared keys, shared access signatures, and Azure Active Directory. +1. [Hello World](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Queues/samples/Sample01a_HelloWorld.cs): Enqueue, Dequeue, Peek, and Update queue messages (or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Queues/samples/Sample01b_HelloWorldAsync.cs)) +2. [Auth](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Queues/samples/Sample02_Auth.cs): Authenticate with connection strings, shared keys, shared access signatures, and Azure Active Directory. ## Contributing @@ -204,7 +204,7 @@ additional questions or comments. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fstorage%2FAzure.Storage.Queues%2FREADME.png) -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Azure.Storage.Queues/src +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Azure.Storage.Queues/src [package]: https://www.nuget.org/packages/Azure.Storage.Queues/ [docs]: https://docs.microsoft.com/dotnet/api/azure.storage.queues [rest_docs]: https://docs.microsoft.com/rest/api/storageservices/queue-service-rest-api @@ -216,13 +216,13 @@ additional questions or comments. [storage_account_create_portal]: https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-portal [azure_cli]: https://docs.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ -[identity]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity/README.md +[identity]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity/README.md [storage_ad]: https://docs.microsoft.com/azure/storage/common/storage-auth-aad [storage_ad_sample]: samples/Sample02c_Auth_ActiveDirectory.cs -[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core/src/RequestFailedException.cs +[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core/src/RequestFailedException.cs [error_codes]: https://docs.microsoft.com/rest/api/storageservices/queue-service-error-codes -[samples]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Queues/samples/ -[storage_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/CONTRIBUTING.md +[samples]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Queues/samples/ +[storage_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/CONTRIBUTING.md [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/storage/Azure.Storage.Queues/samples/README.md b/sdk/storage/Azure.Storage.Queues/samples/README.md index 6c0269c2c1cb..4ddd144f4b45 100644 --- a/sdk/storage/Azure.Storage.Queues/samples/README.md +++ b/sdk/storage/Azure.Storage.Queues/samples/README.md @@ -11,5 +11,5 @@ description: Samples for the Azure.Storage.Queues client library # Azure.Storage.Queues Samples -- Create and interact with queues by sending and receiving messages [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Queues/samples/Sample01a_HelloWorld.cs) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Queues/samples/Sample01b_HelloWorldAsync.cs). -- [Authenticate with connection strings, shared keys, shared access signatures, and Azure Active Directory.](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Queues/samples/Sample02_Auth.cs) +- Create and interact with queues by sending and receiving messages [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Queues/samples/Sample01a_HelloWorld.cs) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Queues/samples/Sample01b_HelloWorldAsync.cs). +- [Authenticate with connection strings, shared keys, shared access signatures, and Azure Active Directory.](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Queues/samples/Sample02_Auth.cs) diff --git a/sdk/storage/CONTRIBUTING.md b/sdk/storage/CONTRIBUTING.md index 2eb0b841ba8d..d1c20a6d1728 100644 --- a/sdk/storage/CONTRIBUTING.md +++ b/sdk/storage/CONTRIBUTING.md @@ -17,7 +17,7 @@ and share a number of core features such as HTTP retries, logging, transport protocols, authentication protocols, etc., so that once you learn how to use these features in one client library, you will know how to use them in other client libraries. You can learn about these shared features in the -[Azure.Core README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md). +[Azure.Core README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md). ## Code Generation @@ -52,7 +52,7 @@ We use [NUnit 3](https://github.com/nunit/docs/wiki) as our testing framework. [Azure.Core.TestFramework's testing framework][core_tests] provides a set of reusable primitives that simplify writing tests for new Azure SDK libraries. -We also have [common test code](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Common/tests/Shared) in our +We also have [common test code](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Common/tests/Shared) in our projects' `/Shared` folders that provides helpful Storage specific infrastructure. @@ -71,7 +71,7 @@ different service features. We specify all of them via a and configured to authenticate with Azure Active Directory (OAuth access) If you want to run live tests against your own account, you can edit the -[`TestConfigurationsTemplate.xml`](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Common/tests/Shared/TestConfigurationsTemplate.xml) +[`TestConfigurationsTemplate.xml`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Common/tests/Shared/TestConfigurationsTemplate.xml) file and rename it to `TestConfigurations.xml` in the same folder. The build will automatically copy it to each test project. If you're working with multiple enlistments or want to change between multiple configuration files, @@ -102,7 +102,7 @@ All random values should be obtained via `this.Recording.Random` since we use the same seed on test playback to ensure our client code generates the same "random" values each time. You can't share any state between tests or rely on ordering because you don't know the order they'll be recorded or replayed. Any -sensitive values are redacted via the [`StorageRecordedTestSanitizer`](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Common/tests/Shared/StorageRecordedTestSanitizer.cs). +sensitive values are redacted via the [`StorageRecordedTestSanitizer`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Common/tests/Shared/StorageRecordedTestSanitizer.cs). ### Running tests @@ -131,4 +131,4 @@ of test infrastructure to keep them easy to read. [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ [coc_contact]: mailto:opencode@microsoft.com -[core_tests]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core.TestFramework \ No newline at end of file +[core_tests]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core.TestFramework \ No newline at end of file diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/README.md b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/README.md index 5410839e9b17..78ab37fd09af 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/README.md +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/README.md @@ -310,7 +310,7 @@ public static class BlobFunction_EnumerateBlobs_BlobClient ### Configuring the extension -Please refer to [sample functions app](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/samples/functionapp). +Please refer to [sample functions app](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/samples/functionapp). ## Troubleshooting @@ -344,8 +344,8 @@ additional questions or comments. [storage_account_create_cli]: https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-cli [storage_account_create_portal]: https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-portal [azure_sub]: https://azure.microsoft.com/free/ -[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core/src/RequestFailedException.cs -[storage_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/CONTRIBUTING.md +[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core/src/RequestFailedException.cs +[storage_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/CONTRIBUTING.md [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs.csproj b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs.csproj index 90bd6aa26b10..b6fd338f24f0 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs.csproj +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs.csproj @@ -21,7 +21,6 @@ - diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/SubscriptionValidationResponse.cs b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/SubscriptionValidationResponse.cs new file mode 100644 index 000000000000..548f37840474 --- /dev/null +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/src/SubscriptionValidationResponse.cs @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Text.Json.Serialization; + +namespace Azure.Messaging.EventGrid.SystemEvents +{ + internal class SubscriptionValidationResponse + { + /// Initializes a new instance of SubscriptionValidationResponse. + public SubscriptionValidationResponse() + { + } + + /// The validation response sent by the subscriber to Azure Event Grid to complete the validation of an event subscription. + [JsonPropertyName("validationResponse")] + public string ValidationResponse { get; set; } + } +} \ No newline at end of file diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Common/README.md b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Common/README.md index 22a73c4979ee..0a6652f904f6 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Common/README.md +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Common/README.md @@ -71,8 +71,8 @@ additional questions or comments. [storage_account_create_cli]: https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-cli [storage_account_create_portal]: https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-portal [azure_sub]: https://azure.microsoft.com/free/ -[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core/src/RequestFailedException.cs -[storage_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/CONTRIBUTING.md +[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core/src/RequestFailedException.cs +[storage_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/CONTRIBUTING.md [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Common/tests/TestHelpers.cs b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Common/tests/TestHelpers.cs index 03aa87472d95..aa323077d94b 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Common/tests/TestHelpers.cs +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Common/tests/TestHelpers.cs @@ -29,9 +29,9 @@ public static class TestHelpers /// Delegate used to configure the target extension. /// Set of test configuration values to apply. /// - public static TOptions GetConfiguredOptions(Action configure, Dictionary configValues) where TOptions : class, new() + public static TOptions GetConfiguredOptions(Action configure, Dictionary configValues, string env = default) where TOptions : class, new() { - IHost host = new HostBuilder() + IHostBuilder hostBuilder = new HostBuilder() .ConfigureDefaultTestHost(b => { configure(b); @@ -39,8 +39,14 @@ public static class TestHelpers .ConfigureAppConfiguration(cb => { cb.AddInMemoryCollection(configValues); - }) - .Build(); + }); + + if (env != default) + { + hostBuilder.UseEnvironment(env); + } + + IHost host = hostBuilder.Build(); TOptions options = host.Services.GetRequiredService>().Value; return options; diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/CHANGELOG.md b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/CHANGELOG.md index 8ab3d3ec87b2..c20a695f4db8 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/CHANGELOG.md +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/CHANGELOG.md @@ -1,6 +1,7 @@ # Release History ## 5.0.0-beta.5 (Unreleased) +- QueuesOptions.MaxPollingInterval other than default is now honored in "Development" environment. ## 5.0.0-beta.4 (2021-05-18) diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/README.md b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/README.md index c0785e1e7687..0a7894bbcec5 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/README.md +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/README.md @@ -261,7 +261,7 @@ public static class Function_BindingToQueueClient ### Configuring the extension -Please refer to [sample functions app](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/samples/functionapp). +Please refer to [sample functions app](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/samples/functionapp). ## Troubleshooting @@ -295,8 +295,8 @@ additional questions or comments. [storage_account_create_cli]: https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-cli [storage_account_create_portal]: https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-portal [azure_sub]: https://azure.microsoft.com/free/ -[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core/src/RequestFailedException.cs -[storage_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/CONTRIBUTING.md +[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core/src/RequestFailedException.cs +[storage_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/CONTRIBUTING.md [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/src/StorageQueuesWebJobsBuilderExtensions.cs b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/src/StorageQueuesWebJobsBuilderExtensions.cs index 2841be5345fc..50af1d956e67 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/src/StorageQueuesWebJobsBuilderExtensions.cs +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/src/StorageQueuesWebJobsBuilderExtensions.cs @@ -55,7 +55,7 @@ public static IWebJobsBuilder AddAzureStorageQueues(this IWebJobsBuilder builder builder.Services.AddOptions() .Configure((options, env) => { - if (env.IsDevelopment()) + if (env.IsDevelopment() && options.MaxPollingInterval == QueuePollingIntervals.DefaultMaximum) { options.MaxPollingInterval = TimeSpan.FromSeconds(2); } diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/tests/StorageQueuesWebJobsBuilderExtensionsTests.cs b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/tests/StorageQueuesWebJobsBuilderExtensionsTests.cs index 1784a992a37e..661f45819337 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/tests/StorageQueuesWebJobsBuilderExtensionsTests.cs +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/tests/StorageQueuesWebJobsBuilderExtensionsTests.cs @@ -61,5 +61,37 @@ public void ConfigureOptions_AppliesValuesCorrectly_Queues() Assert.AreEqual(10, options.MaxDequeueCount); Assert.AreEqual(TimeSpan.FromSeconds(15), options.VisibilityTimeout); } + + [Test] + public void ConfigureOptions_SetsPollingIntervalToTwoSecondsInDevelopment() + { + var values = new Dictionary + { + }; + + QueuesOptions options = TestHelpers.GetConfiguredOptions(b => + { + b.AddAzureStorageQueues(); + }, values, env: "Development"); + + Assert.AreEqual(TimeSpan.FromSeconds(2), options.MaxPollingInterval); + } + + [Test] + public void ConfigureOptions_HonorsExplicitlySetPollingIntervalInDevelopment() + { + string extensionPath = "AzureWebJobs:Extensions:Queues"; + var values = new Dictionary + { + { $"{extensionPath}:MaxPollingInterval", "00:00:42" }, + }; + + QueuesOptions options = TestHelpers.GetConfiguredOptions(b => + { + b.AddAzureStorageQueues(); + }, values, env: "Development"); + + Assert.AreEqual(TimeSpan.FromSeconds(42), options.MaxPollingInterval); + } } } diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage/CHANGELOG.md b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage/CHANGELOG.md index 027855dbf43a..df8c77c026b1 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage/CHANGELOG.md +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage/CHANGELOG.md @@ -4,14 +4,14 @@ ## 5.0.0-beta.4 (2021-05-18) -Please refer to [`Microsoft.Azure.WebJobs.Extension.Storage.Blobs`](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/CHANGELOG.md) and [`Microsoft.Azure.WebJobs.Extension.Storage.Queues`](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/CHANGELOG.md) for detailed list of changes. +Please refer to [`Microsoft.Azure.WebJobs.Extension.Storage.Blobs`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/CHANGELOG.md) and [`Microsoft.Azure.WebJobs.Extension.Storage.Queues`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/CHANGELOG.md) for detailed list of changes. ## 5.0.0-beta.3 (2021-03-09) -Please refer to [`Microsoft.Azure.WebJobs.Extension.Storage.Blobs`](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/CHANGELOG.md) and [`Microsoft.Azure.WebJobs.Extension.Storage.Queues`](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/CHANGELOG.md) for detailed list of changes. +Please refer to [`Microsoft.Azure.WebJobs.Extension.Storage.Blobs`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/CHANGELOG.md) and [`Microsoft.Azure.WebJobs.Extension.Storage.Queues`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/CHANGELOG.md) for detailed list of changes. ## 5.0.0-beta.2 (2021-02-09) -Please refer to [`Microsoft.Azure.WebJobs.Extension.Storage.Blobs`](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/CHANGELOG.md) and [`Microsoft.Azure.WebJobs.Extension.Storage.Queues`](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/CHANGELOG.md) for detailed list of changes. +Please refer to [`Microsoft.Azure.WebJobs.Extension.Storage.Blobs`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/CHANGELOG.md) and [`Microsoft.Azure.WebJobs.Extension.Storage.Queues`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/CHANGELOG.md) for detailed list of changes. ## 5.0.0-beta.1 (2020-11-10) @@ -22,4 +22,4 @@ The `Microsoft.Azure.WebJobs.Extension.Storage` offers drop-in replacement for s This is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, please submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). ### Major changes and features -The `Microsoft.Azure.WebJobs.Extension.Storage` has been split per storage service. Please refer to [`Microsoft.Azure.WebJobs.Extension.Storage.Blobs`](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/CHANGELOG.md) and [`Microsoft.Azure.WebJobs.Extension.Storage.Queues`](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/CHANGELOG.md) for detailed list of changes. +The `Microsoft.Azure.WebJobs.Extension.Storage` has been split per storage service. Please refer to [`Microsoft.Azure.WebJobs.Extension.Storage.Blobs`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs/CHANGELOG.md) and [`Microsoft.Azure.WebJobs.Extension.Storage.Queues`](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues/CHANGELOG.md) for detailed list of changes. diff --git a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage/README.md b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage/README.md index b70a7d710066..0b53c4522401 100644 --- a/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage/README.md +++ b/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage/README.md @@ -39,15 +39,15 @@ The connection string can be supplied through [AzureWebJobsStorage app setting]( ### Using Queues -Please refer to [Azure WebJobs Storage Queues](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues). +Please refer to [Azure WebJobs Storage Queues](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues). ### Using Blobs -Please refer to [Azure WebJobs Storage Blobs](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs). +Please refer to [Azure WebJobs Storage Blobs](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs). ## Examples -Please refer to [Azure WebJobs Storage Queues](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues) and [Azure WebJobs Storage Blobs](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs). +Please refer to [Azure WebJobs Storage Queues](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Queues) and [Azure WebJobs Storage Blobs](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/storage/Microsoft.Azure.WebJobs.Extensions.Storage.Blobs). ## Troubleshooting @@ -81,8 +81,8 @@ additional questions or comments. [storage_account_create_cli]: https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-cli [storage_account_create_portal]: https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-portal [azure_sub]: https://azure.microsoft.com/free/ -[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core/src/RequestFailedException.cs -[storage_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/CONTRIBUTING.md +[RequestFailedException]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core/src/RequestFailedException.cs +[storage_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/CONTRIBUTING.md [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/storage/README.md b/sdk/storage/README.md index 111f05b8ed97..fa3e7126da00 100644 --- a/sdk/storage/README.md +++ b/sdk/storage/README.md @@ -36,14 +36,14 @@ additional questions or comments. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fstorage%2FREADME.png) -[blobs]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/README.md -[blobs_batch]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs.Batch/README.md -[queues]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Queues/README.md -[files]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Files.Shares/README.md -[datalake]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Files.DataLake/README.md -[common]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Common/README.md -[management]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Microsoft.Azure.Management.Storage/ -[storage_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/CONTRIBUTING.md +[blobs]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs/README.md +[blobs_batch]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Blobs.Batch/README.md +[queues]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Queues/README.md +[files]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Files.Shares/README.md +[datalake]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Files.DataLake/README.md +[common]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Common/README.md +[management]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Microsoft.Azure.Management.Storage/ +[storage_contrib]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/CONTRIBUTING.md [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/storage/ci.yml b/sdk/storage/ci.yml index 84999dd0d87e..ff6e38202861 100644 --- a/sdk/storage/ci.yml +++ b/sdk/storage/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/README.md b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/README.md index 7e6c1c636333..c1a8f0f5115a 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/README.md +++ b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/README.md @@ -37,11 +37,11 @@ az synapse workspace create \ ``` ### Authenticate the client -In order to interact with the Azure Synapse Analytics service, you'll need to create an instance of a [RoleAssignmentsClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/RoleAssignmentsClient.cs) and/or a [RoleDefinitionsClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/RoleDefinitionsClient.cs) class. +In order to interact with the Azure Synapse Analytics service, you'll need to create an instance of a [RoleAssignmentsClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/RoleAssignmentsClient.cs) and/or a [RoleDefinitionsClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/RoleDefinitionsClient.cs) class. You will also need a **workspace endpoint**, which you may see as "Development endpoint" in the portal, and **client secret credentials (client id, client secret, tenant id)** to instantiate a client object. -Client secret credential authentication is being used in this getting started section but you can find more ways to authenticate with [Azure identity](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity). To use the [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity#defaultazurecredential) provider shown below, +Client secret credential authentication is being used in this getting started section but you can find more ways to authenticate with [Azure identity](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity). To use the [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity#defaultazurecredential) provider shown below, or other credential providers provided with the Azure SDK, you should install the Azure.Identity package: ```PowerShell @@ -62,12 +62,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) diff --git a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/samples/Sample1_HelloWorld.md b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/samples/Sample1_HelloWorld.md index a3ddec463869..cc8ee2a047c1 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/samples/Sample1_HelloWorld.md +++ b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/samples/Sample1_HelloWorld.md @@ -1,6 +1,6 @@ # Create, Retrieve and Delete a Synapse Role Assignment -This sample demonstrates basic operations with two core classes in this library: `AccessControlClient` and `RoleAssignmentDetails`. `AccessControlClient` is used to call the Azure Synapse service - each method call sends a request to the service's REST API. `RoleAssignmentDetails` is an entity that represents a role assignment within Synapse. The sample walks through the basics of adding, retrieving, and deleting role assignment. To get started, you'll need a connection endpoint to Azure Synapse. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.AccessControl/README.md) for links and instructions. +This sample demonstrates basic operations with two core classes in this library: `AccessControlClient` and `RoleAssignmentDetails`. `AccessControlClient` is used to call the Azure Synapse service - each method call sends a request to the service's REST API. `RoleAssignmentDetails` is an entity that represents a role assignment within Synapse. The sample walks through the basics of adding, retrieving, and deleting role assignment. To get started, you'll need a connection endpoint to Azure Synapse. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.AccessControl/README.md) for links and instructions. ## Create access control client diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/README.md b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/README.md index 6a4a2284913d..ba798098633b 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/README.md +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/README.md @@ -39,26 +39,26 @@ az synapse workspace create \ ### Authenticate the client In order to interact with part of the Azure Synapse Analytics service, you'll need to create an instance of the respective client class: -- [BigDataPoolsClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/BigDataPoolsClient.cs) -- [DataFlowClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DataFlowClient.cs) -- [DataFlowDebugSessionClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DataFlowDebugSessionClient.cs) -- [DatasetClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DatasetClient.cs) -- [IntegrationRuntimesClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/IntegrationRuntimesClient.cs) -- [LinkedServiceClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LinkedServiceClient.cs) -- [NotebookClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/NotebookClient.cs) -- [PipelineClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/PipelineClient.cs) -- [PipelineRunClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/PipelineRunClient.cs) -- [SparkJobDefinitionClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SparkJobDefinitionClient.cs) -- [SqlPoolsClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SqlPoolsClient.cs) -- [SqlScriptClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SqlScriptClient.cs) -- [TriggerClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/TriggerClient.cs) -- [TriggerRunClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/TriggerRunClient.cs) -- [WorkspaceClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/WorkspaceClient.cs) -- [WorkspaceGitRepoManagementClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/WorkspaceGitRepoManagementClient.cs) +- [BigDataPoolsClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/BigDataPoolsClient.cs) +- [DataFlowClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DataFlowClient.cs) +- [DataFlowDebugSessionClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DataFlowDebugSessionClient.cs) +- [DatasetClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/DatasetClient.cs) +- [IntegrationRuntimesClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/IntegrationRuntimesClient.cs) +- [LinkedServiceClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/LinkedServiceClient.cs) +- [NotebookClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/NotebookClient.cs) +- [PipelineClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/PipelineClient.cs) +- [PipelineRunClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/PipelineRunClient.cs) +- [SparkJobDefinitionClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SparkJobDefinitionClient.cs) +- [SqlPoolsClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SqlPoolsClient.cs) +- [SqlScriptClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/SqlScriptClient.cs) +- [TriggerClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/TriggerClient.cs) +- [TriggerRunClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/TriggerRunClient.cs) +- [WorkspaceClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/WorkspaceClient.cs) +- [WorkspaceGitRepoManagementClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/WorkspaceGitRepoManagementClient.cs) You need a **workspace endpoint**, which you may see as "Development endpoint" in the portal, and **client secret credentials (client id, client secret, tenant id)** to instantiate a client object. -Client secret credential authentication is being used in this getting started section but you can find more ways to authenticate with [Azure identity](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity). To use the [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity#defaultazurecredential) provider shown below, +Client secret credential authentication is being used in this getting started section but you can find more ways to authenticate with [Azure identity](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity). To use the [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity#defaultazurecredential) provider shown below, or other credential providers provided with the Azure SDK, you should install the Azure.Identity package: ```PowerShell @@ -130,12 +130,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/samples/Sample1_HelloWorldPipeline.md b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/samples/Sample1_HelloWorldPipeline.md index a46ec2caada3..32f6e07646c3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/samples/Sample1_HelloWorldPipeline.md +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/samples/Sample1_HelloWorldPipeline.md @@ -1,6 +1,6 @@ # Create, Retrieve and Delete Synapse Pipelines -This sample demonstrates basic operations with two core classes in this library: `PipelineClient` and `PipelineResource`. `PipelineClient` is used to call the Azure Synapse Pipeline service - each method call sends a request to the service's REST API. `PipelineResource` is an entity that represents a pipeline within Synapse. The sample walks through the basics of adding, retrieving, and deleting pipeline. To get started, you'll need a connection endpoint to Azure Synapse. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Artifacts/README.md) for links and instructions. +This sample demonstrates basic operations with two core classes in this library: `PipelineClient` and `PipelineResource`. `PipelineClient` is used to call the Azure Synapse Pipeline service - each method call sends a request to the service's REST API. `PipelineResource` is an entity that represents a pipeline within Synapse. The sample walks through the basics of adding, retrieving, and deleting pipeline. To get started, you'll need a connection endpoint to Azure Synapse. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Artifacts/README.md) for links and instructions. ## Create pipeline client diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/samples/Sample2_HelloWorldNotebook.md b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/samples/Sample2_HelloWorldNotebook.md index b4eed1ecde24..d0fda5774f30 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/samples/Sample2_HelloWorldNotebook.md +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/samples/Sample2_HelloWorldNotebook.md @@ -1,6 +1,6 @@ # Create, Retrieve and Delete a Synapse Notebook -This sample demonstrates basic operations with two core classes in this library: `NotebookClient` and `NotebookResource`. `NotebookClient` is used to interact with notebooks on Azure Synapse - each method call sends a request to the service's REST API. `NotebookResource`, along with related classes Notebook and `NotebookCell`, represent a notebook within Synapse. The sample walks through the basics of adding, retrieving, deleting a notebook. To get started, you'll need a connection endpoint to Azure Synapse. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Artifacts/README.md) for links and instructions. +This sample demonstrates basic operations with two core classes in this library: `NotebookClient` and `NotebookResource`. `NotebookClient` is used to interact with notebooks on Azure Synapse - each method call sends a request to the service's REST API. `NotebookResource`, along with related classes Notebook and `NotebookCell`, represent a notebook within Synapse. The sample walks through the basics of adding, retrieving, deleting a notebook. To get started, you'll need a connection endpoint to Azure Synapse. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Artifacts/README.md) for links and instructions. ## Create pipeline client diff --git a/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/README.md b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/README.md index 2b0310a155dd..9af5e72daa5f 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/README.md +++ b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/README.md @@ -39,10 +39,10 @@ az synapse workspace create \ ``` ### Authenticate the client -In order to interact with the Azure Synapse Analytics service, you'll need to create an instance of the [ManagedPrivateEndpointClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/ManagedPrivateEndpointsClient.cs) class. You need a **workspace endpoint**, which you may see as "Development endpoint" in the portal, +In order to interact with the Azure Synapse Analytics service, you'll need to create an instance of the [ManagedPrivateEndpointClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/ManagedPrivateEndpointsClient.cs) class. You need a **workspace endpoint**, which you may see as "Development endpoint" in the portal, and **client secret credentials (client id, client secret, tenant id)** to instantiate a client object. -Client secret credential authentication is being used in this getting started section but you can find more ways to authenticate with [Azure identity](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity). To use the [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity#defaultazurecredential) provider shown below, +Client secret credential authentication is being used in this getting started section but you can find more ways to authenticate with [Azure identity](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity). To use the [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity#defaultazurecredential) provider shown below, or other credential providers provided with the Azure SDK, you should install the Azure.Identity package: ```PowerShell @@ -59,12 +59,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) diff --git a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/README.md b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/README.md index 1e1807a86fbe..8e5142532d14 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/README.md +++ b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/README.md @@ -37,10 +37,10 @@ az synapse workspace create \ ``` ### Authenticate the client -In order to interact with the Azure Synapse Analytics service, you'll need to create an instance of the [MonitoringClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/MonitoringClient.cs) class. You need a **workspace endpoint**, which you may see as "Development endpoint" in the portal, +In order to interact with the Azure Synapse Analytics service, you'll need to create an instance of the [MonitoringClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/MonitoringClient.cs) class. You need a **workspace endpoint**, which you may see as "Development endpoint" in the portal, and **client secret credentials (client id, client secret, tenant id)** to instantiate a client object. -Client secret credential authentication is being used in this getting started section but you can find more ways to authenticate with [Azure identity](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity). To use the [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity#defaultazurecredential) provider shown below, +Client secret credential authentication is being used in this getting started section but you can find more ways to authenticate with [Azure identity](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity). To use the [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity#defaultazurecredential) provider shown below, or other credential providers provided with the Azure SDK, you should install the Azure.Identity package: ```PowerShell @@ -57,12 +57,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) diff --git a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/samples/Sample1_PipelineMonitoring.md b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/samples/Sample1_PipelineMonitoring.md index dd330386982c..736bd16739e1 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/samples/Sample1_PipelineMonitoring.md +++ b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/samples/Sample1_PipelineMonitoring.md @@ -1,6 +1,6 @@ # Monitoring Synapse Spark Jobs -This sample demonstrates basic operations with a core classes in this library: `MonitoringClient`. `MonitoringClient` is used to monitor Spark Jobs running on Azure Synapse - each method call sends a request to the service's REST API. The sample walks through the basics of monitoring Spark jobs. To get started, you'll need a connection endpoint to Azure Synapse. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Monitoring/README.md) for links and instructions. +This sample demonstrates basic operations with a core classes in this library: `MonitoringClient`. `MonitoringClient` is used to monitor Spark Jobs running on Azure Synapse - each method call sends a request to the service's REST API. The sample walks through the basics of monitoring Spark jobs. To get started, you'll need a connection endpoint to Azure Synapse. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Monitoring/README.md) for links and instructions. ## Create pipeline client diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/README.md b/sdk/synapse/Azure.Analytics.Synapse.Spark/README.md index ecbc808f26a0..8ce7bd797bd5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/README.md +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/README.md @@ -39,10 +39,10 @@ az synapse workspace create \ ``` ### Authenticate the client -In order to interact with the Azure Synapse Analytics service, you'll need to create an instance of the [SparkBatchClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/SparkBatchClient.cs) or [SparkSessionClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/SparkSessionClient.cs) class. You need a **workspace endpoint**, which you may see as "Development endpoint" in the portal, +In order to interact with the Azure Synapse Analytics service, you'll need to create an instance of the [SparkBatchClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/SparkBatchClient.cs) or [SparkSessionClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/SparkSessionClient.cs) class. You need a **workspace endpoint**, which you may see as "Development endpoint" in the portal, and **client secret credentials (client id, client secret, tenant id)** to instantiate a client object. -Client secret credential authentication is being used in this getting started section but you can find more ways to authenticate with [Azure identity](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity). To use the [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity#defaultazurecredential) provider shown below, +Client secret credential authentication is being used in this getting started section but you can find more ways to authenticate with [Azure identity](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity). To use the [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity#defaultazurecredential) provider shown below, or other credential providers provided with the Azure SDK, you should install the Azure.Identity package: ```PowerShell @@ -122,12 +122,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/samples/Sample1_SubmitSparkJob.md b/sdk/synapse/Azure.Analytics.Synapse.Spark/samples/Sample1_SubmitSparkJob.md index 261084a4b561..84d661f2e6c7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/samples/Sample1_SubmitSparkJob.md +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/samples/Sample1_SubmitSparkJob.md @@ -1,6 +1,6 @@ # Create, Run and Cancel Synapse Spark jobs -This sample demonstrates basic operations with two core classes in this library: `SparkBatchClient` and `SparkBatchJob`. `SparkBatchClient` is used to interact with Spark jobs running on Azure Synapse - each method call sends a request to the service's REST API. `SparkBatchJob` is an entity that represents a batched Spark job within Synapse. The sample walks through the basics of creating, running, and canceling job requests. To get started, you'll need a connection endpoint to Azure Synapse. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Spark/README.md) for links and instructions. +This sample demonstrates basic operations with two core classes in this library: `SparkBatchClient` and `SparkBatchJob`. `SparkBatchClient` is used to interact with Spark jobs running on Azure Synapse - each method call sends a request to the service's REST API. `SparkBatchJob` is an entity that represents a batched Spark job within Synapse. The sample walks through the basics of creating, running, and canceling job requests. To get started, you'll need a connection endpoint to Azure Synapse. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Spark/README.md) for links and instructions. ## Create Spark batch client diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/samples/Sample1_SubmitSparkJobAsync.md b/sdk/synapse/Azure.Analytics.Synapse.Spark/samples/Sample1_SubmitSparkJobAsync.md index ea2fd657dc13..1c299fef7e96 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/samples/Sample1_SubmitSparkJobAsync.md +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/samples/Sample1_SubmitSparkJobAsync.md @@ -1,6 +1,6 @@ # Create, Run and Cancel Synapse Spark jobs -This sample demonstrates basic asynchronous operations with two core classes in this library: `SparkBatchClient` and `SparkBatchJob`. `SparkBatchClient` is used to interact with Spark jobs running on Azure Synapse - each method call sends a request to the service's REST API. `SparkBatchJob` is an entity that represents a batched Spark job within Synapse. The sample walks through the basics of creating, running, and canceling job requests. To get started, you'll need a connection endpoint to Azure Synapse. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Spark/README.md) for links and instructions. +This sample demonstrates basic asynchronous operations with two core classes in this library: `SparkBatchClient` and `SparkBatchJob`. `SparkBatchClient` is used to interact with Spark jobs running on Azure Synapse - each method call sends a request to the service's REST API. `SparkBatchJob` is an entity that represents a batched Spark job within Synapse. The sample walks through the basics of creating, running, and canceling job requests. To get started, you'll need a connection endpoint to Azure Synapse. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Spark/README.md) for links and instructions. ## Create Spark batch client diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/samples/Sample2_ExecuteSparkStatement.md b/sdk/synapse/Azure.Analytics.Synapse.Spark/samples/Sample2_ExecuteSparkStatement.md index 9845eb648e5d..e76bfdae45ed 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/samples/Sample2_ExecuteSparkStatement.md +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/samples/Sample2_ExecuteSparkStatement.md @@ -1,6 +1,6 @@ # Create, Run and Cancel Synapse Spark statements and sessions -This sample demonstrates basic operations with three core classes in this library: `SparkSessionClient`, `SparkSession`, and `SparkStatement`. `SparkSessionClient` is used to submit statements for execution on Azure Synapse - each method call sends a request to the service's REST API. `SparkStatement` is an entity that represents an individual statement executed within a Spark Job within Synapse. These `SparkStatement` instances are grouped within a containing `SparkSession`. The sample walks through the basics of creating, running, and canceling of requests. To get started, you'll need a connection endpoint to Azure Synapse. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Spark/README.md) for links and instructions. +This sample demonstrates basic operations with three core classes in this library: `SparkSessionClient`, `SparkSession`, and `SparkStatement`. `SparkSessionClient` is used to submit statements for execution on Azure Synapse - each method call sends a request to the service's REST API. `SparkStatement` is an entity that represents an individual statement executed within a Spark Job within Synapse. These `SparkStatement` instances are grouped within a containing `SparkSession`. The sample walks through the basics of creating, running, and canceling of requests. To get started, you'll need a connection endpoint to Azure Synapse. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Spark/README.md) for links and instructions. ## Create Spark batch client diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/samples/Sample2_ExecuteSparkStatementAsync.md b/sdk/synapse/Azure.Analytics.Synapse.Spark/samples/Sample2_ExecuteSparkStatementAsync.md index 240dd07ce7e8..e954ccd73a69 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Spark/samples/Sample2_ExecuteSparkStatementAsync.md +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/samples/Sample2_ExecuteSparkStatementAsync.md @@ -1,6 +1,6 @@ # Create, Run and Cancel Synapse Spark statements and sessions -This sample demonstrates basic asynchronous operations with three core classes in this library: `SparkSessionClient`, `SparkSession`, and `SparkStatement`. `SparkSessionClient` is used to submit statements for execution on Azure Synapse - each method call sends a request to the service's REST API. `SparkStatement` is an entity that represents an individual statement executed within a Spark Job within Synapse. These `SparkStatement` instances are grouped within a containing `SparkSession`. The sample walks through the basics of creating, running, and canceling of requests. To get started, you'll need a connection endpoint to Azure Synapse. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/synapse/Azure.Analytics.Synapse.Spark/README.md) for links and instructions. +This sample demonstrates basic asynchronous operations with three core classes in this library: `SparkSessionClient`, `SparkSession`, and `SparkStatement`. `SparkSessionClient` is used to submit statements for execution on Azure Synapse - each method call sends a request to the service's REST API. `SparkStatement` is an entity that represents an individual statement executed within a Spark Job within Synapse. These `SparkStatement` instances are grouped within a containing `SparkSession`. The sample walks through the basics of creating, running, and canceling of requests. To get started, you'll need a connection endpoint to Azure Synapse. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/synapse/Azure.Analytics.Synapse.Spark/README.md) for links and instructions. ## Create Spark batch client diff --git a/sdk/synapse/ci.yml b/sdk/synapse/ci.yml index 0bf52bda75a1..92771640e39f 100644 --- a/sdk/synapse/ci.yml +++ b/sdk/synapse/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - feature/* - hotfix/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/tables/Azure.Data.Tables/CHANGELOG.md b/sdk/tables/Azure.Data.Tables/CHANGELOG.md index 25f62629138e..f04ae9fc40c3 100644 --- a/sdk/tables/Azure.Data.Tables/CHANGELOG.md +++ b/sdk/tables/Azure.Data.Tables/CHANGELOG.md @@ -124,5 +124,5 @@ Thank you to our developer community members who helped to make Azure Tables bet This is the first beta of the `Azure.Data.Tables` client library. The Azure Tables client library can seamlessly target either Azure Table storage or Azure Cosmos DB table service endpoints with no code changes. -This package's [documentation](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/README.md) -and [samples](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/tables/Azure.Data.Tables/samples) demonstrate the new API. +This package's [documentation](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/README.md) +and [samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/tables/Azure.Data.Tables/samples) demonstrate the new API. diff --git a/sdk/tables/Azure.Data.Tables/MigrationGuide.md b/sdk/tables/Azure.Data.Tables/MigrationGuide.md new file mode 100644 index 000000000000..f35edf581385 --- /dev/null +++ b/sdk/tables/Azure.Data.Tables/MigrationGuide.md @@ -0,0 +1,309 @@ +# Migration guide from Microsoft.Azure.Cosmos.Table to Azure.Data.Tables + +This guide is intended to assist in the migration to the `Azure.Data.Tables` package from the legacy `Microsoft.Azure.CosmosDB.Table` package focusing on +side-by-side comparisons for similar operations between the to versions. + +Familiarity with the `Microsoft.Azure.CosmosDB.Table` package is assumed. If you are new to the Azure Tables client library for .NET, please refer to the +[README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/README.md) and +[samples](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/tables/Azure.Data.Tables/samples) rather than this guide. + +## Migration benefits + +A natural question to ask when considering whether or not to adopt a new version or library is what the benefits of doing so would be. As Azure has matured and +been embraced by a more diverse group of developers, we have been focused on learning the patterns and practices to best support developer productivity and to +understand the gaps that the .NET client libraries have. + +There were several areas of consistent feedback expressed across the Azure client library ecosystem. One of the most important is that the client libraries for +different Azure services have not had a consistent approach to organization, naming, and API structure. Additionally, many developers have felt that the learning +curve was difficult, and the APIs did not offer a good, approachable, and consistent on-boarding story for those learning Azure or exploring a specific Azure service. + +To try and improve the development experience across Azure services, including Tables, a set of uniform +[design guidelines](https://azure.github.io/azure-sdk/general_introduction.html) was created for all languages to drive a consistent +experience with established API patterns for all services. A set of +[.NET-specific guidelines](https://azure.github.io/azure-sdk/dotnet_introduction.html) was also introduced to ensure that .NET clients have a natural and idiomatic +feel that mirrors that of the .NET base class libraries. Further details are available in the guidelines for those interested. + +The new Azure Tables library, `Azure.Data.Tables`, provides the ability to share in some of the cross-service improvements made to the Azure development experience. + +## General changes + +### Package and namespaces + +Package names and the namespace root for the modern Azure client libraries for .NET have changed. Each will follow the pattern `Azure.[Area].[Services]` where the +legacy clients followed the pattern `Microsoft.Azure.[Service]`. This provides a quick and accessible means to help understand, at a glance, whether you are using +the modern or legacy clients. + +In the case of Tables, the modern client library is named `Azure.Data.Tables` and was released beginning with version 12. The legacy client libraries have packages +and namespaces that begin with `Microsoft.Azure.CosmosDB` or `Microsoft.Azure.Storage` and a version of 2.x.x or below and 9.x.x or below respectively. + +### Constructing the clients + +Previously in `Microsoft.Azure.Comsmos.Table`, you would create a `CloudStorageAccount` which can be used to get an instance of the `CloudTableClient` in order to +perform service level operations. + +```C# +// Create the CloudStorageAccount using StorageCredentials. +CloudStorageAccount storageAccount = new CloudStorageAccount( + new StorageCredentials(accountName, storageAccountKey), + storageUri); + + // Get a reference to the cloud table client. + CloudTableClient tableClient = storageAccount.CreateCloudTableClient(new TableClientConfiguration()); +``` + +Now, in `Azure.Data.Tables`, we only need a `TableServiceClient` for service level operations. + +```C# Snippet:TablesSample1CreateClient +// Construct a new "TableServiceClient using a TableSharedKeyCredential. + +var serviceClient = new TableServiceClient( + new Uri(storageUri), + new TableSharedKeyCredential(accountName, storageAccountKey)); +``` + +### Creating a table + +Previously in `Microsoft.Azure.Comsmos.Table`, we'd use a `CloudTable` instance to create a table, which is returned from the `CloudTableClient` method on +`CloudTableClient`. + +```C# +// Create a table client and create the table if it doesn't already exist. +string tableName = "OfficeSupplies1p1"; +CloudTable cloudTable = tableClient.GetTableReference(tableName); +cloudTable.CreateIfNotExists() +``` + +With `Azure.Data.Tables` we have access to all table level operations directly from the `TableServiceClient`. Because the table service client is not affinitized to +any one table, it is ideal for scenarios where you need to create, delete, or list more than one table. + +```C# Snippet:TablesSample1CreateTable +// Create a new table. The TableItem class stores properties of the created table. +string tableName = "OfficeSupplies1p1"; +TableItem table = serviceClient.CreateTableIfNotExists(tableName); +Console.WriteLine($"The created table's name is {table.Name}."); +``` + +If your intention is to work only in the context of a single table, it's also possible to create a table from the `TableClient`. +```C# Snippet:TablesMigrationCreateTableWithClient +// Get a reference to the TableClient from the service client instance. +var tableClient = serviceClient.GetTableClient(tableName); + +// Create the table if it doesn't exist. +tableClient.CreateIfNotExists(); +``` + +### Adding data to the table + +Let's define an office supply entity so that we can add it to the table. To do so, we'll first need to define our custom entity types. + +Previously in `Microsoft.Azure.Comsmos.Table`, our entity would inherit from the `TableEntity` base class and look like this: + +```c# +public class OfficeSupplyOld : Microsoft.Azure.Cosmos.Table.TableEntity +{ + public string Product { get; set; } + public double Price { get; set; } + public int Quantity { get; set; } +} +``` + +Now in `Azure.Data.Tables`, we will implement the `ITableEntity` interface to define our entity. + +```C# Snippet:TablesSample2DefineStronglyTypedEntity +// Define a strongly typed entity by implementing the ITableEntity interface. +public class OfficeSupplyEntity : ITableEntity +{ + public string Product { get; set; } + public double Price { get; set; } + public int Quantity { get; set; } + public string PartitionKey { get; set; } + public string RowKey { get; set; } + public DateTimeOffset? Timestamp { get; set; } + public ETag ETag { get; set; } +} +``` + +Now let's populate an entity to add to the table for each version of the client. + +For `Microsoft.Azure.Cosmos.Table.TableEntity`: + +```c# +string partitionKey = "Stationery"; +string rowKey = "A1"; + +// Create an instance of the strongly-typed entity and set their properties. +var entity = new OfficeSupplyOld +{ + PartitionKey = partitionKey, + RowKey = rowKey, + Product = "Marker Set", + Price = 5.00, + Quantity = 21 +}; +``` + +For `ITableEntity`: + +```C# Snippet:TablesMigrationCreateEntity +// Create an instance of the strongly-typed entity and set their properties. +var entity = new OfficeSupplyEntity +{ + PartitionKey = partitionKey, + RowKey = rowKey, + Product = "Marker Set", + Price = 5.00, + Quantity = 21 +}; +``` + +Previously in `Microsoft.Azure.Comsmos.Table`, we would create a `TableOperation` and execute it with the table client. +The result of the operation must be casted back to the entity type. + +```c# +// Create the InsertOrReplace table operation +TableOperation insertOrMergeOperation = TableOperation.InsertOrMerge(entity); + +// Execute the operation. +TableResult result = cloudTable.Execute(insertOrMergeOperation); + +// Cast the result. +OfficeSupplyOld insertedCustomer = result.Result as OfficeSupplyOld; +``` + +Now in `Azure.Data.Tables`, using the `TableClient`, we can simply pass our entity to the `UpsertEntity` method which will create or update the entity depending on whether +or not it already exists. + +```C# Snippet:TablesMigrationUpsertEntity +// Upsert the newly created entity. +tableClient.UpsertEntity(entity); +``` + +### Fetching a single entity from the table + +Both clients allow for fetching a single entity from the table if the `PartitionKey` and `RowKey` are known. + +Previously in `Microsoft.Azure.Comsmos.Table`, we created an operation and then executed it, similar to when we added the item to the cloudTable. + +```c# +// Create the operation. +TableOperation retrieveOperation = TableOperation.Retrieve(partitionKey, rowKey); + +// Execute the operation. +TableResult queryResult = cloudTable.Execute(retrieveOperation); + +// Cast the result. +OfficeSupplyOld marker = queryResult.Result as OfficeSupplyOld; + +// Display the values. +Console.WriteLine($"{marker.PartitionKey}, {marker.RowKey}, {marker.Product}, {marker.Price}, {marker.Quantity}"); +} +``` + +Now in `Azure.Data.Tables`, the generic GetEntity method is a one-liner. +```C# Snippet:MigrationGetEntity +// Get the entity. +OfficeSupplyEntity marker = tableClient.GetEntity(partitionKey, rowKey); + +// Display the values. +Console.WriteLine($"{marker.PartitionKey}, {marker.RowKey}, {marker.Product}, {marker.Price}, {marker.Quantity}"); +``` + +### Querying data from the table + +Previously in `Microsoft.Azure.Comsmos.Table`, creating an executing a query looked as follows. + +```c# +// Create the query. +var query = cloudTable.CreateQuery().Where(e => e.PartitionKey == "Markers" && e.RowKey == "A1"); + +// Execute the query. +var queryResults = query.ToList(); + +// Diesplay the results. +foreach (var item in queryResults) +{ + Console.WriteLine($"{item.PartitionKey}, {item.RowKey}, {item.Product}, {item.Price}, {item.Quantity}"); +} +``` + +Now in `Azure.Data.Tables`, we query with a single line of code and return the results as a `Pagageable`. You'll find the `Pageable` type used consistently +throughout all the new Azure SDK clients when an operation returns a paged result. + +Another difference you may notice with the new client is that rather than implementing a full `IQueryable` LINQ provider, we've only implemented support for a filter +expression. This approach helps to prevent accidentally writing LINQ expressions that return every item from the table to run a filter on the result locally. + +```C# Snippet:TablesMigrationQuery +// Execute the query. +Pageable queryResults = tableClient.Query(e => e.PartitionKey == partitionKey && e.RowKey == rowKey); + +// Display the results +foreach (var item in queryResults.ToList()) +{ + Console.WriteLine($"{item.PartitionKey}, {item.RowKey}, {item.Product}, {item.Price}, {item.Quantity}"); +} +``` + +### Delete table entities + +Previously with `Microsoft.Azure.Cosmos.Table`, deleting a table entity was accomplished with the following code. + +```c# +TableOperation deleteOperation = TableOperation.Delete(deleteEntity); +TableResult result = cloudTable.Execute(deleteOperation); +``` + +Now in `Azure.Data.Tables`, deleting an entity requires just the `ParitionKey` and `RowKey` values. + +```C# Snippet:TablesSample2DeleteEntity +// Delete the entity given the partition and row key. +tableClient.DeleteEntity(partitionKey, rowKey); +``` + +### Batch transactions + +Previously with `Microsoft.Azure.Cosmos.Table`, creating and executing a transactional batch operation involved creating a `TableBatchOperation` which contained the +`TableOperation`(s) to be executed. The result from `ExecuteBatch` was a `TableBatchResult` which is essentially a collection of `TableResult`s. + +```c# +// Create a TableBatchOperation and populate it with our TableOperations. +TableBatchOperation batch = new TableBatchOperation() +{ + TableOperation.InsertOrMerge(entity) +}; + +// Execute the transaction. +TableBatchResult batchResult = cloudTable.ExecuteBatch(batch); + +// Display the ETags for each item in the result. +foreach (TableResult result in batchResult) +{ + OfficeSupplyOld item = result.Result as OfficeSupplyOld; + Console.WriteLine($"The ETag for the entity with RowKey: '{item.RowKey}' is {item.ETag}"); +} +``` + +Now in `Azure.Data.Tables`, there is no longer a stand alone type to represent a transactional batch collection, rather you build an enumerable of +`TableTransactionAction`s. Executing the transaction is accomplished by passing this collection to the `SubmitTransaction` method on the `TableClient`. The result +from `SubmitTransaction` is the standard `Response` returned by most service operations found in the new Azure SDK client libraries, with the `T` being an +`IReadonlyList`. This list of responses represent the response for each operation executed within the transaction. + +```C# Snippet:MigrationBatchAdd +// Create a collection of TableTransactionActions and populate it with the actions for each entity. +List batch = new List +{ + new TableTransactionAction(TableTransactionActionType.UpdateMerge, entity) +}; + +// Execute the transaction. +Response> batchResult = tableClient.SubmitTransaction(batch); + +// Display the ETags for each item in the result. +// Note that the ordering between the entties in the batch and the responses in the batch responses will always be conssitent. +for (int i = 0; i < batch.Count; i++) +{ + Console.WriteLine($"The ETag for the entity with RowKey: '{batch[i].Entity.RowKey}' is {batchResult.Value[i].Headers.ETag}"); +} +``` + +## Additional Samples +Additional samples can be found [here](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/tables/Azure.Data.Tables/samples). diff --git a/sdk/tables/Azure.Data.Tables/README.md b/sdk/tables/Azure.Data.Tables/README.md index da66b11801d8..35a61d3a007b 100644 --- a/sdk/tables/Azure.Data.Tables/README.md +++ b/sdk/tables/Azure.Data.Tables/README.md @@ -51,7 +51,7 @@ az cosmosdb table create --name MyTableName --resource-group MyResourceGroup --a ### Authenticate the Client -Learn more about options for authentication _(including Connection Strings, Shared Key, Shared Key Signatures, and TokenCredentials)_ [in our samples.](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/samples/Sample0Auth.md) +Learn more about options for authentication _(including Connection Strings, Shared Key, Shared Key Signatures, and TokenCredentials)_ [in our samples.](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/samples/Sample0Auth.md) ## Key concepts @@ -72,12 +72,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -96,7 +96,7 @@ We guarantee that all client instance methods are thread-safe and independent of First, we need to construct a `TableServiceClient`. ```C# Snippet:TablesSample1CreateClient -// Construct a new using a . +// Construct a new "TableServiceClient using a TableSharedKeyCredential. var serviceClient = new TableServiceClient( new Uri(storageUri), @@ -107,9 +107,9 @@ var serviceClient = new TableServiceClient( Next, we can create a new table. ```C# Snippet:TablesSample1CreateTable -// Create a new table. The class stores properties of the created table. +// Create a new table. The TableItem class stores properties of the created table. string tableName = "OfficeSupplies1p1"; -TableItem table = serviceClient.CreateTable(tableName); +TableItem table = serviceClient.CreateTableIfNotExists(tableName); Console.WriteLine($"The created table's name is {table.Name}."); ``` @@ -147,7 +147,6 @@ To interact with table entities, we must first construct a `TableClient`. ```C# Snippet:TablesSample2CreateTableWithTableClient // Construct a new using a . - var tableClient = new TableClient( new Uri(storageUri), tableName, @@ -163,7 +162,6 @@ Let's define a new `TableEntity` so that we can add it to the table. ```C# Snippet:TablesSample2CreateDictionaryEntity // Make a dictionary entity by defining a . - var entity = new TableEntity(partitionKey, rowKey) { { "Product", "Marker Set" }, @@ -178,7 +176,6 @@ Using the `TableClient` we can now add our new entity to the table. ```C# Snippet:TablesSample2AddEntity // Add the newly created entity. - tableClient.AddEntity(entity); ``` @@ -190,7 +187,6 @@ To inspect the set of existing table entities, we can query the table using an O Pageable queryResultsFilter = tableClient.Query(filter: $"PartitionKey eq '{partitionKey}'"); // Iterate the to access all queried entities. - foreach (TableEntity qEntity in queryResultsFilter) { Console.WriteLine($"{qEntity.GetString("Product")}: {qEntity.GetDouble("Price")}"); @@ -202,8 +198,6 @@ Console.WriteLine($"The query returned {queryResultsFilter.Count()} entities."); If you prefer LINQ style query expressions, we can query the table using that syntax as well. ```C# Snippet:TablesSample4QueryEntitiesExpression -// Use the to query the table using a filter expression. - double priceCutOff = 6.00; Pageable queryResultsLINQ = tableClient.Query(ent => ent.Price >= priceCutOff); ``` @@ -214,7 +208,6 @@ If we no longer need our new table entity, it can be deleted. ```C# Snippet:TablesSample2DeleteEntity // Delete the entity given the partition and row key. - tableClient.DeleteEntity(partitionKey, rowKey); ``` @@ -284,10 +277,10 @@ For more information see the [Code of Conduct FAQ][coc_faq] or contact [azure_cli]: https://docs.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ [table_client_nuget_package]: https://www.nuget.org/packages?q=Azure.Data.Tables -[table_client_samples]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/samples -[table_client_src]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/src +[table_client_samples]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/samples +[table_client_src]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/src [api_reference]: https://docs.microsoft.com/dotnet/api/overview/azure/data.tables-readme-pre?view=azure-dotnet-preview -[logging]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md +[logging]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/tables/Azure.Data.Tables/samples/README.md b/sdk/tables/Azure.Data.Tables/samples/README.md index 2f5267a8fee6..0938011e3960 100644 --- a/sdk/tables/Azure.Data.Tables/samples/README.md +++ b/sdk/tables/Azure.Data.Tables/samples/README.md @@ -24,12 +24,12 @@ Description of Azure Tables. Covers following functions: * Transactional batches You can find samples for each of this main functions below. -To get started you'll need an Azure Tables endpoint and credentials. See Azure Tables Client Library [Readme](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/README.md) for more information and instructions. +To get started you'll need an Azure Tables endpoint and credentials. See Azure Tables Client Library [Readme](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/README.md) for more information and instructions. -* [Create/delete tables](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/samples/Sample1CreateDeleteTables.md) -* [Query tables](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/samples/Sample3QueryTables.md) -* [Create/delete table entities](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/samples/Sample2CreateDeleteEntities.md) -* [Upsert/update table entities](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/samples/Sample5UpdateUpsertEntities.md) -* [Query table entities](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/samples/Sample4QueryEntities.md) -* [Auth](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/samples/Sample0Auth.md): Authenticate with connection strings, shared keys, and shared access signatures0. -* [Transactional batches](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/samples/Sample6TransactionalBatch.md) +* [Create/delete tables](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/samples/Sample1CreateDeleteTables.md) +* [Query tables](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/samples/Sample3QueryTables.md) +* [Create/delete table entities](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/samples/Sample2CreateDeleteEntities.md) +* [Upsert/update table entities](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/samples/Sample5UpdateUpsertEntities.md) +* [Query table entities](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/samples/Sample4QueryEntities.md) +* [Auth](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/samples/Sample0Auth.md): Authenticate with connection strings, shared keys, and shared access signatures0. +* [Transactional batches](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/samples/Sample6TransactionalBatch.md) diff --git a/sdk/tables/Azure.Data.Tables/samples/Sample0Auth.md b/sdk/tables/Azure.Data.Tables/samples/Sample0Auth.md index 95cc7a1ce65c..db6a59eaac32 100644 --- a/sdk/tables/Azure.Data.Tables/samples/Sample0Auth.md +++ b/sdk/tables/Azure.Data.Tables/samples/Sample0Auth.md @@ -110,7 +110,7 @@ grant access to your Azure Table resources to users, groups, or applications. To access a table resource with a `TokenCredential`, the authenticated identity should have either the "Storage Table Data Contributor" or "Storage Table Data Reader" role. With the `Azure.Identity` package, you can seamlessly authorize requests in both development and production environments. -To learn more about Azure AD integration in Azure Storage, see the [Azure.Identity README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md) +To learn more about Azure AD integration in Azure Storage, see the [Azure.Identity README](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md) ```C# Snippet:TablesAuthTokenCredential // Construct a new TableClient using a TokenCredential. diff --git a/sdk/tables/Azure.Data.Tables/samples/Sample1CreateDeleteTables.md b/sdk/tables/Azure.Data.Tables/samples/Sample1CreateDeleteTables.md index 0b8439befdbb..5f4fd49456e0 100644 --- a/sdk/tables/Azure.Data.Tables/samples/Sample1CreateDeleteTables.md +++ b/sdk/tables/Azure.Data.Tables/samples/Sample1CreateDeleteTables.md @@ -9,7 +9,7 @@ A `TableServiceClient` performs account-level operations like creating and delet In the sample below, we will use a Storage account and authenticate with an endpoint and `TableSharedKeyCredential`, which requires an account name and an account key. You can set `accountName` and `storageAccountKey` with an environment variable, configuration setting, or any way that works for your application. ```C# Snippet:TablesSample1CreateClient -// Construct a new using a . +// Construct a new "TableServiceClient using a TableSharedKeyCredential. var serviceClient = new TableServiceClient( new Uri(storageUri), @@ -44,9 +44,9 @@ A table requires a [unique table name](https://docs.microsoft.com/rest/api/stora To create a table, invoke `CreateTable` with the table name. ```C# Snippet:TablesSample1CreateTable -// Create a new table. The class stores properties of the created table. +// Create a new table. The TableItem class stores properties of the created table. string tableName = "OfficeSupplies1p1"; -TableItem table = serviceClient.CreateTable(tableName); +TableItem table = serviceClient.CreateTableIfNotExists(tableName); Console.WriteLine($"The created table's name is {table.Name}."); ``` @@ -55,7 +55,7 @@ Console.WriteLine($"The created table's name is {table.Name}."); To create a table, invoke `Create` with the table name. ```C# Snippet:TablesSample1TableClientCreateTable -tableClient.Create(); +tableClient.CreateIfNotExists(); ``` ## Delete a table @@ -100,6 +100,6 @@ catch (RequestFailedException e) --- To see the full example source files, see: -- [Synchronous CreateDeleteTable](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/tests/samples/Sample1_CreateDeleteTable.cs) -- [Asynchronous CreateDeleteTable](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/tests/samples/Sample1_CreateDeleteTableAsync.cs) -- [CreateDeleteTableErrors](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/tests/samples/Sample1_CreateDeleteTableErrors.cs) +- [Synchronous CreateDeleteTable](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/tests/samples/Sample1_CreateDeleteTable.cs) +- [Asynchronous CreateDeleteTable](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/tests/samples/Sample1_CreateDeleteTableAsync.cs) +- [CreateDeleteTableErrors](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/tests/samples/Sample1_CreateDeleteTableErrors.cs) diff --git a/sdk/tables/Azure.Data.Tables/samples/Sample2CreateDeleteEntities.md b/sdk/tables/Azure.Data.Tables/samples/Sample2CreateDeleteEntities.md index fc7e3ca97943..10c2f259ed19 100644 --- a/sdk/tables/Azure.Data.Tables/samples/Sample2CreateDeleteEntities.md +++ b/sdk/tables/Azure.Data.Tables/samples/Sample2CreateDeleteEntities.md @@ -1,6 +1,6 @@ # Add and Delete Entities -This sample demonstrates how to add and delete entities. You will need to have previously [created a table](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/samples/Sample1CreateDeleteTables.md) in the service in order to query entities from it.To get started, you'll need access to either a Storage or Cosmos DB account. +This sample demonstrates how to add and delete entities. You will need to have previously [created a table](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/samples/Sample1CreateDeleteTables.md) in the service in order to query entities from it.To get started, you'll need access to either a Storage or Cosmos DB account. ## Create a `TableClient` @@ -21,7 +21,7 @@ var tableClient = new TableClient( new TableSharedKeyCredential(accountName, storageAccountKey)); ``` -If you are not familiar with creating tables, refer to the sample on [creating and deleting tables](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/samples/Sample1CreateDeleteTables.md). +If you are not familiar with creating tables, refer to the sample on [creating and deleting tables](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/samples/Sample1CreateDeleteTables.md). ## Create a local entity @@ -32,8 +32,7 @@ An entity has a set of properties, and each property is a name, typed-value pair Define a strongly-typed entity class that extends from the `ITableEntity` interface, which imposes the following required properties: partition key, row key, ETag, and Timestamp. The last two properties are generated by the service and will not be set by the user. ```C# Snippet:TablesSample2DefineStronglyTypedEntity -// Define a strongly typed entity by extending the class. - +// Define a strongly typed entity by implementing the ITableEntity interface. public class OfficeSupplyEntity : ITableEntity { public string Product { get; set; } @@ -50,7 +49,6 @@ Once defined, create an entity with the class. ```C# Snippet:TablesSample2CreateStronglyTypedEntity // Create an instance of the strongly-typed entity and set their properties. - var strongEntity = new OfficeSupplyEntity { PartitionKey = partitionKey, @@ -71,7 +69,6 @@ Properties accessed using the indexer `[]` will be typed as an `object`, but `Ta ```C# Snippet:TablesSample2CreateDictionaryEntity // Make a dictionary entity by defining a . - var entity = new TableEntity(partitionKey, rowKey) { { "Product", "Marker Set" }, @@ -88,7 +85,6 @@ To add the entity to the table, invoke `CreateEntity` and pass in the newly crea ```C# Snippet:TablesSample2AddEntity // Add the newly created entity. - tableClient.AddEntity(entity); ``` @@ -98,11 +94,10 @@ To delete an entity, invoke `DeleteEntity` and pass in its partition and row key ```C# Snippet:TablesSample2DeleteEntity // Delete the entity given the partition and row key. - tableClient.DeleteEntity(partitionKey, rowKey); ``` --- To see the full example source files, see: -- [Synchronous Create and Delete Entities](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/tests/samples/Sample2_CreateDeleteEntities.cs) -- [Asynchronous Create and Delete Entities](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/tests/samples/Sample2_CreateDeleteEntitiesAsync.cs) +- [Synchronous Create and Delete Entities](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/tests/samples/Sample2_CreateDeleteEntities.cs) +- [Asynchronous Create and Delete Entities](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/tests/samples/Sample2_CreateDeleteEntitiesAsync.cs) diff --git a/sdk/tables/Azure.Data.Tables/samples/Sample3QueryTables.md b/sdk/tables/Azure.Data.Tables/samples/Sample3QueryTables.md index 2d65843cb905..76288214564b 100644 --- a/sdk/tables/Azure.Data.Tables/samples/Sample3QueryTables.md +++ b/sdk/tables/Azure.Data.Tables/samples/Sample3QueryTables.md @@ -9,7 +9,7 @@ A `TableServiceClient` performs account-level operations like creating and delet In the sample below, we will use a Storage account and authenticate with an endpoint and `TableSharedKeyCredential`, which requires an account name and an account key. You can set `accountName` and `storageAccountKey` with an environment variable, configuration setting, or any way that works for your application. ```C# Snippet:TablesSample1CreateClient -// Construct a new using a . +// Construct a new "TableServiceClient using a TableSharedKeyCredential. var serviceClient = new TableServiceClient( new Uri(storageUri), @@ -37,5 +37,5 @@ foreach (TableItem table in queryTableResults) --- To see the full example source files, see: -- [Synchronous Query Tables](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/tests/samples/Sample3_QueryTables.cs) -- [Asynchronous Query Tables](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/tests/samples/Sample3_QueryTablesAsync.cs) +- [Synchronous Query Tables](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/tests/samples/Sample3_QueryTables.cs) +- [Asynchronous Query Tables](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/tests/samples/Sample3_QueryTablesAsync.cs) diff --git a/sdk/tables/Azure.Data.Tables/samples/Sample4QueryEntities.md b/sdk/tables/Azure.Data.Tables/samples/Sample4QueryEntities.md index 47c7f5ac3da7..ec4167d2c77d 100644 --- a/sdk/tables/Azure.Data.Tables/samples/Sample4QueryEntities.md +++ b/sdk/tables/Azure.Data.Tables/samples/Sample4QueryEntities.md @@ -1,6 +1,6 @@ # Query Entities -This sample demonstrates how to query a table for entities. You will need to have previously [created a table](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/samples/Sample1CreateDeleteTables.md) in the service in order to query entities from it. To get started, you'll need access to either a Storage or Cosmos DB account. +This sample demonstrates how to query a table for entities. You will need to have previously [created a table](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/samples/Sample1CreateDeleteTables.md) in the service in order to query entities from it. To get started, you'll need access to either a Storage or Cosmos DB account. ## Create a `TableClient` @@ -21,7 +21,7 @@ var tableClient = new TableClient( new TableSharedKeyCredential(accountName, storageAccountKey)); ``` -If you are not familiar with creating tables, refer to the sample on [creating and deleting tables](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/samples/Sample1CreateDeleteTables.md). +If you are not familiar with creating tables, refer to the sample on [creating and deleting tables](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/samples/Sample1CreateDeleteTables.md). ## Query entities with `filter` @@ -35,7 +35,6 @@ Here is a query returning a collection of dictionary `TableEntity` objects that Pageable queryResultsFilter = tableClient.Query(filter: $"PartitionKey eq '{partitionKey}'"); // Iterate the to access all queried entities. - foreach (TableEntity qEntity in queryResultsFilter) { Console.WriteLine($"{qEntity.GetString("Product")}: {qEntity.GetDouble("Price")}"); @@ -52,26 +51,21 @@ The `QueryFilter` class handles all the type escaping for you. // The CreateQueryFilter method is also available to assist with properly formatting and escaping OData queries. Pageable queryResultsFilter = tableClient.Query(filter: TableClient.CreateQueryFilter($"PartitionKey eq {partitionKey}")); // Iterate the to access all queried entities. - foreach (TableEntity qEntity in queryResultsFilter) { Console.WriteLine($"{qEntity.GetString("Product")}: {qEntity.GetDouble("Price")}"); } Console.WriteLine($"The query returned {queryResultsFilter.Count()} entities."); - -// It handles esca ``` ### LINQ expression Here is a query returning a collection of the strongly-typed `OfficeSupplyEntity` objects that cost at least $6.00. -To define the strongly-typed class, refer to the sample on [creating classes](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/samples/Sample2CreateDeleteEntities.md). +To define the strongly-typed class, refer to the sample on [creating classes](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/samples/Sample2CreateDeleteEntities.md). ```C# Snippet:TablesSample4QueryEntitiesExpression -// Use the to query the table using a filter expression. - double priceCutOff = 6.00; Pageable queryResultsLINQ = tableClient.Query(ent => ent.Price >= priceCutOff); ``` @@ -107,5 +101,5 @@ foreach (Page page in queryResultsMaxPerPage.AsPages()) --- To see the full example source files, see: -- [Synchronous Query Entities](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/tests/samples/Sample4_QueryEntities.cs) -- [Asynchronous Query Entities](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/tests/samples/Sample4_QueryEntitiesAsync.cs) +- [Synchronous Query Entities](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/tests/samples/Sample4_QueryEntities.cs) +- [Asynchronous Query Entities](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/tests/samples/Sample4_QueryEntitiesAsync.cs) diff --git a/sdk/tables/Azure.Data.Tables/samples/Sample5UpdateUpsertEntities.md b/sdk/tables/Azure.Data.Tables/samples/Sample5UpdateUpsertEntities.md index 3fa327a7e2fe..fdc187e88797 100644 --- a/sdk/tables/Azure.Data.Tables/samples/Sample5UpdateUpsertEntities.md +++ b/sdk/tables/Azure.Data.Tables/samples/Sample5UpdateUpsertEntities.md @@ -1,6 +1,6 @@ # Updating and Upserting Table Entities -This sample demonstrates how to query a table for entities. You will need to have previously [created a table](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/samples/Sample1CreateDeleteTables.md) in the service in order to query entities from it. To get started, you'll need access to either a Storage or Cosmos DB account. +This sample demonstrates how to query a table for entities. You will need to have previously [created a table](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/samples/Sample1CreateDeleteTables.md) in the service in order to query entities from it. To get started, you'll need access to either a Storage or Cosmos DB account. ## Create a `TableClient` @@ -21,7 +21,7 @@ var tableClient = new TableClient( new TableSharedKeyCredential(accountName, storageAccountKey)); ``` -If you are not familiar with creating tables, refer to the sample on [creating and deleting tables](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/samples/Sample1CreateDeleteTables.md). +If you are not familiar with creating tables, refer to the sample on [creating and deleting tables](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/samples/Sample1CreateDeleteTables.md). ## Upsert an entity @@ -67,5 +67,5 @@ Console.WriteLine($"'Price' after updating: ${updatedEntity.GetDouble("Price")}" --- To see the full example source files, see: -- [Synchronous Update and Upsert Entities](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/tests/samples/Sample5_UpdateUpsertEntities.cs) -- [Asynchronous Update and Upsert Entities](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/tests/samples/Sample5_UpdateUpsertEntitiesAsync.cs) +- [Synchronous Update and Upsert Entities](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/tests/samples/Sample5_UpdateUpsertEntities.cs) +- [Asynchronous Update and Upsert Entities](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/tests/samples/Sample5_UpdateUpsertEntitiesAsync.cs) diff --git a/sdk/tables/Azure.Data.Tables/samples/Sample6TransactionalBatch.md b/sdk/tables/Azure.Data.Tables/samples/Sample6TransactionalBatch.md index faa076d03b3c..350336d907c7 100644 --- a/sdk/tables/Azure.Data.Tables/samples/Sample6TransactionalBatch.md +++ b/sdk/tables/Azure.Data.Tables/samples/Sample6TransactionalBatch.md @@ -4,7 +4,7 @@ This sample demonstrates how to create and submit transactional batches for tabl The Table service supports batch transactions on entities that are in the same table and belong to the same partition group.\ Multiple Add, Update, Upsert, and Delete operations are supported within a single transaction. -You will need to have previously [created a table](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/samples/Sample1CreateDeleteTables.md) in the service in order to submit a transactional batch request. +You will need to have previously [created a table](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/samples/Sample1CreateDeleteTables.md) in the service in order to submit a transactional batch request. To get started, you'll need access to either a Storage or Cosmos DB account. ## Create a `TableClient` @@ -26,7 +26,7 @@ var tableClient = new TableClient( new TableSharedKeyCredential(accountName, storageAccountKey)); ``` -If you are not familiar with creating tables, refer to the sample on [creating and deleting tables](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/samples/Sample1CreateDeleteTables.md). +If you are not familiar with creating tables, refer to the sample on [creating and deleting tables](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/samples/Sample1CreateDeleteTables.md). ## Adding entities with a transactional batch @@ -121,9 +121,9 @@ Let's clean up the rest of the entities remaining in the table with a batch dele List deleteEntitiesBatch = new List(); // Add the entities for deletion to the batch. -foreach (TableEntity entity in entityList) +foreach (TableEntity entityToDelete in entityList) { - deleteEntitiesBatch.Add(new TableTransactionAction(TableTransactionActionType.Delete, entity)); + deleteEntitiesBatch.Add(new TableTransactionAction(TableTransactionActionType.Delete, entityToDelete)); } // Submit the batch. @@ -132,4 +132,4 @@ await client.SubmitTransactionAsync(deleteEntitiesBatch).ConfigureAwait(false); --- To see the full example source files, see: -- [Transactional batches](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/tables/Azure.Data.Tables/tests/samples/Sample6_TransactionalBatchAsync.cs) +- [Transactional batches](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/tables/Azure.Data.Tables/tests/samples/Sample6_TransactionalBatchAsync.cs) diff --git a/sdk/tables/Azure.Data.Tables/tests/TableServiceClientLiveTests.cs b/sdk/tables/Azure.Data.Tables/tests/TableServiceClientLiveTests.cs index b983ad806e32..fd87dcb7f7c7 100644 --- a/sdk/tables/Azure.Data.Tables/tests/TableServiceClientLiveTests.cs +++ b/sdk/tables/Azure.Data.Tables/tests/TableServiceClientLiveTests.cs @@ -315,12 +315,9 @@ public async Task GetPropertiesReturnsProperties() public async Task GetTableServiceStatsReturnsStats() { // Get statistics - TableServiceStatistics stats = await service.GetStatisticsAsync().ConfigureAwait(false); - // Test that the secondary location is live - - Assert.AreEqual(new TableGeoReplicationStatus("live"), stats.GeoReplication.Status); + Assert.That(stats.GeoReplication.Status, Is.AnyOf(new TableGeoReplicationStatus("live"), new TableGeoReplicationStatus("unavailable"))); } private void CompareServiceProperties(TableServiceProperties expected, TableServiceProperties actual) diff --git a/sdk/tables/Azure.Data.Tables/tests/samples/Sample1_CreateDeleteTable.cs b/sdk/tables/Azure.Data.Tables/tests/samples/Sample1_CreateDeleteTable.cs index e662835afee1..4007293d6e04 100644 --- a/sdk/tables/Azure.Data.Tables/tests/samples/Sample1_CreateDeleteTable.cs +++ b/sdk/tables/Azure.Data.Tables/tests/samples/Sample1_CreateDeleteTable.cs @@ -21,7 +21,7 @@ public void CreateDeleteTable() string tableName = "OfficeSupplies1p1"; #region Snippet:TablesSample1CreateClient - // Construct a new using a . + // Construct a new "TableServiceClient using a TableSharedKeyCredential. var serviceClient = new TableServiceClient( new Uri(storageUri), @@ -29,14 +29,22 @@ public void CreateDeleteTable() #endregion #region Snippet:TablesSample1CreateTable - // Create a new table. The class stores properties of the created table. + // Create a new table. The TableItem class stores properties of the created table. #if SNIPPET string tableName = "OfficeSupplies1p1"; #endif - TableItem table = serviceClient.CreateTable(tableName); + TableItem table = serviceClient.CreateTableIfNotExists(tableName); Console.WriteLine($"The created table's name is {table.Name}."); #endregion + #region Snippet:TablesMigrationCreateTableWithClient + // Get a reference to the TableClient from the service client instance. + var tableClient = serviceClient.GetTableClient(tableName); + + // Create the table if it doesn't exist. + tableClient.CreateIfNotExists(); + #endregion + #region Snippet:TablesSample1DeleteTable // Deletes the table made previously. #if SNIPPET @@ -48,10 +56,11 @@ public void CreateDeleteTable() #region Snippet:TablesSample1GetTableClient #if SNIPPET string tableName = "OfficeSupplies1p2"; + var tableClient = serviceClient.GetTableClient(tableName); #else tableName = "OfficeSupplies1p2"; + tableClient = serviceClient.GetTableClient(tableName); #endif - var tableClient = serviceClient.GetTableClient(tableName); #endregion #region Snippet:TablesSample1CreateTableClient @@ -66,7 +75,7 @@ public void CreateDeleteTable() #endregion #region Snippet:TablesSample1TableClientCreateTable - tableClient.Create(); + tableClient.CreateIfNotExists(); #endregion #region Snippet:TablesSample1TableClientDeleteTable diff --git a/sdk/tables/Azure.Data.Tables/tests/samples/Sample2_CreateDeleteEntities.cs b/sdk/tables/Azure.Data.Tables/tests/samples/Sample2_CreateDeleteEntities.cs index 36419809878e..915c0382b56f 100644 --- a/sdk/tables/Azure.Data.Tables/tests/samples/Sample2_CreateDeleteEntities.cs +++ b/sdk/tables/Azure.Data.Tables/tests/samples/Sample2_CreateDeleteEntities.cs @@ -24,7 +24,6 @@ public void CreateDeleteEntity() #region Snippet:TablesSample2CreateTableWithTableClient // Construct a new using a . - var tableClient = new TableClient( new Uri(storageUri), tableName, @@ -36,7 +35,6 @@ public void CreateDeleteEntity() #region Snippet:TablesSample2CreateDictionaryEntity // Make a dictionary entity by defining a . - var entity = new TableEntity(partitionKey, rowKey) { { "Product", "Marker Set" }, @@ -49,13 +47,16 @@ public void CreateDeleteEntity() #region Snippet:TablesSample2AddEntity // Add the newly created entity. - tableClient.AddEntity(entity); #endregion + #region Snippet:TablesMigrationUpsertEntity + // Upsert the newly created entity. + tableClient.UpsertEntity(entity); + #endregion + #region Snippet:TablesSample2CreateStronglyTypedEntity // Create an instance of the strongly-typed entity and set their properties. - var strongEntity = new OfficeSupplyEntity { PartitionKey = partitionKey, @@ -68,13 +69,35 @@ public void CreateDeleteEntity() Console.WriteLine($"{entity.RowKey}: {strongEntity.Product} costs ${strongEntity.Price}."); #endregion - // Add the newly created entity. + #region Snippet:TablesMigrationCreateEntity + // Create an instance of the strongly-typed entity and set their properties. +#if SNIPPET + var entity = new OfficeSupplyEntity +#else + var fooEntity = new OfficeSupplyEntity +#endif + { + PartitionKey = partitionKey, + RowKey = rowKey, + Product = "Marker Set", + Price = 5.00, + Quantity = 21 + }; + #endregion + // Add the newly created entity. tableClient.AddEntity(strongEntity); + #region Snippet:MigrationGetEntity + // Get the entity. + OfficeSupplyEntity marker = tableClient.GetEntity(partitionKey, rowKey); + + // Display the values. + Console.WriteLine($"{marker.PartitionKey}, {marker.RowKey}, {marker.Product}, {marker.Price}, {marker.Quantity}"); + #endregion + #region Snippet:TablesSample2DeleteEntity // Delete the entity given the partition and row key. - tableClient.DeleteEntity(partitionKey, rowKey); #endregion @@ -84,8 +107,7 @@ public void CreateDeleteEntity() } #region Snippet:TablesSample2DefineStronglyTypedEntity - // Define a strongly typed entity by extending the class. - + // Define a strongly typed entity by implementing the ITableEntity interface. public class OfficeSupplyEntity : ITableEntity { public string Product { get; set; } diff --git a/sdk/tables/Azure.Data.Tables/tests/samples/Sample4_QueryEntities.cs b/sdk/tables/Azure.Data.Tables/tests/samples/Sample4_QueryEntities.cs index 6dcae8b3fdc9..6173b8ece234 100644 --- a/sdk/tables/Azure.Data.Tables/tests/samples/Sample4_QueryEntities.cs +++ b/sdk/tables/Azure.Data.Tables/tests/samples/Sample4_QueryEntities.cs @@ -51,7 +51,6 @@ public void QueryEntities() Pageable queryResultsFilter = tableClient.Query(filter: $"PartitionKey eq '{partitionKey}'"); // Iterate the to access all queried entities. - foreach (TableEntity qEntity in queryResultsFilter) { Console.WriteLine($"{qEntity.GetString("Product")}: {qEntity.GetDouble("Price")}"); @@ -68,7 +67,6 @@ public void QueryEntities() queryResultsFilter = tableClient.Query(filter: TableClient.CreateQueryFilter($"PartitionKey eq {partitionKey}")); #endif // Iterate the to access all queried entities. - foreach (TableEntity qEntity in queryResultsFilter) { Console.WriteLine($"{qEntity.GetString("Product")}: {qEntity.GetDouble("Price")}"); @@ -76,15 +74,23 @@ public void QueryEntities() Console.WriteLine($"The query returned {queryResultsFilter.Count()} entities."); - // It handles esca #endregion #region Snippet:TablesSample4QueryEntitiesExpression - // Use the to query the table using a filter expression. - double priceCutOff = 6.00; Pageable queryResultsLINQ = tableClient.Query(ent => ent.Price >= priceCutOff); #endregion + #region Snippet:TablesMigrationQuery + // Execute the query. + Pageable queryResults = tableClient.Query(e => e.PartitionKey == partitionKey && e.RowKey == rowKey); + + // Display the results + foreach (var item in queryResults.ToList()) + { + Console.WriteLine($"{item.PartitionKey}, {item.RowKey}, {item.Product}, {item.Price}, {item.Quantity}"); + } + #endregion + #region Snippet:TablesSample4QueryEntitiesSelect Pageable queryResultsSelect = tableClient.Query(select: new List() { "Product", "Price" }); #endregion diff --git a/sdk/tables/Azure.Data.Tables/tests/samples/Sample6_TransactionalBatchAsync.cs b/sdk/tables/Azure.Data.Tables/tests/samples/Sample6_TransactionalBatchAsync.cs index 441cb3674499..aac2de445ce1 100644 --- a/sdk/tables/Azure.Data.Tables/tests/samples/Sample6_TransactionalBatchAsync.cs +++ b/sdk/tables/Azure.Data.Tables/tests/samples/Sample6_TransactionalBatchAsync.cs @@ -81,6 +81,27 @@ public async Task TransactionalBatchAsync() #endregion + var entity = entityList[0]; + var tableClient = client; + + #region Snippet:MigrationBatchAdd + // Create a collection of TableTransactionActions and populate it with the actions for each entity. + List batch = new List + { + new TableTransactionAction(TableTransactionActionType.UpdateMerge, entity) + }; + + // Execute the transaction. + Response> batchResult = tableClient.SubmitTransaction(batch); + + // Display the ETags for each item in the result. + // Note that the ordering between the entties in the batch and the responses in the batch responses will always be conssitent. + for (int i = 0; i < batch.Count; i++) + { + Console.WriteLine($"The ETag for the entity with RowKey: '{batch[i].Entity.RowKey}' is {batchResult.Value[i].Headers.ETag}"); + } + #endregion + #region Snippet:BatchMixed // Create a new batch. @@ -118,9 +139,9 @@ public async Task TransactionalBatchAsync() List deleteEntitiesBatch = new List(); // Add the entities for deletion to the batch. - foreach (TableEntity entity in entityList) + foreach (TableEntity entityToDelete in entityList) { - deleteEntitiesBatch.Add(new TableTransactionAction(TableTransactionActionType.Delete, entity)); + deleteEntitiesBatch.Add(new TableTransactionAction(TableTransactionActionType.Delete, entityToDelete)); } // Submit the batch. diff --git a/sdk/tables/ci.yml b/sdk/tables/ci.yml index aefe65b9deed..b47793d1c5c7 100644 --- a/sdk/tables/ci.yml +++ b/sdk/tables/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/template/Azure.Template/CHANGELOG.md b/sdk/template/Azure.Template/CHANGELOG.md index 5f176a71421d..6b84171c88e0 100644 --- a/sdk/template/Azure.Template/CHANGELOG.md +++ b/sdk/template/Azure.Template/CHANGELOG.md @@ -1,5 +1,8 @@ # Release History +## 1.0.3-beta.19 (2020-09-24) +- Test Submit-PR + ## 1.0.3-beta.18 (2020-09-24) - Test Submit-PR @@ -87,13 +90,13 @@ ## 1.0.2-preview.6 (2020-02-24) ### Added - Testing Changelog added section -- Testing Links [Project Site](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/template/Azure.Template/README.md) +- Testing Links [Project Site](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/template/Azure.Template/README.md) - Test `Highlighted Code` ## 1.0.2-preview.5 (2020-02-24) ### Added - Testing Changelog added section -- Testing Links [Project Site](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/template/Azure.Template/README.md) +- Testing Links [Project Site](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/template/Azure.Template/README.md) - Test `Highlighted Code` ## 1.0.2-preview.4 (2019-12-17) diff --git a/sdk/template/Azure.Template/README.md b/sdk/template/Azure.Template/README.md index c60be741e0cc..ca73efd55100 100644 --- a/sdk/template/Azure.Template/README.md +++ b/sdk/template/Azure.Template/README.md @@ -1,6 +1,6 @@ # 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 [Azure.Template/README.md](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/template/Azure.Template/README.md) for an example following this 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 [Azure.Template/README.md](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/template/Azure.Template/README.md) for an example following this template. **Title**: The H1 of your README should be in the format: `# [Product Name] client library for [Language]` @@ -16,7 +16,7 @@ Use the guidelines in each section of this template to ensure consistency and re * 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/sdk/batch/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/) + [Source code](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/batch/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. @@ -51,12 +51,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) diff --git a/sdk/template/ci.yml b/sdk/template/ci.yml index af98ffe31258..dff9202537c3 100644 --- a/sdk/template/ci.yml +++ b/sdk/template/ci.yml @@ -2,7 +2,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -13,7 +12,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/testcommon/Azure.Graph.Rbac/README.md b/sdk/testcommon/Azure.Graph.Rbac/README.md index d58d3db95e42..a7cbf6c6c0f5 100644 --- a/sdk/testcommon/Azure.Graph.Rbac/README.md +++ b/sdk/testcommon/Azure.Graph.Rbac/README.md @@ -7,7 +7,7 @@ * 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/sdk/batch/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/) + [Source code](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/batch/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. @@ -40,12 +40,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md b/sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md index 78bbb20f3df7..3c5dd6f112b7 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md @@ -220,7 +220,7 @@ If you try to access a result attribute where the operation was unsuccesful, an ## 1.0.0-preview.1 (2020-01-09) This is the first preview of the `Azure.AI.TextAnalytics` client library. It is not a direct replacement for `Microsoft.Azure.CognitiveServices.Language.TextAnalytics`, as applications currently using that library would require code changes to use `Azure.AI.TextAnalytics`. -This package's [documentation](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/README.md) and [samples](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples) demonstrate the new API. +This package's [documentation](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md) and [samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples) demonstrate the new API. ### Major changes from `Microsoft.Azure.CognitiveServices.Language.TextAnalytics` diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/README.md b/sdk/textanalytics/Azure.AI.TextAnalytics/README.md index 01192ad59db6..87bbfc7626ef 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/README.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/README.md @@ -137,11 +137,11 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -804,18 +804,18 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con -[textanalytics_client_src]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics/src +[textanalytics_client_src]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics/src [textanalytics_docs]: https://docs.microsoft.com/azure/cognitive-services/Text-Analytics/ [textanalytics_refdocs]: https://aka.ms/azsdk-net-textanalytics-ref-docs [textanalytics_nuget_package]: https://www.nuget.org/packages/Azure.AI.TextAnalytics -[textanalytics_samples]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples/README.md +[textanalytics_samples]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/README.md [textanalytics_rest_api]: https://westcentralus.dev.cognitive.microsoft.com/docs/services/TextAnalytics-v3-1-Preview-3/operations/Languages [cognitive_resource_portal]: https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account [cognitive_resource_cli]: https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account-cli [dotnet_lro_guidelines]: https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-longrunning -[recognize_healthcare_sample]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeHealthcareEntities.md -[analyze_operation_sample]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_AnalyzeActions.md +[recognize_healthcare_sample]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeHealthcareEntities.md +[analyze_operation_sample]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_AnalyzeActions.md [analyze_operation_howto]: https://docs.microsoft.com/azure/cognitive-services/text-analytics/how-tos/text-analytics-how-to-call-api?tabs=synchronous#using-the-api-asynchronously [healthcare]: https://docs.microsoft.com/azure/cognitive-services/text-analytics/how-tos/text-analytics-for-health?tabs=ner [language_detection]: https://docs.microsoft.com/azure/cognitive-services/Text-Analytics/how-tos/text-analytics-how-to-language-detection @@ -825,25 +825,25 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con [named_entities_categories]: https://docs.microsoft.com/azure/cognitive-services/Text-Analytics/named-entity-types [pii_entity_type]:https://docs.microsoft.com/azure/cognitive-services/text-analytics/named-entity-types?tabs=personal -[textanalytics_client_class]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsClient.cs -[azure_identity]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity +[textanalytics_client_class]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsClient.cs +[azure_identity]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity [cognitive_auth]: https://docs.microsoft.com/azure/cognitive-services/authentication [register_aad_app]: https://docs.microsoft.com/azure/cognitive-services/authentication#assign-a-role-to-a-service-principal [aad_grant_access]: https://docs.microsoft.com/azure/cognitive-services/authentication#assign-a-role-to-a-service-principal [custom_subdomain]: https://docs.microsoft.com/azure/cognitive-services/authentication#create-a-resource-with-a-custom-subdomain -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity/README.md -[logging]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity/README.md +[logging]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md [data_limits]: https://docs.microsoft.com/azure/cognitive-services/text-analytics/overview#data-limits -[contributing]: https://github.com/Azure/azure-sdk-for-net/blob/master/CONTRIBUTING.md - -[detect_language_sample]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample1_DetectLanguage.md -[analyze_sentiment_sample]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample2_AnalyzeSentiment.md -[analyze_sentiment_opinion_mining_sample]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample2.1_AnalyzeSentimentWithOpinionMining.md -[extract_key_phrases_sample]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample3_ExtractKeyPhrases.md -[recognize_entities_sample]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample4_RecognizeEntities.md -[recognize_pii_entities_sample]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample5_RecognizePiiEntities.md -[recognize_linked_entities_sample]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample6_RecognizeLinkedEntities.md -[mock_client_sample]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_MockClient.md +[contributing]: https://github.com/Azure/azure-sdk-for-net/blob/main/CONTRIBUTING.md + +[detect_language_sample]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample1_DetectLanguage.md +[analyze_sentiment_sample]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample2_AnalyzeSentiment.md +[analyze_sentiment_opinion_mining_sample]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample2.1_AnalyzeSentimentWithOpinionMining.md +[extract_key_phrases_sample]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample3_ExtractKeyPhrases.md +[recognize_entities_sample]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample4_RecognizeEntities.md +[recognize_pii_entities_sample]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample5_RecognizePiiEntities.md +[recognize_linked_entities_sample]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample6_RecognizeLinkedEntities.md +[mock_client_sample]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_MockClient.md [azure_cli]: https://docs.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/perf/Azure.AI.TextAnalytics.Perf/README.md b/sdk/textanalytics/Azure.AI.TextAnalytics/perf/Azure.AI.TextAnalytics.Perf/README.md index dd3688629b5d..a5843be31303 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/perf/Azure.AI.TextAnalytics.Perf/README.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/perf/Azure.AI.TextAnalytics.Perf/README.md @@ -1,6 +1,6 @@ # Azure Text Analytics performance tests -The assets in this area comprise a set of performance tests for the [Azure Text Analytics client library for .NET](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics) and its associated ecosystem. The artifacts in this library are intended to be used primarily with the Azure SDK engineering system's testing infrastructure, but may also be run as stand-alone applications from the command line. +The assets in this area comprise a set of performance tests for the [Azure Text Analytics client library for .NET](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics) and its associated ecosystem. The artifacts in this library are intended to be used primarily with the Azure SDK engineering system's testing infrastructure, but may also be run as stand-alone applications from the command line. ## Running performance tests @@ -18,6 +18,6 @@ When you submit a pull request, a CLA-bot will automatically determine whether y This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. -Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md) for more information. +Please see our [contributing guide](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/CONTRIBUTING.md) for more information. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Ftextanalytics%2FAzure.AI.TextAnalytics%2Fperf%2FAzure.AI.TextAnalytics.Perf%2FREADME.png) diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/README.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/README.md index 5bba9965c756..64ed45a0f099 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/README.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/README.md @@ -22,17 +22,17 @@ Azure Cognitive Services Text Analytics is a cloud service that provides advance * Running multiple actions in one or more documents ## Common scenarios samples -- [Detect Language](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample1_DetectLanguage.md) -- [Analyze Sentiment](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample2_AnalyzeSentiment.md) -- [Extract Key Phrases](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample3_ExtractKeyPhrases.md) -- [Recognize Entities](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample4_RecognizeEntities.md) -- [Recognize PII Entities](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample5_RecognizePiiEntities.md) -- [Recognize Linked Entities](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample6_RecognizeLinkedEntities.md) -- [Recognize Healthcare Entities](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeHealthcareEntities.md) +- [Detect Language](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample1_DetectLanguage.md) +- [Analyze Sentiment](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample2_AnalyzeSentiment.md) +- [Extract Key Phrases](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample3_ExtractKeyPhrases.md) +- [Recognize Entities](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample4_RecognizeEntities.md) +- [Recognize PII Entities](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample5_RecognizePiiEntities.md) +- [Recognize Linked Entities](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample6_RecognizeLinkedEntities.md) +- [Recognize Healthcare Entities](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeHealthcareEntities.md) ## Advanced samples -- [Analyze Sentiment with Opinion Mining](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample2.1_AnalyzeSentimentWithOpinionMining.md) -- [Running multiple actions in one or more documents](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_AnalyzeActions.md) -- [Mock client](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_MockClient.md) +- [Analyze Sentiment with Opinion Mining](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample2.1_AnalyzeSentimentWithOpinionMining.md) +- [Running multiple actions in one or more documents](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_AnalyzeActions.md) +- [Mock client](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_MockClient.md) -[README]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/README.md +[README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample1_DetectLanguage.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample1_DetectLanguage.md index aa9ef241386e..20acf69d7f51 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample1_DetectLanguage.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample1_DetectLanguage.md @@ -189,12 +189,12 @@ Console.WriteLine($" Transaction count: {documentsLanguage.Statistics.Transacti To see the full example source files, see: -* [Synchronous DetectLanguage](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics//tests/samples/Sample1_DetectLanguage.cs) -* [Asynchronous DetectLanguage](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample1_DetectLanguageAsync.cs) -* [Synchronous DetectLanguageBatch](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample1_DetectLanguageBatch.cs) -* [Asynchronous DetectLanguageBatch](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample1_DetectLanguageBatchAsync.cs) -* [Synchronous DetectLanguageBatchConvenience](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample1_DetectLanguageBatchConvenience.cs) -* [Asynchronous DetectLanguageBatchConvenience](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample1_DetectLanguageBatchConvenienceAsync.cs) - -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md -[README]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/README.md \ No newline at end of file +* [Synchronous DetectLanguage](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics//tests/samples/Sample1_DetectLanguage.cs) +* [Asynchronous DetectLanguage](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample1_DetectLanguageAsync.cs) +* [Synchronous DetectLanguageBatch](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample1_DetectLanguageBatch.cs) +* [Asynchronous DetectLanguageBatch](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample1_DetectLanguageBatchAsync.cs) +* [Synchronous DetectLanguageBatchConvenience](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample1_DetectLanguageBatchConvenience.cs) +* [Asynchronous DetectLanguageBatchConvenience](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample1_DetectLanguageBatchConvenienceAsync.cs) + +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md +[README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample2.1_AnalyzeSentimentWithOpinionMining.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample2.1_AnalyzeSentimentWithOpinionMining.md index c0b18177f0df..2f29e22cf4ad 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample2.1_AnalyzeSentimentWithOpinionMining.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample2.1_AnalyzeSentimentWithOpinionMining.md @@ -4,7 +4,7 @@ This sample demonstrates how to analyze sentiment of documents and get more gran For example, if a customer leaves feedback about a hotel such as "The room was great, but the staff was unfriendly.", Opinion Mining will locate targets in the text, and their associated opinion and sentiments. Sentiment Analysis might only report a negative sentiment. -![opinion mining diagram](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/samples/assets/opinion-mining.png) +![opinion mining diagram](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/assets/opinion-mining.png) For the purpose of the sample, we will be the administrator of a hotel and we've set a system to look at the online reviews customers are posting to identify the major complaints about our hotel. In order to do so, we will use the Sentiment Analysis feature of the Text Analytics client library. To get started you'll need a Text Analytics endpoint and credentials. See [README][README] for links and instructions. @@ -104,8 +104,8 @@ private Dictionary GetComplaints(AnalyzeSentimentResultCollection r To see the full example source files, see: -* [Synchronous Analyze Sentiment with Opinion Mining](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics//tests/samples/Sample2.1_AnalyzeSentimentWithOpinionMining.cs) -* [Asynchronous Analyze Sentiment with Opinion Mining](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics//tests/samples/Sample2.1_AnalyzeSentimentWithOpinionMiningAsync.cs) +* [Synchronous Analyze Sentiment with Opinion Mining](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics//tests/samples/Sample2.1_AnalyzeSentimentWithOpinionMining.cs) +* [Asynchronous Analyze Sentiment with Opinion Mining](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics//tests/samples/Sample2.1_AnalyzeSentimentWithOpinionMiningAsync.cs) -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md -[README]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/README.md \ No newline at end of file +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md +[README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample2_AnalyzeSentiment.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample2_AnalyzeSentiment.md index 92cb85647ba6..70b55c854a7e 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample2_AnalyzeSentiment.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample2_AnalyzeSentiment.md @@ -208,12 +208,12 @@ Console.WriteLine($" Transaction count: {sentimentPerDocuments.Statistics.Trans To see the full example source files, see: -* [Synchronous AnalyzeSentiment](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample2_AnalyzeSentiment.cs) -* [Asynchronous AnalyzeSentiment](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample2_AnalyzeSentimentAsync.cs) -* [Synchronous AnalyzeSentimentBatch](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample2_AnalyzeSentimentBatch.cs) -* [Asynchronous AnalyzeSentimentBatch](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample2_AnalyzeSentimentBatchAsync.cs) -* [Synchronous AnalyzeSentimentBatchConvenience](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample2_AnalyzeSentimentBatchConvenience.cs) -* [Asynchronous AnalyzeSentimentBatchConvenience](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample2_AnalyzeSentimentBatchConvenienceAsync.cs) - -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md -[README]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/README.md +* [Synchronous AnalyzeSentiment](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample2_AnalyzeSentiment.cs) +* [Asynchronous AnalyzeSentiment](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample2_AnalyzeSentimentAsync.cs) +* [Synchronous AnalyzeSentimentBatch](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample2_AnalyzeSentimentBatch.cs) +* [Asynchronous AnalyzeSentimentBatch](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample2_AnalyzeSentimentBatchAsync.cs) +* [Synchronous AnalyzeSentimentBatchConvenience](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample2_AnalyzeSentimentBatchConvenience.cs) +* [Asynchronous AnalyzeSentimentBatchConvenience](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample2_AnalyzeSentimentBatchConvenienceAsync.cs) + +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md +[README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample3_ExtractKeyPhrases.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample3_ExtractKeyPhrases.md index 005a18f3cf22..e70938c9038c 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample3_ExtractKeyPhrases.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample3_ExtractKeyPhrases.md @@ -190,13 +190,13 @@ Console.WriteLine(""); To see the full example source files, see: -* [Synchronous ExtractKeyPhrases](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample3_ExtractKeyPhrases.cs) -* [Asynchronous ExtractKeyPhrases](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample3_ExtractKeyPhrasesAsync.cs) -* [ExtractKeyPhrases with warnings](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample3_ExtractKeyPhrasesWithWarnings.cs) -* [Synchronous ExtractKeyPhrasesBatch](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample3_ExtractKeyPhrasesBatch.cs) -* [Asynchronous ExtractKeyPhrasesBatch](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample3_ExtractKeyPhrasesBatchAsync.cs) -* [Synchronous ExtractKeyPhrasesBatchConvenience](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample3_ExtractKeyPhrasesBatchConvenience.cs) -* [Asynchronous ExtractKeyPhrasesBatchConvenience](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample3_ExtractKeyPhrasesBatchConvenienceAsync.cs) - -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md -[README]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/README.md +* [Synchronous ExtractKeyPhrases](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample3_ExtractKeyPhrases.cs) +* [Asynchronous ExtractKeyPhrases](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample3_ExtractKeyPhrasesAsync.cs) +* [ExtractKeyPhrases with warnings](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample3_ExtractKeyPhrasesWithWarnings.cs) +* [Synchronous ExtractKeyPhrasesBatch](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample3_ExtractKeyPhrasesBatch.cs) +* [Asynchronous ExtractKeyPhrasesBatch](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample3_ExtractKeyPhrasesBatchAsync.cs) +* [Synchronous ExtractKeyPhrasesBatchConvenience](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample3_ExtractKeyPhrasesBatchConvenience.cs) +* [Asynchronous ExtractKeyPhrasesBatchConvenience](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample3_ExtractKeyPhrasesBatchConvenienceAsync.cs) + +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md +[README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample4_RecognizeEntities.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample4_RecognizeEntities.md index 480cee4ccbcc..efb1212e6917 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample4_RecognizeEntities.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample4_RecognizeEntities.md @@ -211,12 +211,12 @@ Console.WriteLine(""); To see the full example source files, see: -* [Synchronously RecognizeEntities](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntities.cs) -* [Asynchronously RecognizeEntities](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesAsync.cs) -* [Synchronously RecognizeEntitiesBatch](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesBatch.cs) -* [Asynchronously RecognizeEntitiesBatch](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesBatchAsync.cs) -* [Synchronously RecognizeEntitiesBatchConvenience](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesBatchConvenience.cs) -* [Asynchronously RecognizeEntitiesBatchConvenience](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesBatchConvenienceAsync.cs) - -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md -[README]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/README.md \ No newline at end of file +* [Synchronously RecognizeEntities](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntities.cs) +* [Asynchronously RecognizeEntities](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesAsync.cs) +* [Synchronously RecognizeEntitiesBatch](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesBatch.cs) +* [Asynchronously RecognizeEntitiesBatch](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesBatchAsync.cs) +* [Synchronously RecognizeEntitiesBatchConvenience](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesBatchConvenience.cs) +* [Asynchronously RecognizeEntitiesBatchConvenience](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample4_RecognizeEntitiesBatchConvenienceAsync.cs) + +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md +[README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample5_RecognizePiiEntities.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample5_RecognizePiiEntities.md index 4553453907c0..9859e50884e4 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample5_RecognizePiiEntities.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample5_RecognizePiiEntities.md @@ -189,13 +189,13 @@ Console.WriteLine(""); ``` To see the full example source files, see: -* [Synchronous RecognizePiiEntities](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample5_RecognizePiiEntities.cs) -* [Asynchronous RecognizePiiEntities](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample5_RecognizePiiEntitiesAsync.cs) -* [Recognize PII Entities with specific categories](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample5_RecognizePiiEntitiesWithCategoriesFilter.cs) -* [Synchronous RecognizePiiEntitiesBatch](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample5_RecognizePiiEntitiesBatch.cs) -* [Asynchronous RecognizePiiEntitiesBatch](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample5_RecognizePiiEntitiesBatchAsync.cs) -* [Synchronous RecognizePiiEntitiesBatchConvenience](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample5_RecognizePiiEntitiesBatchConvenience.cs) -* [Asynchronous RecognizePiiEntitiesBatchConvenience](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample5_RecognizePiiEntitiesBatchConvenienceAsync.cs) - -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md -[README]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/README.md \ No newline at end of file +* [Synchronous RecognizePiiEntities](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample5_RecognizePiiEntities.cs) +* [Asynchronous RecognizePiiEntities](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample5_RecognizePiiEntitiesAsync.cs) +* [Recognize PII Entities with specific categories](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample5_RecognizePiiEntitiesWithCategoriesFilter.cs) +* [Synchronous RecognizePiiEntitiesBatch](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample5_RecognizePiiEntitiesBatch.cs) +* [Asynchronous RecognizePiiEntitiesBatch](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample5_RecognizePiiEntitiesBatchAsync.cs) +* [Synchronous RecognizePiiEntitiesBatchConvenience](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample5_RecognizePiiEntitiesBatchConvenience.cs) +* [Asynchronous RecognizePiiEntitiesBatchConvenience](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample5_RecognizePiiEntitiesBatchConvenienceAsync.cs) + +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md +[README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample6_RecognizeLinkedEntities.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample6_RecognizeLinkedEntities.md index 7782cc07c7cc..5d9677be666a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample6_RecognizeLinkedEntities.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample6_RecognizeLinkedEntities.md @@ -212,12 +212,12 @@ Console.WriteLine(""); To see the full example source files, see: -* [Synchronous RecognizeLinkedEntities](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample6_RecognizeLinkedEntities.cs) -* [Asynchronous RecognizeLinkedEntities](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample6_RecognizeLinkedEntitiesAsync.cs) -* [Synchronous RecognizeLinkedEntitiesBatch](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample6_RecognizeLinkedEntitiesBatch.cs) -* [Asynchronous RecognizeLinkedEntitiesBatch](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample6_RecognizeLinkedEntitiesBatchAsync.cs) -* [Synchronous RecognizeLinkedEntitiesBatchConvenience](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample6_RecognizeLinkedEntitiesBatchConvenience.cs) -* [Asynchronous RecognizeLinkedEntitiesBatchConvenience](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample6_RecognizeLinkedEntitiesBatchConvenienceAsync.cs) - -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md -[README]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/README.md \ No newline at end of file +* [Synchronous RecognizeLinkedEntities](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample6_RecognizeLinkedEntities.cs) +* [Asynchronous RecognizeLinkedEntities](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample6_RecognizeLinkedEntitiesAsync.cs) +* [Synchronous RecognizeLinkedEntitiesBatch](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample6_RecognizeLinkedEntitiesBatch.cs) +* [Asynchronous RecognizeLinkedEntitiesBatch](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample6_RecognizeLinkedEntitiesBatchAsync.cs) +* [Synchronous RecognizeLinkedEntitiesBatchConvenience](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample6_RecognizeLinkedEntitiesBatchConvenience.cs) +* [Asynchronous RecognizeLinkedEntitiesBatchConvenience](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample6_RecognizeLinkedEntitiesBatchConvenienceAsync.cs) + +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md +[README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_AnalyzeActions.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_AnalyzeActions.md index 39f005081c84..0643efbaa40a 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_AnalyzeActions.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_AnalyzeActions.md @@ -178,10 +178,10 @@ To run multiple actions in multiple documents, call `StartAnalyzeActionsAsync` o To see the full example source files, see: -* [Synchronously StartAnalyzeActions ](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperation.cs) -* [Asynchronously StartAnalyzeActions ](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperationAsync.cs) -* [Synchronously StartAnalyzeActions Convenience ](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperationConvenience.cs) -* [Asynchronously StartAnalyzeActions Convenience](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperationConvenienceAsync.cs) +* [Synchronously StartAnalyzeActions ](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperation.cs) +* [Asynchronously StartAnalyzeActions ](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperationAsync.cs) +* [Synchronously StartAnalyzeActions Convenience ](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperationConvenience.cs) +* [Asynchronously StartAnalyzeActions Convenience](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperationConvenienceAsync.cs) -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md -[README]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/README.md \ No newline at end of file +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md +[README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_LROPolling.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_LROPolling.md index b7f49c567a72..d4e983766d2c 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_LROPolling.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_LROPolling.md @@ -1,5 +1,5 @@ # Polling Long Running Operations -This sample demonstrates the different ways to consume or poll the status of a Text Analytics client Long Running Operation. It uses the (Analyze Operation)[https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/textanalytics/Azure.AI.TextAnalytics#run-analyze-operation-asynchronously] as an example +This sample demonstrates the different ways to consume or poll the status of a Text Analytics client Long Running Operation. It uses the (Analyze Operation)[https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/textanalytics/Azure.AI.TextAnalytics#run-analyze-operation-asynchronously] as an example ## Creating a `TextAnalyticsClient` @@ -143,10 +143,10 @@ This method is for users who want to have intermittent code paths during the pol To see the full example source files, see: -* [Automatic Polling AnalyzeOperation ](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperationAsync.cs) -* [Manual Polling AnalyzeOperation ](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperation.cs) -* [Automatic Polling HealthcareOperation ](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample7_AnalyzeHealthcareEntitiesConvenienceAsync_AutomaticPolling.cs) -* [Manual Polling HealthcareOperation ](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample7_AnalyzeHealthcareEntitiesConvenience_ManualPolling.cs) +* [Automatic Polling AnalyzeOperation ](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperationAsync.cs) +* [Manual Polling AnalyzeOperation ](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample_AnalyzeOperation.cs) +* [Automatic Polling HealthcareOperation ](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample7_AnalyzeHealthcareEntitiesConvenienceAsync_AutomaticPolling.cs) +* [Manual Polling HealthcareOperation ](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample7_AnalyzeHealthcareEntitiesConvenience_ManualPolling.cs) -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md -[README]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/README.md +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md +[README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_MockClient.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_MockClient.md index 1752664e0035..501d2818210e 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_MockClient.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_MockClient.md @@ -40,4 +40,4 @@ Assert.IsTrue(result); ``` [moq]: https://github.com/Moq/moq4/ -[moq_samples]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/SampleMoq.cs \ No newline at end of file +[moq_samples]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/SampleMoq.cs \ No newline at end of file diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeHealthcareEntities.md b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeHealthcareEntities.md index 4f6c26940b73..af38c7397603 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeHealthcareEntities.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample_RecognizeHealthcareEntities.md @@ -142,14 +142,14 @@ await foreach (AnalyzeHealthcareEntitiesResultCollection documentsInPage in heal To see the full example source files, see: -* [Synchronous AnalyzeHealthcareEntities](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample7_AnalyzeHealthcareEntities.cs) -* [Asynchronous AnalyzeHealthcareEntities](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample7_AnalyzeHealthcareEntitiesAsync.cs) -* [Automatic Polling AnalyzeHealthcareEntities ](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample7_AnalyzeHealthcareEntitiesAsync_AutomaticPolling.cs) -* [Manual Polling AnalyzeHealthcareEntities ](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample7_AnalyzeHealthcareEntities_ManualPolling.cs) -* [Automatic Polling AnalyzeHealthcareEntities Convenience](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample7_AnalyzeHealthcareEntitiesConvenienceAsync_AutomaticPolling.cs) -* [Manual Polling AnalyzeHealthcareEntities Convenience ](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample7_AnalyzeHealthcareEntitiesConvenience_ManualPolling.cs) -* [Synchronous AnalyzeHealthcareEntities Cancellation](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample7_AnalyzeHealthcareEntities_Cancellation.cs) -* [Asynchronous AnalyzeHealthcareEntitiesAsync Cancellation](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample7_AnalyzeHealthcareEntitiesAsync_Cancellation.cs) - -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md -[README]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/README.md +* [Synchronous AnalyzeHealthcareEntities](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample7_AnalyzeHealthcareEntities.cs) +* [Asynchronous AnalyzeHealthcareEntities](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample7_AnalyzeHealthcareEntitiesAsync.cs) +* [Automatic Polling AnalyzeHealthcareEntities ](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample7_AnalyzeHealthcareEntitiesAsync_AutomaticPolling.cs) +* [Manual Polling AnalyzeHealthcareEntities ](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample7_AnalyzeHealthcareEntities_ManualPolling.cs) +* [Automatic Polling AnalyzeHealthcareEntities Convenience](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample7_AnalyzeHealthcareEntitiesConvenienceAsync_AutomaticPolling.cs) +* [Manual Polling AnalyzeHealthcareEntities Convenience ](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample7_AnalyzeHealthcareEntitiesConvenience_ManualPolling.cs) +* [Synchronous AnalyzeHealthcareEntities Cancellation](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample7_AnalyzeHealthcareEntities_Cancellation.cs) +* [Asynchronous AnalyzeHealthcareEntitiesAsync Cancellation](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/tests/samples/Sample7_AnalyzeHealthcareEntitiesAsync_Cancellation.cs) + +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md +[README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md diff --git a/sdk/textanalytics/ci.yml b/sdk/textanalytics/ci.yml index 1aa90058f96b..315827e3e96a 100644 --- a/sdk/textanalytics/ci.yml +++ b/sdk/textanalytics/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/CHANGELOG.md b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/CHANGELOG.md index f38f41212913..fb9c15792559 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/CHANGELOG.md +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/CHANGELOG.md @@ -8,7 +8,7 @@ ### New features - Official public preview of Azure.IoT.TimeSeriesInsights SDK -- [Azure Time Series Insights Public Repo](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights) -- [Azure Time Series Insights Samples](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/samples) +- [Azure Time Series Insights Public Repo](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights) +- [Azure Time Series Insights Samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/samples) diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/README.md b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/README.md index 884aaa2b55bd..4364c0da8666 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/README.md +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/README.md @@ -29,7 +29,7 @@ View the package details at [nuget.org][tsi_nuget]. ### Authenticate the Client -In order to interact with the Azure Time Series Insights service, you will need to create an instance of a [TokenCredential class][token_credential] and pass it to the constructor of your [TimeSeriesInsightsClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsClient.cs). +In order to interact with the Azure Time Series Insights service, you will need to create an instance of a [TokenCredential class][token_credential] and pass it to the constructor of your [TimeSeriesInsightsClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsClient.cs). ## Key concepts @@ -47,12 +47,12 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -70,12 +70,12 @@ The Time Series Insights public client, `TimeSeriesInsightsClient`, and the addi The code generated by autorest using the swagger file defined in the autorest config file. -To regenerate the code, run the powershell script [generate.ps1](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/generate.ps1). +To regenerate the code, run the powershell script [generate.ps1](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/generate.ps1). Any time the client library code is updated, the following scripts need to be run: -- [Export-AdtApis.ps1](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/timeseriesinsights/Export-TsiApis.ps1), which will update the [API surface document](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/api/Azure.IoT.TimeSeriesInsights.netstandard2.0.cs). -- [Update-Snippets.ps1](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/timeseriesinsights/Update-TsiSnippets.ps1), which will update all the code snippets in the readme files and in the client documentation comments. +- [Export-AdtApis.ps1](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/timeseriesinsights/Export-TsiApis.ps1), which will update the [API surface document](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/api/Azure.IoT.TimeSeriesInsights.netstandard2.0.cs). +- [Update-Snippets.ps1](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/timeseriesinsights/Update-TsiSnippets.ps1), which will update all the code snippets in the readme files and in the client documentation comments. ### /src/Customized @@ -93,7 +93,7 @@ Assembly properties required for running unit tests. ## Troubleshooting -Time Series Insights service operation failures are usually returned to the user as [TimeSeriesOperationError](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesOperationError.cs). The TimeSeriesOperationError response is either returned directly by the client library API, or as a nested property within the actual response for the client library API. For example, the DeleteByName API that is part of the hierarchies client returns a TimeSeriesOperationError directly. Whereas, the Replace API that is part of the instances client returns a [InstancesOperationResult](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesOperationResult.cs), which has a TimeSeriesOperationError property nested within it. +Time Series Insights service operation failures are usually returned to the user as [TimeSeriesOperationError](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/TimeSeriesOperationError.cs). The TimeSeriesOperationError response is either returned directly by the client library API, or as a nested property within the actual response for the client library API. For example, the DeleteByName API that is part of the hierarchies client returns a TimeSeriesOperationError directly. Whereas, the Replace API that is part of the instances client returns a [InstancesOperationResult](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/Models/InstancesOperationResult.cs), which has a TimeSeriesOperationError property nested within it. Example below shows use of TimeSeriesInsightsSampleGetTypeById operation, iterate through response error to find out if a type does not exist. @@ -123,7 +123,7 @@ for (int i = 0; i < getTypeByIdResults.Value.Length; i++) ## Next steps -See implementation examples with our [code samples](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/samples). +See implementation examples with our [code samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/samples). ## Contributing @@ -148,13 +148,13 @@ For more information see the Code of Conduct FAQ or contact opencode@microsoft.c [nuget]: https://www.nuget.org/ [azure_portal]: https://portal.azure.com/ [azure_rest_api]: https://docs.microsoft.com/rest/api/azure/ -[azure_core_library]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/core/Azure.Core +[azure_core_library]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core [token_credential]: https://docs.microsoft.com/dotnet/api/azure.core.tokencredential?view=azure-dotnet [azure_cli]: https://docs.microsoft.com/cli/azure/install-azure-cli?view=azure-cli-latest [iot_cli_extension]: https://github.com/Azure/azure-iot-cli-extension/releases [iot_cli_doc]: https://docs.microsoft.com/cli/azure/ext/azure-iot/dt?view=azure-cli-latest [http_status_code]: https://docs.microsoft.com/dotnet/api/system.net.httpstatuscode?view=netcore-3.1 [tsi_nuget]: https://www.nuget.org/packages/Azure.IoT.TimeSeriesInsights -[tsi_client_src]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src +[tsi_client_src]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src [tsi_product_documentation]: https://docs.microsoft.com/azure/time-series-insights/ -[tsi_samples]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/samples/Readme.md +[tsi_samples]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/samples/Readme.md diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/samples/Readme.md b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/samples/Readme.md index 5ed0a557c61d..718e90430640 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/samples/Readme.md +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/samples/Readme.md @@ -46,7 +46,7 @@ var instanceId = new TimeSeriesId("Millennium", "Floor2", "2A01"); ## Time Series Insights Model Settings -Use `ModelSettings` in [TimeSeriesInsightsClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsClient.cs) to learn more about the environment model settings, such as name, default type ID, and the properties that define the Time Series ID during environment creation. +Use `ModelSettings` in [TimeSeriesInsightsClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsClient.cs) to learn more about the environment model settings, such as name, default type ID, and the properties that define the Time Series ID during environment creation. ```C# Snippet:TimeSeriesInsightsSampleGetModelSettings TimeSeriesInsightsModelSettings modelSettingsClient = client.GetModelSettingsClient(); @@ -117,7 +117,7 @@ Console.WriteLine($"Updated Time Series Insights model settings default type Id: Time Series Model instances are virtual representations of the time series themselves. To learn more about Time Series Model instances, make sure you visit [this page][tsi_instances_learn_more]. -Use `Instances` in [TimeSeriesInsightsClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsClient.cs) to perform a variety of operations on the environment's instances. +Use `Instances` in [TimeSeriesInsightsClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsClient.cs) to perform a variety of operations on the environment's instances. This code snippet demonstrates retrieving all created instances in your TSI environment. ```C# Snippet:TimeSeriesInsightsGetAllInstances @@ -269,7 +269,7 @@ for (int i = 0; i < replaceInstancesResult.Value.Length; i++) ``` ## Time Series Insights Types -Use `Types` in [TimeSeriesInsightsClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsClient.cs) to create, retrieve, replace and delete Time Series types in your environment. +Use `Types` in [TimeSeriesInsightsClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsClient.cs) to create, retrieve, replace and delete Time Series types in your environment. This snippet demonstrates creating a Time Series type in your environment. @@ -398,7 +398,7 @@ for (int i = 0; i < updateTypesResult.Value.Length; i++) Time Series Model hierarchies organize instances by specifying property names and their relationships. You can configure multiple hierarchies in a given Azure Time Series Insights Gen2 environment. A Time Series Model instance can map to a single hierarchy or multiple hierarchies (many-to-many relationship). To learn more about Time Series Model hierarchies, make sure you visit [this page][tsi_hierarchies_learn_more]. -Use `Hierarchies` in [TimeSeriesInsightsClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsClient.cs) to perform a variety of operations on the environment's hierarchies. +Use `Hierarchies` in [TimeSeriesInsightsClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsClient.cs) to perform a variety of operations on the environment's hierarchies. This code snippet demonstrates creating hierarchies in your Time Series Insights environment. @@ -529,7 +529,7 @@ for (int i = 0; i < updateHierarchiesResult.Value.Length; i++) ## Time Series Insights Query -Use `Queries` in [TimeSeriesInsightsClient](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsClient.cs) to query for: +Use `Queries` in [TimeSeriesInsightsClient](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/TimeSeriesInsightsClient.cs) to query for: - Raw events for a given Time Series ID and search span. - Computed values and the associated event timestamps by applying calculations defined by variables on raw events. These variables can be defined in either the Time Series Model or provided inline in the query. - Aggregated values and the associated interval timestamps by applying calculations defined by variables on raw events. These variables can be defined in either the Time Series Model or provided inline in the query. @@ -686,7 +686,7 @@ await foreach (TimeSeriesPoint point in query.GetResultsAsync()) ``` -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity/README.md +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity/README.md [tsi_instances_learn_more]: https://docs.microsoft.com/azure/time-series-insights/concepts-model-overview#time-series-model-instances [tsi_id_learn_more]: https://docs.microsoft.com/azure/time-series-insights/how-to-select-tsid [tsi_hierarchies_learn_more]: https://docs.microsoft.com/azure/time-series-insights/concepts-model-overview#time-series-model-hierarchies diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/tests/prerequisites/prerequisite readme.md b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/tests/prerequisites/prerequisite readme.md index 4af66e24a268..2f083e8273f4 100644 --- a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/tests/prerequisites/prerequisite readme.md +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/tests/prerequisites/prerequisite readme.md @@ -19,7 +19,7 @@ ### Generate the ARM template -The ARM template [test-resources.json](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/timeseriesinsights/test-resources.json) is generated from the [test-resources.bicep](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/timeseriesinsights/test-resources.bicep) file by running the following script +The ARM template [test-resources.json](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/timeseriesinsights/test-resources.json) is generated from the [test-resources.bicep](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/timeseriesinsights/test-resources.bicep) file by running the following script - `.\generateArmTemplate.ps1` diff --git a/sdk/timeseriesinsights/ci.yml b/sdk/timeseriesinsights/ci.yml index 9fecf252a2ca..d74472b0604f 100644 --- a/sdk/timeseriesinsights/ci.yml +++ b/sdk/timeseriesinsights/ci.yml @@ -2,7 +2,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -13,7 +12,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/translation/Azure.AI.Translation.Document/README.md b/sdk/translation/Azure.AI.Translation.Document/README.md index 61108538304a..3215519a834f 100644 --- a/sdk/translation/Azure.AI.Translation.Document/README.md +++ b/sdk/translation/Azure.AI.Translation.Document/README.md @@ -158,11 +158,11 @@ We guarantee that all client instance methods are thread-safe and independent of ### Additional concepts -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -437,11 +437,11 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con -[documenttranslation_client_src]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/translation/Azure.AI.Translation.Document/src +[documenttranslation_client_src]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/translation/Azure.AI.Translation.Document/src [documenttranslation_docs]: https://docs.microsoft.com/azure/cognitive-services/translator/document-translation/overview [documenttranslation_refdocs]: https://aka.ms/azsdk/net/documenttranslation/docs [documenttranslation_nuget_package]: https://www.nuget.org/packages/Azure.AI.Translation.Document -[documenttranslation_samples]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/translation/Azure.AI.Translation.Document/samples/README.md +[documenttranslation_samples]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/translation/Azure.AI.Translation.Document/samples/README.md [documenttranslation_rest_api]: https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/data-plane/TranslatorText/stable/v1.0/TranslatorBatch.json [custom_domain_endpoint]: https://docs.microsoft.com/azure/cognitive-services/translator/document-translation/get-started-with-document-translation?tabs=csharp#what-is-the-custom-domain-endpoint [single_service]: https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account?tabs=singleservice%2Cwindows @@ -449,17 +449,17 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con [cognitive_resource_cli]: https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account-cli [dotnet_lro_guidelines]: https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-longrunning -[documenttranslation_client_class]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/translation/Azure.AI.Translation.Document/src/DocumentTranslationClient.cs -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md +[documenttranslation_client_class]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/translation/Azure.AI.Translation.Document/src/DocumentTranslationClient.cs +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md [cognitive_auth]: https://docs.microsoft.com/azure/cognitive-services/authentication -[logging]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md -[contributing]: https://github.com/Azure/azure-sdk-for-net/blob/master/CONTRIBUTING.md - -[start_translation_sample]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/translation/Azure.AI.Translation.Document/samples/Sample1_StartTranslation.md -[documents_status_sample]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/translation/Azure.AI.Translation.Document/samples/Sample2_PollIndividualDocuments.md -[operations_history_sample]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/translation/Azure.AI.Translation.Document/samples/Sample3_OperationsHistory.md -[multiple_inputs_sample]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/translation/Azure.AI.Translation.Document/samples/Sample4_MultipleInputs.md -[using_storage_sample]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/translation/Azure.AI.Translation.Document/tests/samples/Sample_StartTranslationWithAzureBlob.cs +[logging]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md +[contributing]: https://github.com/Azure/azure-sdk-for-net/blob/main/CONTRIBUTING.md + +[start_translation_sample]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/translation/Azure.AI.Translation.Document/samples/Sample1_StartTranslation.md +[documents_status_sample]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/translation/Azure.AI.Translation.Document/samples/Sample2_PollIndividualDocuments.md +[operations_history_sample]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/translation/Azure.AI.Translation.Document/samples/Sample3_OperationsHistory.md +[multiple_inputs_sample]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/translation/Azure.AI.Translation.Document/samples/Sample4_MultipleInputs.md +[using_storage_sample]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/translation/Azure.AI.Translation.Document/tests/samples/Sample_StartTranslationWithAzureBlob.cs [azure_cli]: https://docs.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ diff --git a/sdk/translation/Azure.AI.Translation.Document/api/Azure.AI.Translation.Document.netstandard2.0.cs b/sdk/translation/Azure.AI.Translation.Document/api/Azure.AI.Translation.Document.netstandard2.0.cs index 7a69d57102e6..386d5a0978ec 100644 --- a/sdk/translation/Azure.AI.Translation.Document/api/Azure.AI.Translation.Document.netstandard2.0.cs +++ b/sdk/translation/Azure.AI.Translation.Document/api/Azure.AI.Translation.Document.netstandard2.0.cs @@ -96,7 +96,7 @@ public DocumentTranslationInput(System.Uri sourceUri, System.Uri targetUri, stri public System.Collections.Generic.IList Targets { get { throw null; } } public void AddTarget(System.Uri targetUri, string languageCode, Azure.AI.Translation.Document.TranslationGlossary glossary = null) { } } - public partial class DocumentTranslationOperation : Azure.AI.Translation.Document.PageableOperation + public partial class DocumentTranslationOperation : Azure.PageableOperation { protected DocumentTranslationOperation() { } public DocumentTranslationOperation(string translationId, Azure.AI.Translation.Document.DocumentTranslationClient client) { } @@ -121,8 +121,8 @@ public virtual void Cancel(System.Threading.CancellationToken cancellationToken) public virtual Azure.Response GetDocumentStatus(string documentId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetDocumentStatusAsync(string documentId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public override Azure.Response GetRawResponse() { throw null; } - public override Azure.Pageable GetValues() { throw null; } - public override Azure.AsyncPageable GetValuesAsync() { throw null; } + public override Azure.Pageable GetValues(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override Azure.AsyncPageable GetValuesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { 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; } @@ -160,13 +160,6 @@ internal FileFormat() { } public string Format { get { throw null; } } public System.Collections.Generic.IReadOnlyList FormatVersions { get { throw null; } } } - public abstract partial class PageableOperation : Azure.Operation> where T : notnull - { - protected PageableOperation() { } - public override Azure.AsyncPageable Value { get { throw null; } } - public abstract Azure.Pageable GetValues(); - public abstract Azure.AsyncPageable GetValuesAsync(); - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct StorageInputType : System.IEquatable { diff --git a/sdk/translation/Azure.AI.Translation.Document/samples/README.md b/sdk/translation/Azure.AI.Translation.Document/samples/README.md index d3a2a8ac39f2..4b707914fcd3 100644 --- a/sdk/translation/Azure.AI.Translation.Document/samples/README.md +++ b/sdk/translation/Azure.AI.Translation.Document/samples/README.md @@ -18,12 +18,12 @@ Azure Cognitive Services Document Translation is a cloud service that translates * Apply a custom translation model or glossaries to tailor translation to your specific case. ## Common scenarios samples -- [Start Translation](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/translation/Azure.AI.Translation.Document/samples/Sample1_StartTranslation.md) -- [Poll Documents Status](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/translation/Azure.AI.Translation.Document/samples/Sample2_PollIndividualDocuments.md) -- [Operations History](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/translation/Azure.AI.Translation.Document/samples/Sample3_OperationsHistory.md) +- [Start Translation](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/translation/Azure.AI.Translation.Document/samples/Sample1_StartTranslation.md) +- [Poll Documents Status](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/translation/Azure.AI.Translation.Document/samples/Sample2_PollIndividualDocuments.md) +- [Operations History](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/translation/Azure.AI.Translation.Document/samples/Sample3_OperationsHistory.md) ## Advanced samples -- [Multiple Inputs](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/translation/Azure.AI.Translation.Document/samples/Sample4_MultipleInputs.md) -- [Create Storage Containers And Submit Operation (code sample)](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/translation/Azure.AI.Translation.Document/tests/samples/Sample_StartTranslationWithAzureBlob.cs) +- [Multiple Inputs](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/translation/Azure.AI.Translation.Document/samples/Sample4_MultipleInputs.md) +- [Create Storage Containers And Submit Operation (code sample)](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/translation/Azure.AI.Translation.Document/tests/samples/Sample_StartTranslationWithAzureBlob.cs) -[README]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/textanalytics/Azure.AI.TextAnalytics/README.md +[README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/README.md diff --git a/sdk/translation/Azure.AI.Translation.Document/samples/Sample1_StartTranslation.md b/sdk/translation/Azure.AI.Translation.Document/samples/Sample1_StartTranslation.md index b7b40d3873b1..a28f452d7069 100644 --- a/sdk/translation/Azure.AI.Translation.Document/samples/Sample1_StartTranslation.md +++ b/sdk/translation/Azure.AI.Translation.Document/samples/Sample1_StartTranslation.md @@ -63,8 +63,8 @@ await foreach (DocumentStatus document in operation.Value) To see the full example source files, see: -* [Synchronously StartTranslation ](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/translation/Azure.AI.Translation.Document/tests/samples/Sample_StartTranslation.cs) -* [Asynchronously StartTranslation ](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/translation/Azure.AI.Translation.Document/tests/samples/Sample_StartTranslationAsync.cs) +* [Synchronously StartTranslation ](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/translation/Azure.AI.Translation.Document/tests/samples/Sample_StartTranslation.cs) +* [Asynchronously StartTranslation ](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/translation/Azure.AI.Translation.Document/tests/samples/Sample_StartTranslationAsync.cs) -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md -[README]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/translation/Azure.AI.Translation.Document/README.md \ No newline at end of file +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md +[README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/translation/Azure.AI.Translation.Document/README.md \ No newline at end of file diff --git a/sdk/translation/Azure.AI.Translation.Document/samples/Sample2_PollIndividualDocuments.md b/sdk/translation/Azure.AI.Translation.Document/samples/Sample2_PollIndividualDocuments.md index 9e224380c2ec..abdc063739db 100644 --- a/sdk/translation/Azure.AI.Translation.Document/samples/Sample2_PollIndividualDocuments.md +++ b/sdk/translation/Azure.AI.Translation.Document/samples/Sample2_PollIndividualDocuments.md @@ -62,8 +62,8 @@ await foreach (DocumentStatus document in operation.GetAllDocumentStatusesAsync( To see the full example source files, see: -* [Synchronously PollIndividualDocuments ](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/translation/Azure.AI.Translation.Document/tests/samples/Sample_PollIndividualDocuments.cs) -* [Asynchronously PollIndividualDocuments ](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/translation/Azure.AI.Translation.Document/tests/samples/Sample_PollIndividualDocumentsAsync.cs) +* [Synchronously PollIndividualDocuments ](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/translation/Azure.AI.Translation.Document/tests/samples/Sample_PollIndividualDocuments.cs) +* [Asynchronously PollIndividualDocuments ](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/translation/Azure.AI.Translation.Document/tests/samples/Sample_PollIndividualDocumentsAsync.cs) -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md -[README]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/translation/Azure.AI.Translation.Document/README.md \ No newline at end of file +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md +[README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/translation/Azure.AI.Translation.Document/README.md \ No newline at end of file diff --git a/sdk/translation/Azure.AI.Translation.Document/samples/Sample3_OperationsHistory.md b/sdk/translation/Azure.AI.Translation.Document/samples/Sample3_OperationsHistory.md index 00a042c3a712..ffd459c54c88 100644 --- a/sdk/translation/Azure.AI.Translation.Document/samples/Sample3_OperationsHistory.md +++ b/sdk/translation/Azure.AI.Translation.Document/samples/Sample3_OperationsHistory.md @@ -51,8 +51,8 @@ Console.WriteLine($"Cancelled Documents: {docsCancelled}"); To see the full example source files, see: -* [Synchronously OperationsHistory ](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/translation/Azure.AI.Translation.Document/tests/samples/Sample_OperationsHistory.cs) -* [Asynchronously OperationsHistory ](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/translation/Azure.AI.Translation.Document/tests/samples/Sample_OperationsHistoryAsync.cs) +* [Synchronously OperationsHistory ](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/translation/Azure.AI.Translation.Document/tests/samples/Sample_OperationsHistory.cs) +* [Asynchronously OperationsHistory ](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/translation/Azure.AI.Translation.Document/tests/samples/Sample_OperationsHistoryAsync.cs) -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md -[README]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/translation/Azure.AI.Translation.Document/README.md \ No newline at end of file +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md +[README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/translation/Azure.AI.Translation.Document/README.md \ No newline at end of file diff --git a/sdk/translation/Azure.AI.Translation.Document/samples/Sample4_MultipleInputs.md b/sdk/translation/Azure.AI.Translation.Document/samples/Sample4_MultipleInputs.md index d7d48342c179..b63944becd71 100644 --- a/sdk/translation/Azure.AI.Translation.Document/samples/Sample4_MultipleInputs.md +++ b/sdk/translation/Azure.AI.Translation.Document/samples/Sample4_MultipleInputs.md @@ -71,8 +71,8 @@ await foreach (DocumentStatus document in operation.GetValuesAsync()) To see the full example source files, see: -* [Synchronously MultipleInputs ](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/translation/Azure.AI.Translation.Document/tests/samples/Sample_MultipleInputs.cs) -* [Asynchronously MultipleInputs ](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/translation/Azure.AI.Translation.Document/tests/samples/Sample_MultipleInputsAsync.cs) +* [Synchronously MultipleInputs ](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/translation/Azure.AI.Translation.Document/tests/samples/Sample_MultipleInputs.cs) +* [Asynchronously MultipleInputs ](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/translation/Azure.AI.Translation.Document/tests/samples/Sample_MultipleInputsAsync.cs) -[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md -[README]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/translation/Azure.AI.Translation.Document/README.md \ No newline at end of file +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md +[README]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/translation/Azure.AI.Translation.Document/README.md \ No newline at end of file diff --git a/sdk/translation/Azure.AI.Translation.Document/src/DocumentTranslationOperation.cs b/sdk/translation/Azure.AI.Translation.Document/src/DocumentTranslationOperation.cs index 12d10789d40b..65f752240163 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/DocumentTranslationOperation.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/DocumentTranslationOperation.cs @@ -490,11 +490,11 @@ public virtual async Task CancelAsync(CancellationToken cancellationToken) /// /// Operation must complete successfully (HasValue is true) for it to provide values. /// - public override AsyncPageable GetValuesAsync() + public override AsyncPageable GetValuesAsync(CancellationToken cancellationToken = default) { ValidateOperationStatus(); - return GetAllDocumentStatusesAsync(); + return GetAllDocumentStatusesAsync(cancellationToken); } /// @@ -503,11 +503,11 @@ public override AsyncPageable GetValuesAsync() /// /// Operation must complete successfully (HasValue is true) for it to provide values. /// - public override Pageable GetValues() + public override Pageable GetValues(CancellationToken cancellationToken = default) { ValidateOperationStatus(); - return GetAllDocumentStatuses(); + return GetAllDocumentStatuses(cancellationToken); } private void ValidateOperationStatus() diff --git a/sdk/translation/Azure.AI.Translation.Document/src/PageableOperation.cs b/sdk/translation/Azure.AI.Translation.Document/src/PageableOperation.cs deleted file mode 100644 index f9667774d659..000000000000 --- a/sdk/translation/Azure.AI.Translation.Document/src/PageableOperation.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -#nullable enable - -namespace Azure.AI.Translation.Document -{ - /// - /// Represents a pageable long-running operation that exposes the results - /// in either synchronous or asynchronous format. - /// - /// - public abstract class PageableOperation : Operation> where T : notnull - { - /// - /// Gets the final result of the long-running operation asynchronously. - /// - /// - /// This property can be accessed only after the operation completes successfully (HasValue is true). - /// - public override AsyncPageable Value => GetValuesAsync(); - - /// - /// Gets the final result of the long-running operation asynchronously. - /// - /// - /// Operation must complete successfully (HasValue is true) for it to provide values. - /// - public abstract AsyncPageable GetValuesAsync(); - - /// - /// Gets the final result of the long-running operation synchronously. - /// - /// - /// Operation must complete successfully (HasValue is true) for it to provide values. - /// - public abstract Pageable GetValues(); - } -} diff --git a/sdk/translation/ci.yml b/sdk/translation/ci.yml index fe43caa8adec..aebe750fd403 100644 --- a/sdk/translation/ci.yml +++ b/sdk/translation/ci.yml @@ -2,7 +2,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -13,7 +12,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/README.md b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/README.md index fc4656c9e0c9..11450c2cb717 100644 --- a/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/README.md +++ b/sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge/README.md @@ -71,12 +71,12 @@ We guarantee that all client instance methods are thread-safe and independent of -[Client options](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | -[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | -[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | -[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | -[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md) | -[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md#mocking) | +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | [Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) @@ -218,7 +218,7 @@ additional questions or comments. [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ [coc_contact]: mailto:opencode@microsoft.com [package]: https://aka.ms/ava/sdk/client/net -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/videoanalyzer +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/videoanalyzer [samples]: https://github.com/Azure-Samples/live-video-analytics-iot-edge-csharp [doc_direct_methods]: https://go.microsoft.com/fwlink/?linkid=2162396 [doc_pipelines]: https://go.microsoft.com/fwlink/?linkid=2162396 diff --git a/sdk/videoanalyzer/Microsoft.Azure.Management.VideoAnalyzer/CHANGELOG.md b/sdk/videoanalyzer/Microsoft.Azure.Management.VideoAnalyzer/CHANGELOG.md index b67716563678..64ebdcec25bd 100644 --- a/sdk/videoanalyzer/Microsoft.Azure.Management.VideoAnalyzer/CHANGELOG.md +++ b/sdk/videoanalyzer/Microsoft.Azure.Management.VideoAnalyzer/CHANGELOG.md @@ -1,4 +1,4 @@ -# Microsoft.Azure.Management.VideoAnalyzer release notes +# Microsoft.Azure.Management.VideoAnalyzer release notes ## Changes in 1.0.0-beta.1 diff --git a/sdk/videoanalyzer/ci.yml b/sdk/videoanalyzer/ci.yml index 8bd253969372..016e0ff7f0cc 100644 --- a/sdk/videoanalyzer/ci.yml +++ b/sdk/videoanalyzer/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/webpubsub/Azure.Messaging.WebPubSub/README.md b/sdk/webpubsub/Azure.Messaging.WebPubSub/README.md index f4c6f308ab06..28c4111b50dd 100644 --- a/sdk/webpubsub/Azure.Messaging.WebPubSub/README.md +++ b/sdk/webpubsub/Azure.Messaging.WebPubSub/README.md @@ -12,7 +12,7 @@ This library can be used to do the following actions. Details about the terms us - Close connections - Grant, revoke, and check permissions for an existing connection -[Source code](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/webpubsub/Azure.Messaging.WebPubSub/src) | +[Source code](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/webpubsub/Azure.Messaging.WebPubSub/src) | [Package](https://www.nuget.org/packages/Azure.Messaging.WebPubSub) | [API reference documentation](https://aka.ms/awps/sdk/csharp) | [Product documentation](https://aka.ms/awps/doc) | @@ -101,7 +101,7 @@ serviceClient.SendToAll("application/octet-stream", RequestContent.Create(stream ## Troubleshooting ### Setting up console logging -You can also easily [enable console logging](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/samples/Diagnostics.md#logging) if you want to dig deeper into the requests you're making against the service. +You can also easily [enable console logging](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md#logging) if you want to dig deeper into the requests you're making against the service. ## Next steps @@ -125,4 +125,4 @@ For more information see the [Code of Conduct FAQ](https://opensource.microsoft. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Ftemplate%2FAzure.Template%2FREADME.png) [azure_sub]: https://azure.microsoft.com/free/ -[samples_ref]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/webpubsub/Azure.Messaging.WebPubSub/tests/Samples/ +[samples_ref]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/webpubsub/Azure.Messaging.WebPubSub/tests/Samples/ diff --git a/sdk/webpubsub/Azure.Messaging.WebPubSub/api/Azure.Messaging.WebPubSub.netstandard2.0.cs b/sdk/webpubsub/Azure.Messaging.WebPubSub/api/Azure.Messaging.WebPubSub.netstandard2.0.cs index 94563ad6befa..27cef18f4c73 100644 --- a/sdk/webpubsub/Azure.Messaging.WebPubSub/api/Azure.Messaging.WebPubSub.netstandard2.0.cs +++ b/sdk/webpubsub/Azure.Messaging.WebPubSub/api/Azure.Messaging.WebPubSub.netstandard2.0.cs @@ -15,47 +15,48 @@ public WebPubSubServiceClient(System.Uri endpoint, string hub, Azure.AzureKeyCre public virtual System.Uri Endpoint { get { throw null; } } public virtual string Hub { get { throw null; } } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response AddConnectionToGroup(string group, string connectionId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task AddConnectionToGroupAsync(string group, string connectionId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response AddUserToGroup(string group, string userId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task AddUserToGroupAsync(string group, string userId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response CheckPermission(Azure.Messaging.WebPubSub.WebPubSubPermission permission, string connectionId, string targetName = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task CheckPermissionAsync(Azure.Messaging.WebPubSub.WebPubSubPermission permission, string connectionId, string targetName = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response CloseClientConnection(string connectionId, string reason = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task CloseClientConnectionAsync(string connectionId, string reason = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response ConnectionExists(string connectionId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ConnectionExistsAsync(string connectionId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Uri GenerateClientAccessUri(string userId = null, string[] roles = null, System.TimeSpan expiresAfter = default(System.TimeSpan)) { throw null; } - public virtual Azure.Response GrantPermission(Azure.Messaging.WebPubSub.WebPubSubPermission permission, string connectionId, string targetName = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task GrantPermissionAsync(Azure.Messaging.WebPubSub.WebPubSubPermission permission, string connectionId, string targetName = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GroupExists(string group, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GroupExistsAsync(string group, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveConnectionFromGroup(string group, string connectionId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task RemoveConnectionFromGroupAsync(string group, string connectionId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response RemoveUserFromAllGroups(string userId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task RemoveUserFromAllGroupsAsync(string userId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response RemoveUserFromGroup(string group, string userId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task RemoveUserFromGroupAsync(string group, string userId, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response RevokePermission(Azure.Messaging.WebPubSub.WebPubSubPermission permission, string connectionId, string targetName = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task RevokePermissionAsync(Azure.Messaging.WebPubSub.WebPubSubPermission permission, string connectionId, string targetName = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SendToAll(string contentType, Azure.Core.RequestContent requestBody, System.Collections.Generic.IEnumerable excluded = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response SendToAll(string message, System.Collections.Generic.IEnumerable excluded = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task SendToAllAsync(string contentType, Azure.Core.RequestContent requestBody, System.Collections.Generic.IEnumerable excluded = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task SendToAllAsync(string message, System.Collections.Generic.IEnumerable excluded = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SendToConnection(string connectionId, string contentType, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response SendToConnection(string connectionId, string message, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task SendToConnectionAsync(string connectionId, string contentType, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task SendToConnectionAsync(string connectionId, string message, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SendToGroup(string group, string contentType, Azure.Core.RequestContent requestBody, System.Collections.Generic.IEnumerable excluded = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response SendToGroup(string group, string message, System.Collections.Generic.IEnumerable excluded = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task SendToGroupAsync(string group, string contentType, Azure.Core.RequestContent requestBody, System.Collections.Generic.IEnumerable excluded = null, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task SendToGroupAsync(string group, string message, System.Collections.Generic.IEnumerable excluded = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SendToUser(string userId, string contentType, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual Azure.Response SendToUser(string userId, string message, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task SendToUserAsync(string userId, string contentType, Azure.Core.RequestContent requestBody, Azure.RequestOptions requestOptions = null) { throw null; } - public virtual System.Threading.Tasks.Task SendToUserAsync(string userId, string message, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response UserExists(string userId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UserExistsAsync(string userId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response AddConnectionToGroup(string group, string connectionId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task AddConnectionToGroupAsync(string group, string connectionId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response AddUserToGroup(string group, string userId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task AddUserToGroupAsync(string group, string userId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response CheckPermission(Azure.Messaging.WebPubSub.WebPubSubPermission permission, string connectionId, string targetName = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> CheckPermissionAsync(Azure.Messaging.WebPubSub.WebPubSubPermission permission, string connectionId, string targetName = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response CloseClientConnection(string connectionId, string reason = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task CloseClientConnectionAsync(string connectionId, string reason = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response ConnectionExists(string connectionId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> ConnectionExistsAsync(string connectionId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Uri GenerateClientAccessUri(System.DateTime expiresAtUtc, string userId = null, params string[] roles) { throw null; } + public virtual System.Uri GenerateClientAccessUri(System.TimeSpan expiresAfter = default(System.TimeSpan), string userId = null, params string[] roles) { throw null; } + public virtual Azure.Response GrantPermission(Azure.Messaging.WebPubSub.WebPubSubPermission permission, string connectionId, string targetName = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task GrantPermissionAsync(Azure.Messaging.WebPubSub.WebPubSubPermission permission, string connectionId, string targetName = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response GroupExists(string group, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> GroupExistsAsync(string group, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response RemoveConnectionFromGroup(string group, string connectionId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task RemoveConnectionFromGroupAsync(string group, string connectionId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response RemoveUserFromAllGroups(string userId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task RemoveUserFromAllGroupsAsync(string userId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response RemoveUserFromGroup(string group, string userId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task RemoveUserFromGroupAsync(string group, string userId, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response RevokePermission(Azure.Messaging.WebPubSub.WebPubSubPermission permission, string connectionId, string targetName = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task RevokePermissionAsync(Azure.Messaging.WebPubSub.WebPubSubPermission permission, string connectionId, string targetName = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response SendToAll(string content, Azure.Core.ContentType contentType = default(Azure.Core.ContentType)) { throw null; } + public virtual Azure.Response SendToAll(string contentType, Azure.Core.RequestContent content, System.Collections.Generic.IEnumerable excluded = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task SendToAllAsync(string content, Azure.Core.ContentType contentType = default(Azure.Core.ContentType)) { throw null; } + public virtual System.Threading.Tasks.Task SendToAllAsync(string contentType, Azure.Core.RequestContent content, System.Collections.Generic.IEnumerable excluded = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response SendToConnection(string connectionId, string content, Azure.Core.ContentType contentType = default(Azure.Core.ContentType)) { throw null; } + public virtual Azure.Response SendToConnection(string connectionId, string contentType, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task SendToConnectionAsync(string connectionId, string content, Azure.Core.ContentType contentType = default(Azure.Core.ContentType)) { throw null; } + public virtual System.Threading.Tasks.Task SendToConnectionAsync(string connectionId, string contentType, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response SendToGroup(string group, string content, Azure.Core.ContentType contentType = default(Azure.Core.ContentType)) { throw null; } + public virtual Azure.Response SendToGroup(string group, string contentType, Azure.Core.RequestContent content, System.Collections.Generic.IEnumerable excluded = null, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task SendToGroupAsync(string group, string content, Azure.Core.ContentType contentType = default(Azure.Core.ContentType)) { throw null; } + public virtual System.Threading.Tasks.Task SendToGroupAsync(string group, string contentType, Azure.Core.RequestContent content, System.Collections.Generic.IEnumerable excluded = null, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response SendToUser(string userId, string content, Azure.Core.ContentType contentType = default(Azure.Core.ContentType)) { throw null; } + public virtual Azure.Response SendToUser(string userId, string contentType, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task SendToUserAsync(string userId, string content, Azure.Core.ContentType contentType = default(Azure.Core.ContentType)) { throw null; } + public virtual System.Threading.Tasks.Task SendToUserAsync(string userId, string contentType, Azure.Core.RequestContent content, Azure.RequestOptions options = null) { throw null; } + public virtual Azure.Response UserExists(string userId, Azure.RequestOptions options = null) { throw null; } + public virtual System.Threading.Tasks.Task> UserExistsAsync(string userId, Azure.RequestOptions options = null) { throw null; } } public partial class WebPubSubServiceClientOptions : Azure.Core.ClientOptions { diff --git a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/Generated/HealthApiClient.cs b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/Generated/HealthApiClient.cs index d6a6a848df57..d22e7d80c8ce 100644 --- a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/Generated/HealthApiClient.cs +++ b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/Generated/HealthApiClient.cs @@ -42,23 +42,23 @@ public HealthApiClient(Uri endpoint = null, WebPubSubServiceClientOptions option } /// Get service health status. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task GetServiceStatusAsync(RequestOptions requestOptions = null) + public virtual async Task GetServiceStatusAsync(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetServiceStatusRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetServiceStatusRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("HealthApiClient.GetServiceStatus"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -81,23 +81,23 @@ public virtual async Task GetServiceStatusAsync(RequestOptions request } /// Get service health status. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response GetServiceStatus(RequestOptions requestOptions = null) + public virtual Response GetServiceStatus(RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGetServiceStatusRequest(requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGetServiceStatusRequest(options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("HealthApiClient.GetServiceStatus"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -120,8 +120,8 @@ public virtual Response GetServiceStatus(RequestOptions requestOptions = null) } /// Create Request for and operations. - /// The request options. - private HttpMessage CreateGetServiceStatusRequest(RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGetServiceStatusRequest(RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/Generated/WebPubSubServiceClient.cs b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/Generated/WebPubSubServiceClient.cs index 2df95503c458..bf4f5a349e01 100644 --- a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/Generated/WebPubSubServiceClient.cs +++ b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/Generated/WebPubSubServiceClient.cs @@ -31,25 +31,25 @@ protected WebPubSubServiceClient() /// Broadcast content inside request body to all the connected client connections. /// Upload file type. - /// The request body. + /// The content to send as the body of the request. /// Excluded connection Ids. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task SendToAllAsync(string contentType, RequestContent requestBody, IEnumerable excluded = null, RequestOptions requestOptions = null) + public virtual async Task SendToAllAsync(string contentType, RequestContent content, IEnumerable excluded = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateSendToAllRequest(contentType, requestBody, excluded, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateSendToAllRequest(contentType, content, excluded, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.SendToAll"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -73,25 +73,25 @@ public virtual async Task SendToAllAsync(string contentType, RequestCo /// Broadcast content inside request body to all the connected client connections. /// Upload file type. - /// The request body. + /// The content to send as the body of the request. /// Excluded connection Ids. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response SendToAll(string contentType, RequestContent requestBody, IEnumerable excluded = null, RequestOptions requestOptions = null) + public virtual Response SendToAll(string contentType, RequestContent content, IEnumerable excluded = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateSendToAllRequest(contentType, requestBody, excluded, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateSendToAllRequest(contentType, content, excluded, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.SendToAll"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -115,10 +115,10 @@ public virtual Response SendToAll(string contentType, RequestContent requestBody /// Create Request for and operations. /// Upload file type. - /// The request body. + /// The content to send as the body of the request. /// Excluded connection Ids. - /// The request options. - private HttpMessage CreateSendToAllRequest(string contentType, RequestContent requestBody, IEnumerable excluded = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateSendToAllRequest(string contentType, RequestContent content, IEnumerable excluded = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -138,29 +138,29 @@ private HttpMessage CreateSendToAllRequest(string contentType, RequestContent re } request.Uri = uri; request.Headers.Add("Content-Type", contentType); - request.Content = requestBody; + request.Content = content; return message; } /// Check if the connection with the given connectionId exists. /// The connection Id. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - internal virtual async Task ConnectionExistsAsync(string connectionId, RequestOptions requestOptions = null) + internal virtual async Task ConnectionExistsImplAsync(string connectionId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateConnectionExistsRequest(connectionId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateConnectionExistsImplRequest(connectionId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.ConnectionExists"); + using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.ConnectionExistsImpl"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -185,23 +185,23 @@ internal virtual async Task ConnectionExistsAsync(string connectionId, /// Check if the connection with the given connectionId exists. /// The connection Id. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - internal virtual Response ConnectionExists(string connectionId, RequestOptions requestOptions = null) + internal virtual Response ConnectionExistsImpl(string connectionId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateConnectionExistsRequest(connectionId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateConnectionExistsImplRequest(connectionId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.ConnectionExists"); + using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.ConnectionExistsImpl"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -224,10 +224,10 @@ internal virtual Response ConnectionExists(string connectionId, RequestOptions r } } - /// Create Request for and operations. + /// Create Request for and operations. /// The connection Id. - /// The request options. - private HttpMessage CreateConnectionExistsRequest(string connectionId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateConnectionExistsImplRequest(string connectionId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -249,23 +249,23 @@ private HttpMessage CreateConnectionExistsRequest(string connectionId, RequestOp /// Close the client connection. /// Target connection Id. /// The reason closing the client connection. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task CloseClientConnectionAsync(string connectionId, string reason = null, RequestOptions requestOptions = null) + public virtual async Task CloseClientConnectionAsync(string connectionId, string reason = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCloseClientConnectionRequest(connectionId, reason, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCloseClientConnectionRequest(connectionId, reason, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.CloseClientConnection"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -290,23 +290,23 @@ public virtual async Task CloseClientConnectionAsync(string connection /// Close the client connection. /// Target connection Id. /// The reason closing the client connection. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response CloseClientConnection(string connectionId, string reason = null, RequestOptions requestOptions = null) + public virtual Response CloseClientConnection(string connectionId, string reason = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCloseClientConnectionRequest(connectionId, reason, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCloseClientConnectionRequest(connectionId, reason, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.CloseClientConnection"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -331,8 +331,8 @@ public virtual Response CloseClientConnection(string connectionId, string reason /// Create Request for and operations. /// Target connection Id. /// The reason closing the client connection. - /// The request options. - private HttpMessage CreateCloseClientConnectionRequest(string connectionId, string reason = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateCloseClientConnectionRequest(string connectionId, string reason = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -358,24 +358,24 @@ private HttpMessage CreateCloseClientConnectionRequest(string connectionId, stri /// Send content inside request body to the specific connection. /// The connection Id. /// Upload file type. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task SendToConnectionAsync(string connectionId, string contentType, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task SendToConnectionAsync(string connectionId, string contentType, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateSendToConnectionRequest(connectionId, contentType, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateSendToConnectionRequest(connectionId, contentType, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.SendToConnection"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -400,24 +400,24 @@ public virtual async Task SendToConnectionAsync(string connectionId, s /// Send content inside request body to the specific connection. /// The connection Id. /// Upload file type. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response SendToConnection(string connectionId, string contentType, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response SendToConnection(string connectionId, string contentType, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateSendToConnectionRequest(connectionId, contentType, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateSendToConnectionRequest(connectionId, contentType, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.SendToConnection"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -442,9 +442,9 @@ public virtual Response SendToConnection(string connectionId, string contentType /// Create Request for and operations. /// The connection Id. /// Upload file type. - /// The request body. - /// The request options. - private HttpMessage CreateSendToConnectionRequest(string connectionId, string contentType, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateSendToConnectionRequest(string connectionId, string contentType, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -462,29 +462,29 @@ private HttpMessage CreateSendToConnectionRequest(string connectionId, string co } request.Uri = uri; request.Headers.Add("Content-Type", contentType); - request.Content = requestBody; + request.Content = content; return message; } /// Check if there are any client connections inside the given group. /// Target group name, which length should be greater than 0 and less than 1025. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - internal virtual async Task GroupExistsAsync(string group, RequestOptions requestOptions = null) + internal virtual async Task GroupExistsImplAsync(string group, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGroupExistsRequest(group, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGroupExistsImplRequest(group, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.GroupExists"); + using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.GroupExistsImpl"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -509,23 +509,23 @@ internal virtual async Task GroupExistsAsync(string group, RequestOpti /// Check if there are any client connections inside the given group. /// Target group name, which length should be greater than 0 and less than 1025. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - internal virtual Response GroupExists(string group, RequestOptions requestOptions = null) + internal virtual Response GroupExistsImpl(string group, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGroupExistsRequest(group, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGroupExistsImplRequest(group, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.GroupExists"); + using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.GroupExistsImpl"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -548,10 +548,10 @@ internal virtual Response GroupExists(string group, RequestOptions requestOption } } - /// Create Request for and operations. + /// Create Request for and operations. /// Target group name, which length should be greater than 0 and less than 1025. - /// The request options. - private HttpMessage CreateGroupExistsRequest(string group, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGroupExistsImplRequest(string group, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -573,25 +573,25 @@ private HttpMessage CreateGroupExistsRequest(string group, RequestOptions reques /// Send content inside request body to a group of connections. /// Target group name, which length should be greater than 0 and less than 1025. /// Upload file type. - /// The request body. + /// The content to send as the body of the request. /// Excluded connection Ids. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task SendToGroupAsync(string group, string contentType, RequestContent requestBody, IEnumerable excluded = null, RequestOptions requestOptions = null) + public virtual async Task SendToGroupAsync(string group, string contentType, RequestContent content, IEnumerable excluded = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateSendToGroupRequest(group, contentType, requestBody, excluded, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateSendToGroupRequest(group, contentType, content, excluded, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.SendToGroup"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -616,25 +616,25 @@ public virtual async Task SendToGroupAsync(string group, string conten /// Send content inside request body to a group of connections. /// Target group name, which length should be greater than 0 and less than 1025. /// Upload file type. - /// The request body. + /// The content to send as the body of the request. /// Excluded connection Ids. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response SendToGroup(string group, string contentType, RequestContent requestBody, IEnumerable excluded = null, RequestOptions requestOptions = null) + public virtual Response SendToGroup(string group, string contentType, RequestContent content, IEnumerable excluded = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateSendToGroupRequest(group, contentType, requestBody, excluded, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateSendToGroupRequest(group, contentType, content, excluded, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.SendToGroup"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -659,10 +659,10 @@ public virtual Response SendToGroup(string group, string contentType, RequestCon /// Create Request for and operations. /// Target group name, which length should be greater than 0 and less than 1025. /// Upload file type. - /// The request body. + /// The content to send as the body of the request. /// Excluded connection Ids. - /// The request options. - private HttpMessage CreateSendToGroupRequest(string group, string contentType, RequestContent requestBody, IEnumerable excluded = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateSendToGroupRequest(string group, string contentType, RequestContent content, IEnumerable excluded = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -684,30 +684,30 @@ private HttpMessage CreateSendToGroupRequest(string group, string contentType, R } request.Uri = uri; request.Headers.Add("Content-Type", contentType); - request.Content = requestBody; + request.Content = content; return message; } /// Add a connection to the target group. /// Target group name, which length should be greater than 0 and less than 1025. /// Target connection Id. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task AddConnectionToGroupAsync(string group, string connectionId, RequestOptions requestOptions = null) + public virtual async Task AddConnectionToGroupAsync(string group, string connectionId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateAddConnectionToGroupRequest(group, connectionId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateAddConnectionToGroupRequest(group, connectionId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.AddConnectionToGroup"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -733,23 +733,23 @@ public virtual async Task AddConnectionToGroupAsync(string group, stri /// Add a connection to the target group. /// Target group name, which length should be greater than 0 and less than 1025. /// Target connection Id. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response AddConnectionToGroup(string group, string connectionId, RequestOptions requestOptions = null) + public virtual Response AddConnectionToGroup(string group, string connectionId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateAddConnectionToGroupRequest(group, connectionId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateAddConnectionToGroupRequest(group, connectionId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.AddConnectionToGroup"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -775,8 +775,8 @@ public virtual Response AddConnectionToGroup(string group, string connectionId, /// Create Request for and operations. /// Target group name, which length should be greater than 0 and less than 1025. /// Target connection Id. - /// The request options. - private HttpMessage CreateAddConnectionToGroupRequest(string group, string connectionId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateAddConnectionToGroupRequest(string group, string connectionId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -800,23 +800,23 @@ private HttpMessage CreateAddConnectionToGroupRequest(string group, string conne /// Remove a connection from the target group. /// Target group name, which length should be greater than 0 and less than 1025. /// Target connection Id. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task RemoveConnectionFromGroupAsync(string group, string connectionId, RequestOptions requestOptions = null) + public virtual async Task RemoveConnectionFromGroupAsync(string group, string connectionId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateRemoveConnectionFromGroupRequest(group, connectionId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateRemoveConnectionFromGroupRequest(group, connectionId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.RemoveConnectionFromGroup"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -841,23 +841,23 @@ public virtual async Task RemoveConnectionFromGroupAsync(string group, /// Remove a connection from the target group. /// Target group name, which length should be greater than 0 and less than 1025. /// Target connection Id. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response RemoveConnectionFromGroup(string group, string connectionId, RequestOptions requestOptions = null) + public virtual Response RemoveConnectionFromGroup(string group, string connectionId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateRemoveConnectionFromGroupRequest(group, connectionId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateRemoveConnectionFromGroupRequest(group, connectionId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.RemoveConnectionFromGroup"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -882,8 +882,8 @@ public virtual Response RemoveConnectionFromGroup(string group, string connectio /// Create Request for and operations. /// Target group name, which length should be greater than 0 and less than 1025. /// Target connection Id. - /// The request options. - private HttpMessage CreateRemoveConnectionFromGroupRequest(string group, string connectionId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateRemoveConnectionFromGroupRequest(string group, string connectionId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -906,23 +906,23 @@ private HttpMessage CreateRemoveConnectionFromGroupRequest(string group, string /// Check if there are any client connections connected for the given user. /// Target user Id. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - internal virtual async Task UserExistsAsync(string userId, RequestOptions requestOptions = null) + internal virtual async Task UserExistsImplAsync(string userId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateUserExistsRequest(userId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateUserExistsImplRequest(userId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.UserExists"); + using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.UserExistsImpl"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -947,23 +947,23 @@ internal virtual async Task UserExistsAsync(string userId, RequestOpti /// Check if there are any client connections connected for the given user. /// Target user Id. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - internal virtual Response UserExists(string userId, RequestOptions requestOptions = null) + internal virtual Response UserExistsImpl(string userId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateUserExistsRequest(userId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateUserExistsImplRequest(userId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } - using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.UserExists"); + using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.UserExistsImpl"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -986,10 +986,10 @@ internal virtual Response UserExists(string userId, RequestOptions requestOption } } - /// Create Request for and operations. + /// Create Request for and operations. /// Target user Id. - /// The request options. - private HttpMessage CreateUserExistsRequest(string userId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateUserExistsImplRequest(string userId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1011,24 +1011,24 @@ private HttpMessage CreateUserExistsRequest(string userId, RequestOptions reques /// Send content inside request body to the specific user. /// The user Id. /// Upload file type. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task SendToUserAsync(string userId, string contentType, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual async Task SendToUserAsync(string userId, string contentType, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateSendToUserRequest(userId, contentType, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateSendToUserRequest(userId, contentType, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.SendToUser"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1053,24 +1053,24 @@ public virtual async Task SendToUserAsync(string userId, string conten /// Send content inside request body to the specific user. /// The user Id. /// Upload file type. - /// The request body. - /// The request options. + /// The content to send as the body of the request. + /// The request options. #pragma warning disable AZC0002 - public virtual Response SendToUser(string userId, string contentType, RequestContent requestBody, RequestOptions requestOptions = null) + public virtual Response SendToUser(string userId, string contentType, RequestContent content, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateSendToUserRequest(userId, contentType, requestBody, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateSendToUserRequest(userId, contentType, content, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.SendToUser"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1095,9 +1095,9 @@ public virtual Response SendToUser(string userId, string contentType, RequestCon /// Create Request for and operations. /// The user Id. /// Upload file type. - /// The request body. - /// The request options. - private HttpMessage CreateSendToUserRequest(string userId, string contentType, RequestContent requestBody, RequestOptions requestOptions = null) + /// The content to send as the body of the request. + /// The request options. + private HttpMessage CreateSendToUserRequest(string userId, string contentType, RequestContent content, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1115,30 +1115,30 @@ private HttpMessage CreateSendToUserRequest(string userId, string contentType, R } request.Uri = uri; request.Headers.Add("Content-Type", contentType); - request.Content = requestBody; + request.Content = content; return message; } /// Add a user to the target group. /// Target group name, which length should be greater than 0 and less than 1025. /// Target user Id. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task AddUserToGroupAsync(string group, string userId, RequestOptions requestOptions = null) + public virtual async Task AddUserToGroupAsync(string group, string userId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateAddUserToGroupRequest(group, userId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateAddUserToGroupRequest(group, userId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.AddUserToGroup"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1164,23 +1164,23 @@ public virtual async Task AddUserToGroupAsync(string group, string use /// Add a user to the target group. /// Target group name, which length should be greater than 0 and less than 1025. /// Target user Id. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response AddUserToGroup(string group, string userId, RequestOptions requestOptions = null) + public virtual Response AddUserToGroup(string group, string userId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateAddUserToGroupRequest(group, userId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateAddUserToGroupRequest(group, userId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.AddUserToGroup"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1206,8 +1206,8 @@ public virtual Response AddUserToGroup(string group, string userId, RequestOptio /// Create Request for and operations. /// Target group name, which length should be greater than 0 and less than 1025. /// Target user Id. - /// The request options. - private HttpMessage CreateAddUserToGroupRequest(string group, string userId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateAddUserToGroupRequest(string group, string userId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1231,23 +1231,23 @@ private HttpMessage CreateAddUserToGroupRequest(string group, string userId, Req /// Remove a user from the target group. /// Target group name, which length should be greater than 0 and less than 1025. /// Target user Id. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task RemoveUserFromGroupAsync(string group, string userId, RequestOptions requestOptions = null) + public virtual async Task RemoveUserFromGroupAsync(string group, string userId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateRemoveUserFromGroupRequest(group, userId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateRemoveUserFromGroupRequest(group, userId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.RemoveUserFromGroup"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1272,23 +1272,23 @@ public virtual async Task RemoveUserFromGroupAsync(string group, strin /// Remove a user from the target group. /// Target group name, which length should be greater than 0 and less than 1025. /// Target user Id. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response RemoveUserFromGroup(string group, string userId, RequestOptions requestOptions = null) + public virtual Response RemoveUserFromGroup(string group, string userId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateRemoveUserFromGroupRequest(group, userId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateRemoveUserFromGroupRequest(group, userId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.RemoveUserFromGroup"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1313,8 +1313,8 @@ public virtual Response RemoveUserFromGroup(string group, string userId, Request /// Create Request for and operations. /// Target group name, which length should be greater than 0 and less than 1025. /// Target user Id. - /// The request options. - private HttpMessage CreateRemoveUserFromGroupRequest(string group, string userId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateRemoveUserFromGroupRequest(string group, string userId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1337,23 +1337,23 @@ private HttpMessage CreateRemoveUserFromGroupRequest(string group, string userId /// Remove a user from all groups. /// Target user Id. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual async Task RemoveUserFromAllGroupsAsync(string userId, RequestOptions requestOptions = null) + public virtual async Task RemoveUserFromAllGroupsAsync(string userId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateRemoveUserFromAllGroupsRequest(userId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateRemoveUserFromAllGroupsRequest(userId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.RemoveUserFromAllGroups"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1377,23 +1377,23 @@ public virtual async Task RemoveUserFromAllGroupsAsync(string userId, /// Remove a user from all groups. /// Target user Id. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - public virtual Response RemoveUserFromAllGroups(string userId, RequestOptions requestOptions = null) + public virtual Response RemoveUserFromAllGroups(string userId, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateRemoveUserFromAllGroupsRequest(userId, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateRemoveUserFromAllGroupsRequest(userId, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.RemoveUserFromAllGroups"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1417,8 +1417,8 @@ public virtual Response RemoveUserFromAllGroups(string userId, RequestOptions re /// Create Request for and operations. /// Target user Id. - /// The request options. - private HttpMessage CreateRemoveUserFromAllGroupsRequest(string userId, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateRemoveUserFromAllGroupsRequest(string userId, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1442,23 +1442,23 @@ private HttpMessage CreateRemoveUserFromAllGroupsRequest(string userId, RequestO /// The permission: current supported actions are joinLeaveGroup and sendToGroup. /// Target connection Id. /// Optional. If not set, grant the permission to all the targets. If set, grant the permission to the specific target. The meaning of the target depends on the specific permission. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - internal virtual async Task GrantPermissionAsync(string permission, string connectionId, string targetName = null, RequestOptions requestOptions = null) + internal virtual async Task GrantPermissionAsync(string permission, string connectionId, string targetName = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGrantPermissionRequest(permission, connectionId, targetName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGrantPermissionRequest(permission, connectionId, targetName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.GrantPermission"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1484,23 +1484,23 @@ internal virtual async Task GrantPermissionAsync(string permission, st /// The permission: current supported actions are joinLeaveGroup and sendToGroup. /// Target connection Id. /// Optional. If not set, grant the permission to all the targets. If set, grant the permission to the specific target. The meaning of the target depends on the specific permission. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - internal virtual Response GrantPermission(string permission, string connectionId, string targetName = null, RequestOptions requestOptions = null) + internal virtual Response GrantPermission(string permission, string connectionId, string targetName = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateGrantPermissionRequest(permission, connectionId, targetName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateGrantPermissionRequest(permission, connectionId, targetName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.GrantPermission"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1526,8 +1526,8 @@ internal virtual Response GrantPermission(string permission, string connectionId /// The permission: current supported actions are joinLeaveGroup and sendToGroup. /// Target connection Id. /// Optional. If not set, grant the permission to all the targets. If set, grant the permission to the specific target. The meaning of the target depends on the specific permission. - /// The request options. - private HttpMessage CreateGrantPermissionRequest(string permission, string connectionId, string targetName = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateGrantPermissionRequest(string permission, string connectionId, string targetName = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1556,23 +1556,23 @@ private HttpMessage CreateGrantPermissionRequest(string permission, string conne /// The permission: current supported actions are joinLeaveGroup and sendToGroup. /// Target connection Id. /// Optional. If not set, revoke the permission for all targets. If set, revoke the permission for the specific target. The meaning of the target depends on the specific permission. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - internal virtual async Task RevokePermissionAsync(string permission, string connectionId, string targetName = null, RequestOptions requestOptions = null) + internal virtual async Task RevokePermissionAsync(string permission, string connectionId, string targetName = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateRevokePermissionRequest(permission, connectionId, targetName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateRevokePermissionRequest(permission, connectionId, targetName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.RevokePermission"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1598,23 +1598,23 @@ internal virtual async Task RevokePermissionAsync(string permission, s /// The permission: current supported actions are joinLeaveGroup and sendToGroup. /// Target connection Id. /// Optional. If not set, revoke the permission for all targets. If set, revoke the permission for the specific target. The meaning of the target depends on the specific permission. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - internal virtual Response RevokePermission(string permission, string connectionId, string targetName = null, RequestOptions requestOptions = null) + internal virtual Response RevokePermission(string permission, string connectionId, string targetName = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateRevokePermissionRequest(permission, connectionId, targetName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateRevokePermissionRequest(permission, connectionId, targetName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.RevokePermission"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1640,8 +1640,8 @@ internal virtual Response RevokePermission(string permission, string connectionI /// The permission: current supported actions are joinLeaveGroup and sendToGroup. /// Target connection Id. /// Optional. If not set, revoke the permission for all targets. If set, revoke the permission for the specific target. The meaning of the target depends on the specific permission. - /// The request options. - private HttpMessage CreateRevokePermissionRequest(string permission, string connectionId, string targetName = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateRevokePermissionRequest(string permission, string connectionId, string targetName = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; @@ -1670,23 +1670,23 @@ private HttpMessage CreateRevokePermissionRequest(string permission, string conn /// The permission: current supported actions are joinLeaveGroup and sendToGroup. /// Target connection Id. /// Optional. If not set, get the permission for all targets. If set, get the permission for the specific target. The meaning of the target depends on the specific permission. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - internal virtual async Task CheckPermissionAsync(string permission, string connectionId, string targetName = null, RequestOptions requestOptions = null) + internal virtual async Task CheckPermissionAsync(string permission, string connectionId, string targetName = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCheckPermissionRequest(permission, connectionId, targetName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCheckPermissionRequest(permission, connectionId, targetName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.CheckPermission"); scope.Start(); try { - await Pipeline.SendAsync(message, requestOptions.CancellationToken).ConfigureAwait(false); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + await Pipeline.SendAsync(message, options.CancellationToken).ConfigureAwait(false); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1713,23 +1713,23 @@ internal virtual async Task CheckPermissionAsync(string permission, st /// The permission: current supported actions are joinLeaveGroup and sendToGroup. /// Target connection Id. /// Optional. If not set, get the permission for all targets. If set, get the permission for the specific target. The meaning of the target depends on the specific permission. - /// The request options. + /// The request options. #pragma warning disable AZC0002 - internal virtual Response CheckPermission(string permission, string connectionId, string targetName = null, RequestOptions requestOptions = null) + internal virtual Response CheckPermission(string permission, string connectionId, string targetName = null, RequestOptions options = null) #pragma warning restore AZC0002 { - requestOptions ??= new RequestOptions(); - HttpMessage message = CreateCheckPermissionRequest(permission, connectionId, targetName, requestOptions); - if (requestOptions.PerCallPolicy != null) + options ??= new RequestOptions(); + HttpMessage message = CreateCheckPermissionRequest(permission, connectionId, targetName, options); + if (options.PerCallPolicy != null) { - message.SetProperty("RequestOptionsPerCallPolicyCallback", requestOptions.PerCallPolicy); + message.SetProperty("RequestOptionsPerCallPolicyCallback", options.PerCallPolicy); } using var scope = _clientDiagnostics.CreateScope("WebPubSubServiceClient.CheckPermission"); scope.Start(); try { - Pipeline.Send(message, requestOptions.CancellationToken); - if (requestOptions.StatusOption == ResponseStatusOption.Default) + Pipeline.Send(message, options.CancellationToken); + if (options.StatusOption == ResponseStatusOption.Default) { switch (message.Response.Status) { @@ -1756,8 +1756,8 @@ internal virtual Response CheckPermission(string permission, string connectionId /// The permission: current supported actions are joinLeaveGroup and sendToGroup. /// Target connection Id. /// Optional. If not set, get the permission for all targets. If set, get the permission for the specific target. The meaning of the target depends on the specific permission. - /// The request options. - private HttpMessage CreateCheckPermissionRequest(string permission, string connectionId, string targetName = null, RequestOptions requestOptions = null) + /// The request options. + private HttpMessage CreateCheckPermissionRequest(string permission, string connectionId, string targetName = null, RequestOptions options = null) { var message = Pipeline.CreateMessage(); var request = message.Request; diff --git a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/GlobalSuppressions.cs b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/GlobalSuppressions.cs new file mode 100644 index 000000000000..b6f456d951a1 --- /dev/null +++ b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/GlobalSuppressions.cs @@ -0,0 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Diagnostics.CodeAnalysis; + +[assembly: SuppressMessage("Usage", "AZC0002:DO ensure all service methods, both asynchronous and synchronous, take an optional CancellationToken parameter called cancellationToken.", Justification = "CancellationToken can be passed through RequestOptions")] diff --git a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubAuthenticationPolicy.cs b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubAuthenticationPolicy.cs index 148c59bc6b2a..817b32fbd056 100644 --- a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubAuthenticationPolicy.cs +++ b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubAuthenticationPolicy.cs @@ -26,7 +26,9 @@ internal partial class WebPubSubAuthenticationPolicy : HttpPipelineSynchronousPo public override void OnSendingRequest(HttpMessage message) { string audience = message.Request.Uri.ToUri().AbsoluteUri; - string accessToken = JwtUtils.GenerateJwtBearer(audience, claims: null, expiresAfter: TimeSpan.FromMinutes(10), _credential); + var expiresAt = DateTime.UtcNow + TimeSpan.FromMinutes(10); + + string accessToken = JwtUtils.GenerateJwtBearer(audience, claims: null, expiresAt, _credential); var header = new AuthenticationHeaderValue("Bearer", accessToken); message.Request.Headers.SetValue(HttpHeader.Names.Authorization, header.ToString()); diff --git a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubAuthenticationPolicy_token.cs b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubAuthenticationPolicy_token.cs index 1e70fc689e36..9787aa2d7980 100644 --- a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubAuthenticationPolicy_token.cs +++ b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubAuthenticationPolicy_token.cs @@ -26,22 +26,23 @@ internal partial class WebPubSubAuthenticationPolicy : HttpPipelineSynchronousPo /// /// /// - /// + /// DateTime.Kind must be DateTimeKind.Utc. /// SHA512 if true, otherwise SHA256 /// public static string GenerateAccessToken( string audience, IEnumerable claims, AzureKeyCredential key, - TimeSpan expireAfter = default, + DateTime expiresAtUtc = default, bool hmacSha512 = false) { - if (expireAfter == default) expireAfter = TimeSpan.FromMinutes(10); + if (expiresAtUtc.Kind != DateTimeKind.Utc) + throw new ArgumentOutOfRangeException(nameof(expiresAtUtc)); var jwtToken = JwtUtils.GenerateJwtBearer( audience: audience, claims: claims, - expiresAfter: expireAfter, + expiresAt: expiresAtUtc, key: key, hmacSha512: hmacSha512 ); @@ -59,13 +60,11 @@ private static class JwtUtils public static string GenerateJwtBearer( string audience, IEnumerable claims, - TimeSpan expiresAfter, + DateTime expiresAt, AzureKeyCredential key, string issuer = null, bool hmacSha512 = false) { - var expiresAt = DateTime.UtcNow.Add(expiresAfter); - var subject = claims == null ? null : new ClaimsIdentity(claims); SigningCredentials credentials = null; if (key != null) diff --git a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubServiceClient_extensions.cs b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubServiceClient_extensions.cs index 365a0d23eca9..981093aea74b 100644 --- a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubServiceClient_extensions.cs +++ b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubServiceClient_extensions.cs @@ -19,8 +19,6 @@ public partial class WebPubSubServiceClient { private AzureKeyCredential _credential; - private const string JsonContent = "application/json"; - /// /// The hub. /// @@ -98,188 +96,184 @@ private WebPubSubServiceClient((Uri Endpoint, AzureKeyCredential Credential) par } /// Broadcast message to all the connected client connections. - /// - /// Excluded connection Ids. - /// The cancellation token to use. + /// + /// Defaults to ContentType.PlainText. /// A if successful. - public virtual async Task SendToAllAsync(string message, IEnumerable excluded = null, CancellationToken cancellationToken = default) + public virtual async Task SendToAllAsync(string content, ContentType contentType = default) { - RequestOptions options = default; - if (cancellationToken != default) - options = new RequestOptions() { CancellationToken = cancellationToken }; + Argument.AssertNotNull(content, nameof(content)); + + if (contentType == default) contentType = ContentType.TextPlain; - return await SendToAllAsync(JsonContent, RequestContent.Create((object)message), excluded, options).ConfigureAwait(false); + return await SendToAllAsync(contentType.ToString(), RequestContent.Create(content), default, options: default).ConfigureAwait(false); } /// Broadcast message to all the connected client connections. - /// - /// Excluded connection Ids. - /// The cancellation token to use. + /// + /// Defaults to ContentType.PlainText. /// A if successful. - public virtual Response SendToAll(string message, IEnumerable excluded = null, CancellationToken cancellationToken = default) + public virtual Response SendToAll(string content, ContentType contentType = default) { - RequestOptions options = default; - if (cancellationToken != default) - options = new RequestOptions() { CancellationToken = cancellationToken }; + Argument.AssertNotNull(content, nameof(content)); + + if (contentType == default) contentType = ContentType.TextPlain; - return SendToAll(JsonContent, RequestContent.Create((object)message), excluded, options); + return SendToAll(contentType.ToString(), RequestContent.Create(content), excluded: default, options: default); } /// /// Send message to the specific user. /// /// The user Id. - /// - /// + /// + /// Defaults to ContentType.PlainText. /// A if successful. - public virtual async Task SendToUserAsync(string userId, string message, CancellationToken cancellationToken = default) + public virtual async Task SendToUserAsync(string userId, string content, ContentType contentType = default) { - RequestOptions options = default; - if (cancellationToken != default) - options = new RequestOptions() { CancellationToken = cancellationToken }; + Argument.AssertNotNull(userId, nameof(userId)); + Argument.AssertNotNull(content, nameof(content)); - return await SendToUserAsync(userId, JsonContent, RequestContent.Create((object)message), options).ConfigureAwait(false); + if (contentType == default) contentType = ContentType.TextPlain; + + return await SendToUserAsync(userId, contentType.ToString(), RequestContent.Create(content), options: default).ConfigureAwait(false); } /// /// Send message to the specific user. /// /// The user Id. - /// - /// + /// + /// Defaults to ContentType.PlainText. /// A if successful. - public virtual Response SendToUser(string userId, string message, CancellationToken cancellationToken = default) + public virtual Response SendToUser(string userId, string content, ContentType contentType = default) { - RequestOptions options = default; - if (cancellationToken != default) - options = new RequestOptions() { CancellationToken = cancellationToken }; + Argument.AssertNotNull(userId, nameof(userId)); + Argument.AssertNotNull(content, nameof(content)); + + if (contentType == default) contentType = ContentType.TextPlain; - return SendToUser(userId, JsonContent, RequestContent.Create((object)message), options); + return SendToUser(userId, contentType.ToString(), RequestContent.Create(content), options: default); } /// /// Send message to the specific connection. /// /// The connection Id. - /// - /// + /// + /// Defaults to ContentType.PlainText. /// A if successful. - public virtual async Task SendToConnectionAsync(string connectionId, string message, CancellationToken cancellationToken = default) + public virtual async Task SendToConnectionAsync(string connectionId, string content, ContentType contentType = default) { - RequestOptions options = default; - if (cancellationToken != default) - options = new RequestOptions() { CancellationToken = cancellationToken }; + Argument.AssertNotNull(connectionId, nameof(connectionId)); + Argument.AssertNotNull(content, nameof(content)); + + if (contentType == default) contentType = ContentType.TextPlain; - return await SendToConnectionAsync(connectionId, JsonContent, RequestContent.Create((object)message), options).ConfigureAwait(false); + return await SendToConnectionAsync(connectionId, contentType.ToString(), RequestContent.Create(content), options: default).ConfigureAwait(false); } /// /// Send message to the specific connection. /// /// The connection Id. - /// - /// + /// + /// Defaults to ContentType.PlainText. /// A if successful. - public virtual Response SendToConnection(string connectionId, string message, CancellationToken cancellationToken = default) + public virtual Response SendToConnection(string connectionId, string content, ContentType contentType = default) { - RequestOptions options = default; - if (cancellationToken != default) - options = new RequestOptions() { CancellationToken = cancellationToken }; + Argument.AssertNotNull(connectionId, nameof(connectionId)); + Argument.AssertNotNull(content, nameof(content)); - return SendToConnection(connectionId, JsonContent, RequestContent.Create((object)message), options); + if (contentType == default) contentType = ContentType.TextPlain; + + return SendToConnection(connectionId, contentType.ToString(), RequestContent.Create(content), options: default); } /// /// Send message to a group of connections. /// /// Target group name, which length should be greater than 0 and less than 1025. - /// - /// Excluded connection Ids - /// + /// + /// Defaults to ContentType.PlainText. /// A if successful. - public virtual async Task SendToGroupAsync(string group, string message, IEnumerable excluded = null, CancellationToken cancellationToken = default) + public virtual async Task SendToGroupAsync(string group, string content, ContentType contentType = default) { - RequestOptions options = default; - if (cancellationToken != default) - options = new RequestOptions() { CancellationToken = cancellationToken }; + Argument.AssertNotNull(group, nameof(group)); + Argument.AssertNotNull(content, nameof(content)); + + if (contentType == default) contentType = ContentType.TextPlain; - return await SendToGroupAsync(group, JsonContent, RequestContent.Create((object)message), excluded, options).ConfigureAwait(false); + return await SendToGroupAsync(group, contentType.ToString(), RequestContent.Create(content), excluded : default, options: default).ConfigureAwait(false); } /// /// Send message to a group of connections. /// /// Target group name, which length should be greater than 0 and less than 1025. - /// - /// Excluded connection Ids - /// + /// + /// Defaults to ContentType.PlainText. /// A if successful. - public virtual Response SendToGroup(string group, string message, IEnumerable excluded = null, CancellationToken cancellationToken = default) + public virtual Response SendToGroup(string group, string content, ContentType contentType = default) { - RequestOptions options = default; - if (cancellationToken != default) - options = new RequestOptions() { CancellationToken = cancellationToken }; + Argument.AssertNotNull(group, nameof(group)); + Argument.AssertNotNull(content, nameof(content)); + + if (contentType == default) contentType = ContentType.TextPlain; - return SendToGroup(group, JsonContent, RequestContent.Create((object)message), excluded, options); + return SendToGroup(group, contentType.ToString(), RequestContent.Create(content), excluded : default, options: default); } /// Check if there are any client connections inside the given group. /// Target group name, which length should be greater than 0 and less than 1025. - /// The cancellation token to use. - public virtual async Task> GroupExistsAsync(string group, CancellationToken cancellationToken = default) + /// Options specifying the cancellation token, controlling error reporting, etc. + public virtual async Task> GroupExistsAsync(string group, RequestOptions options = default) { - var options = new RequestOptions() { StatusOption = ResponseStatusOption.NoThrow, CancellationToken = cancellationToken }; - var response = await GroupExistsAsync(group, options).ConfigureAwait(false); + var response = await GroupExistsImplAsync(group, options).ConfigureAwait(false); return Response.FromValue(response.Status == 200, response); } /// Check if there are any client connections inside the given group. /// Target group name, which length should be greater than 0 and less than 1025. - /// The cancellation token to use. - public virtual Response GroupExists(string group, CancellationToken cancellationToken = default) + /// Options specifying the cancellation token, controlling error reporting, etc. + public virtual Response GroupExists(string group, RequestOptions options = default) { - var options = new RequestOptions() { StatusOption = ResponseStatusOption.NoThrow, CancellationToken = cancellationToken }; - var response = GroupExists(group, options); + var response = GroupExistsImpl(group, options); return Response.FromValue(response.Status == 200, response); } /// Check if there are any client connections connected for the given user. /// Target user Id. - /// The cancellation token to use. - public virtual async Task> UserExistsAsync(string userId, CancellationToken cancellationToken = default) + /// Options specifying the cancellation token, controlling error reporting, etc. + public virtual async Task> UserExistsAsync(string userId, RequestOptions options = default) { - var options = new RequestOptions() { StatusOption = ResponseStatusOption.NoThrow, CancellationToken = cancellationToken }; - var response = await UserExistsAsync(userId, options).ConfigureAwait(false); + var response = await UserExistsImplAsync(userId, options).ConfigureAwait(false); return Response.FromValue(response.Status == 200, response); } /// Check if there are any client connections connected for the given user. /// Target user Id. - /// The cancellation token to use. - public virtual Response UserExists(string userId, CancellationToken cancellationToken = default) + /// Options specifying the cancellation token, controlling error reporting, etc. + public virtual Response UserExists(string userId, RequestOptions options = default) { - var options = new RequestOptions() { StatusOption = ResponseStatusOption.NoThrow, CancellationToken = cancellationToken }; - var response = UserExists(userId, options); + var response = UserExistsImpl(userId, options); return Response.FromValue(response.Status == 200, response); } /// Check if the connection with the given connectionId exists. /// The connection Id. - /// The cancellation token to use. - public virtual async Task> ConnectionExistsAsync(string connectionId, CancellationToken cancellationToken = default) + /// Options specifying the cancellation token, controlling error reporting, etc. + public virtual async Task> ConnectionExistsAsync(string connectionId, RequestOptions options = default) { - var options = new RequestOptions() { StatusOption = ResponseStatusOption.NoThrow, CancellationToken = cancellationToken }; - var response = await ConnectionExistsAsync(connectionId, options).ConfigureAwait(false); + var response = await ConnectionExistsImplAsync(connectionId, options).ConfigureAwait(false); return Response.FromValue(response.Status == 200, response); } /// Check if the connection with the given connectionId exists. /// The connection Id. - /// The cancellation token to use. - public virtual Response ConnectionExists(string connectionId, CancellationToken cancellationToken = default) + /// Options specifying the cancellation token, controlling error reporting, etc. + public virtual Response ConnectionExists(string connectionId, RequestOptions options = default) { - var options = new RequestOptions() { StatusOption = ResponseStatusOption.NoThrow, CancellationToken = cancellationToken }; - var response = ConnectionExists(connectionId, options); + var response = ConnectionExistsImpl(connectionId, options); return Response.FromValue(response.Status == 200, response); } @@ -287,11 +281,10 @@ public virtual Response ConnectionExists(string connectionId, Cancellation /// The permission: current supported actions are joinLeaveGroup and sendToGroup. /// Target connection Id. /// Optional. If not set, grant the permission to all the targets. If set, grant the permission to the specific target. The meaning of the target depends on the specific permission. - /// The cancellation token to use. - public virtual async Task GrantPermissionAsync(WebPubSubPermission permission, string connectionId, string targetName = null, CancellationToken cancellationToken = default) + /// Options specifying the cancellation token, controlling error reporting, etc. + public virtual async Task GrantPermissionAsync(WebPubSubPermission permission, string connectionId, string targetName = null, RequestOptions options = default) { - var options = new RequestOptions() { StatusOption = ResponseStatusOption.NoThrow, CancellationToken = cancellationToken }; - var response = await GrantPermissionAsync(permission.ToString(), connectionId, targetName, options).ConfigureAwait(false); + var response = await GrantPermissionAsync(PermissionToString(permission), connectionId, targetName, options).ConfigureAwait(false); return response; } @@ -299,11 +292,10 @@ public virtual async Task GrantPermissionAsync(WebPubSubPermission per /// The permission: current supported actions are joinLeaveGroup and sendToGroup. /// Target connection Id. /// Optional. If not set, grant the permission to all the targets. If set, grant the permission to the specific target. The meaning of the target depends on the specific permission. - /// The cancellation token to use. - public virtual Response GrantPermission(WebPubSubPermission permission, string connectionId, string targetName = null, CancellationToken cancellationToken = default) + /// Options specifying the cancellation token, controlling error reporting, etc. + public virtual Response GrantPermission(WebPubSubPermission permission, string connectionId, string targetName = null, RequestOptions options = default) { - var options = new RequestOptions() { StatusOption = ResponseStatusOption.NoThrow, CancellationToken = cancellationToken }; - var response = GrantPermission(permission.ToString(), connectionId, targetName, options); + var response = GrantPermission(PermissionToString(permission), connectionId, targetName, options); return response; } @@ -311,11 +303,10 @@ public virtual Response GrantPermission(WebPubSubPermission permission, string c /// The permission: current supported actions are joinLeaveGroup and sendToGroup. /// Target connection Id. /// Optional. If not set, revoke the permission for all targets. If set, revoke the permission for the specific target. The meaning of the target depends on the specific permission. - /// The cancellation token to use. - public virtual async Task RevokePermissionAsync(WebPubSubPermission permission, string connectionId, string targetName = null, CancellationToken cancellationToken = default) + /// Options specifying the cancellation token, controlling error reporting, etc. + public virtual async Task RevokePermissionAsync(WebPubSubPermission permission, string connectionId, string targetName = null, RequestOptions options = default) { - var options = new RequestOptions() { StatusOption = ResponseStatusOption.NoThrow, CancellationToken = cancellationToken }; - var response = await RevokePermissionAsync(permission.ToString(), connectionId, targetName, options).ConfigureAwait(false); + var response = await RevokePermissionAsync(PermissionToString(permission), connectionId, targetName, options).ConfigureAwait(false); return response; } @@ -323,11 +314,10 @@ public virtual async Task RevokePermissionAsync(WebPubSubPermission pe /// The permission: current supported actions are joinLeaveGroup and sendToGroup. /// Target connection Id. /// Optional. If not set, revoke the permission for all targets. If set, revoke the permission for the specific target. The meaning of the target depends on the specific permission. - /// The cancellation token to use. - public virtual Response RevokePermission(WebPubSubPermission permission, string connectionId, string targetName = null, CancellationToken cancellationToken = default) + /// Options specifying the cancellation token, controlling error reporting, etc. + public virtual Response RevokePermission(WebPubSubPermission permission, string connectionId, string targetName = null, RequestOptions options = default) { - var options = new RequestOptions() { StatusOption = ResponseStatusOption.NoThrow, CancellationToken = cancellationToken }; - var response = RevokePermission(permission.ToString(), connectionId, targetName, options); + var response = RevokePermission(PermissionToString(permission), connectionId, targetName, options); return response; } @@ -335,24 +325,22 @@ public virtual Response RevokePermission(WebPubSubPermission permission, string /// The permission: current supported actions are joinLeaveGroup and sendToGroup. /// Target connection Id. /// Optional. If not set, get the permission for all targets. If set, get the permission for the specific target. The meaning of the target depends on the specific permission. - /// The cancellation token to use. - public virtual async Task CheckPermissionAsync(WebPubSubPermission permission, string connectionId, string targetName = null, CancellationToken cancellationToken = default) + /// Options specifying the cancellation token, controlling error reporting, etc. + public virtual async Task> CheckPermissionAsync(WebPubSubPermission permission, string connectionId, string targetName = null, RequestOptions options = default) { - var options = new RequestOptions() { StatusOption = ResponseStatusOption.NoThrow, CancellationToken = cancellationToken }; - var response = await CheckPermissionAsync(permission.ToString(), connectionId, targetName, options).ConfigureAwait(false); - return response; + var response = await CheckPermissionAsync(PermissionToString(permission), connectionId, targetName, options).ConfigureAwait(false); + return Response.FromValue((response.Status == 200), response); } /// Check if a connection has permission to the specified action. /// The permission: current supported actions are joinLeaveGroup and sendToGroup. /// Target connection Id. /// Optional. If not set, get the permission for all targets. If set, get the permission for the specific target. The meaning of the target depends on the specific permission. - /// The cancellation token to use. - public virtual Response CheckPermission(WebPubSubPermission permission, string connectionId, string targetName = null, CancellationToken cancellationToken = default) + /// Options specifying the cancellation token, controlling error reporting, etc. + public virtual Response CheckPermission(WebPubSubPermission permission, string connectionId, string targetName = null, RequestOptions options = default) { - var options = new RequestOptions() { StatusOption = ResponseStatusOption.NoThrow, CancellationToken = cancellationToken }; - var response = CheckPermission(permission.ToString(), connectionId, targetName, options); - return response; + var response = CheckPermission(PermissionToString(permission), connectionId, targetName, options); + return Response.FromValue((response.Status == 200), response); } } } diff --git a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubServiceClient_helpers.cs b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubServiceClient_helpers.cs index cd3702ef8e6d..7e7f87bcd545 100644 --- a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubServiceClient_helpers.cs +++ b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/WebPubSubServiceClient_helpers.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; using System.Security.Claims; +using Azure.Core; using Azure.Core.Pipeline; namespace Azure.Messaging.WebPubSub @@ -22,17 +23,12 @@ public partial class WebPubSubServiceClient /// /// Creates a URI with authentication token. /// + /// UTC time when the token expires. /// /// - /// Defaults to one hour, if not specified. /// - public virtual Uri GenerateClientAccessUri(string userId = default, string[] roles = default, TimeSpan expiresAfter = default) + public virtual Uri GenerateClientAccessUri(DateTime expiresAtUtc, string userId = default, params string[] roles) { - if (expiresAfter == default) - { - expiresAfter = TimeSpan.FromHours(1); - } - List claims = new List(); if (userId != default) { @@ -54,7 +50,7 @@ public virtual Uri GenerateClientAccessUri(string userId = default, string[] rol } var audience = $"{endpoint}client/hubs/{hub}"; - string token = WebPubSubAuthenticationPolicy.GenerateAccessToken(audience, claims, _credential, expiresAfter); + string token = WebPubSubAuthenticationPolicy.GenerateAccessToken(audience, claims, _credential, expiresAtUtc); var clientEndpoint = new UriBuilder(endpoint); clientEndpoint.Scheme = this.endpoint.Scheme == "http" ? "ws" : "wss"; @@ -63,12 +59,38 @@ public virtual Uri GenerateClientAccessUri(string userId = default, string[] rol return new Uri(uriString); } + /// + /// Creates a URI with authentication token. + /// + /// Defaults to one hour, if not specified. Must be greater or equal zero. + /// + /// + /// + public virtual Uri GenerateClientAccessUri(TimeSpan expiresAfter = default, string userId = default, params string[] roles) + { + if (expiresAfter.TotalMilliseconds < 0) + throw new ArgumentOutOfRangeException(nameof(expiresAfter)); + + DateTime expiresAt = DateTime.UtcNow; + if (expiresAfter == default) + { + expiresAt += TimeSpan.FromHours(1); + } + else + { + expiresAt += expiresAfter; + } + return GenerateClientAccessUri(expiresAt, userId, roles); + } + /// /// Parse connection string to endpoint and credential /// /// internal static (Uri Endpoint, AzureKeyCredential Credential) ParseConnectionString(string connectionString) { + Argument.AssertNotNull(connectionString, nameof(connectionString)); + var properties = connectionString.Split(PropertySeparator, StringSplitOptions.RemoveEmptyEntries); var dict = new Dictionary(StringComparer.OrdinalIgnoreCase); @@ -119,5 +141,18 @@ internal static (Uri Endpoint, AzureKeyCredential Credential) ParseConnectionStr return (uriBuilder.Uri, new AzureKeyCredential(accessKey)); } + + internal static string PermissionToString(WebPubSubPermission permission) + { + switch (permission) + { + case WebPubSubPermission.SendToGroup: + return "sendToGroup"; + case WebPubSubPermission.JoinLeaveGroup: + return "joinLeaveGroup"; + default: + throw new ArgumentOutOfRangeException(nameof(permission)); + } + } } } diff --git a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/swagger/WebPubSub.json b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/swagger/WebPubSub.json index ded8d9684bdd..eabfa10aa84d 100644 --- a/sdk/webpubsub/Azure.Messaging.WebPubSub/src/swagger/WebPubSub.json +++ b/sdk/webpubsub/Azure.Messaging.WebPubSub/src/swagger/WebPubSub.json @@ -99,7 +99,7 @@ "webpubsub" ], "summary": "Check if the connection with the given connectionId exists.", - "operationId": "WebPubSubService_ConnectionExists", + "operationId": "WebPubSubService_ConnectionExistsImpl", "x-accessibility": "internal", "parameters": [ { @@ -254,7 +254,7 @@ "webpubsub" ], "summary": "Check if there are any client connections inside the given group", - "operationId": "WebPubSubService_GroupExists", + "operationId": "WebPubSubService_GroupExistsImpl", "x-accessibility": "internal", "parameters": [ { @@ -480,7 +480,7 @@ "webpubsub" ], "summary": "Check if there are any client connections connected for the given user.", - "operationId": "WebPubSubService_UserExists", + "operationId": "WebPubSubService_UserExistsImpl", "x-accessibility": "internal", "parameters": [ { diff --git a/sdk/webpubsub/Azure.Messaging.WebPubSub/tests/Samples/WebPubSubSamples.HelloWorld.cs b/sdk/webpubsub/Azure.Messaging.WebPubSub/tests/Samples/WebPubSubSamples.HelloWorld.cs index 03f95c389a58..2897f766d7ee 100644 --- a/sdk/webpubsub/Azure.Messaging.WebPubSub/tests/Samples/WebPubSubSamples.HelloWorld.cs +++ b/sdk/webpubsub/Azure.Messaging.WebPubSub/tests/Samples/WebPubSubSamples.HelloWorld.cs @@ -90,7 +90,7 @@ public void AddUserToGroup() client.AddUserToGroup("some_group", "some_user"); // Avoid sending messages to users who do not exist. - if (client.UserExists("some_user", CancellationToken.None).Value) + if (client.UserExists("some_user").Value) { client.SendToUser("some_user", "Hi, I am glad you exist!"); } diff --git a/sdk/webpubsub/Azure.Messaging.WebPubSub/tests/WebPubSubParseConnectionStringTests.cs b/sdk/webpubsub/Azure.Messaging.WebPubSub/tests/WebPubSubParseConnectionStringTests.cs index 6e83d0e62d20..d2e38677f68c 100644 --- a/sdk/webpubsub/Azure.Messaging.WebPubSub/tests/WebPubSubParseConnectionStringTests.cs +++ b/sdk/webpubsub/Azure.Messaging.WebPubSub/tests/WebPubSubParseConnectionStringTests.cs @@ -36,7 +36,7 @@ public void ParseConnectionStringTests(string connectionString, string url) public void TestGenerateUriContainsExpectedPayloads(string userId, string[] roles) { var serviceClient = new WebPubSubServiceClient(string.Format("Endpoint=http://localhost;Port=8080;AccessKey={0};Version=1.0;", FakeAccessKey), "hub"); - var uri = serviceClient.GenerateClientAccessUri(userId, roles, TimeSpan.FromMinutes(5)); + var uri = serviceClient.GenerateClientAccessUri(TimeSpan.FromMinutes(5), userId, roles); var token = HttpUtility.ParseQueryString(uri.Query).Get("access_token"); Assert.NotNull(token); var jwt = JwtTokenHandler.ReadJwtToken(token); diff --git a/sdk/webpubsub/Microsoft.Azure.WebJobs.Extensions.WebPubSub/README.md b/sdk/webpubsub/Microsoft.Azure.WebJobs.Extensions.WebPubSub/README.md index 8548d66881c6..0adcb2fb1a9a 100644 --- a/sdk/webpubsub/Microsoft.Azure.WebJobs.Extensions.WebPubSub/README.md +++ b/sdk/webpubsub/Microsoft.Azure.WebJobs.Extensions.WebPubSub/README.md @@ -140,12 +140,12 @@ additional questions or comments. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Fsearch%2FMicrosoft.Azure.WebJobs.Extensions.WebPubSub%2FREADME.png) -[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/search/Microsoft.Azure.WebJobs.Extensions.WebPubSub/src +[source]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/search/Microsoft.Azure.WebJobs.Extensions.WebPubSub/src [package]: https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.WebPubSub/ [docs]: https://docs.microsoft.com/dotnet/api/Microsoft.Azure.WebJobs.Extensions.WebPubSub [nuget]: https://www.nuget.org/ -[contrib]: https://github.com/Azure/azure-sdk-for-net/tree/master/CONTRIBUTING.md +[contrib]: https://github.com/Azure/azure-sdk-for-net/tree/main/CONTRIBUTING.md [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/webpubsub/ci.yml b/sdk/webpubsub/ci.yml index 607a370b6576..30b83ce22bd6 100644 --- a/sdk/webpubsub/ci.yml +++ b/sdk/webpubsub/ci.yml @@ -2,7 +2,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -13,7 +12,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/tools/legacy/ScriptBackup/autogenForSwaggers/readme.md b/tools/legacy/ScriptBackup/autogenForSwaggers/readme.md index 0cf9381af396..cbcdbf3a36b9 100644 --- a/tools/legacy/ScriptBackup/autogenForSwaggers/readme.md +++ b/tools/legacy/ScriptBackup/autogenForSwaggers/readme.md @@ -4,17 +4,17 @@ This folder contains tools to generate C# code from [Azure REST API specificatio ## Commands -- [.\https://github.com/Azure/azure-sdk-for-net/blob/master/tools/legacy/ScriptBackup/autogenForSwaggers/update.ps1](https://github.com/Azure/azure-sdk-for-net/blob/master/tools/legacy/ScriptBackup/autogenForSwaggers/update.ps1) updates [https://github.com/Azure/azure-sdk-for-net/blob/master/tools/legacy/ScriptBackup/autogenForSwaggers/sdkinfo.json](https://github.com/Azure/azure-sdk-for-net/blob/master/tools/legacy/ScriptBackup/autogenForSwaggers/sdkinfo.json) using the latest commit from [Azure REST API specifications](https://github.com/Azure/azure-rest-api-specs). -- [.\https://github.com/Azure/azure-sdk-for-net/blob/master/tools/legacy/ScriptBackup/autogenForSwaggers/build.ps1](https://github.com/Azure/azure-sdk-for-net/blob/master/tools/legacy/ScriptBackup/autogenForSwaggers/build.ps1) generates and builds C# code using **AutoRest** and **sdkinfo.json** file. Examples - - `.\build.ps1 arm-cdn` generates and builds [the CDN project](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/cdn/Microsoft.Azure.Management.Cdn). +- [.\https://github.com/Azure/azure-sdk-for-net/blob/main/tools/legacy/ScriptBackup/autogenForSwaggers/update.ps1](https://github.com/Azure/azure-sdk-for-net/blob/main/tools/legacy/ScriptBackup/autogenForSwaggers/update.ps1) updates [https://github.com/Azure/azure-sdk-for-net/blob/main/tools/legacy/ScriptBackup/autogenForSwaggers/sdkinfo.json](https://github.com/Azure/azure-sdk-for-net/blob/main/tools/legacy/ScriptBackup/autogenForSwaggers/sdkinfo.json) using the latest commit from [Azure REST API specifications](https://github.com/Azure/azure-rest-api-specs). +- [.\https://github.com/Azure/azure-sdk-for-net/blob/main/tools/legacy/ScriptBackup/autogenForSwaggers/build.ps1](https://github.com/Azure/azure-sdk-for-net/blob/main/tools/legacy/ScriptBackup/autogenForSwaggers/build.ps1) generates and builds C# code using **AutoRest** and **sdkinfo.json** file. Examples + - `.\build.ps1 arm-cdn` generates and builds [the CDN project](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cdn/Microsoft.Azure.Management.Cdn). - `.\build.ps1 arm-*` generates and builds all ARM projects. -- [.\https://github.com/Azure/azure-sdk-for-net/blob/master/tools/legacy/ScriptBackup/autogenForSwaggers/test.ps1](https://github.com/Azure/azure-sdk-for-net/blob/master/tools/legacy/ScriptBackup/autogenForSwaggers/test.ps1) runs tests. Examples - - `.\test.ps1 arm-cdn` tests [the CDN project](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/cdn/Microsoft.Azure.Management.Cdn). +- [.\https://github.com/Azure/azure-sdk-for-net/blob/main/tools/legacy/ScriptBackup/autogenForSwaggers/test.ps1](https://github.com/Azure/azure-sdk-for-net/blob/main/tools/legacy/ScriptBackup/autogenForSwaggers/test.ps1) runs tests. Examples + - `.\test.ps1 arm-cdn` tests [the CDN project](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/cdn/Microsoft.Azure.Management.Cdn). - `.\test.ps1 arm-*` tests all ARM projects. ## SDK Info File -[https://github.com/Azure/azure-sdk-for-net/blob/master/tools/legacy/ScriptBackup/autogenForSwaggers/sdkinfo.json](https://github.com/Azure/azure-sdk-for-net/blob/master/tools/legacy/ScriptBackup/autogenForSwaggers/sdkinfo.json) is a JSON file for mapping [Azure REST API specifications](https://github.com/Azure/azure-rest-api-specs) to [Azure SDK for .Net](https://github.com/Azure/azure-sdk-for-net). +[https://github.com/Azure/azure-sdk-for-net/blob/main/tools/legacy/ScriptBackup/autogenForSwaggers/sdkinfo.json](https://github.com/Azure/azure-sdk-for-net/blob/main/tools/legacy/ScriptBackup/autogenForSwaggers/sdkinfo.json) is a JSON file for mapping [Azure REST API specifications](https://github.com/Azure/azure-rest-api-specs) to [Azure SDK for .Net](https://github.com/Azure/azure-sdk-for-net). In the future, the file should be replaced by configuration files. The file is an array of object.